blob: 9a3b02502d6bc2f99b35640f3759c68e7e5cb262 [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
Captain Throwback52978932021-09-05 15:11:07 -0400269 <checkbox>
270 <condition var1="tw_logcat_exists" var2="1"/>
271 <placement x="%indent%" y="%row2_y%"/>
272 <text>{@include_logcat=Include Logcat}</text>
273 <data variable="tw_include_logcat" value="1"/>
274 </checkbox>
275
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400276 <slider>
277 <text>{@swipe_confirm= Confirm}</text>
278 <actions>
Matt Mower32676622017-01-18 18:56:13 -0600279 <action function="set">tw_back=main3</action>
280 <action function="set">tw_action=copylog</action>
281 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
282 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400283 <action function="page">action_page</action>
284 </actions>
285 </slider>
286
287 <action>
288 <touch key="back"/>
289 <action function="page">main2</action>
290 </action>
291
292 <action>
293 <touch key="home"/>
294 <action function="page">main</action>
295 </action>
Matt Mower32676622017-01-18 18:56:13 -0600296 </page>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400297
z31s1g28f0a922015-11-07 18:50:22 +0100298 <page name="main3">
299 <template name="page"/>
300
301 <button style="main_button">
302 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500303 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100304 <action function="page">mount</action>
305 </button>
306
307 <button style="main_button">
308 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500309 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100310 <action function="page">settings</action>
311 </button>
312
313 <button style="main_button">
314 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500315 <text>{@files_btn=Files}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100316 <action function="page">filemanagerlist</action>
317 </button>
318
319 <button style="main_button">
320 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500321 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400322 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +0100323 </button>
324
325 <button style="main_button">
326 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500327 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100328 <action function="page">advanced</action>
329 </button>
330
331 <button>
332 <placement x="%col1_x_left%" y="%row11_y%"/>
333 <highlight color="%highlight_color%"/>
334 <image resource="q_btn_arrow_left"/>
335 <action function="page">main2</action>
336 </button>
337
338 <action>
339 <touch key="back"/>
340 <action function="page">main2</action>
341 </action>
342
343 <action>
344 <touch key="home"/>
345 <action function="page">main</action>
346 </action>
347 </page>
348
349 <page name="install_type">
350 <template name="page"/>
351
352 <template name="statusbar"/>
353
354 <text style="text_m">
355 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500356 <text>{@install_hdr=Install} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100357 </text>
358
359 <button style="main_button_full_width">
360 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500361 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100362 <actions>
363 <action function="queueclear"/>
364 <action function="set">tw_selectimage=0</action>
365 <action function="page">install</action>
366 </actions>
367 </button>
368
369 <button style="main_button_full_width">
370 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500371 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100372 <actions>
373 <action function="queueclear"/>
374 <action function="set">tw_selectimage=1</action>
375 <action function="page">install</action>
376 </actions>
377 </button>
378
379 <button style="main_button_full_width">
380 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500381 <text>{@adb_sideload_btn=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100382 <action function="page">sideload</action>
383 </button>
384
385 <action>
386 <touch key="home"/>
387 <action function="page">main</action>
388 </action>
389
390 <action>
391 <touch key="back"/>
392 <action function="page">main</action>
393 </action>
394 </page>
395
396 <page name="install">
397 <template name="page"/>
398
399 <template name="statusbar"/>
400
401 <text style="text_m">
402 <condition var1="tw_selectimage" var2="0"/>
403 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500404 <text>{@install_zip_hdr=Install Zip} &gt; {@install_select_file_hdr=Select File}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100405 </text>
406
407 <text style="text_m">
408 <condition var1="tw_selectimage" var2="1"/>
409 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500410 <text>{@install_image_hdr=Install Image} &gt; {@install_select_file_hdr=Select File}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100411 </text>
412
413 <fileselector>
414 <condition var1="tw_selectimage" var2="0"/>
415 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
416 <text>%tw_zip_location%</text>
mauronofrio6d3bf892019-10-26 19:47:55 +0200417 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="1" files="1"/>
Ian Macdonalde7c34e52021-01-23 18:52:28 +0100418 <prfxfilter prfx="Magisk-;Magisk.apk;app-release.apk;app-debug.apk" folders="1" files="1"/>
z31s1g28f0a922015-11-07 18:50:22 +0100419 <path name="tw_zip_location" default="/sdcard"/>
420 <data name="tw_filename"/>
421 <selection name="tw_file"/>
422 </fileselector>
423
424 <fileselector>
425 <condition var1="tw_selectimage" var2="1"/>
426 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
427 <text>%tw_zip_location%</text>
428 <filter extn=".img" folders="1" files="1"/>
429 <path name="tw_zip_location" default="/sdcard"/>
430 <data name="tw_filename"/>
431 <selection name="tw_file"/>
432 </fileselector>
433
434 <button>
435 <placement x="%btn4_col4_x%" y="%row11_y%"/>
436 <highlight color="%highlight_color%"/>
437 <image resource="q_btn_storage"/>
438 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -0500439 <action function="set">tw_storagetext={@install_hdr=Install} &gt; {@select_storage_hdr=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100440 <action function="set">tw_back=install</action>
441 <action function="page">select_storage</action>
442 </actions>
443 </button>
444
445 <action>
446 <conditions>
447 <condition var1="tw_selectimage" var2="0"/>
448 <condition var1="tw_filename" op="modified"/>
449 </conditions>
450 <actions>
451 <action function="queuezip"/>
452 <action function="page">flash_queue</action>
453 </actions>
454 </action>
455
456 <action>
457 <conditions>
458 <condition var1="tw_selectimage" var2="1"/>
459 <condition var1="tw_filename" op="modified"/>
460 </conditions>
epicX8f52c0a2021-02-24 23:12:08 +0530461 <actions>
462 <action function="set">tw_is_slot_part=0</action>
463 <action function="page">flashimage_type</action>
464 </actions>
z31s1g28f0a922015-11-07 18:50:22 +0100465 </action>
466
467 <action>
468 <touch key="back"/>
469 <action function="page">install_type</action>
470 </action>
471
472 <action>
473 <touch key="home"/>
474 <action function="page">main</action>
475 </action>
476 </page>
477
478 <page name="flash_queue">
479 <template name="page"/>
480
481 <template name="statusbar"/>
482
483 <text style="text_m">
484 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500485 <text>{@install_zip_hdr=Install Zip} &gt; {@queue_hdr=Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100486 </text>
487
488 <text style="text_m_accent">
489 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500490 <text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100491 </text>
492
493 <text style="text_m">
494 <placement x="%indent%" y="%row2_y%"/>
495 <text>%tw_file%</text>
496 </text>
497
498 <text style="text_m_accent">
499 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500500 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100501 </text>
502
503 <text style="text_m">
504 <placement x="%indent%" y="%row5_y%"/>
505 <text>%tw_zip_location%</text>
506 </text>
507
508 <text style="text_m">
509 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500510 <text>{@zip_back_clear=Press back button to clear the queue.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100511 </text>
512
513 <button>
514 <placement x="%col1_x_left%" y="%row11_y%"/>
515 <highlight color="%highlight_color%"/>
516 <image resource="q_btn_arrow_left"/>
517 <actions>
518 <action function="queueclear"/>
519 <action function="page">install</action>
520 </actions>
521 </button>
522
523 <button>
524 <placement x="%btn4_col2_x%" y="%row11_y%"/>
525 <highlight color="%highlight_color%"/>
526 <image resource="q_btn_addzip"/>
527 <action function="page">install</action>
528 </button>
529
530 <button>
531 <placement x="%btn4_col3_x%" y="%row11_y%"/>
532 <highlight color="%highlight_color%"/>
533 <image resource="q_btn_accept"/>
534 <action function="page">flash_confirm</action>
535 </button>
536
537 <button>
538 <placement x="%btn4_col4_x%" y="%row11_y%"/>
539 <highlight color="%highlight_color%"/>
540 <image resource="q_btn_arrow_right"/>
541 <action function="page">flash_options</action>
542 </button>
543
544 <action>
545 <touch key="back"/>
546 <actions>
547 <action function="queueclear"/>
548 <action function="page">install</action>
549 </actions>
550 </action>
551
552 <action>
553 <touch key="home"/>
554 <action function="page">main</action>
555 </action>
556 </page>
557
558 <page name="flash_options">
559 <template name="page"/>
560
561 <template name="statusbar"/>
562
563 <text style="text_m">
564 <condition var1="tw_selectimage" var2="0"/>
565 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500566 <text>{@install_zip_hdr=Install Zip} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100567 </text>
568
epicX9597b842021-03-20 21:58:17 +0530569 <listbox style="options_listbox">
570 <placement x="%indent%" y="%row1_y%" w="%content_width%" h="%listbox_options_height%"/>
571 <icon selected="checkbox_true" unselected="checkbox_false"/>
572 <listitem name="{@zip_sig_chk=Zip signature verification}">
573 <data variable="tw_signed_zip_verify"/>
574 </listitem>
575 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
576 <data variable="tw_skip_digest_check_zip"/>
577 </listitem>
nebrassyac29e692021-05-20 13:03:30 +0200578 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
579 <conditions>
580 <condition var1="tw_has_boot_slots" var2="1"/>
581 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwback1f5d4ca2023-01-11 13:46:30 -0500582 <condition var1="tw_no_flash_current_twrp" var2="0"/>
nebrassyac29e692021-05-20 13:03:30 +0200583 </conditions>
584 <data variable="tw_auto_reflashtwrp"/>
585 </listitem>
epicX9597b842021-03-20 21:58:17 +0530586 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
587 <data variable="tw_install_reboot"/>
588 </listitem>
589 <listitem name="{@inject_twrp_chk=Inject TWRP after install}">
590 <condition var1="tw_has_injecttwrp" var2="1"/>
591 <data variable="tw_inject_after_zip"/>
592 </listitem>
593 </listbox>
bigbiffa869fc72016-03-01 19:40:36 -0500594
z31s1g28f0a922015-11-07 18:50:22 +0100595 <button>
596 <placement x="%col1_x_left%" y="%row11_y%"/>
597 <highlight color="%highlight_color%"/>
598 <image resource="q_btn_arrow_left"/>
599 <action function="page">flash_queue</action>
600 </button>
601
602 <button>
603 <placement x="%btn4_col4_x%" y="%row11_y%"/>
604 <highlight color="%highlight_color%"/>
605 <image resource="q_btn_accept_transp"/>
606 <action function="page">flash_confirm</action>
607 </button>
608
609 <action>
610 <touch key="back"/>
611 <action function="page">flash_queue</action>
612 </action>
613
614 <action>
615 <touch key="home"/>
616 <action function="page">main</action>
617 </action>
618 </page>
619
620 <page name="flash_confirm">
621 <template name="page"/>
622
623 <template name="statusbar"/>
624
625 <text style="text_m">
626 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500627 <text>{@install_zip_hdr=Install Zip} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100628 </text>
629
630 <text style="text_m_accent">
631 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500632 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100633 </text>
634
635 <text style="text_m">
636 <placement x="%indent%" y="%row2_y%"/>
637 <text>%tw_file%</text>
638 </text>
639
640 <button>
641 <fill color="%transparent%"/>
642 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
643 <action function="page">flash_queue</action>
644 </button>
645
646 <text style="text_m_accent">
647 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500648 <text>{@zip_queue=Queue:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100649 </text>
650
651 <text style="text_m">
652 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500653 <text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100654 </text>
655
656 <button>
657 <fill color="%transparent%"/>
658 <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
659 <action function="page">flash_queue</action>
660 </button>
661
662 <listbox style="listbox_options">
663 <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="80"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500664 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +0100665 <data variable="tw_signed_zip_verify"/>
666 </listitem>
667 </listbox>
668
669 <text style="text_m_accent">
670 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500671 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100672 </text>
673
674 <text style="text_m">
675 <condition var1="tw_has_injecttwrp" var2="1"/>
676 <condition var1="tw_inject_after_zip" var2="1"/>
677 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500678 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100679 </text>
680
681 <button>
682 <fill color="%transparent%"/>
683 <placement x="0" y="%row6a_y%" w="%screen_width%" h="64"/>
684 <action function="page">flash_options</action>
685 </button>
686
687 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500688 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100689 <action function="flash">flash_zip</action>
690 </slider>
691
692 <action>
693 <touch key="back"/>
694 <actions>
695 <action function="cancelzip"/>
696 <action function="page">install</action>
697 </actions>
698 </action>
699
700 <action>
701 <touch key="home"/>
702 <action function="page">main</action>
703 </action>
704 </page>
705
706 <page name="flash_zip">
707 <template name="page"/>
708
709 <template name="statusbar"/>
710
711 <text style="text_m">
712 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -0600713 <text>{@installing_zip_xml=Installing Zip: %tw_file%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100714 </text>
715
716 <template name="console"/>
717
718 <template name="progress_bar"/>
719
720 <action>
721 <condition var1="tw_operation_state" var2="1"/>
722 <action function="page">flash_done</action>
723 </action>
724 </page>
725
726 <page name="flash_done">
727 <template name="page"/>
728
729 <template name="statusbar"/>
730
731 <text style="text_m_fail">
732 <condition var1="tw_operation_status" op="!=" var2="0"/>
733 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500734 <text>{@install_failed=Installation Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100735 </text>
736
737 <text style="text_m">
738 <condition var1="tw_operation_status" var2="0"/>
739 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500740 <text>{@install_successful=Installation Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100741 </text>
742
743 <template name="console"/>
744
745 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500746 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100747 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500748 <text>{@wipe_cache_dalvik_btn=Wipe cache/dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100749 <actions>
750 <action function="set">tw_back=flash_done</action>
751 <action function="set">tw_action=wipe</action>
752 <action function="set">tw_action_param=/cache</action>
753 <action function="set">tw_has_action2=1</action>
754 <action function="set">tw_action2=wipe</action>
755 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500756 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
757 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
758 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500759 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
760 <action function="page">confirm_action</action>
761 </actions>
762 </button>
763
764 <button style="main_button_half_height">
765 <condition var1="tw_ab_device" var2="1"/>
766 <placement x="%indent%" y="%row21a_y%"/>
767 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
768 <actions>
769 <action function="set">tw_back=flash_done</action>
770 <action function="set">tw_action=wipe</action>
771 <action function="set">tw_action_param=dalvik</action>
772 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
773 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
774 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
775 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100776 <action function="page">confirm_action</action>
777 </actions>
778 </button>
779
780 <button style="main_button_half_height">
Chaosmaster7b66bf52020-02-07 20:33:43 +0100781 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100782 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500783 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100784 <actions>
785 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500786 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100787 </actions>
788 </button>
789
Chaosmaster7b66bf52020-02-07 20:33:43 +0100790 <button style="main_button_half_height">
791 <condition var1="tw_ab_device" var2="1"/>
792 <placement x="%col1_x_right%" y="%row13_y%"/>
793 <text>{@reboot_btn=Reboot}</text>
794 <actions>
795 <action function="set">tw_back=main2</action>
796 <action function="page">reboot</action>
797 </actions>
798 </button>
799
z31s1g28f0a922015-11-07 18:50:22 +0100800 <action>
801 <touch key="back"/>
802 <actions>
803 <action function="set">tw_clear_destination=install_type</action>
804 <action function="page">clear_vars</action>
805 </actions>
806 </action>
807
808 <action>
809 <touch key="home"/>
810 <actions>
811 <action function="set">tw_clear_destination=main2</action>
812 <action function="page">clear_vars</action>
813 </actions>
814 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500815
816 <action>
817 <conditions>
818 <condition var1="tw_install_reboot" var2="1"/>
819 <condition var1="tw_operation_status" var2="0"/>
820 <condition var1="tw_reboot_system" var2="1"/>
821 </conditions>
822 <actions>
823 <action function="set">tw_sleep=%tw_sleep_total%</action>
824 <action function="page">flash_sleep_and_reboot</action>
825 </actions>
826 </action>
827 </page>
828
829 <page name="flash_sleep_and_reboot">
830 <template name="page"/>
831
832 <template name="statusbar"/>
833
834 <text style="text_m">
835 <placement x="%col1_x_left%" y="%row1_header_y%"/>
836 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
837 </text>
838
839 <template name="console"/>
840
841 <template name="progress_bar"/>
842
843 <button style="main_button_half_height">
844 <condition var1="tw_sleep" op="&gt;" var2="0"/>
845 <placement x="%col1_x_right%" y="%row13_y%"/>
846 <text>{@cancel_btn=Cancel}</text>
847 <actions>
848 <action function="set">tw_install_reboot=0</action>
849 <action function="page">flash_done</action>
850 </actions>
851 </button>
852
853 <action>
854 <conditions>
855 <condition var1="tw_sleep" var2="tw_sleep_total"/>
856 <condition var1="tw_install_reboot" var2="1"/>
857 </conditions>
858 <action function="sleepcounter">%tw_sleep_total%</action>
859 </action>
860
861 <action>
862 <conditions>
863 <condition var1="tw_sleep" var2="0"/>
864 <condition var1="tw_install_reboot" var2="1"/>
865 </conditions>
866 <actions>
867 <action function="sleep">50000</action>
868 <action function="set">tw_back=main2</action>
869 <action function="page">reboot_system_routine</action>
870 </actions>
871 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100872 </page>
873
874 <page name="flashimage_type">
875 <template name="page"/>
876
877 <template name="statusbar"/>
878
879 <text style="text_m">
880 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -0600881 <text>{@install_image_hdr=Install Image} &gt; {@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100882 </text>
883
884 <partitionlist style="partitionlist_headerless_rb">
885 <data name="tw_flash_partition"/>
886 <listtype name="flashimg"/>
887 </partitionlist>
888
epicX8f52c0a2021-02-24 23:12:08 +0530889 <button style="checkbox">
890 <conditions>
891 <condition var1="tw_is_slot_part" op="=" var2="1"/>
892 <condition var1="tw_flash_both_slots" op="=" var2="0"/>
893 <condition var1="tw_has_boot_slots" var2="1"/>
894 </conditions>
895 <placement x="%col2_x_left%" y="%row11_y%" textplacement="6"/>
896 <text>{@flash_ab_both_slots=Flash to both slots}</text>
897 <image resource="checkbox_false"/>
898 <action function="set">tw_flash_both_slots=1</action>
899 </button>
900
901 <button style="checkbox">
902 <conditions>
903 <condition var1="tw_is_slot_part" op="=" var2="1"/>
904 <condition var1="tw_flash_both_slots" op="=" var2="1"/>
905 <condition var1="tw_has_boot_slots" var2="1"/>
906 </conditions>
907 <placement x="%col2_x_left%" y="%row11_y%" textplacement="6"/>
908 <text>{@flash_ab_both_slots=Flash to both slots}</text>
909 <image resource="checkbox_true"/>
910 <action function="set">tw_flash_both_slots=0</action>
911 </button>
912
z31s1g28f0a922015-11-07 18:50:22 +0100913 <button>
914 <placement x="%col1_x_left%" y="%row11_y%"/>
915 <highlight color="%highlight_color%"/>
916 <image resource="q_btn_arrow_left"/>
917 <action function="page">install</action>
918 </button>
919
920 <button>
921 <placement x="%btn4_col4_x%" y="%row11_y%"/>
922 <highlight color="%highlight_color%"/>
923 <image resource="q_btn_accept_transp"/>
924 <action function="page">flashimage_confirm</action>
925 </button>
926
927 <action>
928 <touch key="back"/>
929 <action function="page">install</action>
930 </action>
931
932 <action>
933 <touch key="home"/>
934 <action function="page">main</action>
935 </action>
936 </page>
937
938 <page name="flashimage_confirm">
939 <template name="page"/>
940
941 <template name="statusbar"/>
942
943 <text style="text_m">
944 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500945 <text>{@install_image_hdr=Install Image} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100946 </text>
947
948 <text style="text_m_accent">
949 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500950 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100951 </text>
952
953 <text style="text_m">
954 <placement x="%indent%" y="%row2_y%"/>
955 <text>%tw_file%</text>
956 </text>
957
958 <button>
959 <fill color="%transparent%"/>
960 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
961 <action function="page">install</action>
962 </button>
963
964 <text style="text_m_accent">
965 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500966 <text>{@target_partition=Target Partition:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100967 </text>
968
969 <text style="text_m">
970 <placement x="%indent%" y="%row5_y%"/>
971 <text>%tw_flash_partition%</text>
972 </text>
973
974 <button>
975 <fill color="%transparent%"/>
976 <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
977 <action function="page">flashimage_type</action>
978 </button>
979
980 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500981 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100982 <actions>
983 <action function="set">tw_back=flashimage_confirm</action>
984 <action function="set">tw_action=flashimage</action>
985 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500986 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100987 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500988 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100989 <action function="page">action_page</action>
990 </actions>
991 <action function="flashimage"/>
992 </slider>
993
994 <action>
995 <touch key="back"/>
996 <actions>
997 <action function="set">tw_clear_destination=install</action>
998 <action function="page">clear_vars</action>
999 </actions>
1000 </action>
1001
1002 <action>
1003 <touch key="home"/>
1004 <actions>
1005 <action function="set">tw_clear_destination=main2</action>
1006 <action function="page">clear_vars</action>
1007 </actions>
1008 </action>
1009 </page>
1010
1011 <page name="clear_vars">
1012 <action>
1013 <action function="set">tw_operation_state=0</action>
1014 <action function="set">tw_text1=</action>
1015 <action function="set">tw_text2=</action>
1016 <action function="set">tw_text3=</action>
1017 <action function="set">tw_text4=</action>
1018 <action function="set">tw_action_text1=</action>
1019 <action function="set">tw_action_text2=</action>
1020 <action function="set">tw_action_param=</action>
1021 <action function="set">tw_has_action2=0</action>
1022 <action function="set">tw_action2=</action>
1023 <action function="set">tw_action2_param=</action>
1024 <action function="set">tw_has_cancel=0</action>
1025 <action function="set">tw_cancel_action=</action>
1026 <action function="set">tw_cancel_param=</action>
1027 <action function="set">tw_show_exclamation=0</action>
1028 <action function="set">tw_show_reboot=0</action>
Noah Jacobson81d638d2019-04-28 00:10:07 -04001029 <action function="set">tw_crypto_user_id=</action>
1030 <action function="set">tw_multiuser_warning_accepted=</action>
1031 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +01001032 <action function="page">%tw_clear_destination%</action>
1033 </action>
1034 </page>
1035
Matt Mower908dd252016-05-25 02:26:50 -05001036 <page name="reboot_system_routine">
1037 <action>
1038 <action function="set">tw_back=main2</action>
1039 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05001040 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -05001041 <action function="set">tw_has_action2=0</action>
1042 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
1043 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
1044 <action function="set">tw_text3=</action>
1045 <action function="set">tw_text4=</action>
1046 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
1047 <action function="set">tw_action_text2=</action>
1048 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
1049 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
1050 <action function="page">rebootcheck</action>
1051 </action>
1052 </page>
1053
z31s1g28f0a922015-11-07 18:50:22 +01001054 <page name="confirm_action">
1055 <template name="page"/>
1056
1057 <template name="statusbar"/>
1058
1059 <text style="text_m">
1060 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001061 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001062 </text>
1063
1064 <text style="text_m_accent">
1065 <placement x="%center_x%" y="%row2_y%" placement="5"/>
1066 <text>%tw_text1%</text>
1067 </text>
1068
1069 <text style="text_m_accent">
1070 <placement x="%center_x%" y="%row3_y%" placement="5"/>
1071 <text>%tw_text2%</text>
1072 </text>
1073
1074 <text style="text_m">
1075 <condition var1="tw_action" op="!=" var2="changefilesystem"/>
1076 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1077 <text>%tw_text3%</text>
1078 </text>
1079
1080 <text style="text_m">
1081 <condition var1="tw_action" op="!=" var2="changefilesystem"/>
1082 <placement x="%center_x%" y="%row6_y%" placement="5"/>
1083 <text>%tw_text4%</text>
1084 </text>
1085
1086 <text style="text_m_fail">
1087 <condition var1="tw_action" var2="changefilesystem"/>
1088 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1089 <text>%tw_text3%</text>
1090 </text>
1091
1092 <text style="text_m_fail">
1093 <condition var1="tw_action" var2="changefilesystem"/>
1094 <placement x="%center_x%" y="%row6_y%" placement="5"/>
1095 <text>%tw_text4%</text>
1096 </text>
1097
1098 <text style="text_m">
1099 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001100 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001101 </text>
1102
1103 <slider>
1104 <text>%tw_slider_text%</text>
1105 <action function="page">action_page</action>
1106 </slider>
1107
1108 <action>
1109 <touch key="back"/>
1110 <actions>
1111 <action function="set">tw_clear_destination=%tw_back%</action>
1112 <action function="page">clear_vars</action>
1113 </actions>
1114 </action>
1115
1116 <action>
1117 <touch key="home"/>
1118 <action function="page">main</action>
1119 </action>
1120 </page>
1121
1122 <page name="action_page">
1123 <template name="page"/>
1124
1125 <template name="statusbar"/>
1126
1127 <text style="text_m">
1128 <placement x="%col1_x_left%" y="%row1_header_y%"/>
1129 <text>%tw_action_text1% %tw_action_text2%</text>
1130 </text>
1131
1132 <template name="console"/>
1133
1134 <template name="progress_bar"/>
1135
1136 <button style="main_button_half_height">
1137 <condition var1="tw_has_cancel" var2="1"/>
1138 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001139 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001140 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
1141 </button>
1142
1143 <action>
1144 <condition var1="tw_operation_state" var2="1"/>
1145 <actions>
1146 <action function="page">action_complete</action>
1147 </actions>
1148 </action>
1149
1150 <action>
1151 <condition var1="tw_has_action2" var2="0"/>
1152 <actions>
1153 <action function="%tw_action%">%tw_action_param%</action>
1154 </actions>
1155 </action>
1156
1157 <action>
1158 <condition var1="tw_has_action2" var2="1"/>
1159 <actions>
1160 <action function="%tw_action%">%tw_action_param%</action>
1161 <action function="%tw_action2%">%tw_action2_param%</action>
1162 </actions>
1163 </action>
1164 </page>
1165
1166 <page name="singleaction_page">
1167 <template name="page"/>
1168
1169 <template name="statusbar"/>
1170
1171 <text style="text_m">
1172 <placement x="%col1_x_left%" y="%row1_header_y%"/>
1173 <text>%tw_action_text1% %tw_action_text2%</text>
1174 </text>
1175
1176 <template name="console"/>
1177
1178 <template name="progress_bar"/>
1179
1180 <action>
1181 <condition var1="tw_operation_state" var2="1"/>
1182 <actions>
1183 <action function="set">tw_page_done=1</action>
1184 </actions>
1185 </action>
1186
1187 <action>
1188 <condition var1="tw_has_action2" var2="0"/>
1189 <actions>
1190 <action function="%tw_action%">%tw_action_param%</action>
1191 </actions>
1192 </action>
1193
1194 <action>
1195 <condition var1="tw_has_action2" var2="1"/>
1196 <actions>
1197 <action function="%tw_action%">%tw_action_param%</action>
1198 <action function="%tw_action2%">%tw_action2_param%</action>
1199 </actions>
1200 </action>
1201 </page>
1202
1203 <page name="action_complete">
1204 <template name="page"/>
1205
1206 <template name="statusbar"/>
1207
1208 <text style="text_m_fail">
1209 <condition var1="tw_operation_status" op="!=" var2="0"/>
1210 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001211 <text>%tw_complete_text1% {@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001212 </text>
1213
1214 <text style="text_m">
1215 <condition var1="tw_operation_status" var2="0"/>
1216 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001217 <text>%tw_complete_text1% {@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001218 </text>
1219
1220 <template name="console"/>
1221
1222 <button style="main_button_half_height">
1223 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001224 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001225 <actions>
1226 <action function="set">tw_clear_destination=%tw_back%</action>
1227 <action function="page">clear_vars</action>
1228 </actions>
1229 </button>
1230
1231 <button style="main_button_half_height">
1232 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001233 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001234 <actions>
1235 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -05001236 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01001237 </actions>
1238 </button>
1239
1240 <action>
1241 <touch key="home"/>
1242 <actions>
1243 <action function="set">tw_clear_destination=main2</action>
1244 <action function="page">clear_vars</action>
1245 </actions>
1246 </action>
1247
1248 <action>
1249 <touch key="back"/>
1250 <actions>
1251 <action function="set">tw_clear_destination=%tw_back%</action>
1252 <action function="page">clear_vars</action>
1253 </actions>
1254 </action>
1255 </page>
1256
1257 <page name="filecheck">
1258 <action>
1259 <action function="fileexists">%tw_filecheck%</action>
1260 </action>
1261
1262 <action>
1263 <conditions>
1264 <condition var1="tw_operation_state" var2="1"/>
1265 <condition var1="tw_operation_status" var2="0"/>
1266 </conditions>
1267 <actions>
1268 <action function="set">tw_fileexists=1</action>
1269 <action function="page">%tw_existpage%</action>
1270 </actions>
1271 </action>
1272
1273 <action>
1274 <conditions>
1275 <condition var1="tw_operation_state" var2="1"/>
1276 <condition var1="tw_operation_status" var2="1"/>
1277 </conditions>
1278 <actions>
1279 <action function="set">tw_fileexists=0</action>
1280 <action function="page">%tw_notexistpage%</action>
1281 </actions>
1282 </action>
1283 </page>
1284
1285 <page name="rebootcheck">
1286 <action>
1287 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06001288 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +01001289 </action>
1290
1291 <action>
1292 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1293 <action function="page">confirm_action</action>
1294 </action>
1295 </page>
1296
1297 <page name="wipe_type1">
1298 <template name="page"/>
1299
1300 <template name="statusbar"/>
1301
1302 <text style="text_m">
1303 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001304 <text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001305 </text>
1306
1307 <button style="main_button_full_width">
1308 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001309 <text>{@factory_reset_btn=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001310 <action function="page">wipe</action>
1311 </button>
1312
1313 <button style="main_button_full_width">
1314 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001315 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001316 <actions>
1317 <action function="set">partitionlisterror=0</action>
1318 <action function="page">advancedwipe</action>
1319 </actions>
1320 </button>
1321
1322 <button>
1323 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1324 <highlight color="%highlight_color%"/>
1325 <image resource="q_btn_arrow_right"/>
1326 <action function="page">wipe_type2</action>
1327 </button>
1328
1329 <action>
1330 <touch key="home"/>
1331 <action function="page">main</action>
1332 </action>
1333
1334 <action>
1335 <touch key="back"/>
1336 <action function="page">main</action>
1337 </action>
1338 </page>
1339
1340 <page name="wipe_type2">
1341 <template name="page"/>
1342
1343 <template name="statusbar"/>
1344
1345 <text style="text_m">
1346 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001347 <text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001348 </text>
1349
1350 <button style="main_button_full_width">
1351 <condition var1="tw_has_data_media" var2="1"/>
1352 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001353 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001354 <action function="page">formatdata</action>
1355 </button>
1356
1357 <button style="main_button_full_width">
1358 <conditions>
1359 <condition var1="tw_is_encrypted" var2="1"/>
1360 <condition var1="tw_has_data_media" var2="0"/>
1361 </conditions>
1362 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001363 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001364 <actions>
1365 <action function="set">tw_back=wipe</action>
1366 <action function="set">tw_action=wipe</action>
1367 <action function="set">tw_action_param=DATAMEDIA</action>
1368 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001369 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001370 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001371 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1372 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1373 <action function="set">tw_slider_text={@swipe_format_data_s= Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001374 <action function="page">confirm_action</action>
1375 </actions>
1376 </button>
1377
1378 <button style="main_button_full_width">
1379 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001380 <text>{@file_sys_opt=File System Options}</text><actions>
z31s1g28f0a922015-11-07 18:50:22 +01001381 <action function="set">partitionlisterror=0</action>
1382 <action function="page">partitionoptions_select</action>
1383 </actions>
1384 </button>
1385
1386 <button>
1387 <placement x="%col1_x_left%" y="%row11_y%"/>
1388 <highlight color="%highlight_color%"/>
1389 <image resource="q_btn_arrow_left"/>
1390 <action function="page">wipe_type1</action>
1391 </button>
1392
1393 <action>
1394 <touch key="home"/>
1395 <action function="page">main</action>
1396 </action>
1397
1398 <action>
1399 <touch key="back"/>
1400 <action function="page">main</action>
1401 </action>
1402 </page>
1403
1404 <page name="wipe">
1405 <template name="page"/>
1406
1407 <template name="statusbar"/>
1408
1409 <text style="text_m">
1410 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001411 <text>{@wipe_hdr=Wipe} &gt; {@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001412 </text>
1413
1414 <text style="text_m_accent">
1415 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001416 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001417 </text>
1418
1419 <text style="text_m_accent">
bigbiffadc599e2020-05-28 19:36:30 +00001420 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04001421 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1422 </text>
1423
1424 <text style="text_m_accent">
1425 <condition var1="tw_has_data_media" var2="1"/>
1426 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001427 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001428 </text>
1429
1430 <text style="text_m_accent">
1431 <conditions>
1432 <condition var1="tw_has_android_secure" var2="1"/>
1433 <condition var1="fileexists" var2="/and-sec"/>
1434 </conditions>
1435 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001436 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001437 </text>
1438
1439 <text style="text_m_accent">
1440 <condition var1="tw_has_sdext_partition" var2="1"/>
1441 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001442 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001443 </text>
1444
1445 <text style="text_m">
1446 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001447 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001448 </text>
1449
1450 <text style="text_m">
1451 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001452 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001453 </text>
1454
1455 <text style="text_m">
1456 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001457 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001458 </text>
1459
1460 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001461 <text>{@swipe_wipe_s= Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001462 <actions>
1463 <action function="set">tw_back=wipe</action>
1464 <action function="set">tw_action=wipe</action>
1465 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001466 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1467 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001468 <action function="page">action_page</action>
1469 </actions>
1470 </slider>
1471
1472 <action>
1473 <touch key="back"/>
1474 <action function="page">wipe_type1</action>
1475 </action>
1476
1477 <action>
1478 <touch key="home"/>
1479 <action function="page">main</action>
1480 </action>
1481 </page>
1482
1483 <page name="advancedwipe">
1484 <action>
1485 <action function="set">tw_wipe_list=</action>
1486 </action>
1487
1488 <template name="page"/>
1489
1490 <template name="statusbar"/>
1491
1492 <text style="text_m">
1493 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001494 <text>{@wipe_hdr=Wipe} &gt; {@advanced_wipe_hdr=Advanced Wipe} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001495 </text>
1496
1497 <partitionlist style="partitionlist_headerless_cb">
1498 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1499 <data name="tw_wipe_list"/>
1500 <listtype name="wipe"/>
1501 </partitionlist>
1502
1503 <fill color="%accent_color%">
1504 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1505 </fill>
1506
1507 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001508 <text>{@swipe_wipe_s= Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001509 <actions>
1510 <action function="set">tw_back=advancedwipe</action>
1511 <action function="set">tw_action=wipe</action>
1512 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001513 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1514 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1515 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001516 <action function="page">action_page</action>
1517 </actions>
1518 </slider>
1519
1520 <action>
1521 <touch key="home"/>
1522 <action function="page">main</action>
1523 </action>
1524
1525 <action>
1526 <touch key="back"/>
1527 <action function="page">wipe_type1</action>
1528 </action>
1529 </page>
1530
1531 <page name="formatdata">
1532 <template name="page"/>
1533
1534 <template name="statusbar"/>
1535
1536 <text style="text_m">
1537 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001538 <text>{@wipe_hdr=Wipe} &gt; {@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001539 </text>
1540
1541 <text style="text_m_fail">
1542 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001543 <text>{@format_data_wtc1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001544 </text>
1545
1546 <text style="text_m_fail">
1547 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001548 <text>{@format_data_wtc2=backups and media. This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001549 </text>
1550
1551 <text style="text_m">
1552 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001553 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001554 </text>
1555
1556 <input>
1557 <placement x="%col1_x_left%" y="%row5_y%" w="%content_width%" h="%input_height%"/>
1558 <text>%tw_confirm_formatdata%</text>
1559 <data name="tw_confirm_formatdata"/>
1560 <restrict minlen="3" maxlen="3" allow="yes"/>
1561 <action function="page">formatdata_confirm</action>
1562 </input>
1563
1564 <fill color="%accent_color%">
1565 <placement x="%col1_x_left%" y="row6_input_y" w="%content_width%" h="input_line_width"/>
1566 </fill>
1567
1568 <template name="keyboardtemplate"/>
1569
1570 <action>
1571 <touch key="home"/>
1572 <action function="page">main</action>
1573 </action>
1574
1575 <action>
1576 <touch key="back"/>
1577 <action function="page">wipe_type2</action>
1578 </action>
1579 </page>
1580
1581 <page name="formatdata_confirm">
1582 <action>
1583 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1584 <actions>
1585 <action function="set">tw_back=formatdata</action>
1586 <action function="set">tw_action=wipe</action>
1587 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001588 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1589 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001590 <action function="page">action_page</action>
1591 </actions>
1592 </action>
1593
1594 <action>
1595 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1596 <action function="page">formatdata</action>
1597 </action>
1598 </page>
1599
1600 <page name="checkpartitionlist">
1601 <action>
1602 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1603 <actions>
1604 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001605 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001606 <action function="page">partitionoptions</action>
1607 </actions>
1608 </action>
1609
1610 <action>
1611 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1612 <actions>
1613 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001614 <action function="page">partitionoptions_select</action>
1615 </actions>
1616 </action>
1617 </page>
1618
1619 <page name="partitionoptions_select">
1620 <action>
1621 <action function="set">tw_wipe_list=</action>
1622 </action>
1623
1624 <template name="page"/>
1625
1626 <template name="statusbar"/>
1627
1628 <text style="text_m">
1629 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001630 <text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001631 </text>
1632
1633 <partitionlist style="partitionlist_headerless_cb">
1634 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1635 <data name="tw_wipe_list"/>
1636 <listtype name="wipe"/>
1637 </partitionlist>
1638
1639 <fill color="%accent_color%">
1640 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1641 </fill>
1642
z31s1g28f0a922015-11-07 18:50:22 +01001643 <text style="text_m_fail">
1644 <condition var1="partitionlisterror" var2="1"/>
1645 <placement x="%col1_x_left%" y="%row12_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001646 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001647 </text>
1648
1649 <button>
1650 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1651 <highlight color="%highlight_color%"/>
1652 <image resource="q_btn_arrow_right"/><actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001653 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001654 <action function="page">checkpartitionlist</action>
1655 </actions>
1656 </button>
1657
1658 <action>
1659 <touch key="home"/>
1660 <action function="page">main</action>
1661 </action>
1662
1663 <action>
1664 <touch key="back"/>
1665 <action function="page">wipe_type2</action>
1666 </action>
1667 </page>
1668
1669 <page name="partitionoptions">
1670
1671 <template name="page"/>
1672
1673 <template name="statusbar"/>
1674
1675 <text style="text_m">
1676 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001677 <text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_act_hdr=Select Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001678 </text>
1679
1680 <text style="text_m_accent">
1681 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001682 <text>{@partition=Partition: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001683 </text>
1684
1685 <text style="text_m_accent">
1686 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001687 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001688 </text>
1689
1690 <text style="text_m">
1691 <condition var1="tw_partition_is_present" var2="1"/>
1692 <placement x="%col1_x_left%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001693 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001694 </text>
1695
1696 <text style="text_m">
1697 <condition var1="tw_partition_is_present" var2="0"/>
1698 <placement x="%col1_x_left%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001699 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001700 </text>
1701
1702 <text style="text_m">
1703 <condition var1="tw_partition_removable" var2="1"/>
1704 <placement x="%col1_x_right%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001705 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001706 </text>
1707
1708 <text style="text_m">
1709 <condition var1="tw_partition_removable" var2="0"/>
1710 <placement x="%col1_x_right%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001711 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001712 </text>
1713
1714 <text style="text_m">
1715 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001716 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001717 </text>
1718
1719 <text style="text_m">
1720 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001721 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001722 </text>
1723
1724 <text style="text_m">
1725 <placement x="%col1_x_left%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001726 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001727 </text>
1728
1729 <text style="text_m">
1730 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001731 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001732 </text>
1733
1734 <button style="main_button">
1735 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1736 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001737 <text>{@resize_btn_s=Resize}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001738 <actions>
1739 <action function="set">tw_back=partitionoptions</action>
1740 <action function="set">tw_action=resize</action>
1741 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1742 <action function="set">tw_has_action2=1</action>
1743 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001744 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001745 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001746 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001747 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1748 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1749 <action function="set">tw_slider_text={@swipe_resize_s= Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001750 <action function="page">confirm_action</action>
1751 </actions>
1752 </button>
1753
1754 <button style="main_button">
1755 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1756 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001757 <text>{@repair_btn_s=Repair}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001758 <actions>
1759 <action function="set">tw_back=partitionoptions</action>
1760 <action function="set">tw_action=repair</action>
1761 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1762 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001763 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001764 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001765 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1766 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1767 <action function="set">tw_slider_text={@swipe_repair_s= Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001768 <action function="page">confirm_action</action>
1769 </actions>
1770 </button>
1771
1772 <button>
1773 <placement x="%col1_x_left%" y="%row11_y%"/>
1774 <highlight color="%highlight_color%"/>
1775 <image resource="q_btn_arrow_left"/>
1776 <action function="page">partitionoptions_select</action>
1777 </button>
1778
1779 <button style="main_button">
1780 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001781 <text>{@change_fs_btn_s=Change}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001782 <action function="page">selectfilesystem</action>
1783 </button>
1784
1785 <action>
1786 <touch key="home"/>
1787 <action function="page">main</action>
1788 </action>
1789
1790 <action>
1791 <touch key="back"/>
1792 <action function="page">partitionoptions_select</action>
1793 </action>
1794 </page>
1795
1796 <page name="refreshfilesystem">
1797 <action>
1798 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1799 <actions>
1800 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001801 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001802 <action function="page">selectfilesystem</action>
1803 </actions>
1804 </action>
1805
1806 <action>
1807 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1808 <actions>
1809 <action function="set">partitionlisterror=1</action>
1810 <action function="set">tw_wipe_list=</action>
1811 <action function="page">advancedwipe</action>
1812 </actions>
1813 </action>
1814 </page>
1815
1816 <page name="selectfilesystem">
1817 <template name="page"/>
1818
1819 <template name="statusbar"/>
1820
1821 <text style="text_m">
1822 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001823 <text>{@change_fs_for_hdr_s=Partition: %tw_partition_name% &gt; Select File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001824 </text>
1825
1826 <button style="main_button">
1827 <condition var1="tw_partition_ext" op="=" var2="1"/>
1828 <placement x="%col1_x_left%" y="%row1_y%"/>
1829 <text>EXT2</text>
1830 <actions>
1831 <action function="set">tw_back=refreshfilesystem</action>
1832 <action function="set">tw_action=changefilesystem</action>
1833 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1834 <action function="set">tw_action_new_file_system=ext2</action>
1835 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001836 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1837 <action function="set">tw_text2=EXT2</action>
1838 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1839 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1840 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1841 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1842 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001843 <action function="page">confirm_action</action>
1844 </actions>
1845 </button>
1846
1847 <button style="main_button">
1848 <condition var1="tw_partition_ext" op="=" var2="1"/>
1849 <placement x="%col1_x_left%" y="%row6_y%"/>
1850 <text>EXT3</text>
1851 <actions>
1852 <action function="set">tw_back=refreshfilesystem</action>
1853 <action function="set">tw_action=changefilesystem</action>
1854 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1855 <action function="set">tw_action_new_file_system=ext3</action>
1856 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001857 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1858 <action function="set">tw_text2=EXT3</action>
1859 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1860 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1861 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1862 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1863 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001864 <action function="page">confirm_action</action>
1865 </actions>
1866 </button>
1867
1868 <button style="main_button">
1869 <condition var1="tw_partition_ext" op="=" var2="1"/>
1870 <placement x="%col1_x_left%" y="%row11_y%"/>
1871 <text>EXT4</text>
1872 <actions>
1873 <action function="set">tw_back=refreshfilesystem</action>
1874 <action function="set">tw_action=changefilesystem</action>
1875 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1876 <action function="set">tw_action_new_file_system=ext4</action>
1877 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001878 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1879 <action function="set">tw_text2=EXT4</action>
1880 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1881 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1882 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1883 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1884 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001885 <action function="page">confirm_action</action>
1886 </actions>
1887 </button>
1888
1889 <button style="main_button">
1890 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1891 <placement x="%col1_x_right%" y="%row1_y%"/>
1892 <text>FAT</text>
1893 <actions>
1894 <action function="set">tw_back=refreshfilesystem</action>
1895 <action function="set">tw_action=changefilesystem</action>
1896 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1897 <action function="set">tw_action_new_file_system=vfat</action>
1898 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001899 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1900 <action function="set">tw_text2=FAT</action>
1901 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1902 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1903 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1904 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1905 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001906 <action function="page">confirm_action</action>
1907 </actions>
1908 </button>
1909
1910 <button style="main_button">
1911 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1912 <placement x="%col1_x_right%" y="%row6_y%"/>
1913 <text>exFAT</text>
1914 <actions>
1915 <action function="set">tw_back=refreshfilesystem</action>
1916 <action function="set">tw_action=changefilesystem</action>
1917 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1918 <action function="set">tw_action_new_file_system=exfat</action>
1919 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001920 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1921 <action function="set">tw_text2=exFAT</action>
1922 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1923 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1924 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1925 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1926 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001927 <action function="page">confirm_action</action>
1928 </actions>
1929 </button>
1930
1931 <button style="main_button">
1932 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1933 <placement x="%col1_x_right%" y="%row11_y%"/>
1934 <text>F2FS</text>
1935 <actions>
1936 <action function="set">tw_back=refreshfilesystem</action>
1937 <action function="set">tw_action=changefilesystem</action>
1938 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1939 <action function="set">tw_action_new_file_system=f2fs</action>
1940 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001941 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1942 <action function="set">tw_text2=F2FS</action>
1943 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1944 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1945 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1946 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1947 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001948 <action function="page">confirm_action</action>
1949 </actions>
1950 </button>
1951
1952 <action>
1953 <touch key="home"/>
1954 <action function="page">main</action>
1955 </action>
1956
1957 <action>
1958 <touch key="back"/>
1959 <action function="page">partitionoptions</action>
1960 </action>
1961 </page>
1962
bigbiffce8f83c2015-12-12 18:30:21 -05001963 <page name="backup">
z31s1g28f0a922015-11-07 18:50:22 +01001964 <template name="page"/>
1965
Noah Jacobson81d638d2019-04-28 00:10:07 -04001966 <action>
1967 <conditions>
1968 <condition var1="tw_is_fbe" var2="1"/>
1969 <condition var1="tw_all_users_decrypted" var2="0"/>
1970 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1971 </conditions>
1972 <actions>
1973 <action function="set">tw_multiuser_warning_destination=backup</action>
1974 <action function="page">multiuser_warning</action>
1975 </actions>
1976 </action>
1977
z31s1g28f0a922015-11-07 18:50:22 +01001978 <template name="statusbar"/>
1979
1980 <text style="text_m">
1981 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001982 <text>{@backup_hdr=Backup} &gt; {@select_storage_hdr=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001983 </text>
1984
1985 <partitionlist style="partitionlist_headerless_rb">
1986 <data name="tw_storage_path"/>
1987 <listtype name="storage"/>
1988 </partitionlist>
1989
1990 <button>
1991 <placement x="%btn4_col2_x%" y="%row11_y%"/>
1992 <highlight color="%highlight_color%"/>
1993 <image resource="q_btn_refresh"/>
1994 <actions>
1995 <action function="refreshsizes"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001996 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01001997 </actions>
1998 </button>
1999
2000 <button>
2001 <condition var1="tw_back" var2="backup_confirm"/>
2002 <placement x="%btn4_col3_x%" y="%row11_y%"/>
2003 <highlight color="%highlight_color%"/>
2004 <image resource="q_btn_accept"/>
2005 <action function="page">backup_confirm</action>
2006 </button>
2007
2008 <button>
2009 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2010 <highlight color="%highlight_color%"/>
2011 <image resource="q_btn_arrow_right"/>
2012 <actions>
bigbiffce8f83c2015-12-12 18:30:21 -05002013 <action function="set">tw_back=backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002014 <action function="page">backup_selectpartitions</action>
2015 </actions>
2016 </button>
2017
2018 <action>
2019 <touch key="home"/>
2020 <action function="page">main</action>
2021 </action>
2022
2023 <action>
2024 <touch key="back"/>
2025 <action function="page">%tw_back%</action>
2026 </action>
2027
2028 <action>
2029 <touch key="power+voldown"/>
2030 <action function="screenshot"/>
2031 </action>
2032 </page>
2033
2034 <page name="backup_selectpartitions">
2035 <template name="page"/>
2036
2037 <template name="statusbar"/>
2038
2039 <text style="text_m">
2040 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002041 <text>{@backup_hdr=Backup} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002042 </text>
2043
2044 <partitionlist style="partitionlist_headerless_cb">
2045 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
2046 <data name="tw_backup_list"/>
2047 <listtype name="backup"/>
2048 </partitionlist>
2049
2050 <fill color="%accent_color%">
2051 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
2052 </fill>
2053
2054 <button>
2055 <placement x="%col1_x_left%" y="%row11_y%"/>
2056 <highlight color="%highlight_color%"/>
2057 <image resource="q_btn_arrow_left"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002058 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002059 </button>
2060
2061 <button>
2062 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2063 <highlight color="%highlight_color%"/>
2064 <image resource="q_btn_refresh"/>
2065 <action function="page">backup_selectpartitions</action>
2066 </button>
2067
2068 <button>
2069 <placement x="%btn4_col3_x%" y="%row11_y%"/>
2070 <highlight color="%highlight_color%"/>
2071 <image resource="q_btn_accept"/>
2072 <action function="page">backup_confirm</action>
2073 </button>
2074
2075 <button>
2076 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2077 <highlight color="%highlight_color%"/>
2078 <image resource="q_btn_arrow_right"/>
2079 <actions>
2080 <action function="set">tw_back=backup_selectpartitions</action>
2081 <action function="page">backup_options</action>
2082 </actions>
2083 </button>
2084
2085 <action>
2086 <touch key="home"/>
2087 <action function="page">main</action>
2088 </action>
2089
2090 <action>
2091 <touch key="back"/>
2092 <action function="page">%tw_back%</action>
2093 </action>
2094
2095 <action>
2096 <touch key="power+voldown"/>
2097 <action function="screenshot"/>
2098 </action>
2099 </page>
2100
Noah Jacobson81d638d2019-04-28 00:10:07 -04002101 <page name="multiuser_warning">
2102 <template name="page"/>
2103
2104 <text style="text_m">
2105 <placement x="%col1_x_left%" y="%row1_header_y%"/>
2106 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
2107 </text>
2108
2109 <text style="text_m_fail">
2110 <placement x="%center_x%" y="%row6_y%" placement="5"/>
2111 <text>{@multiuser_warning1=Not all users decrypted!}</text>
2112 </text>
2113
2114 <text style="text_m_fail">
2115 <placement x="%center_x%" y="%row7_y%" placement="5"/>
2116 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
2117 </text>
2118
2119 <button style="main_button_full_width">
2120 <placement x="%col1_x_left%" y="%row6_y%"/>
2121 <text>{@decrypt_users=Decrypt Users}</text>
2122 <action function="page">decrypt_users</action>
2123 </button>
2124
2125 <slider>
2126 <text>{@multiuser_warning_accept=Continue Anyway}</text>
2127 <actions>
2128 <action function="set">tw_multiuser_warning_accepted=1</action>
2129 <action function="page">%tw_multiuser_warning_destination%</action>
2130 </actions>
2131 </slider>
2132
2133 <action>
2134 <touch key="home"/>
2135 <action function="page">main</action>
2136 </action>
2137
2138 <action>
2139 <touch key="back"/>
2140 <action function="page">main</action>
2141 </action>
2142 </page>
2143
z31s1g28f0a922015-11-07 18:50:22 +01002144 <page name="backup_options">
2145 <template name="page"/>
2146
2147 <template name="statusbar"/>
2148
2149 <text style="text_m">
2150 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002151 <text>{@backup_hdr=Backup} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002152 </text>
2153
2154 <listbox style="scrolllist">
2155 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002156 <listitem name="{@enable_backup_comp_chk=Enable compression}">
z31s1g28f0a922015-11-07 18:50:22 +01002157 <data variable="tw_use_compression"/>
2158 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002159 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
2160 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01002161 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05002162 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002163 <data variable="tw_disable_free_space"/>
2164 </listitem>
2165 </listbox>
2166
2167 <button>
2168 <placement x="%col1_x_left%" y="%row11_y%"/>
2169 <highlight color="%highlight_color%"/>
2170 <image resource="q_btn_arrow_left"/>
2171 <action function="page">backup_selectpartitions</action>
2172 </button>
2173
2174 <button>
2175 <conditions>
2176 <condition var1="tw_include_encrypted_backup" var2="1"/>
2177 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002178 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002179 </conditions>
2180 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2181 <highlight color="%highlight_color%"/>
2182 <image resource="q_btn_encryption_dis"/>
2183 <actions>
2184 <action function="set">tw_password_not_match=0</action>
2185 <action function="set">tw_back=backup_options</action>
2186 <action function="page">backupencryption</action>
2187 </actions>
2188 </button>
2189
2190 <button>
2191 <conditions>
2192 <condition var1="tw_include_encrypted_backup" var2="1"/>
2193 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002194 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002195 </conditions>
2196 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2197 <highlight color="%highlight_color%"/>
2198 <image resource="q_btn_encryption_en"/>
2199 <actions>
2200 <action function="set">tw_password_not_match=0</action>
2201 <action function="set">tw_back=backup_options</action>
2202 <action function="page">backupencryption</action>
2203 </actions>
2204 </button>
2205
2206 <button>
2207 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2208 <highlight color="%highlight_color%"/>
2209 <image resource="q_btn_accept_transp"/>
2210 <actions>
2211 <action function="set">tw_back=backup_options</action>
2212 <action function="page">backup_confirm</action>
2213 </actions>
2214 </button>
2215
2216 <action>
2217 <touch key="home"/>
2218 <action function="page">main</action>
2219 </action>
2220
2221 <action>
2222 <touch key="back"/>
2223 <action function="page">%tw_back%</action>
2224 </action>
2225
2226 <action>
2227 <touch key="power+voldown"/>
2228 <action function="screenshot"/>
2229 </action>
2230 </page>
2231
2232 <page name="backup_confirm">
2233 <template name="page"/>
2234
2235 <template name="statusbar"/>
2236
2237 <text style="text_m">
2238 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker090751a2016-01-23 16:31:41 -06002239 <text>{@backup_hdr=Backup} &gt; {@backup_confirm_hdr=Confirm Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002240 </text>
2241
2242 <text style="text_m_accent">
2243 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002244 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002245 </text>
2246
2247 <text style="text_m">
2248 <placement x="%col1_x_left%" y="%row2_y%"/>
2249 <text>%tw_backup_name%</text>
2250 </text>
2251
2252 <fill color="%accent_color%">
2253 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_half_width%" h="input_line_width" placement="1"/>
2254 </fill>
2255
2256 <button>
2257 <fill color="%transparent%"/>
2258 <placement x="0" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2259 <actions>
2260 <action function="set">tw_back=backup_confirm</action>
2261 <action function="set">tw_fileexists=0</action>
2262 <action function="page">backup_name1</action>
2263 </actions>
2264 </button>
2265
2266 <fill color="%background_color%">
2267 <placement x="%col1_x_left_negative%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2268 </fill>
2269
2270 <text style="text_m_accent">
2271 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002272 <text>{@partitions=Partitions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002273 </text>
2274
2275 <partitionlist style="partitionlist_summary">
2276 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/>
2277 <data name="tw_backup_list"/>
2278 <listtype name="backup"/>
2279 </partitionlist>
2280
2281 <button>
2282 <fill color="%transparent%"/>
2283 <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/>
2284 <actions>
2285 <action function="set">tw_back=backup_confirm</action>
2286 <action function="page">backup_selectpartitions</action>
2287 </actions>
2288 </button>
2289
2290 <text style="text_m_accent">
2291 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002292 <text>{@storage=Storage:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002293 </text>
2294
2295 <text style="text_m">
2296 <placement x="%col1_x_right%" y="%row2_y%"/>
2297 <text>%tw_storage_display_name%</text>
2298 </text>
2299
2300 <button>
2301 <fill color="%transparent%"/>
2302 <placement x="%center_x%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2303 <actions>
2304 <action function="set">tw_back=backup_confirm</action>
bigbiffce8f83c2015-12-12 18:30:21 -05002305 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002306 </actions>
2307 </button>
2308
2309 <text style="text_m_accent">
2310 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002311 <text>{@encryption=Encryption:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002312 </text>
2313
2314 <text style="text_m">
2315 <conditions>
2316 <condition var1="tw_include_encrypted_backup" var2="1"/>
2317 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002318 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002319 </conditions>
2320 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002321 <text>{@disabled=Disabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002322 </text>
2323
2324 <text style="text_m">
2325 <conditions>
2326 <condition var1="tw_include_encrypted_backup" var2="1"/>
2327 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002328 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002329 </conditions>
2330 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002331 <text>{@enabled=Enabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002332 </text>
2333
2334 <button>
2335 <fill color="%transparent%"/>
2336 <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="48"/>
2337 <actions>
2338 <action function="set">tw_back=backup_confirm</action>
2339 <action function="page">backupencryption</action>
2340 </actions>
2341 </button>
2342
2343 <listbox style="listbox_options">
2344 <placement x="%col1_x_right%" y="%row7_y%" w="%content_half_width%" h="80"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002345 <listitem name="{@enable_backup_comp_chk=Enable compression}">
z31s1g28f0a922015-11-07 18:50:22 +01002346 <data variable="tw_use_compression"/>
2347 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002348 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
2349 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01002350 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05002351 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002352 <data variable="tw_disable_free_space"/>
2353 </listitem>
2354 </listbox>
2355
2356 <text style="text_m_accent">
2357 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002358 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002359 </text>
2360
2361 <button>
2362 <fill color="%transparent%"/>
2363 <placement x="%center_x%" y="%row6_y%" w="%screen_half_width%" h="64"/>
2364 <actions>
2365 <action function="set">tw_back=backup_confirm</action>
2366 <action function="page">backup_options</action>
2367 </actions>
2368 </button>
2369
2370 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002371 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002372 <action function="page">backup_run</action>
2373 </slider>
2374
2375 <action>
2376 <touch key="home"/>
2377 <action function="page">main</action>
2378 </action>
2379
2380 <action>
2381 <touch key="back"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002382 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002383 </action>
2384 </page>
2385
2386 <page name="backup_name1">
2387 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002388 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01002389 <action function="generatebackupname"/>
2390 </action>
2391
2392 <action>
2393 <action function="page">backup_name2</action>
2394 </action>
2395 </page>
2396
2397 <page name="backup_name2">
2398 <template name="page"/>
2399
2400 <template name="statusbar"/>
2401
2402 <text style="text_m">
2403 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002404 <text>{@backup_hdr=Backup} &gt; {@backup_name_hdr=Set Backup Name}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002405 </text>
2406
2407 <text style="text_m_accent">
2408 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002409 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002410 </text>
2411
2412 <input>
2413 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2414 <text>%tw_backup_name%</text>
2415 <data name="tw_backup_name"/>
2416 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2417 <actions>
2418 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
2419 <action function="set">tw_existpage=backup_name2</action>
2420 <action function="set">tw_notexistpage=backup_confirm</action>
2421 <action function="page">filecheck</action>
2422 </actions>
2423 </input>
2424
2425 <fill color="%accent_color%">
2426 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2427 </fill>
2428
2429 <fill color="%text_fail_color%">
2430 <condition var1="tw_fileexists" var2="1"/>
2431 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2432 </fill>
2433
2434 <text style="text_m_fail">
2435 <condition var1="tw_fileexists" var2="1"/>
2436 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002437 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002438 </text>
2439
2440 <button style="main_button_half_height">
2441 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002442 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002443 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002444 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002445 <action function="page">backup_confirm</action>
2446 </actions>
2447 </button>
2448
2449 <button style="main_button_half_height">
2450 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002451 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002452 <action function="appenddatetobackupname"/>
2453 </button>
2454
2455 <template name="keyboardtemplate"/>
2456
2457 <action>
2458 <touch key="home"/>
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">main</action>
2462 </actions>
2463 </action>
2464
2465 <action>
2466 <touch key="back"/>
2467 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002468 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002469 <action function="page">backup_confirm</action>
2470 </actions>
2471 </action>
2472 </page>
2473
2474 <page name="backupencryption">
2475 <template name="page"/>
2476
2477 <template name="statusbar"/>
2478
2479 <text style="text_m">
2480 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002481 <text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002482 </text>
2483
2484 <text style="text_m_accent">
2485 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002486 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002487 </text>
2488
2489 <input>
2490 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2491 <text>%tw_backup_encrypt_display%</text>
2492 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2493 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2494 <action function="page">backupencryption2</action>
2495 </input>
2496
2497 <fill color="%accent_color%">
2498 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2499 </fill>
2500
2501 <fill color="%text_fail_color%">
2502 <condition var1="tw_password_not_match" var2="1"/>
2503 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
2504 </fill>
2505
2506 <text style="text_m_fail">
2507 <condition var1="tw_password_not_match" var2="1"/>
2508 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002509 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002510 </text>
2511
2512 <button style="main_button_half_height">
2513 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002514 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002515 <actions>
2516 <action function="set">tw_encrypt_backup=0</action>
2517 <action function="set">tw_backup_password=</action>
2518 <action function="set">tw_backup_password2=</action>
2519 <action function="set">tw_backup_encrypt_display=</action>
2520 <action function="set">tw_backup_encrypt_display2=</action>
2521 <action function="page">%tw_back%</action>
2522 </actions>
2523 </button>
2524
2525 <template name="keyboardtemplate"/>
2526
2527 <action>
2528 <touch key="home"/>
2529 <action function="page">main</action>
2530 </action>
2531
2532 <action>
2533 <touch key="back"/>
2534 <action function="page">%tw_back%</action>
2535 </action>
2536 </page>
2537
2538 <page name="backupencryption2">
2539 <template name="page"/>
2540
2541 <template name="statusbar"/>
2542
2543 <text style="text_m">
2544 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002545 <text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002546 </text>
2547
2548 <text style="text_m_accent">
2549 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002550 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002551 </text>
2552
2553 <input>
2554 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2555 <text>%tw_backup_encrypt_display2%</text>
2556 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2557 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2558 <action function="page">checkbackuppassword</action>
2559 </input>
2560
2561 <fill color="%accent_color%">
2562 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2563 </fill>
2564
2565 <button style="main_button_half_height">
2566 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002567 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002568 <actions>
2569 <action function="set">tw_encrypt_backup=0</action>
2570 <action function="set">tw_backup_password=</action>
2571 <action function="set">tw_backup_password2=</action>
2572 <action function="set">tw_backup_encrypt_display=</action>
2573 <action function="set">tw_backup_encrypt_display2=</action>
2574 <action function="page">%tw_back%</action>
2575 </actions>
2576 </button>
2577
2578 <template name="keyboardtemplate"/>
2579
2580 <action>
2581 <touch key="home"/>
2582 <action function="page">main</action>
2583 </action>
2584
2585 <action>
2586 <touch key="back"/>
2587 <action function="page">%tw_back%</action>
2588 </action>
2589 </page>
2590
2591 <page name="checkbackuppassword">
2592 <action>
2593 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2594 <actions>
2595 <action function="set">tw_encrypt_backup=1</action>
2596 <action function="page">%tw_back%</action>
2597 </actions>
2598 </action>
2599
2600 <action>
2601 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2602 <actions>
2603 <action function="set">tw_encrypt_backup=0</action>
2604 <action function="set">tw_password_not_match=1</action>
2605 <action function="set">tw_backup_password=</action>
2606 <action function="set">tw_backup_password2=</action>
2607 <action function="set">tw_backup_encrypt_display=</action>
2608 <action function="set">tw_backup_encrypt_display2=</action>
2609 <action function="page">backupencryption</action>
2610 </actions>
2611 </action>
2612 </page>
2613
2614 <page name="backup_run">
2615 <template name="page"/>
2616
2617 <template name="statusbar"/>
2618
2619 <text style="text_m">
2620 <placement x="%col1_x_left%" y="%row1_header_y%"/>
2621 <text>%tw_operation% %tw_partition%</text>
2622 </text>
2623
2624 <template name="console"/>
2625
2626 <template name="progress_bar"/>
2627
2628 <text style="text_m">
2629 <placement x="%indent%" y="%row13a_y%"/>
2630 <text>%tw_file_progress%</text>
2631 </text>
2632
2633 <text style="text_m">
2634 <placement x="%indent%" y="%row14a_y%"/>
2635 <text>%tw_size_progress%</text>
2636 </text>
2637
2638 <button style="main_button_half_height">
2639 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002640 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002641 <action function="cancelbackup"/>
2642 </button>
2643
2644 <action>
2645 <action function="nandroid">backup</action>
2646 </action>
2647
2648 <action>
2649 <condition var1="tw_operation_state" var2="1"/>
2650 <condition var1="tw_cancel_backup" var2="0"/>
2651 <actions>
2652 <action function="set">tw_back=backup_selectpartitions</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002653 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002654 <action function="set">tw_show_reboot=1</action>
2655 <action function="page">action_complete</action>
2656 </actions>
2657 </action>
2658
2659 <action>
2660 <condition var1="tw_operation_state" var2="1"/>
2661 <condition var1="tw_cancel_backup" var2="1"/>
2662 <actions>
2663 <action function="set">tw_back=backup_selectpartitions</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002664 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002665 <action function="set">tw_show_reboot=1</action>
2666 <action function="page">action_complete</action>
2667 </actions>
2668 </action>
2669 </page>
2670
2671 <page name="restore">
2672 <template name="page"/>
2673
Noah Jacobson81d638d2019-04-28 00:10:07 -04002674 <action>
2675 <conditions>
2676 <condition var1="tw_is_fbe" var2="1"/>
2677 <condition var1="tw_all_users_decrypted" var2="0"/>
2678 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2679 </conditions>
2680 <actions>
2681 <action function="set">tw_multiuser_warning_destination=restore</action>
2682 <action function="page">multiuser_warning</action>
2683 </actions>
2684 </action>
2685
z31s1g28f0a922015-11-07 18:50:22 +01002686 <template name="statusbar"/>
2687
2688 <text style="text_m">
2689 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002690 <text>{@restore_hdr=Restore} &gt; {@sel_backup_hdr=Select Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002691 </text>
2692
2693 <fileselector>
2694 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
2695 <text>%tw_storage_display_name%</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002696 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002697 <path name="tw_backups_folder"/>
2698 <data name="tw_restore" default=""/>
2699 <selection name="tw_restore_name"/>
2700 </fileselector>
2701
2702 <button>
2703 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2704 <highlight color="%highlight_color%"/>
2705 <image resource="q_btn_storage"/>
2706 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002707 <action function="set">tw_storagetext={@restore_btn=Restore} &gt; {@select_storage_btn=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002708 <action function="set">tw_back=restore</action>
2709 <action function="page">select_storage</action>
2710 </actions>
2711 </button>
2712
2713 <action>
bigbiff8f5fad32021-11-03 20:39:02 -04002714 <condition var1="tw_crypto_pwtype" op="!=" var2="0"/>
2715 <actions>
Captain Throwback02e74572022-01-10 12:55:05 -05002716 <action function="page">restore_keymaster</action>
bigbiff8f5fad32021-11-03 20:39:02 -04002717 </actions>
2718 </action>
2719
2720 <action>
2721 <condition var1="tw_restore" op="modified"/>
2722 <actions>
2723 <action function="readBackup"/>
2724 <action function="set">tw_back=restore</action>
2725 <action function="page">restore_read</action>
2726 </actions>
2727 </action>
2728
2729 <action>
2730 <touch key="home"/>
2731 <action function="page">main</action>
2732 </action>
2733
2734 <action>
2735 <touch key="back"/>
2736 <action function="page">main</action>
2737 </action>
2738 </page>
2739
2740 <page name="restore_force">
2741 <template name="page"/>
2742
2743 <action>
2744 <conditions>
2745 <condition var1="tw_is_fbe" var2="1"/>
2746 <condition var1="tw_all_users_decrypted" var2="0"/>
2747 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2748 </conditions>
2749 <actions>
sekaiacg750c6aa2021-12-06 12:27:46 +08002750 <action function="set">tw_multiuser_warning_destination=restore_force</action>
bigbiff8f5fad32021-11-03 20:39:02 -04002751 <action function="page">multiuser_warning</action>
2752 </actions>
2753 </action>
2754
2755 <template name="statusbar"/>
2756
2757 <text style="text_m">
2758 <placement x="%col1_x_left%" y="%row1_header_y%"/>
2759 <text>{@restore_hdr=Restore} &gt; {@sel_backup_hdr=Select Backup}</text>
2760 </text>
2761
2762 <fileselector>
2763 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
2764 <text>%tw_storage_display_name%</text>
2765 <filter folders="1" files="1" nav="0" extn=".ab"/>
2766 <path name="tw_backups_folder"/>
2767 <data name="tw_restore" default=""/>
2768 <selection name="tw_restore_name"/>
2769 </fileselector>
2770
2771 <button>
2772 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2773 <highlight color="%highlight_color%"/>
2774 <image resource="q_btn_storage"/>
2775 <actions>
2776 <action function="set">tw_storagetext={@restore_btn=Restore} &gt; {@select_storage_btn=Select Storage}</action>
2777 <action function="set">tw_back=restore</action>
2778 <action function="page">select_storage</action>
2779 </actions>
2780 </button>
2781
2782 <action>
z31s1g28f0a922015-11-07 18:50:22 +01002783 <condition var1="tw_restore" op="modified"/>
2784 <actions>
2785 <action function="readBackup"/>
2786 <action function="set">tw_back=restore</action>
2787 <action function="page">restore_read</action>
2788 </actions>
2789 </action>
2790
2791 <action>
2792 <touch key="home"/>
2793 <action function="page">main</action>
2794 </action>
2795
2796 <action>
2797 <touch key="back"/>
2798 <action function="page">main</action>
2799 </action>
2800 </page>
2801
2802 <page name="restore_read">
2803 <action>
2804 <condition var1="tw_restore_encrypted" var2="1"/>
2805 <actions>
2806 <action function="set">tw_password_fail=0</action>
2807 <action function="page">restore_decrypt</action>
2808 </actions>
2809 </action>
2810
2811 <action>
2812 <condition var1="tw_restore_encrypted" var2="0"/>
2813 <actions>
2814 <action function="page">restore_select</action>
2815 </actions>
2816 </action>
2817 </page>
2818
2819 <page name="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_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002827 </text>
2828
2829 <text style="text_m_accent">
2830 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002831 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002832 </text>
2833
2834 <input>
2835 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2836 <text>%tw_restore_display%</text>
2837 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2838 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2839 <action function="page">try_restore_decrypt</action>
2840 </input>
2841
2842 <fill color="%accent_color%">
2843 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2844 </fill>
2845
2846 <fill color="%text_fail_color%">
2847 <condition var1="tw_password_fail" var2="1"/>
2848 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
2849 </fill>
2850
2851 <text style="text_m_fail">
2852 <condition var1="tw_password_fail" var2="1"/>
2853 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002854 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002855 </text>
2856
2857 <button style="main_button_half_height">
2858 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002859 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002860 <actions>
2861 <action function="set">tw_page_done=1</action>
2862 <action function="page">restore</action>
2863 </actions>
2864 </button>
2865
2866 <button style="main_button_half_height">
2867 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002868 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002869 <actions>
2870 <action function="set">tw_back=restore</action>
2871 <action function="set">tw_action=cmd</action>
2872 <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 -05002873 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2874 <action function="set">tw_text2=%tw_restore_name%</action>
2875 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2876 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2877 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2878 <action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002879 <action function="page">confirm_action</action>
2880 </actions>
2881 </button>
2882
2883 <template name="keyboardtemplate"/>
2884
2885 <action>
2886 <touch key="home"/>
2887 <action function="page">main</action>
2888 </action>
2889
2890 <action>
2891 <touch key="back"/>
2892 <action function="page">restore</action>
2893 </action>
2894 </page>
2895
2896 <page name="try_restore_decrypt">
2897 <template name="page"/>
2898
2899 <template name="statusbar"/>
2900
2901 <text style="text_m">
2902 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002903 <text>{@restore_hdr=Restore} &gt; {@restore_try_decrypt_s=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002904 </text>
2905
2906 <template name="console"/>
2907
2908 <template name="progress_bar"/>
2909
2910 <action>
2911 <action function="decrypt_backup"/>
2912 </action>
2913
2914 <action>
2915 <conditions>
2916 <condition var1="tw_operation_state" var2="1"/>
2917 <condition var1="tw_operation_status" op="!=" var2="0"/>
2918 </conditions>
2919 <actions>
2920 <action function="set">tw_password_fail=1</action>
2921 <action function="page">restore_decrypt</action>
2922 </actions>
2923 </action>
2924
2925 <action>
2926 <conditions>
2927 <condition var1="tw_operation_state" var2="1"/>
2928 <condition var1="tw_operation_status" op="=" var2="0"/>
2929 </conditions>
2930 <actions>
2931 <action function="set">tw_page_done=1</action>
2932 <action function="page">restore_select</action>
2933 </actions>
2934 </action>
2935 </page>
2936
2937 <page name="restore_select">
2938 <template name="page"/>
2939
2940 <template name="statusbar"/>
2941
2942 <text style="text_m">
2943 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002944 <text>{@restore_hdr=Restore} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002945 </text>
2946
2947 <partitionlist style="partitionlist_headerless_cb">
2948 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
2949 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2950 <listtype name="restore"/>
2951 </partitionlist>
2952
2953 <fill color="%accent_color%">
2954 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
2955 </fill>
2956
2957 <button>
2958 <placement x="%col1_x_left%" y="%row11_y%"/>
2959 <highlight color="%highlight_color%"/>
2960 <image resource="q_btn_arrow_left"/>
2961 <action function="page">restore</action>
2962 </button>
2963
2964 <button>
2965 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2966 <highlight color="%highlight_color%"/>
2967 <image resource="q_btn_delete"/>
2968 <actions>
2969 <action function="set">tw_back=restore</action>
2970 <action function="set">tw_action=cmd</action>
2971 <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 -05002972 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002973 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002974 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2975 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2976 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2977 <action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002978 <action function="page">confirm_action</action>
2979 </actions>
2980 </button>
2981
2982 <button>
2983 <placement x="%btn4_col3_x%" y="%row11_y%"/>
2984 <highlight color="%highlight_color%"/>
2985 <image resource="q_btn_accept"/>
2986 <action function="page">restore_confirm</action>
2987 </button>
2988
2989 <button>
2990 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2991 <highlight color="%highlight_color%"/>
2992 <image resource="q_btn_arrow_right"/>
2993 <actions>
2994 <action function="set">tw_back=restore_select</action>
2995 <action function="page">restore_options</action>
2996 </actions>
2997 </button>
2998
2999 <action>
3000 <touch key="home"/>
3001 <action function="page">main</action>
3002 </action>
3003
3004 <action>
3005 <touch key="back"/>
3006 <action function="page">%tw_back%</action>
3007 </action>
3008 </page>
3009
3010 <page name="restore_options">
3011 <template name="page"/>
3012
3013 <template name="statusbar"/>
3014
3015 <text style="text_m">
3016 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003017 <text>{@restore_hdr=Restore} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003018 </text>
3019
3020 <listbox style="scrolllist">
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04003021 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003022 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003023 <listitem name="{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}">
3024 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003025 </listitem>
3026 </listbox>
3027
3028 <button>
3029 <placement x="%col1_x_left%" y="%row11_y%"/>
3030 <highlight color="%highlight_color%"/>
3031 <image resource="q_btn_arrow_left"/>
3032 <action function="page">restore_select</action>
3033 </button>
3034
3035 <button>
3036 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3037 <highlight color="%highlight_color%"/>
3038 <image resource="q_btn_accept_transp"/>
3039 <actions>
3040 <action function="set">tw_back=restore_options</action>
3041 <action function="page">restore_confirm</action>
3042 </actions>
3043 </button>
3044
3045 <action>
3046 <touch key="home"/>
3047 <action function="page">main</action>
3048 </action>
3049
3050 <action>
3051 <touch key="back"/>
3052 <action function="page">%tw_back%</action>
3053 </action>
3054
3055 <action>
3056 <touch key="power+voldown"/>
3057 <action function="screenshot"/>
3058 </action>
3059 </page>
3060
3061 <page name="renamebackup">
3062 <template name="page"/>
3063
3064 <template name="statusbar"/>
3065
3066 <text style="text_m">
3067 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003068 <text>{@restore_hdr=Restore} &gt; {@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003069 </text>
3070
3071 <text style="text_m_accent">
3072 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003073 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003074 </text>
3075
3076 <input>
3077 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
3078 <text>%tw_backup_rename%</text>
3079 <data name="tw_backup_rename"/>
3080 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
3081 <actions>
3082 <action function="set">tw_back=restore</action>
3083 <action function="set">tw_action=cmd</action>
3084 <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 -05003085 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
3086 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
3087 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
3088 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
3089 <action function="set">tw_slider_text={@swipe_rename= Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003090 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
3091 <action function="set">tw_existpage=renamebackup</action>
3092 <action function="set">tw_notexistpage=confirm_action</action>
3093 <action function="page">filecheck</action>
3094 </actions>
3095 </input>
3096
3097 <fill color="%accent_color%">
3098 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
3099 </fill>
3100
3101 <fill color="%text_fail_color%">
3102 <condition var1="tw_fileexists" var2="1"/>
3103 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
3104 </fill>
3105
3106 <text style="text_m_fail">
3107 <condition var1="tw_fileexists" var2="1"/>
3108 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003109 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003110 </text>
3111
3112 <button style="main_button_half_height">
3113 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003114 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003115 <action function="page">restore_confirm</action>
3116 </button>
3117
3118 <template name="keyboardtemplate"/>
3119
3120 <action>
3121 <touch key="home"/>
3122 <action function="page">main</action>
3123 </action>
3124
3125 <action>
3126 <touch key="back"/>
3127 <action function="page">restore_confirm</action>
3128 </action>
3129 </page>
3130
3131 <page name="restore_confirm">
3132 <template name="page"/>
3133
3134 <template name="statusbar"/>
3135
3136 <text style="text_m">
3137 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003138 <text>{@restore_hdr=Restore} &gt; {@confirm_hdr=Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003139 </text>
3140
3141 <text style="text_m_accent">
3142 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003143 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003144 </text>
3145
3146 <text style="text_m">
3147 <placement x="%indent%" y="%row2_y%"/>
3148 <text>%tw_restore_name%</text>
3149 </text>
3150
3151 <fill color="%accent_color%">
3152 <placement x="%indent%" y="64" w="%content_width%" h="input_line_width" placement="1"/>
3153 </fill>
3154
3155 <button>
3156 <fill color="%transparent%"/>
3157 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
3158 <actions>
3159 <action function="set">tw_back=restore_confirm</action>
3160 <action function="set">tw_backup_rename=%tw_restore_name%</action>
3161 <action function="set">tw_fileexists=0</action>
3162 <action function="page">renamebackup</action>
3163 </actions>
3164 </button>
3165
3166 <text style="text_m_accent">
3167 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003168 <text>{@partitions=Partitions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003169 </text>
3170
3171 <partitionlist style="partitionlist_summary">
3172 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/>
3173 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
3174 <listtype name="restore"/>
3175 </partitionlist>
3176
3177 <button>
3178 <fill color="%transparent%"/>
3179 <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/>
3180 <actions>
3181 <action function="set">tw_back=restore_confirm</action>
3182 <action function="page">restore_select</action>
3183 </actions>
3184 </button>
3185
3186 <listbox style="listbox_options">
3187 <placement x="%col1_x_right%" y="%row4a_y%" w="%content_half_width%" h="80"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003188 <listitem name="{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}">
3189 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003190 </listitem>
3191 </listbox>
3192
3193 <text style="text_m_accent">
3194 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003195 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003196 </text>
3197
3198 <button>
3199 <fill color="%transparent%"/>
3200 <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="64"/>
3201 <actions>
3202 <action function="set">tw_back=restore_confirm</action>
3203 <action function="page">restore_options</action>
3204 </actions>
3205 </button>
3206
3207 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003208 <text>{@swipe_restore_s= Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003209 <action function="page">restore_run</action>
3210 </slider>
3211
3212 <action>
3213 <touch key="home"/>
3214 <action function="page">main</action>
3215 </action>
3216
3217 <action>
3218 <touch key="back"/>
3219 <action function="page">restore_options</action>
3220 </action>
3221 </page>
3222
3223 <page name="restore_run">
3224 <template name="page"/>
3225
3226 <template name="statusbar"/>
3227
3228 <text style="text_m">
3229 <placement x="%col1_x_left%" y="%row1_header_y%"/>
3230 <text>%tw_operation% %tw_partition%</text>
3231 </text>
3232
3233 <template name="console"/>
3234
3235 <template name="progress_bar"/>
3236
3237 <text style="text_m">
3238 <placement x="%indent%" y="%row14a_y%"/>
3239 <text>%tw_size_progress%</text>
3240 </text>
3241
3242 <action>
3243 <condition var1="tw_operation_state" var2="1"/>
3244 <actions>
3245 <action function="set">tw_back=restore</action>
Matt Mower3c366972015-12-25 19:28:31 -06003246 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003247 <action function="set">tw_show_reboot=1</action>
3248 <action function="page">action_complete</action>
3249 </actions>
3250 </action>
3251
3252 <action>
3253 <action function="nandroid">restore</action>
3254 </action>
3255 </page>
3256
3257 <page name="mount">
3258 <template name="page"/>
3259
3260 <template name="statusbar"/>
3261
3262 <text style="text_m">
3263 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003264 <text>{@mount_hdr=Mount} &gt; %tw_storage_display_name%</text>
z31s1g28f0a922015-11-07 18:50:22 +01003265 </text>
3266
3267 <partitionlist style="partitionlist_headerless_cb">
3268 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
3269 <listtype name="mount"/>
3270 </partitionlist>
3271
3272 <fill color="%accent_color%">
3273 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
3274 </fill>
3275
3276 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04003277 <conditions>
bigbiffb640d972021-10-12 19:08:10 -04003278 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
bigbiffee7b7ff2020-03-23 15:08:27 -04003279 <condition var1="tw_is_super" op="=" var2="0"/>
3280 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01003281 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003282 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003283 <image resource="checkbox_false"/>
3284 <action function="mountsystemtoggle">1</action>
3285 </button>
3286
3287 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04003288 <conditions>
3289 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
3290 <condition var1="tw_is_super" op="=" var2="0"/>
3291 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01003292 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003293 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003294 <image resource="checkbox_true"/>
3295 <actions>
3296 <action function="set">tw_lifetime_writes=2</action>
3297 <action function="page">system_readonly_check</action>
3298 </actions>
3299 </button>
3300
3301 <button style="checkbox">
3302 <conditions>
3303 <condition var1="tw_has_mtp" var2="1"/>
3304 <condition var1="tw_mtp_enabled" var2="0"/>
3305 </conditions>
3306 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3307 <image resource="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003308 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003309 <action function="startmtp"/>
3310 </button>
3311
3312 <button style="checkbox">
3313 <conditions>
3314 <condition var1="tw_has_mtp" var2="1"/>
3315 <condition var1="tw_mtp_enabled" var2="1"/>
3316 </conditions>
3317 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3318 <image resource="checkbox_true"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003319 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003320 <action function="stopmtp"/>
3321 </button>
3322
3323 <button>
3324 <placement x="%btn4_col3_x%" y="%row11_y%"/>
3325 <highlight color="%highlight_color%"/>
3326 <image resource="q_btn_storage"/>
3327 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05003328 <action function="set">tw_storagetext={@mount_hdr=Mount} &gt; {@select_storage_hdr=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003329 <action function="set">tw_back=mount</action>
3330 <action function="page">select_storage</action>
3331 </actions>
3332 </button>
3333
3334 <button>
3335 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3336 <highlight color="%highlight_color%"/>
3337 <image resource="q_btn_arrow_right"/>
3338 <action function="page">mount_options</action>
3339 </button>
3340
3341 <action>
3342 <touch key="home"/>
3343 <action function="page">main</action>
3344 </action>
3345
3346 <action>
3347 <touch key="back"/>
3348 <action function="page">main</action>
3349 </action>
3350 </page>
3351
3352 <page name="mount_options">
3353 <template name="page"/>
3354
3355 <template name="statusbar"/>
3356
3357 <text style="text_m">
3358 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003359 <text>{@mount_hdr=Mount} &gt; %tw_storage_display_name%</text>
z31s1g28f0a922015-11-07 18:50:22 +01003360 </text>
3361
3362 <button style="main_button_full_width">
3363 <condition var1="tw_has_usb_storage" var2="1"/>
3364 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003365 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003366 <action function="page">usb_mount</action>
3367 </button>
3368
3369 <button style="main_button_full_width">
3370 <conditions>
3371 <condition var1="tw_is_encrypted" var2="1"/>
3372 <condition var1="tw_is_decrypted" var2="0"/>
3373 </conditions>
3374 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003375 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003376 <action function="set">tw_crypto_user_id=0</action>
3377 <action function="set">tw_crypto_password=</action>
3378 <action function="set">tw_password_fail=0</action>
3379 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01003380 <action function="page">decrypt</action>
3381 </button>
3382
3383 <button>
3384 <placement x="%col1_x_left%" y="%row11_y%"/>
3385 <highlight color="%highlight_color%"/>
3386 <image resource="q_btn_arrow_left"/>
3387 <action function="page">mount</action>
3388 </button>
3389
3390 <action>
3391 <touch key="home"/>
3392 <action function="page">main</action>
3393 </action>
3394
3395 <action>
3396 <touch key="back"/>
3397 <action function="page">mount</action>
3398 </action>
3399 </page>
3400
3401 <page name="usb_mount">
3402 <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>{@mount_hdr=Mount} &gt; {@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003409 </text>
3410
3411 <text style="text_m_accent">
3412 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003413 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003414 </text>
3415
3416 <text style="text_m_fail">
3417 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003418 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003419 </text>
3420
3421 <text style="text_m_fail">
3422 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003423 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003424 </text>
3425
3426 <button style="main_button">
3427 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003428 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003429 <action function="page">usb_umount</action>
3430 </button>
3431
3432 <action>
3433 <action function="mount">usb</action>
3434 <action function="set">tw_busy=1</action>
3435 </action>
3436 </page>
3437
3438 <page name="usb_umount">
3439 <action>
3440 <action function="unmount">usb</action>
3441 </action>
3442
3443 <action>
3444 <action function="page">mount_options</action>
3445 <action function="set">tw_busy=0</action>
3446 </action>
3447 </page>
3448
3449 <page name="system_readonly_check">
3450 <action>
3451 <action function="checkpartitionlifetimewrites">/system</action>
3452 </action>
3453
3454 <action>
3455 <condition var1="tw_lifetime_writes" var2="1"/>
3456 <actions>
3457 <action function="mountsystemtoggle">0</action>
3458 <action function="page">mount</action>
3459 </actions>
3460 </action>
3461
3462 <action>
3463 <condition var1="tw_lifetime_writes" var2="0"/>
3464 <actions>
3465 <action function="set">tw_back=mount</action>
3466 <action function="page">system_readonly</action>
3467 </actions>
3468 </action>
3469 </page>
3470
3471 <page name="reboot">
3472 <template name="page"/>
3473
3474 <template name="statusbar"/>
3475
3476 <text style="text_m">
3477 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003478 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003479 </text>
3480
3481 <button style="main_button">
3482 <condition var1="tw_reboot_system" var2="1"/>
3483 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003484 <text>{@rb_system_btn=System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003485 <actions>
3486 <action function="set">tw_back=reboot</action>
Matt Mower908dd252016-05-25 02:26:50 -05003487 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01003488 </actions>
3489 </button>
3490
3491 <button style="main_button">
3492 <condition var1="tw_reboot_poweroff" var2="1"/>
3493 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003494 <text>{@rb_poweroff_btn=Power Off}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003495 <actions>
3496 <action function="set">tw_back=reboot</action>
3497 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003498 <action function="set">tw_action_param=poweroff</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003499 <action function="set">tw_reboot_param=poweroff</action>
z31s1g28f0a922015-11-07 18:50:22 +01003500 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003501 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3502 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
3503 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3504 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3505 <action function="set">tw_slider_text={@swipe_power_off_s=Power Off}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003506 <action function="page">rebootcheck</action>
3507 </actions>
3508 </button>
3509
3510 <button style="main_button">
3511 <condition var1="tw_reboot_recovery" var2="1"/>
3512 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003513 <text>{@rb_recovery_btn=Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003514 <actions>
3515 <action function="set">tw_back=reboot</action>
3516 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003517 <action function="set">tw_action_param=recovery</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003518 <action function="set">tw_reboot_param=recovery</action>
z31s1g28f0a922015-11-07 18:50:22 +01003519 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003520 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3521 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3522 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3523 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3524 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003525 <action function="page">rebootcheck</action>
3526 </actions>
3527 </button>
3528
3529 <button style="main_button">
3530 <condition var1="tw_reboot_bootloader" var2="1"/>
3531 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003532 <text>{@rb_bootloader_btn=Bootloader}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003533 <actions>
3534 <action function="set">tw_back=reboot</action>
3535 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003536 <action function="set">tw_action_param=bootloader</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003537 <action function="set">tw_reboot_param=bootloader</action>
z31s1g28f0a922015-11-07 18:50:22 +01003538 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003539 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3540 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3541 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3542 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3543 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003544 <action function="page">rebootcheck</action>
3545 </actions>
3546 </button>
3547
3548 <button style="main_button">
3549 <condition var1="tw_download_mode" var2="1"/>
3550 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003551 <text>{@rb_download_btn=Download}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003552 <actions>
3553 <action function="set">tw_back=reboot</action>
3554 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003555 <action function="set">tw_action_param=download</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003556 <action function="set">tw_reboot_param=download</action>
z31s1g28f0a922015-11-07 18:50:22 +01003557 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003558 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3559 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3560 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3561 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3562 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003563 <action function="page">rebootcheck</action>
3564 </actions>
3565 </button>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003566
mauronofrioe9a49ef2018-10-03 13:38:16 +02003567 <button style="main_button">
3568 <condition var1="tw_edl_mode" var2="1"/>
3569 <placement x="%col1_x_right%" y="%row11_y%"/>
Aseem Athaledd81b9a2021-11-08 13:12:30 +05303570 <text>{@rb_edl_btn=EDL}</text>
mauronofrioe9a49ef2018-10-03 13:38:16 +02003571 <actions>
3572 <action function="set">tw_back=reboot</action>
3573 <action function="set">tw_action=reboot</action>
3574 <action function="set">tw_action_param=edl</action>
3575 <action function="set">tw_reboot_param=edl</action>
3576 <action function="set">tw_has_action2=0</action>
3577 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3578 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3579 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3580 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3581 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
3582 <action function="page">rebootcheck</action>
3583 </actions>
3584 </button>
z31s1g28f0a922015-11-07 18:50:22 +01003585
3586 <action>
3587 <touch key="home"/>
3588 <action function="page">main</action>
3589 </action>
3590
3591 <action>
3592 <touch key="back"/>
3593 <action function="page">main</action>
3594 </action>
3595 </page>
3596
Ethan Yonker8581ab32020-12-17 14:51:50 -06003597 <page name="installapp">
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003598 <template name="page"/>
3599
3600 <template name="statusbar"/>
3601
3602 <text style="text_m">
3603 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003604 <text>%tw_appinstall_title% &gt; {@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003605 </text>
3606
3607 <text style="text_m_accent">
3608 <placement x="%center_x%" y="%row1_y%" placement="5"/>
3609 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3610 </text>
3611
3612 <text style="text_m">
3613 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3614 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3615 </text>
3616
3617 <checkbox>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003618 <condition var1="tw_mount_system_ro" var2="0"/>
3619 <placement x="%indent%" y="%row5_y%"/>
3620 <text>{@reboot_install_app_system=Install as a System App}</text>
3621 <data variable="tw_app_install_system"/>
3622 </checkbox>
3623
3624 <button style="main_button_half_height">
3625 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003626 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003627 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003628 </button>
3629
Ethan Yonker8581ab32020-12-17 14:51:50 -06003630 <slider>
3631 <text>{@swipe_confirm= Confirm}</text>
3632 <actions>
3633 <action function="set">tw_action=installapp</action>
3634 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3635 <action function="set">tw_action_text2=</action>
3636 <action function="set">tw_complete_text1={@successful=Successful}</action>
3637 <action function="page">action_page</action>
3638 </actions>
3639 </slider>
3640
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003641 <action>
3642 <touch key="home"/>
3643 <actions>
3644 <action function="set">tw_app_install_status=0</action>
3645 <action function="page">main</action>
3646 </actions>
3647 </action>
3648
3649 <action>
3650 <touch key="back"/>
3651 <actions>
3652 <action function="set">tw_app_install_status=0</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003653 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003654 </actions>
3655 </action>
3656 </page>
3657
z31s1g28f0a922015-11-07 18:50:22 +01003658 <page name="system_readonly">
3659 <template name="page"/>
3660
3661 <template name="statusbar"/>
3662
3663 <text style="text_m">
3664 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003665 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003666 </text>
3667
3668 <text style="text_m_accent">
3669 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003670 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003671 </text>
3672
3673 <text style="text_m">
3674 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003675 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003676 </text>
3677
3678 <text style="text_m">
3679 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003680 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003681 </text>
3682
3683 <text style="text_m">
3684 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003685 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003686 </text>
3687
3688 <text style="text_m">
3689 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003690 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003691 </text>
3692
3693 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003694 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003695 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003696 </text>
3697
3698 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003699 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003700 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003701 </text>
3702
z31s1g608d7ff2016-01-18 19:47:25 +01003703 <button style="main_button_half_height">
3704 <placement x="%col1_x_right%" y="%row8a_y%"/>
3705 <text>{@sel_lang_btn=Select Language}</text>
3706 <action function="page">settings_language</action>
3707 </button>
3708
z31s1g28f0a922015-11-07 18:50:22 +01003709 <checkbox>
3710 <condition var1="tw_is_encrypted" var2="0"/>
z31s1g608d7ff2016-01-18 19:47:25 +01003711 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003712 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003713 <data variable="tw_never_show_system_ro_page"/>
3714 </checkbox>
3715
3716 <button style="main_button_half_height">
3717 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003718 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003719 <actions>
3720 <action function="mountsystemtoggle">1</action>
3721 <action function="set">tw_page_done=1</action>
3722 <action function="page">%tw_back%</action>
3723 </actions>
3724 </button>
3725
3726 <button style="main_button_half_height">
3727 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003728 <text>{@swipe_allow_mod_s=Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003729 <actions>
3730 <action function="mountsystemtoggle">0</action>
3731 <action function="set">tw_page_done=1</action>
3732 <action function="page">%tw_back%</action>
3733 </actions>
3734 </button>
3735 </page>
3736
3737 <page name="settings">
3738 <template name="page"/>
3739
3740 <template name="statusbar"/>
3741
3742 <text style="text_m">
3743 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003744 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003745 </text>
3746
3747 <button style="main_button">
3748 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003749 <text>{@settings_gen_btn=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003750 <action function="page">settings_general</action>
3751 </button>
3752
3753 <button style="main_button">
3754 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003755 <text>{@settings_tz_btn=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003756 <action function="page">settings_timezone</action>
3757 </button>
3758
3759 <button style="main_button">
3760 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003761 <text>{@settings_screen_btn=Screen}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003762 <action function="page">settings_screen</action>
3763 </button>
3764
3765 <button style="main_button">
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003766 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003767 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003768 <text>{@settings_vibration_btn=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003769 <action function="page">settings_vibration</action>
3770 </button>
3771
3772 <button style="main_button">
3773 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003774 <text>{@settings_language_btn=Language}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003775 <action function="page">settings_language</action>
3776 </button>
3777
3778 <button>
3779 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3780 <highlight color="%highlight_color%"/>
3781 <image resource="q_btn_reset"/>
3782 <action function="restoredefaultsettings"/>
3783 </button>
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">main3</action>
3793 </action>
3794 </page>
3795
3796 <page name="settings_general">
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; {@settings_gen_s_hdr=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003804 </text>
3805
3806 <listbox style="scrolllist">
3807 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_settings_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003808 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003809 <data variable="tw_signed_zip_verify"/>
3810 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003811 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3812 <data variable="tw_install_reboot"/>
3813 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003814 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003815 <data variable="tw_rm_rf"/>
3816 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003817 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3818 <data variable="tw_disable_free_space"/>
3819 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003820 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3821 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003822 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003823 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3824 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003825 </listitem>
epicX9597b842021-03-20 21:58:17 +05303826 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
3827 <data variable="tw_skip_digest_check_zip"/>
3828 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003829 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003830 <data variable="tw_military_time"/>
3831 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003832 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003833 <data variable="tw_simulate_actions"/>
3834 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003835 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003836 <data variable="tw_simulate_fail"/>
3837 <condition var1="tw_simulate_actions" var2="1"/>
3838 </listitem>
bigbiff bigbiff1c01fab2017-08-07 18:41:14 -04003839 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3840 <condition var1="tw_no_sha2" var2="0"/>
3841 <data variable="tw_use_sha2"/>
3842 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003843 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3844 <data variable="tw_unmount_system"/>
3845 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003846 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
3847 <conditions>
3848 <condition var1="tw_has_boot_slots" var2="1"/>
3849 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwback1f5d4ca2023-01-11 13:46:30 -05003850 <condition var1="tw_no_flash_current_twrp" var2="0"/>
nebrassyac29e692021-05-20 13:03:30 +02003851 </conditions>
3852 <data variable="tw_auto_reflashtwrp"/>
3853 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003854 </listbox>
3855
3856 <action>
3857 <touch key="home"/>
3858 <action function="page">main</action>
3859 </action>
3860
3861 <action>
3862 <touch key="back"/>
3863 <action function="page">settings</action>
3864 </action>
3865 </page>
3866
3867 <page name="settings_timezone">
3868 <template name="page"/>
3869
3870 <template name="statusbar"/>
3871
3872 <text style="text_m">
3873 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003874 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003875 </text>
3876
3877 <text color="%text_color%">
3878 <font resource="font_m"/>
3879 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3880 <text>%tw_time%</text>
3881 </text>
3882
3883 <listbox style="listbox_headerless">
3884 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_timezone_height%"/>
3885 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003886 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3887 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3888 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3889 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3890 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3891 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3892 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3893 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3894 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3895 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3896 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3897 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3898 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3899 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3900 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3901 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3902 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3903 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3904 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3905 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3906 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3907 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3908 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3909 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003910 </listbox>
3911
3912 <button>
3913 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3914 <highlight color="%highlight_color%"/>
3915 <image resource="q_btn_arrow_right"/>
3916 <actions>
3917 <action function="setguitimezone"/>
3918 <action function="page">settings_timezone2</action>
3919 </actions>
3920 </button>
3921
3922 <action>
3923 <condition var1="tw_time_zone_guisel" op="modified"/>
3924 <action function="setguitimezone"/>
3925 </action>
3926
3927 <action>
3928 <touch key="home"/>
3929 <actions>
3930 <action function="page">main</action>
3931 <action function="setguitimezone"/>
3932 </actions>
3933 </action>
3934
3935 <action>
3936 <touch key="back"/>
3937 <actions>
3938 <action function="page">settings</action>
3939 <action function="setguitimezone"/>
3940 </actions>
3941 </action>
3942
3943 <action>
3944 <touch key="power+voldown"/>
3945 <action function="screenshot"/>
3946 </action>
3947 </page>
3948
3949 <page name="settings_timezone2">
3950 <template name="page"/>
3951
3952 <template name="statusbar"/>
3953
3954 <text style="text_m">
3955 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003956 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003957 </text>
3958
3959 <text color="%text_color%">
3960 <font resource="font_m"/>
3961 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3962 <text>%tw_time%</text>
3963 </text>
3964
3965 <checkbox>
3966 <placement x="%col1_x_left%" y="%row1_y%"/>
3967 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003968 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003969 <data variable="tw_time_zone_guidst"/>
3970 <image checked="checkbox_true" unchecked="checkbox_false"/>
3971 </checkbox>
3972
3973 <text style="text_m_accent">
3974 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003975 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003976 </text>
3977
3978 <button style="main_button_quarter_width">
3979 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003980 <text>{@tz_offset_0=0}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003981 <actions>
3982 <action function="set">tw_time_zone_guioffset=0</action>
3983 <action function="setguitimezone"/>
3984 </actions>
3985 </button>
3986
3987 <button style="main_button_quarter_width">
3988 <placement x="%btn4_col2_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003989 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003990 <actions>
3991 <action function="set">tw_time_zone_guioffset=15</action>
3992 <action function="setguitimezone"/>
3993 </actions>
3994 </button>
3995
3996 <button style="main_button_quarter_width">
3997 <placement x="%btn4_col3_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003998 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003999 <actions>
4000 <action function="set">tw_time_zone_guioffset=30</action>
4001 <action function="setguitimezone"/>
4002 </actions>
4003 </button>
4004
4005 <button style="main_button_quarter_width">
4006 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004007 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004008 <actions>
4009 <action function="set">tw_time_zone_guioffset=45</action>
4010 <action function="setguitimezone"/>
4011 </actions>
4012 </button>
4013
4014 <button>
4015 <placement x="%col1_x_left%" y="%row11_y%"/>
4016 <highlight color="%highlight_color%"/>
4017 <image resource="q_btn_arrow_left"/>
4018 <actions>
4019 <action function="setguitimezone"/>
4020 <action function="page">settings_timezone</action>
4021 </actions>
4022 </button>
4023
4024 <text style="text_m_accent">
4025 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004026 <text>{@curr_tz_s=Current Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004027 </text>
4028
4029 <text style="text_m">
4030 <placement x="%btn4_col2_x%" y="%row12a_y%"/>
4031 <text>%tw_time_zone%</text>
4032 </text>
4033
4034 <action>
4035 <condition var1="tw_time_zone_guidst" op="modified"/>
4036 <action function="setguitimezone"/>
4037 </action>
4038
4039 <action>
4040 <touch key="home"/>
4041 <actions>
4042 <action function="setguitimezone"/>
4043 <action function="page">main</action>
4044 </actions>
4045 </action>
4046
4047 <action>
4048 <touch key="back"/>
4049 <actions>
4050 <action function="setguitimezone"/>
4051 <action function="page">settings_timezone</action>
4052 </actions>
4053 </action>
4054 </page>
4055
4056 <page name="settings_screen">
4057 <template name="page"/>
4058
4059 <template name="statusbar"/>
4060
4061 <text style="text_m">
4062 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004063 <text>{@settings_hdr=Settings} &gt; {@settings_screen_timeout_hdr=Screen Timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004064 </text>
4065
4066 <button style="checkbox">
4067 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
4068 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
4069 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004070 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004071 <image resource="checkbox_false"/>
4072 <action function="set">tw_screen_timeout_secs=60</action>
4073 </button>
4074
4075 <button style="checkbox">
4076 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
4077 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
4078 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004079 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004080 <image resource="checkbox_true"/>
4081 <action function="set">tw_screen_timeout_secs=0</action>
4082 </button>
4083
4084 <slidervalue>
4085 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
4086 <placement x="col1_x_left" y="%row2a_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004087 <text>{@screen_to_slider_s=Screen timeout in seconds (0=disabled): %tw_screen_timeout_secs%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004088 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
4089 </slidervalue>
4090
4091 <text style="text_m_fail">
4092 <condition var1="tw_no_screen_timeout" op="=" var2="1"/>
4093 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004094 <text>{@screen_to_na=Screen timeout setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004095 </text>
4096
4097 <button>
4098 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4099 <highlight color="%highlight_color%"/>
4100 <image resource="q_btn_arrow_right"/>
4101 <action function="page">settings_screen2</action>
4102 </button>
4103
4104 <action>
4105 <touch key="home"/>
4106 <action function="page">main</action>
4107 </action>
4108
4109 <action>
4110 <touch key="back"/>
4111 <action function="page">settings</action>
4112 </action>
4113 </page>
4114
4115 <page name="settings_screen2">
4116 <template name="page"/>
4117
4118 <template name="statusbar"/>
4119
4120 <text style="text_m">
4121 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004122 <text>{@settings_hdr=Settings} &gt; {@settings_screen_bright_btn=Screen Brightness}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004123 </text>
4124
4125 <slidervalue>
4126 <condition var1="tw_has_brightnesss_file" var2="1"/>
4127 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004128 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004129 <data variable="tw_brightness_pct" min="10" max="100"/>
4130 <actions>
4131 <action function="set">tw_brightness=%tw_brightness_max%</action>
4132 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
4133 <action function="compute">tw_brightness/100</action>
4134 <action function="setbrightness">%tw_brightness%</action>
4135 </actions>
4136 </slidervalue>
4137
4138 <text style="text_m_fail">
4139 <condition var1="tw_has_brightnesss_file" var2="0"/>
4140 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004141 <text>{@screen_bright_na=Brightness setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004142 </text>
4143
4144 <button>
4145 <placement x="%col1_x_left%" y="%row11_y%"/>
4146 <highlight color="%highlight_color%"/>
4147 <image resource="q_btn_arrow_left"/>
4148 <action function="page">settings_screen</action>
4149 </button>
4150
4151 <action>
4152 <touch key="home"/>
4153 <action function="page">main</action>
4154 </action>
4155
4156 <action>
4157 <touch key="back"/>
4158 <action function="page">settings</action>
4159 </action>
4160 </page>
4161
4162 <page name="settings_vibration">
4163 <template name="page"/>
4164
4165 <template name="statusbar"/>
4166
4167 <text style="text_m">
4168 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004169 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@button_vibration_hdr=Button Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004170 </text>
4171
4172 <slidervalue>
4173 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004174 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004175 <data variable="tw_button_vibrate" min="0" max="300"/>
4176 </slidervalue>
4177
4178 <button>
4179 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4180 <highlight color="%highlight_color%"/>
4181 <image resource="q_btn_arrow_right"/>
4182 <action function="page">settings_vibration2</action>
4183 </button>
4184
4185 <action>
4186 <touch key="home"/>
4187 <action function="page">main</action>
4188 </action>
4189
4190 <action>
4191 <touch key="back"/>
4192 <action function="page">settings</action>
4193 </action>
4194 </page>
4195
4196 <page name="settings_vibration2">
4197 <template name="page"/>
4198
4199 <template name="statusbar"/>
4200
4201 <text style="text_m">
4202 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004203 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@kb_vibration_hdr=Keyboard Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004204 </text>
4205
4206 <slidervalue>
4207 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004208 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004209 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
4210 </slidervalue>
4211
4212 <button>
4213 <placement x="%col1_x_left%" y="%row11_y%"/>
4214 <highlight color="%highlight_color%"/>
4215 <image resource="q_btn_arrow_left"/>
4216 <action function="page">settings_vibration</action>
4217 </button>
4218
4219 <button>
4220 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4221 <highlight color="%highlight_color%"/>
4222 <image resource="q_btn_arrow_right"/>
4223 <action function="page">settings_vibration3</action>
4224 </button>
4225
4226 <action>
4227 <touch key="home"/>
4228 <action function="page">main</action>
4229 </action>
4230
4231 <action>
4232 <touch key="back"/>
4233 <action function="page">settings</action>
4234 </action>
4235 </page>
4236
4237 <page name="settings_vibration3">
4238 <template name="page"/>
4239
4240 <template name="statusbar"/>
4241
4242 <text style="text_m">
4243 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004244 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@act_vibration_hdr=Action Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004245 </text>
4246
4247 <slidervalue>
4248 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004249 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004250 <data variable="tw_action_vibrate" min="0" max="500"/>
4251 </slidervalue>
4252
4253 <button>
4254 <placement x="%col1_x_left%" y="%row11_y%"/>
4255 <highlight color="%highlight_color%"/>
4256 <image resource="q_btn_arrow_left"/>
4257 <action function="page">settings_vibration2</action>
4258 </button>
4259
4260 <action>
4261 <touch key="home"/>
4262 <action function="page">main</action>
4263 </action>
4264
4265 <action>
4266 <touch key="back"/>
4267 <action function="page">settings</action>
4268 </action>
4269 </page>
4270
Ethan Yonker74db1572015-10-28 12:44:49 -05004271 <page name="settings_language">
4272 <template name="page"/>
4273
4274 <template name="statusbar"/>
4275
4276 <text style="text_m">
4277 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4278 <text>{@settings_hdr=Settings} &gt; {@language_hdr=Language} - %tw_language_display%</text>
4279 </text>
4280
z31s1g608d7ff2016-01-18 19:47:25 +01004281 <listbox style="scrolllist">
Ethan Yonker74db1572015-10-28 12:44:49 -05004282 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4283 <icon selected="radio_true" unselected="radio_false" />
4284 <data name="tw_language" />
z31s1g608d7ff2016-01-18 19:47:25 +01004285 </listbox>
Ethan Yonker74db1572015-10-28 12:44:49 -05004286
4287 <button>
4288 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4289 <highlight color="%highlight_color%"/>
z31s1g608d7ff2016-01-18 19:47:25 +01004290 <image resource="q_btn_accept_transp"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004291 <action function="setlanguage"></action>
4292 </button>
4293
z31s1g608d7ff2016-01-18 19:47:25 +01004294 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004295 <touch key="home" />
4296 <action function="page">main</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004297 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004298
z31s1g608d7ff2016-01-18 19:47:25 +01004299 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004300 <touch key="back" />
4301 <action function="page">settings</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004302 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004303 </page>
4304
z31s1g28f0a922015-11-07 18:50:22 +01004305 <page name="advanced">
4306 <template name="page"/>
4307
4308 <template name="statusbar"/>
4309
4310 <text style="text_m">
4311 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004312 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004313 </text>
4314
4315 <button style="main_button">
4316 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004317 <text>{@terminal_btn=Terminal}</text>
z31s1g56189522016-01-13 19:12:40 +01004318 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01004319 </button>
4320
4321 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004322 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004323 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004324 <text>{@fix_context_btn=Fix Contexts}</text>
4325 <action function="page">fixcontexts</action>
z31s1g28f0a922015-11-07 18:50:22 +01004326 </button>
4327
Ethan Yonker64e0a652018-07-25 09:52:17 -05004328 <button>
4329 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4330 <highlight color="%highlight_color%"/>
4331 <image resource="q_btn_arrow_right"/>
4332 <action function="page">advanced2</action>
z31s1g28f0a922015-11-07 18:50:22 +01004333 </button>
4334
Ethan Yonker64e0a652018-07-25 09:52:17 -05004335 <action>
4336 <touch key="home"/>
4337 <action function="page">main</action>
4338 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004339
Ethan Yonker64e0a652018-07-25 09:52:17 -05004340 <action>
4341 <touch key="back"/>
4342 <action function="page">main3</action>
4343 </action>
4344 </page>
4345
4346 <page name="advanced2">
4347 <template name="page"/>
4348
4349 <template name="statusbar"/>
4350
4351 <text style="text_m">
4352 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4353 <text>{@advanced_hdr=Advanced}</text>
4354 </text>
4355
4356 <listbox style="advanced_listbox">
4357 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
epicXa721f952021-01-04 13:01:31 +05304358 <listitem name="{@change_twrp_folder_btn=Change TWRP folder}">
nebrassya9e4c462021-12-20 20:09:40 +01004359 <condition var1="tw_is_decrypted" var2="1"/>
epicXa721f952021-01-04 13:01:31 +05304360 <action function="page">changeTwrpFolder</action>
4361 </listitem>
Noah Jacobson81d638d2019-04-28 00:10:07 -04004362 <listitem name="{@decrypt_users=Decrypt Users}">
4363 <conditions>
4364 <condition var1="tw_is_fbe" var2="1"/>
4365 <condition var1="tw_all_users_decrypted" var2="0"/>
4366 </conditions>
4367 <actions>
4368 <action function="set">tw_crypto_user_id=</action>
4369 <action function="page">decrypt_users</action>
4370 </actions>
4371 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004372 <listitem name="{@reload_theme_btn=Reload Theme}">
4373 <action function="reload"/>
4374 </listitem>
4375 <listitem name="{@part_sd_btn=Partition SD Card}">
4376 <condition var1="tw_allow_partition_sdcard" var2="1"/>
4377 <actions>
4378 <action function="set">partitionlisterror=0</action>
4379 <action function="page">partsdcardsel</action>
4380 </actions>
4381 </listitem>
4382 <listitem name="{@dumlock_btn=HTC Dumlock}">
4383 <condition var1="tw_show_dumlock" var2="1"/>
4384 <action function="page">htcdumlock</action>
4385 </listitem>
4386 <listitem name="{@inject_twrp_btn=Inject TWRP}">
4387 <condition var1="tw_has_injecttwrp" var2="1"/>
4388 <actions>
4389 <action function="set">tw_back=advanced</action>
4390 <action function="set">tw_action=reinjecttwrp</action>
4391 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
4392 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
4393 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection 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>
Ethan Yonker53796e72019-01-11 22:49:52 -06004398 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
4399 <conditions>
4400 <condition var1="tw_has_boot_slots" var2="1"/>
4401 <condition var1="tw_has_repack_tools" var2="1"/>
4402 </conditions>
4403 <actions>
4404 <action function="set">tw_repack_kernel=0</action>
4405 <action function="page">repackselect</action>
4406 </actions>
4407 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02004408 <listitem name="{@reflash_twrp=Flash Current TWRP}">
4409 <conditions>
4410 <condition var1="tw_has_boot_slots" var2="1"/>
4411 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwback1f5d4ca2023-01-11 13:46:30 -05004412 <condition var1="tw_no_flash_current_twrp" var2="0"/>
nebrassyac29e692021-05-20 13:03:30 +02004413 </conditions>
4414 <actions>
4415 <action function="set">tw_repack_kernel=0</action>
4416 <action function="set">tw_back=advanced</action>
4417 <action function="set">tw_action=reflashtwrp</action>
4418 <action function="set">tw_text1={@reflash_twrp_confirm=Flash Current TWRP?}</action>
4419 <action function="set">tw_action_text1={@reflashing_twrp=Flashing TWRP...}</action>
4420 <action function="set">tw_complete_text1={@reflash_twrp_complete=Done Flashing TWRP}</action>
4421 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4422 <action function="page">confirm_action</action>
4423 </actions>
4424 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06004425 <listitem name="{@install_kernel=Install Kernel}">
4426 <conditions>
4427 <condition var1="tw_has_boot_slots" var2="1"/>
4428 <condition var1="tw_has_repack_tools" var2="1"/>
4429 </conditions>
4430 <actions>
4431 <action function="set">tw_repack_kernel=1</action>
4432 <action function="page">repackselect</action>
4433 </actions>
4434 </listitem>
4435 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
4436 <conditions>
4437 <condition var1="tw_has_boot_slots" var2="1"/>
4438 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwbackbc2cfa32021-09-16 10:04:26 -04004439 <condition var1="tw_uses_initramfs" var2="1"/>
Ethan Yonker53796e72019-01-11 22:49:52 -06004440 </conditions>
4441 <actions>
4442 <action function="set">tw_back=advanced</action>
4443 <action function="set">tw_action=fixabrecoverybootloop</action>
4444 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
4445 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
4446 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
4447 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4448 <action function="page">confirm_action</action>
4449 </actions>
4450 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06004451 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
4452 <condition var1="tw_app_install_status" var2="1"/>
4453 <actions>
4454 <action function="set">tw_back=advanced2</action>
4455 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
4456 <action function="page">installapp</action>
4457 </actions>
4458 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05004459 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
4460 <condition var1="tw_app_installed_in_system" var2="1"/>
4461 <actions>
4462 <action function="set">tw_back=advanced</action>
4463 <action function="set">tw_action=uninstalltwrpsystemapp</action>
4464 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
4465 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
4466 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
4467 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4468 <action function="page">confirm_action</action>
4469 </actions>
4470 </listitem>
bigbiffcfa875c2021-06-20 16:20:27 -04004471 <listitem name="{@unmap_super_devices=Unmap Super Devices}">
me-cafebabe2136fc52022-07-20 06:42:18 +08004472 <condition var1="tw_is_super" op="=" var2="1"/>
bigbiffcfa875c2021-06-20 16:20:27 -04004473 <actions>
4474 <action function="set">tw_back=advanced</action>
4475 <action function="set">tw_action=unmapsuperdevices</action>
4476 <action function="set">tw_text1={@unmap_super_devices_confirm=Unmap all Super Devices?}</action>
4477 <action function="set">tw_action_text1={@unmapping_super_devices=Unmapping Super Devices...}</action>
4478 <action function="set">tw_complete_text1={@unmap_super_devices_complete=Unmapped all Super Devices}</action>
4479 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4480 <action function="page">confirm_action</action>
4481 </actions>
4482 </listitem>
bigbiffd21252f2021-09-18 15:56:32 -04004483 <listitem name="{@merges_snapshots=Merge Snapshots}">
bigbiffab76bd72021-10-11 10:17:48 -04004484 <condition var1="tw_virtual_ab.enabled" op="=" var2="1"/>
bigbiffd21252f2021-09-18 15:56:32 -04004485 <actions>
4486 <action function="set">tw_back=advanced</action>
4487 <action function="set">tw_action=mergesnapshots</action>
4488 <action function="set">tw_text1={@merge_snapshots_confirm=Merge Snapshots?}</action>
4489 <action function="set">tw_action_text1={@merging_snapshots=Merging Snapshots...}</action>
4490 <action function="set">tw_complete_text1={@merging_snapshots_complete=Merged Snapshots}</action>
4491 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4492 <action function="page">confirm_action</action>
4493 </actions>
4494 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004495 </listbox>
4496
4497 <button>
z31s1g28f0a922015-11-07 18:50:22 +01004498 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004499 <highlight color="%highlight_color%"/>
4500 <image resource="q_btn_arrow_left"/>
4501 <action function="page">advanced</action>
z31s1g28f0a922015-11-07 18:50:22 +01004502 </button>
4503
4504 <action>
4505 <touch key="home"/>
4506 <action function="page">main</action>
4507 </action>
4508
4509 <action>
4510 <touch key="back"/>
4511 <action function="page">main3</action>
4512 </action>
4513 </page>
4514
Ethan Yonker483e9f42016-01-11 22:21:18 -06004515 <page name="partsdcardsel">
4516 <template name="page"/>
4517
4518 <template name="statusbar"/>
4519
4520 <text style="text_m">
4521 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4522 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
4523 </text>
4524
4525 <partitionlist style="partitionlist_headerless_rb">
4526 <data name="tw_storage_path"/>
4527 <listtype name="storage"/>
4528 </partitionlist>
4529
4530 <text style="text_m_fail">
4531 <condition var1="partitionlisterror" var2="1"/>
4532 <placement x="%center_x%" y="%row9_y%" placement="5"/>
4533 <text>{@invalid_partsd_sel=You must select a removable device}</text>
4534 </text>
4535
4536 <button>
4537 <placement x="%btn4_col2_x%" y="%row11_y%"/>
4538 <highlight color="%highlight_color%"/>
4539 <image resource="q_btn_refresh"/>
4540 <action function="refreshsizes"/>
4541 </button>
4542
4543 <button>
4544 <placement x="%btn4_col3_x%" y="%row11_y%"/>
4545 <highlight color="%highlight_color%"/>
4546 <image resource="q_btn_accept"/>
4547 <actions>
4548 <action function="getpartitiondetails">tw_storage_path</action>
4549 <action function="page">partsdcardcheck</action>
4550 </actions>
4551 </button>
4552
4553 <action>
4554 <touch key="home"/>
4555 <action function="page">main</action>
4556 </action>
4557
4558 <action>
4559 <touch key="back"/>
4560 <action function="page">advanced</action>
4561 </action>
4562 </page>
4563
4564 <page name="partsdcardcheck">
4565 <action>
4566 <condition var1="tw_partition_removable" op="=" var2="1"/>
4567 <actions>
4568 <action function="set">partitionlisterror=0</action>
4569 <action function="page">partsdcard</action>
4570 </actions>
4571 </action>
4572
4573 <action>
4574 <condition var1="tw_partition_removable" op="!=" var2="1"/>
4575 <actions>
4576 <action function="set">partitionlisterror=1</action>
4577 <action function="page">partsdcardsel</action>
4578 </actions>
4579 </action>
4580 </page>
4581
z31s1g28f0a922015-11-07 18:50:22 +01004582 <page name="partsdcard">
4583 <template name="page"/>
4584
4585 <template name="statusbar"/>
4586
4587 <text style="text_m">
4588 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004589 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004590 </text>
4591
4592 <text style="text_m_fail">
4593 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004594 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004595 </text>
4596
4597 <text style="text_m_fail">
4598 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004599 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004600 </text>
4601
4602 <text style="text_m_accent">
4603 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004604 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004605 </text>
4606
4607 <text style="text_m">
4608 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4609 <text>%tw_sdext_size%</text>
4610 </text>
4611
4612 <button style="main_button_quarter_width">
4613 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004614 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004615 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004616 </button>
4617
4618 <button style="main_button_quarter_width">
4619 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004620 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004621 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004622 </button>
4623
4624 <button>
4625 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4626 <highlight color="%highlight_color%"/>
4627 <image resource="q_btn_arrow_right"/>
4628 <action function="page">partsdcard2</action>
4629 </button>
4630
4631 <action>
4632 <touch key="home"/>
4633 <action function="page">main</action>
4634 </action>
4635
4636 <action>
4637 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004638 <action function="page">partsdcardsel</action>
z31s1g28f0a922015-11-07 18:50:22 +01004639 </action>
4640 </page>
4641
4642 <page name="partsdcard2">
4643 <template name="page"/>
4644
4645 <template name="statusbar"/>
4646
4647 <text style="text_m">
4648 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004649 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004650 </text>
4651
4652 <text style="text_m_fail">
4653 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004654 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004655 </text>
4656
4657 <text style="text_m_fail">
4658 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004659 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004660 </text>
4661
4662 <text style="text_m_accent">
4663 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004664 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004665 </text>
4666
4667 <text style="text_m">
4668 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4669 <text>%tw_swap_size%</text>
4670 </text>
4671
4672 <button style="main_button_quarter_width">
4673 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004674 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004675 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004676 </button>
4677
4678 <button style="main_button_quarter_width">
4679 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004680 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004681 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004682 </button>
4683
4684 <button>
4685 <placement x="%col1_x_left%" y="%row11_y%"/>
4686 <highlight color="%highlight_color%"/>
4687 <image resource="q_btn_arrow_left"/>
4688 <action function="page">partsdcard</action>
4689 </button>
4690
4691 <button>
4692 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4693 <highlight color="%highlight_color%"/>
4694 <image resource="q_btn_arrow_right"/>
4695 <action function="page">partsdcard3</action>
4696 </button>
4697
4698 <action>
4699 <touch key="home"/>
4700 <action function="page">main</action>
4701 </action>
4702
4703 <action>
4704 <touch key="back"/>
4705 <action function="page">advanced</action>
4706 </action>
4707 </page>
4708
4709 <page name="partsdcard3">
4710 <template name="page"/>
4711
4712 <template name="statusbar"/>
4713
4714 <text style="text_m">
4715 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004716 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004717 </text>
4718
4719 <text style="text_m_fail">
4720 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004721 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004722 </text>
4723
4724 <text style="text_m_fail">
4725 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004726 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004727 </text>
4728
4729 <text style="text_m_accent">
4730 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004731 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004732 </text>
4733
4734 <text style="text_m">
4735 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4736 <text>%tw_sdpart_file_system%</text>
4737 </text>
4738
4739 <button style="main_button_quarter_width">
4740 <placement x="%indent%" y="%row6_y%"/>
4741 <text>EXT3</text>
4742 <action function="set">tw_sdpart_file_system=ext3</action>
4743 </button>
4744
4745 <button style="main_button_quarter_width">
4746 <placement x="%btn4_col4_x%" y="%row6_y%"/>
4747 <text>EXT4</text>
4748 <action function="set">tw_sdpart_file_system=ext4</action>
4749 </button>
4750
4751 <button>
4752 <placement x="%col1_x_left%" y="%row11_y%"/>
4753 <highlight color="%highlight_color%"/>
4754 <image resource="q_btn_arrow_left"/>
4755 <action function="page">partsdcard2</action>
4756 </button>
4757
4758 <button>
4759 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4760 <highlight color="%highlight_color%"/>
4761 <image resource="q_btn_arrow_right"/>
4762 <action function="page">partsdcard_confirm</action>
4763 </button>
4764
4765 <action>
4766 <touch key="home"/>
4767 <action function="page">main</action>
4768 </action>
4769
4770 <action>
4771 <touch key="back"/>
4772 <action function="page">advanced</action>
4773 </action>
4774 </page>
4775
4776 <page name="partsdcard_confirm">
4777 <template name="page"/>
4778
4779 <template name="statusbar"/>
4780
4781 <text style="text_m">
4782 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004783 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004784 </text>
4785
4786 <text style="text_m_fail">
4787 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004788 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004789 </text>
4790
4791 <text style="text_m_fail">
4792 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004793 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004794 </text>
4795
4796 <text style="text_m_accent">
4797 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004798 <text>{@part_sd_ext_sz=EXT Size:} %tw_sdext_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004799 </text>
4800
4801 <text style="text_m_accent">
4802 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004803 <text>{@part_sd_swap_sz=Swap Size:} %tw_swap_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004804 </text>
4805
4806 <text style="text_m_accent">
4807 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004808 <text>{@file_system=File System:} %tw_sdpart_file_system%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004809 </text>
4810
4811 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004812 <text>{@swipe_part_sd_s=Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004813 <action function="page">partsdcardaction</action>
4814 <actions>
4815 <action function="set">tw_back=partsdcard</action>
4816 <action function="set">tw_action=partitionsd</action>
4817 <action function="set">tw_has_action2=1</action>
4818 <action function="set">tw_action2=set</action>
4819 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004820 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4821 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4822 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004823 <action function="page">action_page</action>
4824 </actions>
4825 </slider>
4826
4827 <action>
4828 <touch key="home"/>
4829 <action function="page">main</action>
4830 </action>
4831
4832 <action>
4833 <touch key="back"/>
4834 <action function="page">advanced</action>
4835 </action>
4836 </page>
4837
4838 <page name="htcdumlock">
4839 <template name="page"/>
4840
4841 <template name="statusbar"/>
4842
4843 <text style="text_m">
4844 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004845 <text>{@advanced_hdr=Advanced} &gt; {@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004846 </text>
4847
4848 <button style="main_button_full_width">
4849 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004850 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004851 <actions>
4852 <action function="set">tw_back=htcdumlock</action>
4853 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004854 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4855 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4856 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4857 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004858 <action function="page">confirm_action</action>
4859 </actions>
4860 </button>
4861
4862 <button style="main_button_full_width">
4863 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004864 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004865 <actions>
4866 <action function="set">tw_back=htcdumlock</action>
4867 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004868 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4869 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4870 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4871 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004872 <action function="page">confirm_action</action>
4873 </actions>
4874 </button>
4875
4876 <button style="main_button_full_width">
4877 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004878 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004879 <actions>
4880 <action function="set">tw_back=htcdumlock</action>
4881 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004882 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4883 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4884 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4885 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004886 <action function="page">confirm_action</action>
4887 </actions>
4888 </button>
4889
4890 <action>
4891 <touch key="home"/>
4892 <action function="page">main</action>
4893 </action>
4894
4895 <action>
4896 <touch key="back"/>
4897 <action function="page">advanced</action>
4898 </action>
4899 </page>
4900
Ethan Yonker53796e72019-01-11 22:49:52 -06004901 <page name="repackselect">
4902 <template name="page"/>
4903
4904 <template name="statusbar"/>
4905
4906 <text style="text_m">
4907 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4908 <text>{@repack_image_hdr=Select Image}</text>
4909 </text>
4910
4911 <fileselector>
4912 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
4913 <text>%tw_zip_location%</text>
4914 <filter extn=".img" folders="1" files="1"/>
4915 <path name="tw_zip_location" default="/sdcard"/>
4916 <data name="tw_filename"/>
4917 <selection name="tw_file"/>
4918 </fileselector>
4919
4920 <button>
4921 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4922 <highlight color="%highlight_color%"/>
4923 <image resource="q_btn_storage"/>
4924 <actions>
4925 <action function="set">tw_storagetext={@install_hdr=Install} &gt; {@select_storage_hdr=Select Storage}</action>
4926 <action function="set">tw_back=install</action>
4927 <action function="page">select_storage</action>
4928 </actions>
4929 </button>
4930
4931 <action>
4932 <conditions>
4933 <condition var1="tw_filename" op="modified"/>
4934 </conditions>
4935 <action function="page">repackconfirm</action>
4936 </action>
4937
4938 <action>
4939 <touch key="back"/>
4940 <action function="page">advanced</action>
4941 </action>
4942
4943 <action>
4944 <touch key="home"/>
4945 <action function="page">main</action>
4946 </action>
4947 </page>
4948
4949 <page name="repackconfirm">
4950 <template name="page"/>
4951
4952 <template name="statusbar"/>
4953
4954 <text style="text_m">
4955 <condition var1="tw_repack_kernel" var2="1"/>
4956 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4957 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4958 </text>
4959
4960 <text style="text_m">
4961 <condition var1="tw_repack_kernel" var2="0"/>
4962 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4963 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4964 </text>
4965
4966 <text style="text_m_accent">
4967 <placement x="%indent%" y="%row2_y%"/>
4968 <text>{@folder=Folder:}</text>
4969 </text>
4970
4971 <text style="text_m">
4972 <placement x="%indent%" y="%row3_y%"/>
4973 <text>%tw_zip_location%</text>
4974 </text>
4975
4976 <text style="text_m_accent">
4977 <placement x="%indent%" y="%row4_y%"/>
4978 <text>{@file=File:}</text>
4979 </text>
4980
4981 <text style="text_m">
4982 <placement x="%indent%" y="%row5_y%"/>
4983 <text>%tw_file%</text>
4984 </text>
4985
4986 <checkbox>
4987 <placement x="%indent%" y="%row7_y%"/>
4988 <text>{@repack_backup_first=Back up existing image first}</text>
4989 <data variable="tw_repack_backup_first"/>
4990 </checkbox>
4991
4992 <slider>
4993 <text>{@swipe_to_install=Swipe to Install}</text>
4994 <actions>
4995 <action function="set">tw_back=advanced</action>
4996 <action function="set">tw_action=repackimage</action>
4997 <action function="set">tw_action_param=/boot</action>
4998 <action function="set">tw_action_text1={@installing=Installing...}</action>
4999 <action function="set">tw_action_text2=</action>
5000 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
5001 <action function="page">action_page</action>
5002 </actions>
5003 </slider>
5004
5005 <action>
5006 <touch key="back"/>
5007 <action function="page">repackselect</action>
5008 </action>
5009
5010 <action>
5011 <touch key="home"/>
5012 <action function="page">main</action>
5013 </action>
5014 </page>
5015
z31s1g28f0a922015-11-07 18:50:22 +01005016 <page name="lock">
5017 <background color="%semi_transparent%"/>
5018
5019 <image>
5020 <image resource="unlock_icon"/>
5021 <placement x="%center_x%" y="%row6_y%" placement="4"/>
5022 </image>
5023
5024 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005025 <text>{@swipe_unlock= Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005026 <action function="overlay"/>
5027 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06005028
5029 <action>
5030 <touch key="power"/>
5031 <action function="togglebacklight"/>
5032 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005033 </page>
5034
5035 <page name="filemanagerlist">
5036 <template name="page"/>
5037
5038 <template name="statusbar"/>
5039
5040 <text style="text_m">
5041 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005042 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005043 </text>
5044
5045 <fileselector>
5046 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
5047 <text>%tw_file_location1%</text>
5048 <filter folders="1" files="1"/>
5049 <path name="tw_file_location1" default="/"/>
5050 <data name="tw_filename1"/>
5051 <selection name="tw_selection1"/>
5052 </fileselector>
5053
5054 <button>
5055 <placement x="%btn4_col4_x%" y="%row11_y%"/>
5056 <highlight color="%highlight_color%"/>
5057 <image resource="q_btn_folder"/>
5058 <actions>
5059 <action function="set">tw_filename1=tw_file_location1</action>
5060 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005061 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005062 <action function="page">filemanageroptions</action>
5063 </actions>
5064 </button>
5065
5066 <action>
5067 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05005068 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005069 <action function="set">tw_fm_isfolder=0</action>
5070 </actions>
5071 </action>
5072
5073 <action>
5074 <touch key="home"/>
5075 <action function="page">main</action>
5076 </action>
5077
5078 <action>
5079 <touch key="back"/>
5080 <action function="page">main3</action>
5081 </action>
5082
5083 <action>
5084 <condition var1="tw_filename1" op="modified"/>
5085 <action function="page">filemanageroptions</action>
5086 </action>
5087 </page>
5088
5089 <page name="filemanageroptions">
5090 <template name="page"/>
5091
5092 <template name="statusbar"/>
5093
5094 <text style="text_m">
5095 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005096 <text>%tw_fm_type% &gt; %tw_filename1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005097 </text>
5098
5099 <button style="main_button">
5100 <condition var1="tw_fm_isfolder" var2="0"/>
5101 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005102 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005103 <actions>
5104 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005105 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005106 <action function="page">choosedestinationfolder</action>
5107 </actions>
5108 </button>
5109
5110 <button style="main_button">
5111 <condition var1="tw_fm_isfolder" var2="1"/>
5112 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005113 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005114 <actions>
5115 <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 -05005116 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005117 <action function="page">choosedestinationfolder</action>
5118 </actions>
5119 </button>
5120
5121 <button style="main_button">
5122 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005123 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005124 <actions>
5125 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005126 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005127 <action function="page">choosedestinationfolder</action>
5128 </actions>
5129 </button>
5130
5131 <button style="main_button">
5132 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005133 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005134 <actions>
5135 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005136 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005137 <action function="set">tw_fm_text2=</action>
5138 <action function="set">tw_fm_text3=</action>
5139 <action function="set">tw_include_text3=0</action>
5140 <action function="set">tw_back=filemanageroptions</action>
5141 <action function="page">filemanagerconfirm</action>
5142 </actions>
5143 </button>
5144
5145 <button style="main_button">
5146 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005147 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005148 <actions>
5149 <action function="set">tw_filemanager_rename=0000</action>
5150 <action function="set">tw_fm_text2=</action>
5151 <action function="set">tw_fm_text3=</action>
5152 <action function="set">tw_include_text3=0</action>
5153 <action function="set">tw_back=filemanageroptions</action>
5154 <action function="page">filemanagerchmod</action>
5155 </actions>
5156 </button>
5157
5158 <button style="main_button">
5159 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005160 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005161 <actions>
5162 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005163 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005164 <action function="set">tw_fm_text2=</action>
5165 <action function="set">tw_fm_text3=</action>
5166 <action function="set">tw_include_text3=0</action>
5167 <action function="set">tw_back=filemanageroptions</action>
5168 <action function="page">filemanagerconfirm</action>
5169 </actions>
5170 </button>
5171
5172 <button style="main_button">
5173 <condition var1="tw_fm_isfolder" var2="0"/>
5174 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005175 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005176 <actions>
5177 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005178 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005179 <action function="set">tw_filemanager_command=mv</action>
5180 <action function="page">filemanagerrenamefile</action>
5181 </actions>
5182 </button>
5183
5184 <button style="main_button">
5185 <condition var1="tw_fm_isfolder" var2="1"/>
5186 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005187 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005188 <actions>
5189 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005190 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005191 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
5192 <action function="page">filemanagerrenamefolder</action>
5193 </actions>
5194 </button>
5195
5196 <action>
5197 <touch key="home"/>
5198 <action function="page">main</action>
5199 </action>
5200
5201 <action>
5202 <touch key="back"/>
5203 <action function="page">filemanagerlist</action>
5204 </action>
5205 </page>
5206
5207 <page name="choosedestinationfolder">
5208 <template name="page"/>
5209
5210 <template name="statusbar"/>
5211
5212 <text style="text_m">
5213 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005214 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005215 </text>
5216
5217 <fileselector>
5218 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
5219 <text>%tw_file_location2%</text>
5220 <filter folders="1" files="0"/>
5221 <path name="tw_file_location2" default="/"/>
5222 <data name="tw_filename2"/>
5223 <selection name="tw_selection2"/>
5224 </fileselector>
5225
5226 <button>
5227 <placement x="%btn4_col4_x%" y="%row11_y%"/>
5228 <highlight color="%highlight_color%"/>
5229 <image resource="q_btn_folder"/>
5230 <actions>
5231 <action function="set">tw_fm_text2=to</action>
5232 <action function="set">tw_fm_text3=%tw_file_location2%</action>
5233 <action function="set">tw_include_text3=1</action>
5234 <action function="set">tw_back=filemanageroptions</action>
5235 <action function="page">filemanagerconfirm</action>
5236 </actions>
5237 </button>
5238
5239 <action>
5240 <touch key="home"/>
5241 <action function="page">main</action>
5242 </action>
5243
5244 <action>
5245 <touch key="back"/>
5246 <action function="page">filemanageroptions</action>
5247 </action>
5248 </page>
5249
5250 <page name="filemanagerrenamefile">
5251 <template name="page"/>
5252
5253 <template name="statusbar"/>
5254
5255 <text style="text_m">
5256 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005257 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005258 </text>
5259
5260 <text style="text_m_accent">
5261 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005262 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005263 </text>
5264
5265 <input>
5266 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5267 <text>%tw_filemanager_rename%</text>
5268 <data name="tw_filemanager_rename"/>
5269 <restrict minlen="1" maxlen="128"/>
5270 <actions>
5271 <action function="set">tw_fm_text2=to</action>
5272 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
5273 <action function="set">tw_include_text3=1</action>
5274 <action function="set">tw_back=filemanageroptions</action>
5275 <action function="page">filemanagerconfirm</action>
5276 </actions>
5277 </input>
5278
5279 <fill color="%accent_color%">
5280 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
5281 </fill>
5282
5283 <button style="main_button_half_height">
5284 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005285 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005286 <action function="page">filemanageroptions</action>
5287 </button>
5288
5289 <template name="keyboardtemplate"/>
5290
5291 <action>
5292 <touch key="home"/>
5293 <action function="page">main</action>
5294 </action>
5295
5296 <action>
5297 <touch key="back"/>
5298 <action function="page">filemanageroptions</action>
5299 </action>
5300 </page>
5301
5302 <page name="filemanagerrenamefolder">
5303 <template name="page"/>
5304
5305 <template name="statusbar"/>
5306
5307 <text style="text_m">
5308 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005309 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005310 </text>
5311
5312 <text style="text_m_accent">
5313 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005314 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005315 </text>
5316
5317 <input>
5318 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5319 <text>%tw_filemanager_rename%</text>
5320 <data name="tw_filemanager_rename"/>
5321 <restrict minlen="1" maxlen="128"/>
5322 <actions>
5323 <action function="set">tw_fm_text2=to</action>
5324 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
5325 <action function="set">tw_include_text3=1</action>
5326 <action function="set">tw_back=filemanageroptions</action>
5327 <action function="page">filemanagerconfirm</action>
5328 </actions>
5329 </input>
5330
5331 <fill color="%accent_color%">
5332 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5333 </fill>
5334
5335 <button style="main_button_half_height">
5336 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005337 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005338 <action function="page">filemanageroptions</action>
5339 </button>
5340
5341 <template name="keyboardtemplate"/>
5342
5343 <action>
5344 <touch key="home"/>
5345 <action function="page">main</action>
5346 </action>
5347
5348 <action>
5349 <touch key="back"/>
5350 <action function="page">filemanageroptions</action>
5351 </action>
5352 </page>
5353
5354 <page name="filemanagerchmod">
5355 <template name="page"/>
5356
5357 <template name="statusbar"/>
5358
5359 <text style="text_m">
5360 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005361 <text>{@fm_hdr=File Manager} &gt; {@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005362 </text>
5363
5364 <text style="text_m_accent">
5365 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005366 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005367 </text>
5368
5369 <input>
5370 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5371 <text>%tw_filemanager_rename%</text>
5372 <data name="tw_filemanager_rename"/>
5373 <restrict minlen="3" maxlen="4" allow="0123456789"/>
5374 <actions>
5375 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
5376 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
5377 <action function="set">tw_back=filemanageroptions</action>
5378 <action function="page">filemanagerconfirm</action>
5379 </actions>
5380 </input>
5381
5382 <fill color="%accent_color%">
5383 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5384 </fill>
5385
5386 <button style="main_button_half_height">
5387 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005388 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005389 <action function="page">filemanageroptions</action>
5390 </button>
5391
5392 <template name="keyboardtemplate"/>
5393
5394 <action>
5395 <touch key="home"/>
5396 <action function="page">main</action>
5397 </action>
5398
5399 <action>
5400 <touch key="back"/>
5401 <action function="page">filemanageroptions</action>
5402 </action>
5403 </page>
5404
5405 <page name="filemanagerconfirm">
5406 <template name="page"/>
5407
5408 <template name="statusbar"/>
5409
5410 <text style="text_m">
5411 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005412 <text>{@fm_hdr=File Manager} &gt; {@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005413 </text>
5414
5415 <text style="text_m_accent">
5416 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5417 <text>%tw_fm_text1%</text>
5418 </text>
5419
5420 <text style="text_m">
5421 <placement x="%center_x%" y="%row3_y%" placement="5"/>
5422 <text>%tw_filename1%</text>
5423 </text>
5424
5425 <text style="text_m_accent">
5426 <placement x="%center_x%" y="%row5_y%" placement="5"/>
5427 <text>%tw_fm_text2%</text>
5428 </text>
5429
5430 <text style="text_m">
5431 <placement x="%center_x%" y="%row6_y%" placement="5"/>
5432 <text>%tw_fm_text3%</text>
5433 </text>
5434
5435 <text style="text_m">
5436 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005437 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005438 </text>
5439
5440 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005441 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005442 <action function="page">filemanageraction</action>
5443 </slider>
5444
5445 <action>
5446 <touch key="back"/>
5447 <action function="page">%tw_back%</action>
5448 </action>
5449
5450 <action>
5451 <touch key="home"/>
5452 <action function="page">main</action>
5453 </action>
5454 </page>
5455
5456 <page name="filemanageraction">
5457 <template name="page"/>
5458
5459 <template name="statusbar"/>
5460
5461 <text style="text_m">
5462 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005463 <text>{@fm_hdr=File Manager} &gt; %tw_fm_text1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005464 </text>
5465
5466 <template name="console"/>
5467
5468 <template name="progress_bar"/>
5469
5470 <action>
5471 <conditions>
5472 <condition var1="tw_operation_state" var2="1"/>
5473 <condition var1="tw_operation_status" var2="0"/>
5474 </conditions>
5475 <actions>
5476 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005477 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005478 <action function="page">action_complete</action>
5479 </actions>
5480 </action>
5481
5482 <action>
5483 <conditions>
5484 <condition var1="tw_operation_state" var2="1"/>
5485 <condition var1="tw_operation_status" op="!=" var2="0"/>
5486 </conditions>
5487 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05005488 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005489 <action function="page">action_complete</action>
5490 </actions>
5491 </action>
5492
5493 <action>
5494 <condition var1="tw_include_text3" var2="0"/>
5495 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
5496 </action>
5497
5498 <action>
5499 <condition var1="tw_include_text3" var2="1"/>
5500 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
5501 </action>
5502 </page>
5503
5504 <page name="decrypt">
5505 <template name="page"/>
5506
5507 <template name="statusbar"/>
5508
5509 <action>
5510 <condition var1="tw_crypto_pwtype" var2="2"/>
5511 <action function="page">decrypt_pattern</action>
5512 </action>
5513
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04005514 <action>
5515 <condition var1="tw_crypto_pwtype" var2="3"/>
5516 <action function="page">decrypt_pin</action>
5517 </action>
5518
z31s1g28f0a922015-11-07 18:50:22 +01005519 <text style="text_m">
5520 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005521 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005522 </text>
5523
5524 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04005525 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01005526 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005527 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005528 </text>
5529
Noah Jacobson81d638d2019-04-28 00:10:07 -04005530 <text style="text_m_accent">
5531 <condition var1="tw_is_fbe" var2="1"/>
5532 <placement x="%col1_x_left%" y="%row1_y%"/>
5533 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
5534 </text>
5535
z31s1g28f0a922015-11-07 18:50:22 +01005536 <input>
5537 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5538 <text>%tw_crypto_display%</text>
5539 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
5540 <restrict minlen="1" maxlen="254"/>
5541 <action function="page">trydecrypt</action>
5542 </input>
5543
5544 <fill color="%accent_color%">
5545 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5546 </fill>
5547
5548 <fill color="%text_fail_color%">
5549 <condition var1="tw_password_fail" var2="1"/>
5550 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5551 </fill>
5552
5553 <text style="text_m_fail">
5554 <condition var1="tw_password_fail" var2="1"/>
5555 <placement x="%col1_x_left%" y="%row3_input_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08005556 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005557 </text>
5558
5559 <button style="main_button_half_height">
z31s1g608d7ff2016-01-18 19:47:25 +01005560 <placement x="%col1_x_left%" y="%row4_y%"/>
5561 <text>{@sel_lang_btn=Select Language}</text>
5562 <action function="page">settings_language</action>
5563 </button>
5564
5565 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01005566 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005567 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05005568 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01005569 </button>
5570
5571 <template name="keyboardtemplate"/>
5572 </page>
5573
5574 <page name="decrypt_pattern">
5575 <template name="page"/>
5576
5577 <template name="statusbar"/>
5578
Aleksa Saraib25a1832015-12-31 17:36:00 +01005579 <action>
5580 <action function="set">tw_gui_pattern_grid_size=3</action>
5581 </action>
5582
z31s1g28f0a922015-11-07 18:50:22 +01005583 <text style="text_m">
5584 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005585 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005586 </text>
5587
5588 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04005589 <condition var1="tw_is_fbe" op="!=" var2="1"/>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005590 <condition var1="tw_password_fail" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01005591 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005592 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005593 </text>
5594
Noah Jacobson81d638d2019-04-28 00:10:07 -04005595 <text style="text_m_accent">
5596 <condition var1="tw_is_fbe" var2="1"/>
5597 <condition var1="tw_password_fail" op="!=" var2="1"/>
5598 <placement x="%center_x%" y="%row5_y%" placement="5"/>
5599 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
5600 </text>
5601
Aleksa Saraib25a1832015-12-31 17:36:00 +01005602 <text style="text_m_fail">
5603 <condition var1="tw_password_fail" var2="1"/>
5604 <placement x="%center_x%" y="%row5_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08005605 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005606 </text>
5607
z31s1g28f0a922015-11-07 18:50:22 +01005608 <text style="text_m">
5609 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005610 <text>{@back_cancel=Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005611 </text>
5612
5613 <patternpassword>
5614 <placement x="%pattern_x%" y="%row2_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005615 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
5616 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
5617 <data name="tw_crypto_password"/>
5618 <action function="page">trydecrypt</action>
5619 </patternpassword>
5620
5621 <fill color="#000000">
5622 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5623 </fill>
5624
5625 <button>
5626 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5627 <image resource="back"/>
5628 <condition var1="tw_busy" var2="0"/>
Captain Throwback89b56a12021-02-10 18:25:07 -05005629 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01005630 </button>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005631
5632 <button>
5633 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5634 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5635 <image resource="grid_less"/>
5636 <action function="set">tw_gui_pattern_grid_size=3</action>
5637 </button>
5638
5639 <button>
5640 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5641 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5642 <image resource="grid_less"/>
5643 <action function="set">tw_gui_pattern_grid_size=3</action>
5644 </button>
5645
5646 <button>
5647 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5648 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5649 <image resource="grid_less"/>
5650 <action function="set">tw_gui_pattern_grid_size=4</action>
5651 </button>
5652
5653 <button>
5654 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5655 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5656 <image resource="grid_less"/>
5657 <action function="set">tw_gui_pattern_grid_size=5</action>
5658 </button>
5659
5660 <button>
5661 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5662 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5663 <image resource="grid_more"/>
5664 <action function="set">tw_gui_pattern_grid_size=4</action>
5665 </button>
5666
5667 <button>
5668 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5669 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5670 <image resource="grid_more"/>
5671 <action function="set">tw_gui_pattern_grid_size=5</action>
5672 </button>
5673
5674 <button>
5675 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5676 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5677 <image resource="grid_more"/>
5678 <action function="set">tw_gui_pattern_grid_size=6</action>
5679 </button>
5680
5681 <button>
5682 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5683 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5684 <image resource="grid_more"/>
5685 <action function="set">tw_gui_pattern_grid_size=6</action>
5686 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005687 </page>
5688
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04005689 <page name="decrypt_pin">
5690 <template name="page"/>
5691
5692 <template name="statusbar"/>
5693
5694 <text style="text_m">
5695 <placement x="%col1_x_left%" y="%row1_header_y%"/>
5696 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
5697 </text>
5698
5699 <text style="text_m_accent">
5700 <condition var1="tw_is_fbe" op="!=" var2="1"/>
5701 <placement x="%col1_x_left%" y="%row1_y%"/>
5702 <text>{@decrypt_data_enter_pass=Enter PIN:}</text>
5703 </text>
5704
5705 <text style="text_m_accent">
5706 <condition var1="tw_is_fbe" var2="1"/>
5707 <placement x="%col1_x_left%" y="%row1_y%"/>
5708 <text>{@decrypt_data_enter_pass_fbe=Enter PIN for User [%tw_crypto_user_id%]}</text>
5709 </text>
5710
5711 <input>
5712 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5713 <text>%tw_crypto_display%</text>
5714 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
5715 <restrict minlen="1" maxlen="254"/>
5716 <action function="page">trydecrypt</action>
5717 </input>
5718
5719 <fill color="%accent_color%">
5720 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5721 </fill>
5722
5723 <fill color="%text_fail_color%">
5724 <condition var1="tw_password_fail" var2="1"/>
5725 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5726 </fill>
5727
5728 <text style="text_m_fail">
5729 <condition var1="tw_password_fail" var2="1"/>
5730 <placement x="%col1_x_left%" y="%row3_input_y%"/>
5731 <text>{@decrypt_data_failed=PIN failed, please try again!}</text>
5732 </text>
5733
5734 <button style="main_button_half_height">
5735 <placement x="%col1_x_left%" y="%row4_y%"/>
5736 <text>{@sel_lang_btn=Select Language}</text>
5737 <action function="page">settings_language</action>
5738 </button>
5739
5740 <button style="main_button_half_height">
5741 <placement x="%col1_x_right%" y="%row4_y%"/>
5742 <text>{@cancel_btn=Cancel}</text>
5743 <action function="page">canceldecrypt</action>
5744 </button>
5745
5746 <template name="keyboardnum"/>
5747 </page>
5748
z31s1g28f0a922015-11-07 18:50:22 +01005749 <page name="trydecrypt">
5750 <template name="page"/>
5751
5752 <template name="statusbar"/>
5753
5754 <text style="text_m">
5755 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005756 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005757 </text>
5758
5759 <template name="console"/>
5760
5761 <template name="progress_bar"/>
5762
5763 <action>
5764 <action function="decrypt"/>
5765 </action>
5766
5767 <action>
5768 <conditions>
5769 <condition var1="tw_operation_state" var2="1"/>
5770 <condition var1="tw_operation_status" op="!=" var2="0"/>
5771 </conditions>
5772 <actions>
5773 <action function="set">tw_password_fail=1</action>
5774 <action function="page">decrypt</action>
5775 </actions>
5776 </action>
5777
5778 <action>
5779 <conditions>
5780 <condition var1="tw_operation_state" var2="1"/>
5781 <condition var1="tw_operation_status" op="=" var2="0"/>
5782 </conditions>
5783 <actions>
5784 <action function="set">tw_page_done=1</action>
5785 <action function="page">main</action>
5786 </actions>
5787 </action>
5788 </page>
5789
Captain Throwback89b56a12021-02-10 18:25:07 -05005790 <page name="canceldecrypt">
5791 <template name="page"/>
5792
5793 <template name="statusbar"/>
5794
5795 <text style="text_m">
5796 <placement x="%col1_x_left%" y="%row1_header_y%"/>
5797 <text>{@cancel_btn=Cancel} &gt; {@refresh_sizes_btn=Refresh Sizes}</text>
5798 </text>
5799
5800 <template name="console"/>
5801
5802 <template name="progress_bar"/>
5803
5804 <action>
5805 <action function="refreshsizes"/>
5806 </action>
5807
5808 <action>
5809 <conditions>
5810 <condition var1="tw_operation_state" var2="1"/>
5811 </conditions>
5812 <actions>
5813 <action function="set">tw_page_done=1</action>
5814 <action function="page">main</action>
5815 </actions>
5816 </action>
5817 </page>
5818
z31s1g28f0a922015-11-07 18:50:22 +01005819 <page name="terminalcommand">
z31s1g56189522016-01-13 19:12:40 +01005820 <terminal>
5821 <condition var1="tw_hide_kb" var2="0"/>
5822 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_s_height%"/>
5823 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005824
z31s1g56189522016-01-13 19:12:40 +01005825 <terminal>
5826 <condition var1="tw_hide_kb" var2="1"/>
5827 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_l_height%"/>
5828 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005829
z31s1g56189522016-01-13 19:12:40 +01005830 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005831
5832 <template name="keyboardtemplate"/>
5833
z31s1g608d7ff2016-01-18 19:47:25 +01005834 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01005835 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01005836 </fill>
z31s1g56189522016-01-13 19:12:40 +01005837
z31s1g608d7ff2016-01-18 19:47:25 +01005838 <button>
z31s1g56189522016-01-13 19:12:40 +01005839 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5840 <image resource="back" />
5841 <condition var1="tw_busy" var2="0" />
5842 <actions>
5843 <action function="set">tw_hide_kb=0</action>
5844 <action function="key">back</action>
5845 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005846 </button>
z31s1g56189522016-01-13 19:12:40 +01005847
z31s1g608d7ff2016-01-18 19:47:25 +01005848 <button>
z31s1g56189522016-01-13 19:12:40 +01005849 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5850 <image resource="home" />
5851 <condition var1="tw_busy" var2="0" />
5852 <actions>
5853 <action function="set">tw_hide_kb=0</action>
5854 <action function="key">home</action>
5855 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005856 </button>
z31s1g56189522016-01-13 19:12:40 +01005857
z31s1g608d7ff2016-01-18 19:47:25 +01005858 <button>
z31s1g56189522016-01-13 19:12:40 +01005859 <condition var1="tw_hide_kb" var2="0"/>
5860 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5861 <image resource="kb_hide" />
5862 <condition var1="tw_busy" var2="0" />
5863 <actions>
5864 <action function="set">tw_hide_kb=1</action>
5865 <action function="page">terminalcommand</action>
5866 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005867 </button>
z31s1g56189522016-01-13 19:12:40 +01005868
z31s1g608d7ff2016-01-18 19:47:25 +01005869 <button>
z31s1g56189522016-01-13 19:12:40 +01005870 <condition var1="tw_hide_kb" var2="1"/>
5871 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5872 <image resource="kb_show" />
5873 <condition var1="tw_busy" var2="0" />
5874 <actions>
5875 <action function="set">tw_hide_kb=0</action>
5876 <action function="page">terminalcommand</action>
5877 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005878 </button>
z31s1g56189522016-01-13 19:12:40 +01005879
z31s1g28f0a922015-11-07 18:50:22 +01005880 <action>
5881 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005882 <actions>
5883 <action function="set">tw_hide_kb=0</action>
5884 <action function="page">main</action>
5885 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005886 </action>
5887
5888 <action>
5889 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005890 <actions>
5891 <action function="set">tw_hide_kb=0</action>
5892 <action function="page">advanced</action>
5893 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005894 </action>
z31s1g56189522016-01-13 19:12:40 +01005895
z31s1g608d7ff2016-01-18 19:47:25 +01005896 <action>
z31s1g56189522016-01-13 19:12:40 +01005897 <touch key="power+voldown" />
5898 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01005899 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005900 </page>
5901
5902 <page name="sideload">
5903 <template name="page"/>
5904
5905 <template name="statusbar"/>
5906
5907 <text style="text_m">
5908 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005909 <text>{@install_hdr=Install} &gt; {@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005910 </text>
5911
5912 <text style="text_m_accent">
5913 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005914 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005915 </text>
5916
5917 <checkbox>
5918 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005919 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005920 <data variable="tw_wipe_dalvik"/>
5921 </checkbox>
5922
5923 <checkbox>
5924 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005925 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005926 <data variable="tw_wipe_cache"/>
5927 </checkbox>
5928
5929 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005930 <text>{@swipe_sideload= Start}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005931 <actions>
5932 <action function="set">tw_back=install_type</action>
5933 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005934 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5935 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5936 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005937 <action function="set">tw_has_cancel=1</action>
5938 <action function="set">tw_show_reboot=1</action>
5939 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5940 <action function="page">action_page</action>
5941 </actions>
5942 </slider>
5943
5944 <action>
5945 <touch key="home"/>
5946 <action function="page">main</action>
5947 </action>
5948
5949 <action>
5950 <touch key="back"/>
5951 <action function="page">install_type</action>
5952 </action>
5953 </page>
5954
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005955 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005956 <template name="page"/>
5957
5958 <template name="statusbar"/>
5959
5960 <text style="text_m">
5961 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005962 <text>{@advanced_hdr=Advanced} &gt; {@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005963 </text>
5964
5965 <text style="text_m_accent">
5966 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005967 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005968 </text>
5969
z31s1g28f0a922015-11-07 18:50:22 +01005970 <text style="text_m_fail">
5971 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005972 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005973 </text>
5974
5975 <text style="text_m_fail">
5976 <placement x="%center_x%" y="%row7a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005977 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005978 </text>
5979
5980 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005981 <text>{@swipe_fix_contexts= Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005982 <actions>
5983 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005984 <action function="set">tw_action=fixcontexts</action>
5985 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5986 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005987 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005988 <action function="set">tw_show_reboot=1</action>
5989 <action function="page">action_page</action>
5990 </actions>
5991 </slider>
5992
5993 <action>
5994 <touch key="home"/>
5995 <action function="page">main</action>
5996 </action>
5997
5998 <action>
5999 <touch key="back"/>
6000 <action function="page">advanced</action>
6001 </action>
6002 </page>
6003
z31s1g28f0a922015-11-07 18:50:22 +01006004 <page name="slideout">
6005 <fill color="%background_color%">
6006 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
6007 </fill>
6008
6009 <console>
6010 <placement x="%indent%" y="%row1_y%" w="%content_width%" h="%slideout_height%"/>
6011 </console>
6012
6013 <fill color="%fileselector_linecolor%">
6014 <placement x="%indent%" y="row1_y" w="%content_width%" h="input_line_width" placement="1"/>
6015 </fill>
6016
6017 <fill color="%fileselector_linecolor%">
6018 <placement x="%indent%" y="row15a_y" w="%content_width%" h="input_line_width"/>
6019 </fill>
6020
6021 <button>
6022 <fill color="%transparent%"/>
6023 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
6024 <action function="overlay"/>
6025 </button>
6026
6027 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06006028 <touch key="power"/>
6029 <action function="togglebacklight"/>
6030 </action>
6031
6032 <action>
z31s1g28f0a922015-11-07 18:50:22 +01006033 <touch key="power+voldown"/>
6034 <action function="screenshot"/>
6035 </action>
6036 </page>
6037
6038 <page name="select_storage">
6039 <template name="page"/>
6040
6041 <template name="statusbar"/>
6042
6043 <text style="text_m">
6044 <placement x="%col1_x_left%" y="%row1_header_y%"/>
6045 <text>%tw_storagetext%</text>
6046 </text>
6047
6048 <partitionlist style="partitionlist_headerless_rb">
6049 <data name="tw_storage_path"/>
6050 <listtype name="storage"/>
6051 </partitionlist>
6052
6053 <button>
6054 <placement x="%btn4_col2_x%" y="%row11_y%"/>
6055 <highlight color="%highlight_color%"/>
6056 <image resource="q_btn_refresh"/>
6057 <actions>
6058 <action function="refreshsizes"/>
6059 <action function="page">select_storage</action>
6060 </actions>
6061 </button>
6062
6063 <button>
6064 <placement x="%btn4_col3_x%" y="%row11_y%"/>
6065 <highlight color="%highlight_color%"/>
6066 <image resource="q_btn_accept"/>
6067 <actions>
6068 <action function="set">tw_clear_destination=%tw_back%</action>
6069 <action function="page">clear_vars</action>
6070 </actions>
6071 </button>
6072
6073 <action>
6074 <touch key="power+voldown"/>
6075 <action function="screenshot"/>
6076 </action>
6077 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04006078
6079 <page name="decrypt_users">
6080 <template name="page"/>
6081
6082 <text style="text_l">
6083 <placement x="%col1_x_header%" y="%row3_header_y%"/>
6084 <text>{@decrypt_users=Decrypt Users}</text>
6085 </text>
6086
6087 <text style="text_m_accent">
6088 <placement x="%center_x%" y="%row2_y%" placement="5"/>
6089 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
6090 </text>
6091
6092 <listbox>
6093 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
6094 <text>{@select_user=Select User}</text>
6095 <icon selected="radio_true" unselected="radio_false" />
6096 <data name="tw_crypto_user_id" />
6097 </listbox>
6098
6099 <button style="main_button_half_height">
6100 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
6101 <text>{@decrypt_users=Decrypt Users}</text>
6102 <action function="set">tw_crypto_password=</action>
6103 <action function="set">tw_password_fail=0</action>
6104 <action function="page">decrypt</action>
6105 </button>
6106
6107 <action>
6108 <touch key="home"/>
6109 <action function="page">main</action>
6110 </action>
6111
6112 <action>
6113 <touch key="back"/>
6114 <action function="page">advanced</action>
6115 </action>
6116 </page>
epicXa721f952021-01-04 13:01:31 +05306117
6118 <page name="changeTwrpFolder">
6119 <template name="page"/>
6120
6121 <template name="statusbar"/>
6122
6123 <text style="text_m">
6124 <placement x="%col1_x_left%" y="%row1_header_y%"/>
6125 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
6126 </text>
6127
6128 <text style="text_m_accent">
6129 <placement x="%col1_x_left%" y="%row1_y%"/>
6130 <text>{@name=Name:}</text>
6131 </text>
6132
6133 <input>
6134 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
6135 <text>%tw_custom_folder%</text>
6136 <data name="tw_custom_folder"/>
6137 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
6138 <actions>
6139 <action function="set">tw_back=changeTwrpFolder</action>
6140 <action function="set">tw_action=applycustomtwrpfolder</action>
6141 <action function="set">tw_action_param=%tw_custom_folder%</action>
6142 <action function="set">tw_text1={@confirm_action=Confirm}</action>
6143 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
6144 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
6145 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
6146 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
6147 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
6148 <action function="set">tw_existpage=changeTwrpFolder</action>
6149 <action function="set">tw_notexistpage=confirm_action</action>
6150 <action function="page">filecheck</action>
6151 </actions>
6152 </input>
6153
6154 <fill color="%accent_color%">
6155 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
6156 </fill>
6157
6158 <fill color="%text_fail_color%">
6159 <condition var1="tw_fileexists" var2="1"/>
6160 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
6161 </fill>
6162
6163 <text style="text_m_fail">
6164 <condition var1="tw_fileexists" var2="1"/>
6165 <placement x="%col1_x_left%" y="%row3_input_y%"/>
6166 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
6167 </text>
6168
6169 <button style="main_button_half_width_low">
6170 <placement x="%col1_x_left%" y="%row4_y%"/>
6171 <text>{@cancel_btn=Cancel}</text>
6172 <action function="page">advanced2</action>
6173 </button>
6174
6175 <button style="main_button_half_height">
6176 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
6177 <placement x="%col1_x_right%" y="%row4_y%"/>
6178 <text>{@restore_defaults_btn=Restore Defaults}</text>
6179 <actions>
6180 <action function="set">tw_back=changeTwrpFolder</action>
6181 <action function="set">tw_action=applycustomtwrpfolder</action>
6182 <action function="set">tw_action_param=TWRP</action>
6183 <action function="set">tw_text1={@confirm_action=Confirm}</action>
6184 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
6185 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
6186 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
6187 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
6188 <action function="set">tw_filecheck=/sdcard/TWRP</action>
6189 <action function="set">tw_existpage=changeTwrpFolder</action>
6190 <action function="set">tw_notexistpage=confirm_action</action>
6191 <action function="page">filecheck</action>
6192 </actions>
6193 </button>
6194
6195 <template name="keyboardtemplate"/>
6196
6197 <action>
6198 <touch key="home"/>
6199 <actions>
6200 <action function="page">main</action>
6201 </actions>
6202 </action>
6203
6204 <action>
6205 <touch key="back"/>
6206 <actions>
6207 <action function="page">advanced2</action>
6208 </actions>
6209 </action>
6210 </page>
bigbiff8f5fad32021-11-03 20:39:02 -04006211
Captain Throwback02e74572022-01-10 12:55:05 -05006212 <page name="restore_keymaster">
bigbiff8f5fad32021-11-03 20:39:02 -04006213 <template name="page"/>
6214 <text style="text_m_accent">
6215 <condition var1="tw_crypto_pwtype" var2="1"/>
6216 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Captain Throwback02e74572022-01-10 12:55:05 -05006217 <text>{@restore_with_pin_password1=PIN/Password is enabled}</text>
bigbiff8f5fad32021-11-03 20:39:02 -04006218 </text>
6219 <text style="text_m_accent">
6220 <condition var1="tw_crypto_pwtype" var2="1"/>
6221 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Captain Throwback02e74572022-01-10 12:55:05 -05006222 <text>{@restore_with_pin_password2=PIN/Password should be disabled before restore}</text>
bigbiff8f5fad32021-11-03 20:39:02 -04006223 </text>
6224 <text style="text_l">
6225 <condition var1="tw_crypto_pwtype" var2="1"/>
6226 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Captain Throwback02e74572022-01-10 12:55:05 -05006227 <text>{@restore_pin_password=Restore While PIN/Password Enabled?}</text>
bigbiff8f5fad32021-11-03 20:39:02 -04006228 </text>
6229 <text style="text_m_accent">
6230 <condition var1="tw_crypto_pwtype" var2="2"/>
6231 <placement x="%center_x%" y="%row1_y%" placement="5"/>
6232 <text>{@restore_with_pattern1=Pattern is enabled}</text>
6233 </text>
6234 <text style="text_m_accent">
6235 <condition var1="tw_crypto_pwtype" var2="2"/>
6236 <placement x="%center_x%" y="%row2_y%" placement="5"/>
6237 <text>{@restore_with_pattern2=Pattern should be disabled before restore}</text>
6238 </text>
6239 <text style="text_l">
6240 <condition var1="tw_crypto_pwtype" var2="2"/>
6241 <placement x="%center_x%" y="%row3_y%" placement="5"/>
6242 <text>{@restore_pattern=Restore While Pattern Enabled?}</text>
6243 </text>
6244
6245 <text style="text_m_accent">
6246 <condition var1="tw_crypto_pwtype" var2="2"/>
6247 <placement x="%center_x%" y="%row2_y%" placement="5"/>
6248 <text>{@restore_with_pin1=PIN is enabled}</text>
6249 </text>
6250
6251 <text style="text_m_accent">
6252 <condition var1="tw_crypto_pwtype" var2="3"/>
6253 <placement x="%center_x%" y="%row2_y%" placement="5"/>
6254 <text>{@restore_with_pin2=PIN should be disabled before restore}</text>
6255 </text>
6256
6257 <text style="text_l">
6258 <condition var1="tw_crypto_pwtype" var2="3"/>
6259 <placement x="%center_x%" y="%row3_y%" placement="5"/>
6260 <text>{@restore_pin=Restore While PIN Enabled?}</text>
6261 </text>
6262
6263 <slider>
6264 <text>{@continue_restore_encrypted=Continue Restore?}</text>
6265 <actions>
6266 <action function="page">restore_force</action>
6267 </actions>
6268 </slider>
6269 <action>
6270 <touch key="home"/>
6271 <action function="page">main</action>
6272 </action>
6273 <action>
6274 <touch key="back"/>
6275 <actions>
6276 <action function="page">main</action>
6277 </actions>
6278 </action>
6279 </page>
z31s1g28f0a922015-11-07 18:50:22 +01006280 </pages>
6281</recovery>