blob: 78677cbfb772fd97d089435af481430d266434a0 [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_half_height">
42 <highlight color="%highlight_color%"/>
43 <font resource="font_m" color="%text_button_color%"/>
44 <image resource="main_button_half_height"/>
45 </style>
46
47 <style name="main_button_half_height_full_width">
48 <highlight color="%highlight_color%"/>
49 <font resource="font_m" color="%text_button_color%"/>
50 <image resource="main_button_half_height_full_width"/>
51 </style>
52
53 <style name="button_third_width">
54 <highlight color="%highlight_color%"/>
55 <font resource="font_m" color="%text_button_color%"/>
56 <image resource="tab_3"/>
57 </style>
58
59 <style name="button_quarter_width">
60 <highlight color="%highlight_color%"/>
61 <font resource="font_m" color="%text_button_color%"/>
62 <image resource="tab_4"/>
63 </style>
64
65 <style name="fab">
66 <highlight color="%highlight_color%"/>
67 <placement x="%indent_right%" y="%row21a_y%" placement="1"/>
68 <font resource="font_m" color="%button_text_color%"/>
69 </style>
70
71 <style name="tab">
72 <highlight color="%highlight_color%"/>
z31s1g56a7a992016-01-23 17:06:40 +010073 <fill color="%transparent%"/>
z31s1g28f0a922015-11-07 18:50:22 +010074 <font resource="font_s" color="%text_button_color%"/>
75 </style>
76
77 <style name="console">
78 <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
79 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
80 <font resource="fixed"/>
81 </style>
82
z31s1g56189522016-01-13 19:12:40 +010083 <style name="terminal">
84 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
85 <background color="%background_color%"/>
86 <font resource="fixed" spacing="3" color="%text_color%"/>
87 </style>
88
z31s1g28f0a922015-11-07 18:50:22 +010089 <style name="fileselector">
90 <highlight color="%fileselector_highlight_color%"/>
91 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
92 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
93 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
94 <sort name="tw_gui_sort_order"/>
95 <icon folder="folder" file="file"/>
96 <background color="%background_color%"/>
97 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
98 </style>
99
100 <style name="listbox">
101 <highlight color="%fileselector_highlight_color%"/>
102 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
103 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
104 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
105 <icon selected="radio_true" unselected="radio_false"/>
106 <background color="%background_color%"/>
107 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
108 </style>
109
110 <style name="scrolllist">
111 <background color="%background_color%"/>
112 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/>
nkk711a230e42017-08-07 00:28:19 +0300113 <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 +0100114 </style>
115
116 <style name="partitionlist">
117 <highlight color="%fileselector_highlight_color%"/>
118 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
119 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
120 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
121 <icon selected="checkbox_true" unselected="checkbox_false"/>
122 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
123 <background color="%background_color%"/>
124 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
125 </style>
126
127 <style name="partitionlist_storage">
128 <highlight color="%fileselector_highlight_color%"/>
129 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
130 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
131 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
132 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
133 <icon selected="radio_true" unselected="radio_false"/>
134 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
135 <background color="%background_color%"/>
136 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
137 </style>
138
Ethan Yonker64e0a652018-07-25 09:52:17 -0500139 <style name="advanced_listbox">
140 <highlight color="%fileselector_highlight_color%"/>
141 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
142 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
143 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
144 <icon selected="handle" unselected="handle"/>
145 <background color="%background_color%"/>
146 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
147 </style>
148
epicX9597b842021-03-20 21:58:17 +0530149 <style name="options_listbox">
150 <highlight color="%fileselector_highlight_color%"/>
151 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
152 <separator color="%background_color%" height="%fileselector_separatorheight%"/>
153 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
154 <background color="%background_color%"/>
155 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
156 </style>
157
z31s1g28f0a922015-11-07 18:50:22 +0100158 <style name="slider">
159 <placement x="%center_x%" y="%row23_y%"/>
160 <font resource="font_s" color="%text_color%"/>
161 <resource base="slider" used="slider_used" touch="slider_touch"/>
162 </style>
163
164 <style name="slidervalue">
165 <resource handle="handle"/>
166 <font resource="font_m" color="%text_color%"/>
167 <colors line="%fileselector_linecolor%"/>
168 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
169 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100170
171 <style name="patternpassword">
172 <size name="tw_gui_pattern_grid_size" default="3"/>
173 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100174 </styles>
175
176 <pages>
177 <page name="main">
178 <action>
179 <actions>
180 <action function="set">tw_clear_destination=main2</action>
181 <action function="page">clear_vars</action>
182 </actions>
183 </action>
184 </page>
185
186 <page name="main2">
187 <template name="page"/>
188
189 <text style="text_l">
190 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500191 <text>{@twrp_header=Team Win Recovery Project}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100192 </text>
193
194 <text style="text_m">
195 <condition var1="tw_no_cpu_temp" var2="0"/>
196 <placement x="%col1_x_header%" y="%row4_header_y%"/>
197 <text>%tw_version%</text>
198 </text>
199
200 <button style="main_button">
201 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500202 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100203 <actions>
204 <action function="queueclear"/>
205 <action function="set">tw_selectimage=0</action>
206 <action function="page">install</action>
207 </actions>
208 </button>
209
210 <button style="main_button">
211 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500212 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100213 <action function="page">wipe</action>
214 </button>
215
216 <button style="main_button">
217 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500218 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100219 <action function="page">backup</action>
220 </button>
221
222 <button style="main_button">
223 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500224 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100225 <action function="page">restore</action>
226 </button>
227
228 <button style="main_button">
229 <placement x="%indent%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500230 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100231 <action function="page">mount</action>
232 </button>
233
234 <button style="main_button">
235 <placement x="%center_x%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500236 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100237 <action function="page">settings</action>
238 </button>
239
240 <button style="main_button">
241 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500242 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100243 <action function="page">advanced</action>
244 </button>
245
246 <button style="main_button">
247 <placement x="%center_x%" y="%row19_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 </page>
252
253 <page name="install">
254 <template name="page"/>
255
256 <text style="text_l">
257 <condition var1="tw_selectimage" var2="0"/>
258 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500259 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100260 </text>
261
262 <text style="text_l">
263 <condition var1="tw_selectimage" var2="1"/>
264 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500265 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100266 </text>
267
268 <text style="text_m">
269 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500270 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100271 </text>
272
273 <template name="sort_options"/>
274
275 <fileselector>
276 <condition var1="tw_selectimage" var2="0"/>
277 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
278 <text>%tw_zip_location%</text>
mauronofrio6d3bf892019-10-26 19:47:55 +0200279 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="1" files="1"/>
Ian Macdonalde7c34e52021-01-23 18:52:28 +0100280 <prfxfilter prfx="Magisk-;Magisk.apk;app-release.apk;app-debug.apk" folders="1" files="1"/>
z31s1g28f0a922015-11-07 18:50:22 +0100281 <path name="tw_zip_location" default="/sdcard"/>
282 <data name="tw_filename"/>
283 <selection name="tw_file"/>
284 </fileselector>
285
286 <fileselector>
287 <condition var1="tw_selectimage" var2="1"/>
288 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
289 <text>%tw_zip_location%</text>
290 <filter extn=".img" folders="1" files="1"/>
291 <path name="tw_zip_location" default="/sdcard"/>
292 <data name="tw_filename"/>
293 <selection name="tw_file"/>
294 </fileselector>
295
296 <button style="main_button_half_height">
297 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500298 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100299 <actions>
300 <action function="set">tw_back=install</action>
301 <action function="overlay">select_storage</action>
302 </actions>
303 </button>
304
305 <button style="main_button_half_height">
306 <condition var1="tw_selectimage" var2="0"/>
307 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500308 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100309 <actions>
310 <action function="set">tw_selectimage=1</action>
311 <action function="page">install</action>
312 </actions>
313 </button>
314
315 <button style="main_button_half_height">
316 <condition var1="tw_selectimage" var2="1"/>
317 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500318 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100319 <actions>
320 <action function="set">tw_selectimage=0</action>
321 <action function="page">install</action>
322 </actions>
323 </button>
324
325 <action>
326 <conditions>
327 <condition var1="tw_selectimage" var2="0"/>
328 <condition var1="tw_filename" op="modified"/>
329 </conditions>
330 <actions>
331 <action function="queuezip"/>
332 <action function="page">flash_confirm</action>
333 </actions>
334 </action>
335
336 <action>
337 <conditions>
338 <condition var1="tw_selectimage" var2="1"/>
339 <condition var1="tw_filename" op="modified"/>
340 </conditions>
epicX8f52c0a2021-02-24 23:12:08 +0530341 <actions>
342 <action function="set">tw_is_slot_part=0</action>
343 <action function="page">flashimage_confirm</action>
344 </actions>
z31s1g28f0a922015-11-07 18:50:22 +0100345 </action>
346
347 <action>
348 <touch key="back"/>
349 <action function="page">main</action>
350 </action>
351
352 <action>
353 <touch key="home"/>
354 <action function="page">main</action>
355 </action>
356 </page>
357
358 <page name="flash_confirm">
359 <template name="page"/>
360
361 <text style="text_l">
362 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500363 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100364 </text>
365
366 <text style="text_m">
367 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500368 <text>{@zip_queue_count=%tw_zip_queue_count% of max of 10 Files queued}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100369 </text>
370
371 <text style="text_m_accent">
372 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500373 <text>{@zip_warn1=This operation may install incompatible}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100374 </text>
375
376 <text style="text_m_accent">
377 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500378 <text>{@zip_warn2=software and render your device unusable.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100379 </text>
380
381 <text style="text_m">
382 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500383 <text>{@zip_back_cancel=Press back to cancel adding this zip.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100384 </text>
385
386 <text style="text_m_accent">
387 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500388 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100389 </text>
390
391 <text style="text_m">
392 <placement x="%indent%" y="%row8_y%"/>
393 <text>%tw_zip_location%</text>
394 </text>
395
396 <text style="text_m_accent">
397 <placement x="%indent%" y="%row9a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500398 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100399 </text>
400
401 <text style="text_m">
402 <placement x="%indent%" y="%row10a_y%"/>
403 <text>%tw_file%</text>
404 </text>
405
epicX9597b842021-03-20 21:58:17 +0530406 <listbox style="options_listbox">
407 <placement x="%indent%" y="%row12_y%" w="%content_width%" h="%listbox_options_height%"/>
408 <icon selected="checkbox_true" unselected="checkbox_false"/>
409 <listitem name="{@zip_sig_chk=Zip signature verification}">
410 <data variable="tw_signed_zip_verify"/>
411 </listitem>
412 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
413 <data variable="tw_skip_digest_check_zip"/>
414 </listitem>
415 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
416 <data variable="tw_install_reboot"/>
417 </listitem>
418 <listitem name="{@inject_twrp_chk=Inject TWRP after install}">
419 <condition var1="tw_has_injecttwrp" var2="1"/>
420 <data variable="tw_inject_after_zip"/>
421 </listitem>
422 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +0100423
424 <button style="main_button_half_height">
425 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500426 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100427 <action function="page">install</action>
428 </button>
429
430 <button style="main_button_half_height">
431 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500432 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100433 <actions>
434 <action function="queueclear"/>
435 <action function="page">install</action>
436 </actions>
437 </button>
438
439 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500440 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100441 <action function="flash">flash_zip</action>
442 </slider>
443
444 <action>
445 <touch key="back"/>
446 <actions>
447 <action function="cancelzip"/>
448 <action function="page">install</action>
449 </actions>
450 </action>
451
452 <action>
453 <touch key="home"/>
454 <action function="page">main</action>
455 </action>
456 </page>
457
458 <page name="flash_zip">
459 <template name="page"/>
460
461 <text style="text_l">
462 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500463 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100464 </text>
465
466 <text style="text_m">
467 <placement x="%col1_x_header%" y="%row4_header_y%"/>
468 <text>%tw_file%</text>
469 </text>
470
471 <template name="console"/>
472
473 <template name="progress_bar"/>
474
475 <action>
476 <condition var1="tw_operation_state" var2="1"/>
477 <action function="page">flash_done</action>
478 </action>
479 </page>
480
481 <page name="flash_done">
482 <template name="page"/>
483
484 <text style="text_l">
485 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500486 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100487 </text>
488
489 <text style="text_m_fail">
490 <condition var1="tw_operation_status" op="!=" var2="0"/>
491 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500492 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100493 </text>
494
495 <text style="text_m">
496 <condition var1="tw_operation_status" var2="0"/>
497 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500498 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100499 </text>
500
501 <template name="console"/>
502
503 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500504 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100505 <placement x="%indent%" y="%row21a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500506 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100507 <actions>
508 <action function="set">tw_back=flash_done</action>
509 <action function="set">tw_action=wipe</action>
510 <action function="set">tw_action_param=/cache</action>
511 <action function="set">tw_has_action2=1</action>
512 <action function="set">tw_action2=wipe</action>
513 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500514 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
515 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
516 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
517 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100518 <action function="page">confirm_action</action>
519 </actions>
520 </button>
521
522 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500523 <condition var1="tw_ab_device" var2="1"/>
524 <placement x="%indent%" y="%row21a_y%"/>
525 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
526 <actions>
527 <action function="set">tw_back=flash_done</action>
528 <action function="set">tw_action=wipe</action>
529 <action function="set">tw_action_param=dalvik</action>
530 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
531 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
532 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
533 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
534 <action function="page">confirm_action</action>
535 </actions>
536 </button>
537
538 <button style="main_button_half_height">
Chaosmaster7b66bf52020-02-07 20:33:43 +0100539 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100540 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500541 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100542 <actions>
543 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500544 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100545 </actions>
546 </button>
547
Chaosmaster7b66bf52020-02-07 20:33:43 +0100548 <button style="main_button_half_height">
549 <condition var1="tw_ab_device" var2="1"/>
550 <placement x="%center_x%" y="%row21a_y%"/>
551 <text>{@reboot_btn=Reboot}</text>
552 <actions>
553 <action function="set">tw_back=main2</action>
554 <action function="page">reboot</action>
555 </actions>
556 </button>
557
z31s1g28f0a922015-11-07 18:50:22 +0100558 <action>
559 <touch key="back"/>
560 <actions>
561 <action function="set">tw_clear_destination=install</action>
562 <action function="page">clear_vars</action>
563 </actions>
564 </action>
565
566 <action>
567 <touch key="home"/>
568 <actions>
569 <action function="set">tw_clear_destination=main2</action>
570 <action function="page">clear_vars</action>
571 </actions>
572 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500573
574 <action>
575 <conditions>
576 <condition var1="tw_install_reboot" var2="1"/>
577 <condition var1="tw_operation_status" var2="0"/>
578 <condition var1="tw_reboot_system" var2="1"/>
579 </conditions>
580 <actions>
581 <action function="set">tw_sleep=%tw_sleep_total%</action>
582 <action function="page">flash_sleep_and_reboot</action>
583 </actions>
584 </action>
585 </page>
586
587 <page name="flash_sleep_and_reboot">
588 <template name="page"/>
589
590 <text style="text_l">
591 <placement x="%col1_x_header%" y="%row3_header_y%"/>
592 <text>{@install_zip_hdr=Install Zip}</text>
593 </text>
594
595 <text style="text_m">
596 <placement x="%col1_x_header%" y="%row4_header_y%"/>
597 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
598 </text>
599
600 <template name="console"/>
601
602 <template name="progress_bar"/>
603
604 <button style="main_button_half_height">
605 <condition var1="tw_sleep" op="&gt;" var2="0"/>
606 <placement x="%center_x%" y="%row21a_y%"/>
607 <text>{@cancel_btn=Cancel}</text>
608 <actions>
609 <action function="set">tw_install_reboot=0</action>
610 <action function="page">flash_done</action>
611 </actions>
612 </button>
613
614 <action>
615 <conditions>
616 <condition var1="tw_sleep" var2="tw_sleep_total"/>
617 <condition var1="tw_install_reboot" var2="1"/>
618 </conditions>
619 <action function="sleepcounter">%tw_sleep_total%</action>
620 </action>
621
622 <action>
623 <conditions>
624 <condition var1="tw_sleep" var2="0"/>
625 <condition var1="tw_install_reboot" var2="1"/>
626 </conditions>
627 <actions>
628 <action function="sleep">50000</action>
629 <action function="set">tw_back=main2</action>
630 <action function="page">reboot_system_routine</action>
631 </actions>
632 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100633 </page>
634
635 <page name="flashimage_confirm">
636 <template name="page"/>
637
638 <text style="text_l">
639 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500640 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100641 </text>
642
643 <text style="text_m">
644 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500645 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100646 </text>
647
648 <text style="text_m_accent">
649 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500650 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100651 </text>
652
653 <text style="text_m">
654 <placement x="%indent%" y="%row3_y%"/>
655 <text>%tw_zip_location%</text>
656 </text>
657
658 <text style="text_m_accent">
659 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500660 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100661 </text>
662
663 <text style="text_m">
664 <placement x="%indent%" y="%row5a_y%"/>
665 <text>%tw_file%</text>
666 </text>
667
668 <partitionlist>
669 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%partitionlist_flashimage_height%"/>
670 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500671 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100672 <data name="tw_flash_partition"/>
673 <listtype name="flashimg"/>
674 </partitionlist>
675
epicX8f52c0a2021-02-24 23:12:08 +0530676 <button style="checkbox">
677 <conditions>
678 <condition var1="tw_is_slot_part" op="=" var2="1"/>
679 <condition var1="tw_flash_both_slots" op="=" var2="0"/>
680 <condition var1="tw_has_boot_slots" var2="1"/>
681 </conditions>
682 <placement x="%indent%" y="%row19a_y%" textplacement="6"/>
683 <text>{@flash_ab_both_slots=Flash to both slots}</text>
684 <image resource="checkbox_false"/>
685 <action function="set">tw_flash_both_slots=1</action>
686 </button>
687
688 <button style="checkbox">
689 <conditions>
690 <condition var1="tw_is_slot_part" op="=" var2="1"/>
691 <condition var1="tw_flash_both_slots" op="=" var2="1"/>
692 <condition var1="tw_has_boot_slots" var2="1"/>
693 </conditions>
694 <placement x="%indent%" y="%row19a_y%" textplacement="6"/>
695 <text>{@flash_ab_both_slots=Flash to both slots}</text>
696 <image resource="checkbox_true"/>
697 <action function="set">tw_flash_both_slots=0</action>
698 </button>
699
z31s1g28f0a922015-11-07 18:50:22 +0100700 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500701 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100702 <actions>
703 <action function="set">tw_back=flashimage_confirm</action>
704 <action function="set">tw_action=flashimage</action>
705 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500706 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100707 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500708 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100709 <action function="page">action_page</action>
710 </actions>
711 <action function="flashimage"/>
712 </slider>
713
714 <action>
715 <touch key="back"/>
716 <actions>
717 <action function="set">tw_clear_destination=install</action>
718 <action function="page">clear_vars</action>
719 </actions>
720 </action>
721
722 <action>
723 <touch key="home"/>
724 <actions>
725 <action function="set">tw_clear_destination=main2</action>
726 <action function="page">clear_vars</action>
727 </actions>
728 </action>
729 </page>
730
731 <page name="clear_vars">
732 <action>
733 <action function="set">tw_operation_state=0</action>
734 <action function="set">tw_text1=</action>
735 <action function="set">tw_text2=</action>
736 <action function="set">tw_text3=</action>
737 <action function="set">tw_text4=</action>
738 <action function="set">tw_action_text1=</action>
739 <action function="set">tw_action_text2=</action>
740 <action function="set">tw_action_param=</action>
741 <action function="set">tw_has_action2=0</action>
742 <action function="set">tw_action2=</action>
743 <action function="set">tw_action2_param=</action>
744 <action function="set">tw_has_cancel=0</action>
745 <action function="set">tw_cancel_action=</action>
746 <action function="set">tw_cancel_param=</action>
747 <action function="set">tw_show_exclamation=0</action>
748 <action function="set">tw_show_reboot=0</action>
Noah Jacobson81d638d2019-04-28 00:10:07 -0400749 <action function="set">tw_crypto_user_id=</action>
750 <action function="set">tw_multiuser_warning_accepted=</action>
751 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100752 <action function="page">%tw_clear_destination%</action>
753 </action>
754 </page>
755
Matt Mower908dd252016-05-25 02:26:50 -0500756 <page name="reboot_system_routine">
757 <action>
758 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500759 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500760 <action function="set">tw_has_action2=0</action>
761 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
762 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
763 <action function="set">tw_text3=</action>
764 <action function="set">tw_text4=</action>
765 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
766 <action function="set">tw_action_text2=</action>
767 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
768 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
769 <action function="page">rebootcheck</action>
770 </action>
771 </page>
772
z31s1g28f0a922015-11-07 18:50:22 +0100773 <page name="confirm_action">
774 <template name="page"/>
775
776 <text style="text_l">
777 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500778 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100779 </text>
780
781 <text style="text_m">
782 <placement x="%col1_x_header%" y="%row4_header_y%"/>
783 <text/>
784 </text>
785
786 <text style="text_m_accent">
787 <placement x="%center_x%" y="%row2_y%" placement="5"/>
788 <text>%tw_text1%</text>
789 </text>
790
791 <text style="text_m_accent">
792 <placement x="%center_x%" y="%row3_y%" placement="5"/>
793 <text>%tw_text2%</text>
794 </text>
795
796 <text style="text_m">
797 <placement x="%center_x%" y="%row4_y%" placement="5"/>
798 <text>%tw_text3%</text>
799 </text>
800
801 <text style="text_m">
802 <placement x="%center_x%" y="%row5_y%" placement="5"/>
803 <text>%tw_text4%</text>
804 </text>
805
806 <text style="text_m">
807 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500808 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100809 </text>
810
811 <slider>
812 <text>%tw_slider_text%</text>
813 <action function="page">action_page</action>
814 </slider>
815
816 <action>
817 <touch key="back"/>
818 <actions>
819 <action function="set">tw_clear_destination=%tw_back%</action>
820 <action function="page">clear_vars</action>
821 </actions>
822 </action>
823
824 <action>
825 <touch key="home"/>
826 <action function="page">main</action>
827 </action>
828 </page>
829
830 <page name="action_page">
831 <template name="page"/>
832
833 <text style="text_l">
834 <placement x="%col1_x_header%" y="%row3_header_y%"/>
835 <text>%tw_action_text1%</text>
836 </text>
837
838 <text style="text_m">
839 <placement x="%col1_x_header%" y="%row4_header_y%"/>
840 <text>%tw_action_text2%</text>
841 </text>
842
843 <template name="console"/>
844
845 <template name="progress_bar"/>
846
847 <button style="main_button_half_height">
848 <condition var1="tw_has_cancel" var2="1"/>
849 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500850 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100851 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
852 </button>
853
854 <action>
855 <condition var1="tw_operation_state" var2="1"/>
856 <actions>
857 <action function="page">action_complete</action>
858 </actions>
859 </action>
860
861 <action>
862 <condition var1="tw_has_action2" var2="0"/>
863 <actions>
864 <action function="%tw_action%">%tw_action_param%</action>
865 </actions>
866 </action>
867
868 <action>
869 <condition var1="tw_has_action2" var2="1"/>
870 <actions>
871 <action function="%tw_action%">%tw_action_param%</action>
872 <action function="%tw_action2%">%tw_action2_param%</action>
873 </actions>
874 </action>
875 </page>
876
877 <page name="singleaction_page">
878 <template name="page"/>
879
880 <text style="text_l">
881 <placement x="%col1_x_header%" y="%row3_header_y%"/>
882 <text>%tw_action_text1%</text>
883 </text>
884
885 <text style="text_m">
886 <placement x="%col1_x_header%" y="%row4_header_y%"/>
887 <text>%tw_action_text2%</text>
888 </text>
889
890 <template name="console"/>
891
892 <template name="progress_bar"/>
893
894 <action>
895 <condition var1="tw_operation_state" var2="1"/>
896 <actions>
897 <action function="set">tw_page_done=1</action>
898 </actions>
899 </action>
900
901 <action>
902 <condition var1="tw_has_action2" var2="0"/>
903 <actions>
904 <action function="%tw_action%">%tw_action_param%</action>
905 </actions>
906 </action>
907
908 <action>
909 <condition var1="tw_has_action2" var2="1"/>
910 <actions>
911 <action function="%tw_action%">%tw_action_param%</action>
912 <action function="%tw_action2%">%tw_action2_param%</action>
913 </actions>
914 </action>
915 </page>
916
917 <page name="action_complete">
918 <template name="page"/>
919
920 <text style="text_l">
921 <placement x="%col1_x_header%" y="%row3_header_y%"/>
922 <text>%tw_complete_text1%</text>
923 </text>
924
925 <text style="text_m_fail">
926 <condition var1="tw_operation_status" op="!=" var2="0"/>
927 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500928 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100929 </text>
930
931 <text style="text_m">
932 <condition var1="tw_operation_status" var2="0"/>
933 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500934 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100935 </text>
936
937 <template name="console"/>
938
939 <button style="main_button_half_height">
940 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500941 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100942 <actions>
943 <action function="set">tw_clear_destination=%tw_back%</action>
944 <action function="page">clear_vars</action>
945 </actions>
946 </button>
947
948 <button style="main_button_half_height">
949 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500950 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100951 <actions>
952 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500953 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100954 </actions>
955 </button>
956
957 <action>
958 <touch key="home"/>
959 <actions>
960 <action function="set">tw_clear_destination=main2</action>
961 <action function="page">clear_vars</action>
962 </actions>
963 </action>
964
965 <action>
966 <touch key="back"/>
967 <actions>
968 <action function="set">tw_clear_destination=%tw_back%</action>
969 <action function="page">clear_vars</action>
970 </actions>
971 </action>
972 </page>
973
974 <page name="filecheck">
975 <action>
976 <action function="fileexists">%tw_filecheck%</action>
977 </action>
978
979 <action>
980 <conditions>
981 <condition var1="tw_operation_state" var2="1"/>
982 <condition var1="tw_operation_status" var2="0"/>
983 </conditions>
984 <actions>
985 <action function="set">tw_fileexists=1</action>
986 <action function="page">%tw_existpage%</action>
987 </actions>
988 </action>
989
990 <action>
991 <conditions>
992 <condition var1="tw_operation_state" var2="1"/>
993 <condition var1="tw_operation_status" var2="1"/>
994 </conditions>
995 <actions>
996 <action function="set">tw_fileexists=0</action>
997 <action function="page">%tw_notexistpage%</action>
998 </actions>
999 </action>
1000 </page>
1001
1002 <page name="rebootcheck">
1003 <action>
1004 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06001005 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +01001006 </action>
1007
1008 <action>
1009 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1010 <action function="page">confirm_action</action>
1011 </action>
1012 </page>
1013
1014 <page name="wipe">
1015 <template name="page"/>
1016
1017 <text style="text_l">
1018 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001019 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001020 </text>
1021
1022 <text style="text_m">
1023 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001024 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001025 </text>
1026
1027 <text style="text_m_accent">
1028 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001029 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001030 </text>
1031
1032 <text style="text_m_accent">
bigbiffadc599e2020-05-28 19:36:30 +00001033 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04001034 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1035 </text>
1036
1037 <text style="text_m_accent">
1038 <condition var1="tw_has_data_media" var2="1"/>
1039 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001040 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001041 </text>
1042
1043 <text style="text_m_accent">
1044 <conditions>
1045 <condition var1="tw_has_android_secure" var2="1"/>
1046 <condition var1="fileexists" var2="/and-sec"/>
1047 </conditions>
1048 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001049 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001050 </text>
1051
1052 <text style="text_m_accent">
1053 <condition var1="tw_has_sdext_partition" var2="1"/>
1054 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001055 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001056 </text>
1057
1058 <text style="text_m">
1059 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001060 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001061 </text>
1062
1063 <text style="text_m">
1064 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001065 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001066 </text>
1067
1068 <text style="text_m">
1069 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001070 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001071 </text>
1072
1073 <button style="main_button_half_height">
1074 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001075 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001076 <actions>
1077 <action function="set">partitionlisterror=0</action>
1078 <action function="page">advancedwipe</action>
1079 </actions>
1080 </button>
1081
1082 <button style="main_button_half_height">
1083 <condition var1="tw_has_data_media" var2="1"/>
1084 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001085 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001086 <action function="page">formatdata</action>
1087 </button>
1088
1089 <button style="main_button_half_height">
1090 <conditions>
1091 <condition var1="tw_is_encrypted" var2="1"/>
1092 <condition var1="tw_has_data_media" var2="0"/>
1093 </conditions>
1094 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001095 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001096 <actions>
1097 <action function="set">tw_back=wipe</action>
1098 <action function="set">tw_action=wipe</action>
1099 <action function="set">tw_action_param=DATAMEDIA</action>
1100 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001101 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001102 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001103 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1104 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1105 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001106 <action function="page">confirm_action</action>
1107 </actions>
1108 </button>
1109
1110 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001111 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001112 <actions>
1113 <action function="set">tw_back=wipe</action>
1114 <action function="set">tw_action=wipe</action>
1115 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001116 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1117 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001118 <action function="page">action_page</action>
1119 </actions>
1120 </slider>
1121
1122 <action>
1123 <touch key="back"/>
1124 <action function="page">main</action>
1125 </action>
1126
1127 <action>
1128 <touch key="home"/>
1129 <action function="page">main</action>
1130 </action>
1131 </page>
1132
1133 <page name="advancedwipe">
1134 <template name="page"/>
1135
1136 <action>
1137 <action function="set">tw_wipe_list=</action>
1138 </action>
1139
1140 <text style="text_l">
1141 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001142 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001143 </text>
1144
1145 <text style="text_m">
1146 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001147 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001148 </text>
1149
1150 <partitionlist>
1151 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001152 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001153 <data name="tw_wipe_list"/>
1154 <listtype name="wipe"/>
1155 </partitionlist>
1156
1157 <text style="text_m_fail">
1158 <condition var1="partitionlisterror" var2="1"/>
1159 <placement x="%center_x%" y="%row17_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001160 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001161 </text>
1162
1163 <button style="main_button_half_height_full_width">
1164 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001165 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001166 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001167 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001168 <action function="page">checkpartitionlist</action>
1169 </actions>
1170 </button>
1171
1172 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001173 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001174 <actions>
1175 <action function="set">tw_back=advancedwipe</action>
1176 <action function="set">tw_action=wipe</action>
1177 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001178 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1179 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1180 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001181 <action function="page">action_page</action>
1182 </actions>
1183 </slider>
1184
1185 <action>
1186 <touch key="home"/>
1187 <action function="page">main</action>
1188 </action>
1189
1190 <action>
1191 <touch key="back"/>
1192 <action function="page">wipe</action>
1193 </action>
1194 </page>
1195
1196 <page name="formatdata">
1197 <template name="page"/>
1198
1199 <text style="text_l">
1200 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001201 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001202 </text>
1203
1204 <text style="text_m">
1205 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001206 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001207 </text>
1208
1209 <text style="text_m_fail">
1210 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001211 <text>{@format_data_ptr1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001212 </text>
1213
1214 <text style="text_m_fail">
1215 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001216 <text>{@format_data_ptr2=backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001217 </text>
1218
1219 <text style="text_m_fail">
1220 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001221 <text>{@format_data_ptr3=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001222 </text>
1223
Ethan Yonker66a19492015-12-10 10:19:45 -06001224 <text style="text_m_fail">
1225 <condition var1="tw_has_adopted_storage" var2="1"/>
1226 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1227 <text>{@format_data_adopted=Including Adopted Storage}</text>
1228 </text>
1229
z31s1g28f0a922015-11-07 18:50:22 +01001230 <text style="text_m">
1231 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001232 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001233 </text>
1234
1235 <text style="text_m">
1236 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001237 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001238 </text>
1239
1240 <input>
1241 <placement x="%indent%" y="%row10_y%" w="%content_width%" h="%input_height%"/>
1242 <text>%tw_confirm_formatdata%</text>
1243 <data name="tw_confirm_formatdata"/>
1244 <restrict minlen="3" maxlen="3" allow="yes"/>
1245 <action function="page">formatdata_confirm</action>
1246 </input>
1247
1248 <fill color="%accent_color%">
1249 <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width"/>
1250 </fill>
1251
1252 <template name="keyboardtemplate"/>
1253
1254 <action>
1255 <touch key="home"/>
1256 <action function="page">main</action>
1257 </action>
1258
1259 <action>
1260 <touch key="back"/>
1261 <action function="page">wipe</action>
1262 </action>
1263 </page>
1264
1265 <page name="formatdata_confirm">
1266 <action>
1267 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1268 <actions>
1269 <action function="set">tw_back=formatdata</action>
1270 <action function="set">tw_action=wipe</action>
1271 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001272 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1273 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001274 <action function="page">action_page</action>
1275 </actions>
1276 </action>
1277
1278 <action>
1279 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1280 <action function="page">formatdata</action>
1281 </action>
1282 </page>
1283
1284 <page name="checkpartitionlist">
1285 <action>
1286 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1287 <actions>
1288 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001289 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001290 <action function="page">partitionoptions</action>
1291 </actions>
1292 </action>
1293
1294 <action>
1295 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1296 <actions>
1297 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001298 <action function="page">advancedwipe</action>
1299 </actions>
1300 </action>
1301 </page>
1302
1303 <page name="partitionoptions">
1304 <template name="page"/>
1305
1306 <text style="text_l">
1307 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001308 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001309 </text>
1310
1311 <text style="text_m">
1312 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001313 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001314 </text>
1315
1316 <text style="text_m_accent">
1317 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001318 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001319 </text>
1320
1321 <text style="text_m_accent">
1322 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001323 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001324 </text>
1325
1326 <text style="text_m">
1327 <condition var1="tw_partition_is_present" var2="1"/>
1328 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001329 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001330 </text>
1331
1332 <text style="text_m">
1333 <condition var1="tw_partition_is_present" var2="0"/>
1334 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001335 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001336 </text>
1337
1338 <text style="text_m">
1339 <condition var1="tw_partition_removable" var2="1"/>
1340 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001341 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001342 </text>
1343
1344 <text style="text_m">
1345 <condition var1="tw_partition_removable" var2="0"/>
1346 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001347 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001348 </text>
1349
1350 <text style="text_m">
1351 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001352 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001353 </text>
1354
1355 <text style="text_m">
1356 <placement x="%center_x%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001357 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001358 </text>
1359
1360 <text style="text_m">
1361 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001362 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001363 </text>
1364
1365 <text style="text_m">
1366 <placement x="%center_x%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001367 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001368 </text>
1369
1370 <button style="main_button_half_height">
1371 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1372 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001373 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001374 <actions>
1375 <action function="set">tw_back=partitionoptions</action>
1376 <action function="set">tw_action=resize</action>
1377 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1378 <action function="set">tw_has_action2=1</action>
1379 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001380 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001381 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001382 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001383 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1384 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1385 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001386 <action function="page">confirm_action</action>
1387 </actions>
1388 </button>
1389
1390 <button style="main_button_half_height">
1391 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1392 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001393 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001394 <actions>
1395 <action function="set">tw_back=partitionoptions</action>
1396 <action function="set">tw_action=repair</action>
1397 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1398 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001399 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001400 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001401 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1402 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1403 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001404 <action function="page">confirm_action</action>
1405 </actions>
1406 </button>
1407
1408 <button style="main_button_half_height">
1409 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001410 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001411 <action function="page">selectfilesystem</action>
1412 </button>
1413
1414 <action>
1415 <touch key="home"/>
1416 <action function="page">main</action>
1417 </action>
1418
1419 <action>
1420 <touch key="back"/>
1421 <action function="page">advancedwipe</action>
1422 </action>
1423 </page>
1424
1425 <page name="refreshfilesystem">
1426 <action>
1427 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1428 <actions>
1429 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001430 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001431 <action function="page">selectfilesystem</action>
1432 </actions>
1433 </action>
1434
1435 <action>
1436 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1437 <actions>
1438 <action function="set">partitionlisterror=1</action>
1439 <action function="set">tw_wipe_list=</action>
1440 <action function="page">advancedwipe</action>
1441 </actions>
1442 </action>
1443 </page>
1444
1445 <page name="selectfilesystem">
1446 <template name="page"/>
1447
1448 <text style="text_l">
1449 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001450 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001451 </text>
1452
1453 <text style="text_m">
1454 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001455 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001456 </text>
1457
1458 <text style="text_m_accent">
1459 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001460 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001461 </text>
1462
1463 <text style="text_m_accent">
1464 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001465 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001466 </text>
1467
1468 <text style="text_m_fail">
1469 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001470 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001471 </text>
1472
1473 <text style="text_m_fail">
1474 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001475 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001476 </text>
1477
1478 <button style="main_button_half_height">
1479 <condition var1="tw_partition_ext" op="=" var2="1"/>
1480 <placement x="%indent%" y="%row15a_y%"/>
1481 <text>EXT2</text>
1482 <actions>
1483 <action function="set">tw_back=refreshfilesystem</action>
1484 <action function="set">tw_action=changefilesystem</action>
1485 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1486 <action function="set">tw_action_new_file_system=ext2</action>
1487 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001488 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1489 <action function="set">tw_text2=EXT2</action>
1490 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1491 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1492 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001493 <action function="page">confirm_action</action>
1494 </actions>
1495 </button>
1496
1497 <button style="main_button_half_height">
1498 <condition var1="tw_partition_ext" op="=" var2="1"/>
1499 <placement x="%indent%" y="%row18a_y%"/>
1500 <text>EXT3</text>
1501 <actions>
1502 <action function="set">tw_back=refreshfilesystem</action>
1503 <action function="set">tw_action=changefilesystem</action>
1504 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1505 <action function="set">tw_action_new_file_system=ext3</action>
1506 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001507 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1508 <action function="set">tw_text2=EXT3</action>
1509 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1510 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1511 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001512 <action function="page">confirm_action</action>
1513 </actions>
1514 </button>
1515
1516 <button style="main_button_half_height">
1517 <condition var1="tw_partition_ext" op="=" var2="1"/>
1518 <placement x="%indent%" y="%row21a_y%"/>
1519 <text>EXT4</text>
1520 <actions>
1521 <action function="set">tw_back=refreshfilesystem</action>
1522 <action function="set">tw_action=changefilesystem</action>
1523 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1524 <action function="set">tw_action_new_file_system=ext4</action>
1525 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001526 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1527 <action function="set">tw_text2=EXT4</action>
1528 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1529 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1530 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001531 <action function="page">confirm_action</action>
1532 </actions>
1533 </button>
1534
1535 <button style="main_button_half_height">
1536 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1537 <placement x="%center_x%" y="%row15a_y%"/>
1538 <text>FAT</text>
1539 <actions>
1540 <action function="set">tw_back=refreshfilesystem</action>
1541 <action function="set">tw_action=changefilesystem</action>
1542 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1543 <action function="set">tw_action_new_file_system=vfat</action>
1544 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001545 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1546 <action function="set">tw_text2=FAT</action>
1547 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1548 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1549 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001550 <action function="page">confirm_action</action>
1551 </actions>
1552 </button>
1553
1554 <button style="main_button_half_height">
1555 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1556 <placement x="%center_x%" y="%row18a_y%"/>
1557 <text>exFAT</text>
1558 <actions>
1559 <action function="set">tw_back=refreshfilesystem</action>
1560 <action function="set">tw_action=changefilesystem</action>
1561 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1562 <action function="set">tw_action_new_file_system=exfat</action>
1563 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001564 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1565 <action function="set">tw_text2=exFAT</action>
1566 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1567 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1568 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001569 <action function="page">confirm_action</action>
1570 </actions>
1571 </button>
1572
1573 <button style="main_button_half_height">
1574 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1575 <placement x="%center_x%" y="%row21a_y%"/>
1576 <text>F2FS</text>
1577 <actions>
1578 <action function="set">tw_back=refreshfilesystem</action>
1579 <action function="set">tw_action=changefilesystem</action>
1580 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1581 <action function="set">tw_action_new_file_system=f2fs</action>
1582 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001583 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1584 <action function="set">tw_text2=F2FS</action>
1585 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1586 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1587 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001588 <action function="page">confirm_action</action>
1589 </actions>
1590 </button>
1591
1592 <action>
1593 <touch key="home"/>
1594 <action function="page">main</action>
1595 </action>
1596
1597 <action>
1598 <touch key="back"/>
1599 <action function="page">partitionoptions</action>
1600 </action>
1601 </page>
1602
1603 <page name="backup">
1604 <template name="page"/>
1605
Noah Jacobson81d638d2019-04-28 00:10:07 -04001606 <action>
1607 <conditions>
1608 <condition var1="tw_is_fbe" var2="1"/>
1609 <condition var1="tw_all_users_decrypted" var2="0"/>
1610 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1611 </conditions>
1612 <actions>
1613 <action function="set">tw_multiuser_warning_destination=backup</action>
1614 <action function="page">multiuser_warning</action>
1615 </actions>
1616 </action>
1617
z31s1g28f0a922015-11-07 18:50:22 +01001618 <text style="text_l">
1619 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001620 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001621 </text>
1622
1623 <text style="text_m">
1624 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001625 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001626 </text>
1627
1628 <template name="tabs_backup"/>
1629
1630 <fill color="%text_color%">
1631 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1632 </fill>
1633
1634 <button style="tab">
1635 <conditions>
1636 <condition var1="tw_include_encrypted_backup" var2="1"/>
1637 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001638 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001639 </conditions>
1640 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001641 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001642 <font resource="font_s" color="%text_color%"/>
1643 <actions>
1644 <action function="set">tw_password_not_match=0</action>
1645 <action function="page">backupencryption</action>
1646 </actions>
1647 </button>
1648
1649 <button style="tab">
1650 <conditions>
1651 <condition var1="tw_include_encrypted_backup" var2="1"/>
1652 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001653 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001654 </conditions>
1655 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001656 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001657 <font resource="font_s" color="%text_success_color%"/>
1658 <actions>
1659 <action function="set">tw_password_not_match=0</action>
1660 <action function="page">backupencryption</action>
1661 </actions>
1662 </button>
1663
1664 <text style="text_m_accent">
1665 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001666 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001667 </text>
1668
1669 <text style="text_m">
1670 <placement x="%indent%" y="%row4a_y%"/>
1671 <text>%tw_backup_name%</text>
1672 </text>
1673
1674 <fill color="%fileselector_linecolor%">
1675 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width"/>
1676 </fill>
1677
1678 <button>
bigbiffce8f83c2015-12-12 18:30:21 -05001679 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001680 <placement x="indent" y="%row3a_y%" w="%content_width%" h="%navbar_height%"/>
1681 <fill color="%transparent%"/>
1682 <actions>
1683 <action function="set">tw_fileexists=0</action>
1684 <action function="page">backupname1</action>
1685 </actions>
1686 </button>
1687
1688 <partitionlist>
1689 <placement x="%indent%" y="%row6_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001690 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001691 <data name="tw_backup_list"/>
1692 <listtype name="backup"/>
1693 </partitionlist>
1694
1695 <button style="main_button_half_height">
bigbiffce8f83c2015-12-12 18:30:21 -05001696 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001697 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001698 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001699 <actions>
1700 <action function="set">tw_back=backup</action>
1701 <action function="overlay">select_storage</action>
1702 </actions>
1703 </button>
1704
1705 <button style="main_button_half_height">
1706 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001707 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001708 <actions>
1709 <action function="refreshsizes"/>
1710 <action function="page">backup</action>
1711 </actions>
1712 </button>
1713
1714 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001715 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001716 <action function="page">backup_run</action>
1717 </slider>
1718
1719 <action>
1720 <touch key="home"/>
1721 <action function="page">main</action>
1722 </action>
1723
1724 <action>
1725 <touch key="back"/>
1726 <action function="page">main</action>
1727 </action>
1728 </page>
1729
Noah Jacobson81d638d2019-04-28 00:10:07 -04001730 <page name="multiuser_warning">
1731 <template name="page"/>
1732
1733 <text style="text_l">
1734 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1735 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
1736 </text>
1737
1738 <text style="text_m_fail">
1739 <placement x="%center_x%" y="%row7_y%" placement="5"/>
1740 <text>{@multiuser_warning1=Not all users decrypted!}</text>
1741 </text>
1742
1743 <text style="text_m_fail">
1744 <placement x="%center_x%" y="%row8_y%" placement="5"/>
1745 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
1746 </text>
1747
1748 <button style="main_button_half_height_full_width">
1749 <placement x="%indent%" y="%row18a_y%"/>
1750 <text>{@decrypt_users=Decrypt Users}</text>
1751 <action function="page">decrypt_users</action>
1752 </button>
1753
1754 <slider>>
1755 <text>{@multiuser_warning_accept=Continue Anyway}</text>
1756 <actions>
1757 <action function="set">tw_multiuser_warning_accepted=1</action>
1758 <action function="page">%tw_multiuser_warning_destination%</action>
1759 </actions>
1760 </slider>
1761
1762 <action>
1763 <touch key="home"/>
1764 <action function="page">main</action>
1765 </action>
1766
1767 <action>
1768 <touch key="back"/>
1769 <action function="page">main</action>
1770 </action>
1771 </page>
1772
z31s1g28f0a922015-11-07 18:50:22 +01001773 <page name="backup_options">
1774 <template name="page"/>
1775
1776 <text style="text_l">
1777 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001778 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001779 </text>
1780
1781 <text style="text_m">
1782 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001783 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001784 </text>
1785
1786 <template name="tabs_backup"/>
1787
1788 <fill color="%text_color%">
1789 <placement x="%tab3_col2_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1790 </fill>
1791
1792 <button style="tab">
1793 <conditions>
1794 <condition var1="tw_include_encrypted_backup" var2="1"/>
1795 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001796 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001797 </conditions>
1798 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001799 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001800 <font resource="font_s" color="%text_color%"/>
1801 <actions>
1802 <action function="set">tw_password_not_match=0</action>
1803 <action function="page">backupencryption</action>
1804 </actions>
1805 </button>
1806
1807 <button style="tab">
1808 <conditions>
1809 <condition var1="tw_include_encrypted_backup" var2="1"/>
1810 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001811 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001812 </conditions>
1813 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001814 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001815 <font resource="font_s" color="%text_success_color%"/>
1816 <actions>
1817 <action function="set">tw_password_not_match=0</action>
1818 <action function="page">backupencryption</action>
1819 </actions>
1820 </button>
1821
1822 <checkbox>
1823 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001824 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001825 <data variable="tw_use_compression"/>
1826 </checkbox>
1827
1828 <checkbox>
1829 <placement x="%indent%" y="%row5_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001830 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1831 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001832 </checkbox>
1833
1834 <checkbox>
1835 <placement x="%indent%" y="%row6a_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001836 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001837 <data variable="tw_disable_free_space"/>
1838 </checkbox>
1839
Ethan Yonker1b190162016-12-05 15:25:19 -06001840 <text style="text_m">
1841 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01001842 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06001843 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
1844 </text>
1845
1846 <button style="main_button">
1847 <condition var1="tw_has_boot_slots" var2="1"/>
1848 <placement x="%indent%" y="%row19_y%"/>
1849 <text>{@boot_slot_a=Slot A}</text>
1850 <actions>
1851 <action function="set">tw_back=backup_options</action>
1852 <action function="set">tw_action=setbootslot</action>
1853 <action function="set">tw_action_param=A</action>
1854 <action function="set">tw_has_action2=0</action>
1855 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1856 <action function="set">tw_action_text2=</action>
1857 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1858 <action function="page">action_page</action>
1859 </actions>
1860 </button>
1861
1862 <button style="main_button">
1863 <condition var1="tw_has_boot_slots" var2="1"/>
1864 <placement x="%center_x%" y="%row19_y%"/>
1865 <text>{@boot_slot_b=Slot B}</text>
1866 <actions>
1867 <action function="set">tw_back=backup_options</action>
1868 <action function="set">tw_action=setbootslot</action>
1869 <action function="set">tw_action_param=B</action>
1870 <action function="set">tw_has_action2=0</action>
1871 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1872 <action function="set">tw_action_text2=</action>
1873 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1874 <action function="page">action_page</action>
1875 </actions>
1876 </button>
1877
z31s1g28f0a922015-11-07 18:50:22 +01001878 <action>
1879 <touch key="home"/>
1880 <action function="page">main</action>
1881 </action>
1882
1883 <action>
1884 <touch key="back"/>
1885 <action function="page">backup</action>
1886 </action>
1887 </page>
1888
1889 <page name="backupname1">
1890 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001891 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001892 <action function="generatebackupname"/>
1893 </action>
1894
1895 <action>
1896 <action function="page">backupname2</action>
1897 </action>
1898 </page>
1899
1900 <page name="backupname2">
1901 <template name="page"/>
1902
1903 <text style="text_l">
1904 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001905 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001906 </text>
1907
1908 <text style="text_m">
1909 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001910 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001911 </text>
1912
1913 <template name="tabs_backup"/>
1914
1915 <fill color="%text_color%">
1916 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1917 </fill>
1918
1919 <button style="tab">
1920 <conditions>
1921 <condition var1="tw_include_encrypted_backup" var2="1"/>
1922 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001923 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001924 </conditions>
1925 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001926 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001927 <font resource="font_s" color="%text_color%"/>
1928 <actions>
1929 <action function="set">tw_password_not_match=0</action>
1930 <action function="page">backupencryption</action>
1931 </actions>
1932 </button>
1933
1934 <button style="tab">
1935 <conditions>
1936 <condition var1="tw_include_encrypted_backup" var2="1"/>
1937 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001938 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001939 </conditions>
1940 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001941 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001942 <font resource="font_s" color="%text_success_color%"/>
1943 <actions>
1944 <action function="set">tw_password_not_match=0</action>
1945 <action function="page">backupencryption</action>
1946 </actions>
1947 </button>
1948
1949 <text style="text_m_accent">
1950 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001951 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001952 </text>
1953
1954 <input>
1955 <placement x="%indent%" y="%row4_input_y%" w="%content_width%" h="%input_height%"/>
1956 <text>%tw_backup_name%</text>
1957 <data name="tw_backup_name"/>
1958 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1959 <actions>
1960 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1961 <action function="set">tw_existpage=backupname2</action>
1962 <action function="set">tw_notexistpage=backup</action>
1963 <action function="page">filecheck</action>
1964 </actions>
1965 </input>
1966
1967 <fill color="%accent_color%">
1968 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1969 </fill>
1970
1971 <fill color="%text_fail_color%">
1972 <condition var1="tw_fileexists" var2="1"/>
1973 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1974 </fill>
1975
1976 <text style="text_m_fail">
1977 <condition var1="tw_fileexists" var2="1"/>
1978 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001979 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001980 </text>
1981
1982 <button style="main_button_half_height">
1983 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001984 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001985 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001986 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001987 <action function="page">backup</action>
1988 </actions>
1989 </button>
1990
1991 <button style="main_button_half_height">
1992 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001993 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001994 <action function="appenddatetobackupname"/>
1995 </button>
1996
1997 <template name="keyboardtemplate"/>
1998
1999 <action>
2000 <touch key="home"/>
2001 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002002 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002003 <action function="page">main</action>
2004 </actions>
2005 </action>
2006
2007 <action>
2008 <touch key="back"/>
2009 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002010 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002011 <action function="page">backup</action>
2012 </actions>
2013 </action>
2014 </page>
2015
2016 <page name="backupencryption">
2017 <template name="page"/>
2018
2019 <text style="text_l">
2020 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002021 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002022 </text>
2023
2024 <text style="text_m">
2025 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002026 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002027 </text>
2028
2029 <template name="tabs_backup"/>
2030
2031 <button style="tab">
2032 <conditions>
2033 <condition var1="tw_include_encrypted_backup" var2="1"/>
2034 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002035 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002036 </conditions>
2037 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002038 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002039 <font resource="font_s" color="%text_color%"/>
2040 <actions>
2041 <action function="set">tw_password_not_match=0</action>
2042 <action function="page">backupencryption</action>
2043 </actions>
2044 </button>
2045
2046 <button style="tab">
2047 <conditions>
2048 <condition var1="tw_include_encrypted_backup" var2="1"/>
2049 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002050 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002051 </conditions>
2052 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002053 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002054 <font resource="font_s" color="%text_success_color%"/>
2055 <actions>
2056 <action function="set">tw_password_not_match=0</action>
2057 <action function="page">backupencryption</action>
2058 </actions>
2059 </button>
2060
2061 <fill color="%text_color%">
2062 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2063 </fill>
2064
2065 <text style="text_m_accent">
2066 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002067 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002068 </text>
2069
2070 <text style="text_m">
2071 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002072 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002073 </text>
2074
2075 <input>
2076 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2077 <text>%tw_backup_encrypt_display%</text>
2078 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2079 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2080 <action function="page">backupencryption2</action>
2081 </input>
2082
2083 <fill color="%accent_color%">
2084 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2085 </fill>
2086
2087 <fill color="%text_fail_color%">
2088 <condition var1="tw_password_not_match" var2="1"/>
2089 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2090 </fill>
2091
2092 <text style="text_m_fail">
2093 <condition var1="tw_password_not_match" var2="1"/>
2094 <placement x="%indent%" y="%row8a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002095 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002096 </text>
2097
2098 <button style="main_button_half_height">
2099 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002100 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002101 <actions>
2102 <action function="set">tw_encrypt_backup=0</action>
2103 <action function="set">tw_backup_password=</action>
2104 <action function="set">tw_backup_password2=</action>
2105 <action function="set">tw_backup_encrypt_display=</action>
2106 <action function="set">tw_backup_encrypt_display2=</action>
2107 <action function="page">backup</action>
2108 </actions>
2109 </button>
2110
2111 <template name="keyboardtemplate"/>
2112
2113 <action>
2114 <touch key="home"/>
2115 <action function="page">main</action>
2116 </action>
2117
2118 <action>
2119 <touch key="back"/>
2120 <action function="page">backup</action>
2121 </action>
2122 </page>
2123
2124 <page name="backupencryption2">
2125 <template name="page"/>
2126
2127 <text style="text_l">
2128 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002129 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002130 </text>
2131
2132 <text style="text_m">
2133 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002134 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002135 </text>
2136
2137 <template name="tabs_backup"/>
2138
2139 <button style="tab">
2140 <conditions>
2141 <condition var1="tw_include_encrypted_backup" var2="1"/>
2142 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002143 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002144 </conditions>
2145 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002146 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002147 <font resource="font_s" color="%text_color%"/>
2148 <actions>
2149 <action function="set">tw_password_not_match=0</action>
2150 <action function="page">backupencryption</action>
2151 </actions>
2152 </button>
2153
2154 <button style="tab">
2155 <conditions>
2156 <condition var1="tw_include_encrypted_backup" var2="1"/>
2157 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002158 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002159 </conditions>
2160 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002161 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002162 <font resource="font_s" color="%text_success_color%"/>
2163 <actions>
2164 <action function="set">tw_password_not_match=0</action>
2165 <action function="page">backupencryption</action>
2166 </actions>
2167 </button>
2168
2169 <fill color="%text_color%">
2170 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2171 </fill>
2172
2173 <text style="text_m_accent">
2174 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002175 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002176 </text>
2177
2178 <text style="text_m">
2179 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002180 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002181 </text>
2182
2183 <input>
2184 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2185 <text>%tw_backup_encrypt_display2%</text>
2186 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2187 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2188 <action function="page">checkbackuppassword</action>
2189 </input>
2190
2191 <fill color="%accent_color%">
2192 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2193 </fill>
2194
2195 <button style="main_button_half_height">
2196 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002197 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002198 <actions>
2199 <action function="set">tw_encrypt_backup=0</action>
2200 <action function="set">tw_backup_password=</action>
2201 <action function="set">tw_backup_password2=</action>
2202 <action function="set">tw_backup_encrypt_display=</action>
2203 <action function="set">tw_backup_encrypt_display2=</action>
2204 <action function="page">backup</action>
2205 </actions>
2206 </button>
2207
2208 <template name="keyboardtemplate"/>
2209
2210 <action>
2211 <touch key="home"/>
2212 <action function="page">main</action>
2213 </action>
2214
2215 <action>
2216 <touch key="back"/>
2217 <action function="page">backup</action>
2218 </action>
2219 </page>
2220
2221 <page name="checkbackuppassword">
2222 <action>
2223 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2224 <actions>
2225 <action function="set">tw_encrypt_backup=1</action>
2226 <action function="page">backup</action>
2227 </actions>
2228 </action>
2229
2230 <action>
2231 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2232 <actions>
2233 <action function="set">tw_encrypt_backup=0</action>
2234 <action function="set">tw_password_not_match=1</action>
2235 <action function="set">tw_backup_password=</action>
2236 <action function="set">tw_backup_password2=</action>
2237 <action function="set">tw_backup_encrypt_display=</action>
2238 <action function="set">tw_backup_encrypt_display2=</action>
2239 <action function="page">backupencryption</action>
2240 </actions>
2241 </action>
2242 </page>
2243
2244 <page name="backup_run">
2245 <template name="page"/>
2246
2247 <text style="text_l">
2248 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2249 <text>%tw_operation%</text>
2250 </text>
2251
2252 <text style="text_m">
2253 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2254 <text>%tw_partition% Partition</text>
2255 </text>
2256
2257 <template name="console"/>
2258
2259 <template name="progress_bar"/>
2260
2261 <text style="text_m_accent">
2262 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002263 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002264 </text>
2265
2266 <text style="text_m">
2267 <placement x="%indent%" y="%row20_y%"/>
2268 <text>%tw_file_progress%</text>
2269 </text>
2270
2271 <text style="text_m">
2272 <placement x="%indent%" y="%row21_y%"/>
2273 <text>%tw_size_progress%</text>
2274 </text>
2275
2276 <button style="main_button_half_height">
2277 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002278 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002279 <action function="cancelbackup"/>
2280 </button>
2281
2282 <action>
2283 <action function="nandroid">backup</action>
2284 </action>
2285
2286 <action>
2287 <condition var1="tw_operation_state" var2="1"/>
2288 <condition var1="tw_cancel_backup" var2="0"/>
2289 <actions>
2290 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002291 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002292 <action function="set">tw_show_reboot=1</action>
2293 <action function="page">action_complete</action>
2294 </actions>
2295 </action>
2296
2297 <action>
2298 <condition var1="tw_operation_state" var2="1"/>
2299 <condition var1="tw_cancel_backup" var2="1"/>
2300 <actions>
2301 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002302 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002303 <action function="set">tw_show_reboot=1</action>
2304 <action function="page">action_complete</action>
2305 </actions>
2306 </action>
2307 </page>
2308
2309 <page name="restore">
2310 <template name="page"/>
2311
Noah Jacobson81d638d2019-04-28 00:10:07 -04002312 <action>
2313 <conditions>
2314 <condition var1="tw_is_fbe" var2="1"/>
2315 <condition var1="tw_all_users_decrypted" var2="0"/>
2316 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2317 </conditions>
2318 <actions>
2319 <action function="set">tw_multiuser_warning_destination=restore</action>
2320 <action function="page">multiuser_warning</action>
2321 </actions>
2322 </action>
2323
z31s1g28f0a922015-11-07 18:50:22 +01002324 <text style="text_l">
2325 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002326 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002327 </text>
2328
2329 <text style="text_m">
2330 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002331 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002332 </text>
2333
2334 <template name="sort_options"/>
2335
2336 <fileselector>
2337 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002338 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002339 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002340 <path name="tw_backups_folder"/>
2341 <data name="tw_restore" default=""/>
2342 <selection name="tw_restore_name"/>
2343 </fileselector>
2344
2345 <button style="main_button_half_height">
2346 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002347 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002348 <actions>
2349 <action function="set">tw_back=restore</action>
2350 <action function="overlay">select_storage</action>
2351 </actions>
2352 </button>
2353
2354 <action>
2355 <condition var1="tw_restore" op="modified"/>
2356 <actions>
2357 <action function="readBackup"/>
2358 <action function="page">restore_read</action>
2359 </actions>
2360 </action>
2361
2362 <action>
2363 <touch key="home"/>
2364 <action function="page">main</action>
2365 </action>
2366
2367 <action>
2368 <touch key="back"/>
2369 <action function="page">main</action>
2370 </action>
2371 </page>
2372
2373 <page name="restore_read">
2374 <action>
2375 <condition var1="tw_restore_encrypted" var2="1"/>
2376 <actions>
2377 <action function="set">tw_password_fail=0</action>
2378 <action function="page">restore_decrypt</action>
2379 </actions>
2380 </action>
2381
2382 <action>
2383 <condition var1="tw_restore_encrypted" var2="0"/>
2384 <actions>
2385 <action function="page">restore_select</action>
2386 </actions>
2387 </action>
2388 </page>
2389
2390 <page name="restore_decrypt">
2391 <template name="page"/>
2392
2393 <text style="text_l">
2394 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002395 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002396 </text>
2397
2398 <text style="text_m">
2399 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002400 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002401 </text>
2402
2403 <text style="text_m_accent">
2404 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002405 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002406 </text>
2407
2408 <input>
2409 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2410 <text>%tw_restore_display%</text>
2411 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2412 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2413 <action function="page">try_restore_decrypt</action>
2414 </input>
2415
2416 <fill color="%accent_color%">
2417 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2418 </fill>
2419
2420 <fill color="%text_fail_color%">
2421 <condition var1="tw_password_fail" var2="1"/>
2422 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2423 </fill>
2424
2425 <text style="text_m_fail">
2426 <condition var1="tw_password_fail" var2="1"/>
2427 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002428 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002429 </text>
2430
2431 <button style="main_button_half_height">
2432 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002433 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002434 <actions>
2435 <action function="set">tw_page_done=1</action>
2436 <action function="page">restore</action>
2437 </actions>
2438 </button>
2439
2440 <button style="main_button_half_height">
2441 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002442 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002443 <actions>
2444 <action function="set">tw_back=restore</action>
2445 <action function="set">tw_action=cmd</action>
2446 <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 -05002447 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2448 <action function="set">tw_text2=%tw_restore_name%</action>
2449 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2450 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2451 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2452 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002453 <action function="page">confirm_action</action>
2454 </actions>
2455 </button>
2456
2457 <template name="keyboardtemplate"/>
2458
2459 <action>
2460 <touch key="home"/>
2461 <action function="page">main</action>
2462 </action>
2463
2464 <action>
2465 <touch key="back"/>
2466 <action function="page">restore</action>
2467 </action>
2468 </page>
2469
2470 <page name="try_restore_decrypt">
2471 <template name="page"/>
2472
2473 <text style="text_l">
2474 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002475 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002476 </text>
2477
2478 <text style="text_m">
2479 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002480 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002481 </text>
2482
2483 <template name="console"/>
2484
2485 <template name="progress_bar"/>
2486
2487 <action>
2488 <action function="decrypt_backup"/>
2489 </action>
2490
2491 <action>
2492 <conditions>
2493 <condition var1="tw_operation_state" var2="1"/>
2494 <condition var1="tw_operation_status" op="!=" var2="0"/>
2495 </conditions>
2496 <actions>
2497 <action function="set">tw_password_fail=1</action>
2498 <action function="page">restore_decrypt</action>
2499 </actions>
2500 </action>
2501
2502 <action>
2503 <conditions>
2504 <condition var1="tw_operation_state" var2="1"/>
2505 <condition var1="tw_operation_status" op="=" var2="0"/>
2506 </conditions>
2507 <actions>
2508 <action function="set">tw_page_done=1</action>
2509 <action function="page">restore_select</action>
2510 </actions>
2511 </action>
2512 </page>
2513
2514 <page name="restore_select">
2515 <template name="page"/>
2516
2517 <text style="text_l">
2518 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002519 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002520 </text>
2521
2522 <text style="text_m">
2523 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002524 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002525 </text>
2526
2527 <text style="text_m_accent">
2528 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002529 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002530 </text>
2531
2532 <text style="text_m">
2533 <placement x="%indent%" y="%row3_y%"/>
2534 <text>%tw_restore_name%</text>
2535 </text>
2536
2537 <fill color="%fileselector_linecolor%">
2538 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width"/>
2539 </fill>
2540
2541 <button>
2542 <placement x="indent" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2543 <fill color="%transparent%"/>
2544 <actions>
2545 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2546 <action function="set">tw_fileexists=0</action>
2547 <action function="page">renamebackup</action>
2548 </actions>
2549 </button>
2550
2551 <partitionlist>
2552 <placement x="%indent%" y="%row4a_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002553 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002554 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2555 <listtype name="restore"/>
2556 </partitionlist>
2557
2558 <checkbox>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002559 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002560 <placement x="%indent%" y="%row17_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002561 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2562 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002563 </checkbox>
2564
2565 <button style="main_button_half_height">
2566 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002567 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002568 <actions>
2569 <action function="set">tw_back=restore</action>
2570 <action function="set">tw_action=cmd</action>
2571 <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 -05002572 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002573 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002574 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2575 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2576 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2577 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002578 <action function="page">confirm_action</action>
2579 </actions>
2580 </button>
2581
2582 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002583 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002584 <action function="page">restore_run</action>
2585 </slider>
2586
2587 <action>
2588 <touch key="home"/>
2589 <action function="page">main</action>
2590 </action>
2591
2592 <action>
2593 <touch key="back"/>
2594 <action function="page">restore</action>
2595 </action>
2596 </page>
2597
2598 <page name="renamebackup">
2599 <template name="page"/>
2600
2601 <text style="text_l">
2602 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002603 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002604 </text>
2605
2606 <text style="text_m">
2607 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002608 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002609 </text>
2610
2611 <text style="text_m_accent">
2612 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002613 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002614 </text>
2615
2616 <input>
2617 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2618 <text>%tw_backup_rename%</text>
2619 <data name="tw_backup_rename"/>
2620 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2621 <actions>
2622 <action function="set">tw_back=restore</action>
2623 <action function="set">tw_action=cmd</action>
2624 <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 -05002625 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2626 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2627 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2628 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2629 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002630 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2631 <action function="set">tw_existpage=renamebackup</action>
2632 <action function="set">tw_notexistpage=confirm_action</action>
2633 <action function="page">filecheck</action>
2634 </actions>
2635 </input>
2636
2637 <fill color="%accent_color%">
2638 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2639 </fill>
2640
2641 <fill color="%text_fail_color%">
2642 <condition var1="tw_fileexists" var2="1"/>
2643 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2644 </fill>
2645
2646 <text style="text_m_fail">
2647 <condition var1="tw_fileexists" var2="1"/>
2648 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002649 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002650 </text>
2651
2652 <button style="main_button_half_height">
2653 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002654 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002655 <action function="page">restore_select</action>
2656 </button>
2657
2658 <template name="keyboardtemplate"/>
2659
2660 <action>
2661 <touch key="home"/>
2662 <action function="page">main</action>
2663 </action>
2664
2665 <action>
2666 <touch key="back"/>
2667 <action function="page">restore_select</action>
2668 </action>
2669 </page>
2670
2671 <page name="restore_run">
2672 <template name="page"/>
2673
2674 <text style="text_l">
2675 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002676 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002677 </text>
2678
2679 <text style="text_m">
2680 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2681 <text>%tw_operation% %tw_partition%</text>
2682 </text>
2683
2684 <template name="console"/>
2685
2686 <template name="progress_bar"/>
2687
2688 <text style="text_m_accent">
2689 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002690 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002691 </text>
2692
2693 <text style="text_m">
2694 <placement x="%indent%" y="%row20_y%"/>
2695 <text>%tw_size_progress%</text>
2696 </text>
2697
2698 <action>
2699 <condition var1="tw_operation_state" var2="1"/>
2700 <actions>
2701 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002702 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002703 <action function="set">tw_show_reboot=1</action>
2704 <action function="page">action_complete</action>
2705 </actions>
2706 </action>
2707
2708 <action>
2709 <action function="nandroid">restore</action>
2710 </action>
2711 </page>
2712
2713 <page name="mount">
2714 <template name="page"/>
2715
2716 <text style="text_l">
2717 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002718 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002719 </text>
2720
2721 <text style="text_m">
2722 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002723 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002724 </text>
2725
2726 <partitionlist>
2727 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002728 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002729 <listtype name="mount"/>
2730 </partitionlist>
2731
2732 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002733 <conditions>
2734 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2735 <condition var1="tw_is_super" op="=" var2="0"/>
2736 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002737 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002738 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002739 <image resource="checkbox_false"/>
2740 <action function="mountsystemtoggle">1</action>
2741 </button>
2742
2743 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002744 <conditions>
2745 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2746 <condition var1="tw_is_super" op="=" var2="0"/>
2747 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002748 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002749 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002750 <image resource="checkbox_true"/>
2751 <actions>
2752 <action function="set">tw_lifetime_writes=2</action>
2753 <action function="page">system_readonly_check</action>
2754 </actions>
2755 </button>
2756
2757 <button style="main_button_half_height">
2758 <condition var1="tw_has_usb_storage" var2="1"/>
2759 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002760 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002761 <action function="page">usb_mount</action>
2762 </button>
2763
2764 <button style="main_button_half_height">
2765 <conditions>
2766 <condition var1="tw_is_encrypted" var2="1"/>
2767 <condition var1="tw_is_decrypted" var2="0"/>
2768 </conditions>
2769 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002770 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04002771 <action function="set">tw_crypto_user_id=0</action>
2772 <action function="set">tw_crypto_password=</action>
2773 <action function="set">tw_password_fail=0</action>
2774 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002775 <action function="page">decrypt</action>
2776 </button>
2777
2778 <button style="main_button_half_height">
2779 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002780 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002781 <actions>
2782 <action function="set">tw_back=mount</action>
2783 <action function="overlay">select_storage</action>
2784 </actions>
2785 </button>
2786
2787 <button style="main_button_half_height">
2788 <conditions>
2789 <condition var1="tw_has_mtp" var2="1"/>
2790 <condition var1="tw_mtp_enabled" var2="0"/>
2791 </conditions>
2792 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002793 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002794 <action function="startmtp"/>
2795 </button>
2796
2797 <button style="main_button_half_height">
2798 <conditions>
2799 <condition var1="tw_has_mtp" var2="1"/>
2800 <condition var1="tw_mtp_enabled" var2="1"/>
2801 </conditions>
2802 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002803 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002804 <action function="stopmtp"/>
2805 </button>
2806
2807 <action>
2808 <touch key="home"/>
2809 <action function="page">main</action>
2810 </action>
2811
2812 <action>
2813 <touch key="back"/>
2814 <action function="page">main</action>
2815 </action>
2816 </page>
2817
2818 <page name="usb_mount">
2819 <template name="page"/>
2820
2821 <text style="text_l">
2822 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002823 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002824 </text>
2825
2826 <text style="text_m">
2827 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002828 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002829 </text>
2830
2831 <text style="text_m_accent">
2832 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002833 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002834 </text>
2835
2836 <text style="text_m">
2837 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002838 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002839 </text>
2840
2841 <text style="text_m">
2842 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002843 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002844 </text>
2845
2846 <button style="main_button_half_height">
2847 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002848 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002849 <action function="page">usb_umount</action>
2850 </button>
2851
2852 <action>
2853 <action function="mount">usb</action>
2854 <action function="set">tw_busy=1</action>
2855 </action>
2856 </page>
2857
2858 <page name="usb_umount">
2859 <action>
2860 <action function="unmount">usb</action>
2861 </action>
2862
2863 <action>
2864 <action function="page">mount</action>
2865 <action function="set">tw_busy=0</action>
2866 </action>
2867 </page>
2868
2869 <page name="system_readonly_check">
2870 <action>
2871 <action function="checkpartitionlifetimewrites">/system</action>
2872 </action>
2873
2874 <action>
2875 <condition var1="tw_lifetime_writes" var2="1"/>
2876 <actions>
2877 <action function="mountsystemtoggle">0</action>
2878 <action function="page">mount</action>
2879 </actions>
2880 </action>
2881
2882 <action>
2883 <condition var1="tw_lifetime_writes" var2="0"/>
2884 <actions>
2885 <action function="set">tw_back=mount</action>
2886 <action function="page">system_readonly</action>
2887 </actions>
2888 </action>
2889 </page>
2890
bigbiffdf8436b2020-08-30 16:22:34 -04002891 <page name="fastbootreboot">
2892 <template name="page"/>
2893
2894 <text style="text_l">
2895 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2896 <text>{@reboot_hdr=Reboot}</text>
2897 </text>
2898
2899 <listbox style="advanced_listbox">
2900 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
2901
2902 <listitem name="{@rb_system_btn=System}">
2903 <condition var1="tw_reboot_system" var2="1"/>
2904 <actions>
2905 <action function="set">tw_back=fastbootreboot</action>
2906 <action function="set">tw_action=reboot</action>
2907 <action function="set">tw_action_param=system</action>
2908 <action function="set">tw_reboot_param=system</action>
2909 <action function="set">tw_has_action2=0</action>
2910 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2911 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2912 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2913 <action function="page">confirm_action</action>
2914 </actions>
2915 </listitem>
2916
2917 <listitem name="{@rb_poweroff_btn=Power Off}">
2918 <condition var1="tw_reboot_poweroff" var2="1"/>
2919 <actions>
2920 <action function="set">tw_back=fastbootreboot</action>
2921 <action function="set">tw_action=reboot</action>
2922 <action function="set">tw_action_param=poweroff</action>
2923 <action function="set">tw_reboot_param=poweroff</action>
2924 <action function="set">tw_has_action2=0</action>
2925 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2926 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2927 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2928 <action function="page">confirm_action</action>
2929 </actions>
2930 </listitem>
2931
2932 <listitem name="{@rb_recovery_btn=Recovery}">
2933 <condition var1="tw_reboot_recovery" var2="1"/>
2934 <actions>
2935 <action function="set">tw_back=fastbootreboot</action>
2936 <action function="set">tw_action=reboot</action>
2937 <action function="set">tw_action_param=recovery</action>
2938 <action function="set">tw_reboot_param=recovery</action>
2939 <action function="set">tw_has_action2=0</action>
2940 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2941 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2942 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2943 <action function="page">confirm_action</action>
2944 </actions>
2945 </listitem>
2946
2947 <listitem name="{@rb_bootloader_btn=Bootloader}">
2948 <condition var1="tw_reboot_bootloader" var2="1"/>
2949 <actions>
2950 <action function="set">tw_back=fastbootreboot</action>
2951 <action function="set">tw_action=reboot</action>
2952 <action function="set">tw_action_param=bootloader</action>
2953 <action function="set">tw_reboot_param=bootloader</action>
2954 <action function="set">tw_has_action2=0</action>
2955 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2956 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2957 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2958 <action function="page">confirm_action</action>
2959 </actions>
2960 </listitem>
2961
2962 <listitem name="{@rb_download_btn=Download}">
2963 <condition var1="tw_download_mode" var2="1"/>
2964 <actions>
2965 <action function="set">tw_back=fastbootreboot</action>
2966 <action function="set">tw_action=reboot</action>
2967 <action function="set">tw_action_param=download</action>
2968 <action function="set">tw_reboot_param=download</action>
2969 <action function="set">tw_has_action2=0</action>
2970 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2971 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2972 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2973 <action function="page">confirm_action</action>
2974 </actions>
2975 </listitem>
2976
2977 <listitem name="{@fastboot_button=Fastboot}">
2978 <condition var1="tw_fastboot_mode" var2="1"/>
2979 <actions>
2980 <action function="set">tw_back=fastbootreboot</action>
2981 <action function="set">tw_action=reboot</action>
2982 <action function="set">tw_action_param=fastboot</action>
2983 <action function="set">tw_reboot_param=fastboot</action>
2984 <action function="set">tw_has_action2=0</action>
2985 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2986 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2987 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2988 <action function="page">confirm_action</action>
2989 </actions>
2990 </listitem>
2991
2992 <listitem name="{@rb_edl_btn=Edl}">
2993 <condition var1="tw_edl_mode" var2="1"/>
2994 <actions>
2995 <action function="set">tw_back=fastbootreboot</action>
2996 <action function="set">tw_action=reboot</action>
2997 <action function="set">tw_action_param=edl</action>
2998 <action function="set">tw_reboot_param=edl</action>
2999 <action function="set">tw_has_action2=0</action>
3000 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3001 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3002 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3003 <action function="page">confirm_action</action>
3004 </actions>
3005 </listitem>
3006 </listbox>
3007
3008 <action>
3009 <touch key="home"/>
3010 <action function="page">fastboot</action>
3011 </action>
3012
3013 <action>
3014 <touch key="back"/>
3015 <action function="page">fastboot</action>
3016 </action>
3017 </page>
3018
z31s1g28f0a922015-11-07 18:50:22 +01003019 <page name="reboot">
Ethan Yonker8581ab32020-12-17 14:51:50 -06003020 <action>
3021 <action function="checkforapp"></action>
3022 <action function="page">reboot2</action>
3023 </action>
3024 </page>
3025
3026 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01003027 <template name="page"/>
3028
3029 <text style="text_l">
3030 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003031 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003032 </text>
3033
bigbiffdf8436b2020-08-30 16:22:34 -04003034 <listbox style="advanced_listbox">
3035 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003036
bigbiffdf8436b2020-08-30 16:22:34 -04003037 <listitem name="{@rb_system_btn=System}">
3038 <condition var1="tw_reboot_system" var2="1"/>
3039 <actions>
3040 <action function="set">tw_back=reboot</action>
3041 <action function="page">reboot_system_routine</action>
3042 </actions>
3043 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003044
bigbiffdf8436b2020-08-30 16:22:34 -04003045 <listitem name="{@rb_poweroff_btn=Power Off}">
3046 <condition var1="tw_reboot_poweroff" var2="1"/>
3047 <actions>
3048 <action function="set">tw_back=reboot</action>
3049 <action function="set">tw_action=reboot</action>
3050 <action function="set">tw_action_param=poweroff</action>
3051 <action function="set">tw_reboot_param=poweroff</action>
3052 <action function="set">tw_has_action2=0</action>
3053 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3054 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
3055 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3056 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3057 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
3058 <action function="page">rebootcheck</action>
3059 </actions>
3060 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003061
bigbiffdf8436b2020-08-30 16:22:34 -04003062 <listitem name="{@rb_recovery_btn=Recovery}">
3063 <condition var1="tw_reboot_recovery" var2="1"/>
3064 <actions>
3065 <action function="set">tw_back=reboot</action>
3066 <action function="set">tw_action=reboot</action>
3067 <action function="set">tw_action_param=recovery</action>
3068 <action function="set">tw_reboot_param=recovery</action>
3069 <action function="set">tw_has_action2=0</action>
3070 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3071 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3072 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3073 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3074 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3075 <action function="page">rebootcheck</action>
3076 </actions>
3077 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003078
bigbiffdf8436b2020-08-30 16:22:34 -04003079 <listitem name="{@rb_bootloader_btn=Bootloader}">
3080 <condition var1="tw_reboot_bootloader" var2="1"/>
3081 <actions>
3082 <action function="set">tw_back=reboot</action>
3083 <action function="set">tw_action=reboot</action>
3084 <action function="set">tw_action_param=bootloader</action>
3085 <action function="set">tw_reboot_param=bootloader</action>
3086 <action function="set">tw_has_action2=0</action>
3087 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3088 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3089 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3090 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3091 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3092 <action function="page">rebootcheck</action>
3093 </actions>
3094 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003095
bigbiffdf8436b2020-08-30 16:22:34 -04003096 <listitem name="{@rb_download_btn=Download}">
3097 <condition var1="tw_download_mode" var2="1"/>
3098 <actions>
3099 <action function="set">tw_back=reboot</action>
3100 <action function="set">tw_action=reboot</action>
3101 <action function="set">tw_action_param=download</action>
3102 <action function="set">tw_reboot_param=download</action>
3103 <action function="set">tw_has_action2=0</action>
3104 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3105 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3106 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3107 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3108 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3109 <action function="page">rebootcheck</action>
3110 </actions>
3111 </listitem>
3112
3113 <listitem name="{@fastboot_button=Fastboot}">
3114 <condition var1="tw_fastboot_mode" var2="1"/>
3115 <actions>
3116 <action function="set">tw_back=reboot</action>
3117 <action function="set">tw_action=reboot</action>
3118 <action function="set">tw_action_param=fastboot</action>
3119 <action function="set">tw_reboot_param=fastboot</action>
3120 <action function="set">tw_has_action2=0</action>
3121 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3122 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3123 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3124 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3125 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3126 <action function="page">rebootcheck</action>
3127 </actions>
3128 </listitem>
3129
3130 <listitem name="{@rb_edl_btn=Edl}">
3131 <condition var1="tw_edl_mode" var2="1"/>
3132 <actions>
3133 <action function="set">tw_back=reboot</action>
3134 <action function="set">tw_action=reboot</action>
3135 <action function="set">tw_action_param=edl</action>
3136 <action function="set">tw_reboot_param=edl</action>
3137 <action function="set">tw_has_action2=0</action>
3138 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3139 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3140 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3141 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3142 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3143 <action function="page">rebootcheck</action>
3144 </actions>
3145 </button>
3146 </listbox>
mauronofrioe9a49ef2018-10-03 13:38:16 +02003147
Ethan Yonker1b190162016-12-05 15:25:19 -06003148 <text style="text_m">
3149 <condition var1="tw_has_boot_slots" var2="1"/>
bigbiffdf8436b2020-08-30 16:22:34 -04003150 <placement x="%center_x%" y="%row15_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06003151 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
3152 </text>
3153
bigbiffdf8436b2020-08-30 16:22:34 -04003154 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06003155 <condition var1="tw_has_boot_slots" var2="1"/>
3156 <placement x="%indent%" y="%row19_y%"/>
3157 <text>{@boot_slot_a=Slot A}</text>
3158 <actions>
3159 <action function="set">tw_back=reboot</action>
3160 <action function="set">tw_action=setbootslot</action>
3161 <action function="set">tw_action_param=A</action>
3162 <action function="set">tw_has_action2=0</action>
3163 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3164 <action function="set">tw_action_text2=</action>
3165 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3166 <action function="page">action_page</action>
3167 </actions>
3168 </button>
3169
bigbiffdf8436b2020-08-30 16:22:34 -04003170 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06003171 <condition var1="tw_has_boot_slots" var2="1"/>
3172 <placement x="%center_x%" y="%row19_y%"/>
3173 <text>{@boot_slot_b=Slot B}</text>
3174 <actions>
3175 <action function="set">tw_back=reboot</action>
3176 <action function="set">tw_action=setbootslot</action>
3177 <action function="set">tw_action_param=B</action>
3178 <action function="set">tw_has_action2=0</action>
3179 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3180 <action function="set">tw_action_text2=</action>
3181 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3182 <action function="page">action_page</action>
3183 </actions>
3184 </button>
3185
Ethan Yonker8581ab32020-12-17 14:51:50 -06003186 <button style="main_button_half_height">
3187 <condition var1="tw_app_install_status" var2="1"/>
3188 <placement x="%indent%" y="%row22_y%"/>
3189 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
3190 <actions>
3191 <action function="set">tw_back=reboot</action>
3192 <action function="set">tw_appinstall_title={@reboot_hdr=Reboot}</action>
3193 <action function="page">installapp</action>
3194 </actions>
3195 </button>
3196
z31s1g28f0a922015-11-07 18:50:22 +01003197 <action>
3198 <touch key="home"/>
3199 <action function="page">main</action>
3200 </action>
3201
3202 <action>
3203 <touch key="back"/>
3204 <action function="page">main</action>
3205 </action>
3206 </page>
3207
Ethan Yonker8581ab32020-12-17 14:51:50 -06003208 <page name="installapp">
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003209 <template name="page"/>
3210
3211 <text style="text_l">
3212 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003213 <text>%tw_appinstall_title%</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003214 </text>
3215
3216 <text style="text_m">
3217 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003218 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003219 </text>
3220
3221 <text style="text_m_accent">
3222 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3223 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3224 </text>
3225
3226 <text style="text_m_accent">
3227 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3228 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3229 </text>
3230
3231 <checkbox>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003232 <condition var1="tw_mount_system_ro" var2="0"/>
3233 <placement x="%indent%" y="%row7_y%"/>
3234 <text>{@reboot_install_app_system=Install as a System App}</text>
3235 <data variable="tw_app_install_system"/>
3236 </checkbox>
3237
3238 <button style="main_button_half_height">
3239 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003240 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003241 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003242 </button>
3243
3244 <slider>
3245 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3246 <actions>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003247 <action function="set">tw_action=installapp</action>
3248 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3249 <action function="set">tw_action_text2=</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003250 <action function="set">tw_complete_text1={@successful=Successful}</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003251 <action function="page">action_page</action>
3252 </actions>
3253 </slider>
3254
3255 <action>
3256 <touch key="home"/>
3257 <actions>
3258 <action function="set">tw_app_install_status=0</action>
3259 <action function="page">main</action>
3260 </actions>
3261 </action>
3262
3263 <action>
3264 <touch key="back"/>
3265 <actions>
3266 <action function="set">tw_app_install_status=0</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003267 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003268 </actions>
3269 </action>
3270 </page>
3271
z31s1g28f0a922015-11-07 18:50:22 +01003272 <page name="system_readonly">
3273 <template name="page"/>
3274
3275 <text style="text_l">
3276 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003277 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003278 </text>
3279
3280 <text style="text_m_accent">
3281 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003282 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003283 </text>
3284
3285 <text style="text_m">
3286 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003287 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003288 </text>
3289
3290 <text style="text_m">
3291 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003292 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003293 </text>
3294
3295 <text style="text_m">
3296 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003297 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003298 </text>
3299
3300 <text style="text_m">
3301 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003302 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003303 </text>
3304
3305 <text style="text_m_fail">
3306 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003307 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003308 </text>
3309
3310 <text style="text_m_fail">
3311 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003312 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003313 </text>
3314
3315 <checkbox>
3316 <condition var1="tw_is_encrypted" var2="0"/>
3317 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003318 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003319 <data variable="tw_never_show_system_ro_page"/>
3320 </checkbox>
3321
3322 <button style="main_button_half_height">
3323 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003324 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003325 <actions>
3326 <action function="mountsystemtoggle">1</action>
3327 <action function="set">tw_page_done=1</action>
3328 <action function="page">%tw_back%</action>
3329 </actions>
3330 </button>
3331
z31s1g608d7ff2016-01-18 19:47:25 +01003332 <button style="main_button_half_height">
3333 <placement x="%center_x%" y="%row18a_y%"/>
3334 <text>{@sel_lang_btn=Select Language}</text>
3335 <action function="overlay">select_language</action>
3336 </button>
3337
z31s1g28f0a922015-11-07 18:50:22 +01003338 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003339 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003340 <actions>
3341 <action function="mountsystemtoggle">0</action>
3342 <action function="set">tw_page_done=1</action>
3343 <action function="page">%tw_back%</action>
3344 </actions>
3345 </slider>
3346 </page>
3347
3348 <page name="settings">
3349 <template name="page"/>
3350
3351 <text style="text_l">
3352 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003353 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003354 </text>
3355
3356 <text style="text_m">
3357 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003358 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003359 </text>
3360
3361 <template name="tabs_settings"/>
3362
3363 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003364 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003365 </fill>
3366
3367 <listbox style="scrolllist">
3368 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3369 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003370 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003371 <data variable="tw_signed_zip_verify"/>
3372 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003373 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3374 <data variable="tw_install_reboot"/>
3375 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003376 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003377 <data variable="tw_rm_rf"/>
3378 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003379 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3380 <data variable="tw_disable_free_space"/>
3381 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003382 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3383 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003384 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003385 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3386 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003387 </listitem>
epicX9597b842021-03-20 21:58:17 +05303388 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
3389 <data variable="tw_skip_digest_check_zip"/>
3390 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003391 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003392 <data variable="tw_military_time"/>
3393 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003394 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003395 <data variable="tw_samsung_navbar"/>
3396 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003397 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003398 <data variable="tw_simulate_actions"/>
3399 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003400 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003401 <condition var1="tw_simulate_actions" var2="1"/>
3402 <data variable="tw_simulate_fail"/>
3403 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003404 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3405 <condition var1="tw_no_sha2" var2="0"/>
3406 <data variable="tw_use_sha2"/>
3407 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003408 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3409 <data variable="tw_unmount_system"/>
3410 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003411 </listbox>
3412
3413 <button style="main_button_half_height">
3414 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003415 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003416 <actions>
3417 <action function="set">tw_samsung_navbar=0</action>
3418 <action function="set">tw_tab_icons=0</action>
3419 <action function="restoredefaultsettings"/>
3420 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003421 </button>
3422
3423 <action>
3424 <touch key="home"/>
3425 <action function="page">main</action>
3426 </action>
3427
3428 <action>
3429 <touch key="back"/>
3430 <action function="page">main</action>
3431 </action>
3432 </page>
3433
3434 <page name="settings_timezone">
3435 <template name="page"/>
3436
3437 <text style="text_l">
3438 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003439 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003440 </text>
3441
3442 <text style="text_m">
3443 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003444 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003445 </text>
3446
3447 <template name="tabs_settings"/>
3448
3449 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003450 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003451 </fill>
3452
3453 <listbox>
3454 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003455 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003456 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003457 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3458 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3459 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3460 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3461 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3462 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3463 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3464 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3465 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3466 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3467 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3468 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3469 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3470 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3471 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3472 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3473 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3474 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3475 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3476 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3477 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3478 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3479 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3480 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003481 </listbox>
3482
3483 <text style="text_m_accent">
3484 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003485 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003486 </text>
3487
3488 <button style="button_quarter_width">
3489 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003490 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003491 <action function="set">tw_time_zone_guioffset=0</action>
3492 </button>
3493
3494 <button style="button_quarter_width">
3495 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003496 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003497 <action function="set">tw_time_zone_guioffset=15</action>
3498 </button>
3499
3500 <button style="button_quarter_width">
3501 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003502 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003503 <action function="set">tw_time_zone_guioffset=30</action>
3504 </button>
3505
3506 <button style="button_quarter_width">
3507 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003508 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003509 <action function="set">tw_time_zone_guioffset=45</action>
3510 </button>
3511
3512 <checkbox>
3513 <placement x="%indent%" y="%row18a_y%"/>
3514 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003515 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003516 <data variable="tw_time_zone_guidst"/>
3517 <image checked="checkbox_true" unchecked="checkbox_false"/>
3518 </checkbox>
3519
3520 <text color="%text_color%">
3521 <font resource="font_m"/>
3522 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003523 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003524 </text>
3525
3526 <button>
3527 <highlight color="%highlight_color%"/>
3528 <placement x="%center_x%" y="%row21a_y%"/>
3529 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003530 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003531 <image resource="main_button_half_height"/>
3532 <action function="setguitimezone"/>
3533 </button>
3534
3535 <action>
3536 <touch key="home"/>
3537 <action function="page">main</action>
3538 </action>
3539
3540 <action>
3541 <touch key="back"/>
3542 <action function="page">main</action>
3543 </action>
3544 </page>
3545
3546 <page name="settings_screen">
3547 <template name="page"/>
3548
3549 <text style="text_l">
3550 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003551 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003552 </text>
3553
3554 <text style="text_m">
3555 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003556 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003557 </text>
3558
3559 <template name="tabs_settings"/>
3560
3561 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003562 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003563 </fill>
3564
3565 <button>
3566 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3567 <font resource="font_m" color="%text_color%"/>
3568 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3569 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003570 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003571 <image resource="checkbox_false"/>
3572 <action function="set">tw_screen_timeout_secs=60</action>
3573 </button>
3574
3575 <button>
3576 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3577 <font resource="font_m" color="%text_color%"/>
3578 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3579 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003580 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003581 <image resource="checkbox_true"/>
3582 <action function="set">tw_screen_timeout_secs=0</action>
3583 </button>
3584
3585 <slidervalue>
3586 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3587 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3588 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003589 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003590 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3591 </slidervalue>
3592
3593 <slidervalue>
3594 <condition var1="tw_has_brightnesss_file" var2="1"/>
3595 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003596 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003597 <data variable="tw_brightness_pct" min="10" max="100"/>
3598 <actions>
3599 <action function="set">tw_brightness=%tw_brightness_max%</action>
3600 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3601 <action function="compute">tw_brightness/100</action>
3602 <action function="setbrightness">%tw_brightness%</action>
3603 </actions>
3604 </slidervalue>
3605
3606 <action>
3607 <touch key="home"/>
3608 <action function="page">main</action>
3609 </action>
3610
3611 <action>
3612 <touch key="back"/>
3613 <action function="page">main</action>
3614 </action>
3615 </page>
3616
3617 <page name="settings_vibration">
3618 <template name="page"/>
3619
3620 <text style="text_l">
3621 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003622 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003623 </text>
3624
3625 <text style="text_m">
3626 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003627 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003628 </text>
3629
3630 <template name="tabs_settings"/>
3631
3632 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003633 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003634 </fill>
3635
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003636 <text style="text_m">
3637 <condition var1="tw_disable_haptics" var2="1"/>
3638 <placement x="%indent%" y="%row4_y%"/>
3639 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3640 </text>
3641
z31s1g28f0a922015-11-07 18:50:22 +01003642 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003643 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003644 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003645 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003646 <data variable="tw_button_vibrate" min="0" max="300"/>
3647 </slidervalue>
3648
3649 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003650 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003651 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003652 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003653 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3654 </slidervalue>
3655
3656 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003657 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003658 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003659 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003660 <data variable="tw_action_vibrate" min="0" max="500"/>
3661 </slidervalue>
3662
3663 <action>
3664 <touch key="home"/>
3665 <action function="page">main</action>
3666 </action>
3667
3668 <action>
3669 <touch key="back"/>
3670 <action function="page">main</action>
3671 </action>
3672 </page>
3673
Ethan Yonker74db1572015-10-28 12:44:49 -05003674 <page name="settings_language">
3675 <template name="page"/>
3676
3677 <text style="text_l">
3678 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3679 <text>{@settings_hdr=Settings}</text>
3680 </text>
3681
3682 <text style="text_m">
3683 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3684 <text>{@language_hdr=Language - %tw_language_display%}</text>
3685 </text>
3686
3687 <template name="tabs_settings"/>
3688
3689 <fill color="%text_color%">
3690 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3691 </fill>
3692
3693 <listbox>
3694 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3695 <text>{@select_language=Select Language:}</text>
3696 <icon selected="radio_true" unselected="radio_false" />
3697 <data name="tw_language" />
3698 </listbox>
3699
3700 <button style="main_button_half_height">
3701 <placement x="%center_x%" y="%row21a_y%"/>
3702 <text>{@set_language_btn=Set Language}</text>
3703 <action function="setlanguage"></action>
3704 </button>
3705
3706 <action>
3707 <touch key="home" />
3708 <action function="page">main</action>
3709 </action>
3710
3711 <action>
3712 <touch key="back" />
3713 <action function="page">settings</action>
3714 </action>
3715 </page>
3716
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003717 <page name="copylog">
3718 <template name="page"/>
3719
3720 <text style="text_l">
3721 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3722 <text>{@copying_log=Copy Logs to SD Card}</text>
3723 </text>
3724
3725 <checkbox>
3726 <placement x="%indent%" y="%row4_y%"/>
3727 <text>{@include_kernel_log=Include Kernel Log}</text>
3728 <data variable="tw_include_kernel_log" value="1"/>
3729 </checkbox>
3730
3731 <slider>
3732 <text>{@copying_log=Copy Logs to SD Card}</text>
3733 <actions>
3734 <action function="set">tw_back=advanced</action>
3735 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003736 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3737 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003738 <action function="page">action_page</action>
3739 </actions>
3740 </slider>
3741
3742 <action>
3743 <touch key="home"/>
3744 <action function="page">main</action>
3745 </action>
3746
3747 <action>
3748 <touch key="back"/>
3749 <actions>
3750 <action function="page">advanced</action>
3751 </actions>
3752 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003753 </page>
3754
z31s1g28f0a922015-11-07 18:50:22 +01003755 <page name="advanced">
3756 <template name="page"/>
3757
3758 <text style="text_l">
3759 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003760 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003761 </text>
3762
3763 <button style="main_button">
3764 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003765 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003766 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003767 </button>
3768
3769 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003770 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003771 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003772 <text>{@adb_sideload_btn=ADB Sideload}</text>
3773 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003774 </button>
3775
3776 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003777 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003778 <text>{@terminal_btn=Terminal}</text>
3779 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003780 </button>
3781
3782 <button style="main_button">
3783 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003784 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003785 <action function="page">filemanagerlist</action>
3786 </button>
3787
Ethan Yonker64e0a652018-07-25 09:52:17 -05003788 <listbox style="advanced_listbox">
3789 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
Ian Macdonaldef7768e2021-03-01 21:31:07 +01003790 <listitem name="{@change_twrp_folder_btn=Change TWRP folder}">
epicXa721f952021-01-04 13:01:31 +05303791 <condition var1="tw_is_encrypted" var2="0"/>
3792 <action function="page">changeTwrpFolder</action>
3793 </listitem>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003794 <listitem name="{@decrypt_users=Decrypt Users}">
3795 <conditions>
3796 <condition var1="tw_is_fbe" var2="1"/>
3797 <condition var1="tw_all_users_decrypted" var2="0"/>
3798 </conditions>
3799 <actions>
3800 <action function="set">tw_crypto_user_id=</action>
3801 <action function="page">decrypt_users</action>
3802 </actions>
3803 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003804 <listitem name="{@reload_theme_btn=Reload Theme}">
3805 <action function="reload"/>
3806 </listitem>
3807 <listitem name="{@part_sd_btn=Partition SD Card}">
3808 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3809 <actions>
3810 <action function="set">partitionlisterror=0</action>
3811 <action function="page">partsdcardsel</action>
3812 </actions>
3813 </listitem>
3814 <listitem name="{@fix_context_btn=Fix Contexts}">
3815 <condition var1="tw_has_data_media" var2="1"/>
3816 <action function="page">fixcontexts</action>
3817 </listitem>
3818 <listitem name="{@dumlock_btn=HTC Dumlock}">
3819 <condition var1="tw_show_dumlock" var2="1"/>
3820 <action function="page">htcdumlock</action>
3821 </listitem>
3822 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3823 <condition var1="tw_has_injecttwrp" var2="1"/>
3824 <actions>
3825 <action function="set">tw_back=advanced</action>
3826 <action function="set">tw_action=reinjecttwrp</action>
3827 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3828 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3829 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3830 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3831 <action function="page">confirm_action</action>
3832 </actions>
3833 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003834 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3835 <conditions>
3836 <condition var1="tw_has_boot_slots" var2="1"/>
3837 <condition var1="tw_has_repack_tools" var2="1"/>
3838 </conditions>
3839 <actions>
3840 <action function="set">tw_repack_kernel=0</action>
3841 <action function="page">repackselect</action>
3842 </actions>
3843 </listitem>
3844 <listitem name="{@install_kernel=Install Kernel}">
3845 <conditions>
3846 <condition var1="tw_has_boot_slots" var2="1"/>
3847 <condition var1="tw_has_repack_tools" var2="1"/>
3848 </conditions>
3849 <actions>
3850 <action function="set">tw_repack_kernel=1</action>
3851 <action function="page">repackselect</action>
3852 </actions>
3853 </listitem>
3854 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3855 <conditions>
3856 <condition var1="tw_has_boot_slots" var2="1"/>
3857 <condition var1="tw_has_repack_tools" var2="1"/>
3858 </conditions>
3859 <actions>
3860 <action function="set">tw_back=advanced</action>
3861 <action function="set">tw_action=fixabrecoverybootloop</action>
3862 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3863 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3864 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3865 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3866 <action function="page">confirm_action</action>
3867 </actions>
3868 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003869 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3870 <condition var1="tw_app_install_status" var2="1"/>
3871 <actions>
3872 <action function="set">tw_back=advanced</action>
3873 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3874 <action function="page">installapp</action>
3875 </actions>
3876 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003877 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3878 <condition var1="tw_app_installed_in_system" var2="1"/>
3879 <actions>
3880 <action function="set">tw_back=advanced</action>
3881 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3882 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3883 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3884 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3885 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3886 <action function="page">confirm_action</action>
3887 </actions>
3888 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003889 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003890
3891 <action>
3892 <touch key="home"/>
3893 <action function="page">main</action>
3894 </action>
3895
3896 <action>
3897 <touch key="back"/>
3898 <action function="page">main</action>
3899 </action>
3900 </page>
3901
Ethan Yonker483e9f42016-01-11 22:21:18 -06003902 <page name="partsdcardsel">
3903 <template name="page"/>
3904
3905 <text style="text_l">
3906 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3907 <text>{@advanced_hdr=Advanced}</text>
3908 </text>
3909
3910 <text style="text_m">
3911 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3912 <text>{@part_sd_hdr=Partition SD Card}</text>
3913 </text>
3914
z31s1g782e1c92016-01-30 16:50:09 +01003915 <partitionlist>
3916 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003917 <text>{@sel_storage_list=Select Storage}</text>
3918 <data name="tw_storage_path"/>
3919 <listtype name="storage"/>
3920 </partitionlist>
3921
3922 <text style="text_m_fail">
3923 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01003924 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003925 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3926 </text>
3927
z31s1g782e1c92016-01-30 16:50:09 +01003928 <button style="main_button_half_height">
3929 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003930 <text>{@ok_btn=OK}</text>
3931 <actions>
3932 <action function="getpartitiondetails">tw_storage_path</action>
3933 <action function="page">partsdcardcheck</action>
3934 </actions>
3935 </button>
3936
3937 <action>
3938 <touch key="home"/>
3939 <action function="page">main</action>
3940 </action>
3941
3942 <action>
3943 <touch key="back"/>
3944 <action function="page">advanced</action>
3945 </action>
3946 </page>
3947
3948 <page name="partsdcardcheck">
3949 <action>
3950 <condition var1="tw_partition_removable" op="=" var2="1"/>
3951 <actions>
3952 <action function="set">partitionlisterror=0</action>
3953 <action function="page">partsdcard</action>
3954 </actions>
3955 </action>
3956
3957 <action>
3958 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3959 <actions>
3960 <action function="set">partitionlisterror=1</action>
3961 <action function="page">partsdcardsel</action>
3962 </actions>
3963 </action>
3964 </page>
3965
z31s1g28f0a922015-11-07 18:50:22 +01003966 <page name="partsdcard">
3967 <template name="page"/>
3968
3969 <text style="text_l">
3970 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003971 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003972 </text>
3973
3974 <text style="text_m">
3975 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003976 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003977 </text>
3978
3979 <text style="text_m_fail">
3980 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003981 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003982 </text>
3983
3984 <text style="text_m_fail">
3985 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003986 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003987 </text>
3988
3989 <text style="text_m_accent">
3990 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003991 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003992 </text>
3993
3994 <text style="text_m">
3995 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
3996 <text>%tw_sdext_size%</text>
3997 </text>
3998
3999 <button style="button_quarter_width">
4000 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004001 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004002 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004003 </button>
4004
4005 <button style="button_quarter_width">
4006 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004007 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004008 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004009 </button>
4010
4011 <text style="text_m_accent">
4012 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004013 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004014 </text>
4015
4016 <text style="text_m">
4017 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
4018 <text>%tw_swap_size%</text>
4019 </text>
4020
4021 <button style="button_quarter_width">
4022 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004023 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004024 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004025 </button>
4026
4027 <button style="button_quarter_width">
4028 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004029 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004030 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004031 </button>
4032
4033 <text style="text_m_accent">
4034 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004035 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004036 </text>
4037
4038 <text style="text_m">
4039 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
4040 <text>%tw_sdpart_file_system%</text>
4041 </text>
4042
4043 <button style="button_quarter_width">
4044 <placement x="%indent%" y="%row14_y%"/>
4045 <text>EXT3</text>
4046 <action function="set">tw_sdpart_file_system=ext3</action>
4047 </button>
4048
4049 <button style="button_quarter_width">
4050 <placement x="%btn4_col4_x%" y="%row14_y%"/>
4051 <text>EXT4</text>
4052 <action function="set">tw_sdpart_file_system=ext4</action>
4053 </button>
4054
4055 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004056 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004057 <action function="page">partsdcardaction</action>
4058 <actions>
4059 <action function="set">tw_back=partsdcard</action>
4060 <action function="set">tw_action=partitionsd</action>
4061 <action function="set">tw_has_action2=1</action>
4062 <action function="set">tw_action2=set</action>
4063 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004064 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4065 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4066 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004067 <action function="page">action_page</action>
4068 </actions>
4069 </slider>
4070
4071 <action>
4072 <touch key="home"/>
4073 <action function="page">main</action>
4074 </action>
4075
4076 <action>
4077 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004078 <actions>
4079 <action function="set">partitionlisterror=0</action>
4080 <action function="page">partsdcardsel</action>
4081 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004082 </action>
4083 </page>
4084
4085 <page name="htcdumlock">
4086 <template name="page"/>
4087
4088 <text style="text_l">
4089 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004090 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004091 </text>
4092
4093 <text style="text_m">
4094 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004095 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004096 </text>
4097
4098 <button style="main_button_half_height_full_width">
4099 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004100 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004101 <actions>
4102 <action function="set">tw_back=htcdumlock</action>
4103 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004104 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4105 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4106 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4107 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004108 <action function="page">confirm_action</action>
4109 </actions>
4110 </button>
4111
4112 <button style="main_button_half_height_full_width">
4113 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004114 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004115 <actions>
4116 <action function="set">tw_back=htcdumlock</action>
4117 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004118 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4119 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4120 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4121 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004122 <action function="page">confirm_action</action>
4123 </actions>
4124 </button>
4125
4126 <button style="main_button_half_height_full_width">
4127 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004128 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004129 <actions>
4130 <action function="set">tw_back=htcdumlock</action>
4131 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004132 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
4133 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4134 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4135 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004136 <action function="page">confirm_action</action>
4137 </actions>
4138 </button>
4139
4140 <action>
4141 <touch key="home"/>
4142 <action function="page">main</action>
4143 </action>
4144
4145 <action>
4146 <touch key="back"/>
4147 <action function="page">advanced</action>
4148 </action>
4149 </page>
4150
Ethan Yonker53796e72019-01-11 22:49:52 -06004151 <page name="repackselect">
4152 <template name="page"/>
4153
4154 <text style="text_l">
4155 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4156 <text>{@repack_image_hdr=Select Image}</text>
4157 </text>
4158
4159 <text style="text_m">
4160 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4161 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
4162 </text>
4163
4164 <template name="sort_options"/>
4165
4166 <fileselector>
4167 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
4168 <text>%tw_zip_location%</text>
4169 <filter extn=".img" folders="1" files="1"/>
4170 <path name="tw_zip_location" default="/sdcard"/>
4171 <data name="tw_filename"/>
4172 <selection name="tw_file"/>
4173 </fileselector>
4174
4175 <button style="main_button_half_height">
4176 <placement x="%indent%" y="%row21a_y%"/>
4177 <text>{@select_storage_btn=Select Storage}</text>
4178 <actions>
4179 <action function="set">tw_back=repackselect</action>
4180 <action function="overlay">select_storage</action>
4181 </actions>
4182 </button>
4183
4184 <action>
4185 <conditions>
4186 <condition var1="tw_filename" op="modified"/>
4187 </conditions>
4188 <action function="page">repackconfirm</action>
4189 </action>
4190
4191 <action>
4192 <touch key="back"/>
4193 <action function="page">advanced</action>
4194 </action>
4195
4196 <action>
4197 <touch key="home"/>
4198 <action function="page">main</action>
4199 </action>
4200 </page>
4201
4202 <page name="repackconfirm">
4203 <template name="page"/>
4204
4205 <text style="text_l">
4206 <condition var1="tw_repack_kernel" var2="1"/>
4207 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4208 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4209 </text>
4210
4211 <text style="text_l">
4212 <condition var1="tw_repack_kernel" var2="0"/>
4213 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4214 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4215 </text>
4216
4217 <text style="text_m">
4218 <condition var1="tw_repack_kernel" var2="1"/>
4219 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4220 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4221 </text>
4222
4223 <text style="text_m">
4224 <condition var1="tw_repack_kernel" var2="0"/>
4225 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4226 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4227 </text>
4228
4229 <text style="text_m_accent">
4230 <placement x="%indent%" y="%row2_y%"/>
4231 <text>{@folder=Folder:}</text>
4232 </text>
4233
4234 <text style="text_m">
4235 <placement x="%indent%" y="%row3_y%"/>
4236 <text>%tw_zip_location%</text>
4237 </text>
4238
4239 <text style="text_m_accent">
4240 <placement x="%indent%" y="%row4_y%"/>
4241 <text>{@file=File:}</text>
4242 </text>
4243
4244 <text style="text_m">
4245 <placement x="%indent%" y="%row5_y%"/>
4246 <text>%tw_file%</text>
4247 </text>
4248
4249 <checkbox>
4250 <placement x="%indent%" y="%row7_y%"/>
4251 <text>{@repack_backup_first=Back up existing image first}</text>
4252 <data variable="tw_repack_backup_first"/>
4253 </checkbox>
4254
4255 <button style="main_button_half_height">
4256 <placement x="%indent%" y="%row16_y%"/>
4257 <text>{@install_cancel=Do not Install}</text>
4258 <action function="page">repackselect</action>
4259 </button>
4260
4261 <slider>
4262 <text>{@swipe_to_install=Swipe to Install}</text>
4263 <actions>
4264 <action function="set">tw_back=advanced</action>
4265 <action function="set">tw_action=repackimage</action>
4266 <action function="set">tw_action_param=/boot</action>
4267 <action function="set">tw_action_text1={@installing=Installing...}</action>
4268 <action function="set">tw_action_text2=</action>
4269 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4270 <action function="page">action_page</action>
4271 </actions>
4272 </slider>
4273
4274 <action>
4275 <touch key="back"/>
4276 <action function="page">repackselect</action>
4277 </action>
4278
4279 <action>
4280 <touch key="home"/>
4281 <action function="page">main</action>
4282 </action>
4283 </page>
4284
z31s1g28f0a922015-11-07 18:50:22 +01004285 <page name="lock">
4286 <background color="%semi_transparent%"/>
4287
4288 <image>
4289 <image resource="unlock_icon"/>
4290 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4291 </image>
4292
4293 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004294 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004295 <action function="overlay"/>
4296 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004297
4298 <action>
4299 <touch key="power"/>
4300 <action function="togglebacklight"/>
4301 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004302 </page>
4303
4304 <page name="filemanagerlist">
4305 <template name="page"/>
4306
4307 <text style="text_l">
4308 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004309 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004310 </text>
4311
4312 <text style="text_m">
4313 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004314 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004315 </text>
4316
4317 <template name="sort_options"/>
4318
4319 <fileselector>
4320 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4321 <text>%tw_file_location1%</text>
4322 <filter folders="1" files="1"/>
4323 <path name="tw_file_location1" default="/"/>
4324 <data name="tw_filename1"/>
4325 <selection name="tw_selection1"/>
4326 </fileselector>
4327
4328 <button style="fab">
4329 <image resource="fab_selectfolder"/>
4330 <actions>
4331 <action function="set">tw_filename1=tw_file_location1</action>
4332 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004333 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004334 <action function="page">filemanageroptions</action>
4335 </actions>
4336 </button>
4337
4338 <action>
4339 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004340 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004341 <action function="set">tw_fm_isfolder=0</action>
4342 </actions>
4343 </action>
4344
4345 <action>
4346 <touch key="home"/>
4347 <action function="page">main</action>
4348 </action>
4349
4350 <action>
4351 <touch key="back"/>
4352 <action function="page">advanced</action>
4353 </action>
4354
4355 <action>
4356 <condition var1="tw_filename1" op="modified"/>
4357 <action function="page">filemanageroptions</action>
4358 </action>
4359 </page>
4360
4361 <page name="filemanageroptions">
4362 <template name="page"/>
4363
4364 <text style="text_l">
4365 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004366 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004367 </text>
4368
4369 <text style="text_m">
4370 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004371 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004372 </text>
4373
4374 <text style="text_m_accent">
4375 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004376 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004377 </text>
4378
4379 <text style="text_m">
4380 <placement x="%indent%" y="%row3_y%"/>
4381 <text>%tw_filename1%</text>
4382 </text>
4383
4384 <button style="main_button_half_height">
Captain Throwback16dd81b2021-02-12 19:32:36 -05004385 <conditions>
4386 <condition var1="tw_include_nano" var2="1"/>
4387 <condition var1="tw_fm_isfolder" var2="0"/>
4388 </conditions>
4389 <placement x="%indent%" y="%row12a_y%"/>
4390 <text>{@fm_edit_file=Edit File}</text>
4391 <actions>
4392 <action function="editfile">nano "%tw_filename1%"</action>
4393 <action function="page">terminalcommand</action>
4394 </actions>
4395 </button>
4396
4397 <button style="main_button_half_height">
Mohd Faraz77bbeb02020-08-12 12:29:42 +00004398 <condition var1="tw_fm_isfolder" var2="1"/>
4399 <placement x="%center_x%" y="%row12a_y%"/>
4400 <text>{@fm_open_terminal_btn=Open Terminal Here}</text>
4401 <action function="changeterminal">%tw_filename1%</action>
4402 </button>
4403
4404 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01004405 <condition var1="tw_fm_isfolder" var2="0"/>
4406 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004407 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004408 <actions>
4409 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004410 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004411 <action function="page">choosedestinationfolder</action>
4412 </actions>
4413 </button>
4414
4415 <button style="main_button_half_height">
4416 <condition var1="tw_fm_isfolder" var2="1"/>
4417 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004418 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004419 <actions>
4420 <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 -05004421 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004422 <action function="page">choosedestinationfolder</action>
4423 </actions>
4424 </button>
4425
4426 <button style="main_button_half_height">
4427 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004428 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004429 <actions>
4430 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004431 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004432 <action function="page">choosedestinationfolder</action>
4433 </actions>
4434 </button>
4435
4436 <button style="main_button_half_height">
4437 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004438 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004439 <actions>
4440 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004441 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004442 <action function="set">tw_fm_text2=</action>
4443 <action function="set">tw_fm_text3=</action>
4444 <action function="set">tw_include_text3=0</action>
4445 <action function="set">tw_back=filemanageroptions</action>
4446 <action function="page">filemanagerconfirm</action>
4447 </actions>
4448 </button>
4449
4450 <button style="main_button_half_height">
4451 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004452 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004453 <actions>
4454 <action function="set">tw_filemanager_rename=0000</action>
4455 <action function="set">tw_fm_text2=</action>
4456 <action function="set">tw_fm_text3=</action>
4457 <action function="set">tw_include_text3=0</action>
4458 <action function="set">tw_back=filemanageroptions</action>
4459 <action function="page">filemanagerchmod</action>
4460 </actions>
4461 </button>
4462
4463 <button style="main_button_half_height">
4464 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004465 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004466 <actions>
4467 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004468 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004469 <action function="set">tw_fm_text2=</action>
4470 <action function="set">tw_fm_text3=</action>
4471 <action function="set">tw_include_text3=0</action>
4472 <action function="set">tw_back=filemanageroptions</action>
4473 <action function="page">filemanagerconfirm</action>
4474 </actions>
4475 </button>
4476
4477 <button style="main_button_half_height">
4478 <condition var1="tw_fm_isfolder" var2="0"/>
4479 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004480 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004481 <actions>
4482 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004483 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004484 <action function="set">tw_filemanager_command=mv</action>
4485 <action function="page">filemanagerrenamefile</action>
4486 </actions>
4487 </button>
4488
4489 <button style="main_button_half_height">
4490 <condition var1="tw_fm_isfolder" var2="1"/>
4491 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004492 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004493 <actions>
4494 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004495 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004496 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4497 <action function="page">filemanagerrenamefolder</action>
4498 </actions>
4499 </button>
4500
4501 <action>
4502 <touch key="home"/>
4503 <action function="page">main</action>
4504 </action>
4505
4506 <action>
4507 <touch key="back"/>
4508 <action function="page">filemanagerlist</action>
4509 </action>
4510 </page>
4511
4512 <page name="choosedestinationfolder">
4513 <template name="page"/>
4514
4515 <text style="text_l">
4516 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004517 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004518 </text>
4519
4520 <text style="text_m">
4521 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004522 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004523 </text>
4524
4525 <template name="sort_options"/>
4526
4527 <fileselector>
4528 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4529 <text>%tw_file_location2%</text>
4530 <filter folders="1" files="0"/>
4531 <path name="tw_file_location2" default="/"/>
4532 <data name="tw_filename2"/>
4533 <selection name="tw_selection2"/>
4534 </fileselector>
4535
4536 <button style="fab">
4537 <image resource="fab_selectfolder"/>
4538 <actions>
4539 <action function="set">tw_fm_text2=to</action>
4540 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4541 <action function="set">tw_include_text3=1</action>
4542 <action function="set">tw_back=filemanageroptions</action>
4543 <action function="page">filemanagerconfirm</action>
4544 </actions>
4545 </button>
4546
4547 <action>
4548 <touch key="home"/>
4549 <action function="page">main</action>
4550 </action>
4551
4552 <action>
4553 <touch key="back"/>
4554 <action function="page">filemanageroptions</action>
4555 </action>
4556 </page>
4557
4558 <page name="filemanagerrenamefile">
4559 <template name="page"/>
4560
4561 <text style="text_l">
4562 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004563 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004564 </text>
4565
4566 <text style="text_m">
4567 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004568 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004569 </text>
4570
4571 <text style="text_m_accent">
4572 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004573 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004574 </text>
4575
4576 <input>
4577 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4578 <text>%tw_filemanager_rename%</text>
4579 <data name="tw_filemanager_rename"/>
4580 <restrict minlen="1" maxlen="128"/>
4581 <actions>
4582 <action function="set">tw_fm_text2=to</action>
4583 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4584 <action function="set">tw_include_text3=1</action>
4585 <action function="set">tw_back=filemanageroptions</action>
4586 <action function="page">filemanagerconfirm</action>
4587 </actions>
4588 </input>
4589
4590 <fill color="%accent_color%">
4591 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4592 </fill>
4593
4594 <button style="main_button_half_height">
4595 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004596 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004597 <action function="page">filemanageroptions</action>
4598 </button>
4599
4600 <template name="keyboardtemplate"/>
4601
4602 <action>
4603 <touch key="home"/>
4604 <action function="page">main</action>
4605 </action>
4606
4607 <action>
4608 <touch key="back"/>
4609 <action function="page">filemanageroptions</action>
4610 </action>
4611 </page>
4612
4613 <page name="filemanagerrenamefolder">
4614 <template name="page"/>
4615
4616 <text style="text_l">
4617 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004618 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004619 </text>
4620
4621 <text style="text_m">
4622 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004623 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004624 </text>
4625
4626 <text style="text_m_accent">
4627 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004628 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004629 </text>
4630
4631 <input>
4632 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4633 <text>%tw_filemanager_rename%</text>
4634 <data name="tw_filemanager_rename"/>
4635 <restrict minlen="1" maxlen="128"/>
4636 <actions>
4637 <action function="set">tw_fm_text2=to</action>
4638 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4639 <action function="set">tw_include_text3=1</action>
4640 <action function="set">tw_back=filemanageroptions</action>
4641 <action function="page">filemanagerconfirm</action>
4642 </actions>
4643 </input>
4644
4645 <fill color="%accent_color%">
4646 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4647 </fill>
4648
4649 <button style="main_button_half_height">
4650 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004651 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004652 <action function="page">filemanageroptions</action>
4653 </button>
4654
4655 <template name="keyboardtemplate"/>
4656
4657 <action>
4658 <touch key="home"/>
4659 <action function="page">main</action>
4660 </action>
4661
4662 <action>
4663 <touch key="back"/>
4664 <action function="page">filemanageroptions</action>
4665 </action>
4666 </page>
4667
4668 <page name="filemanagerchmod">
4669 <template name="page"/>
4670
4671 <text style="text_l">
4672 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004673 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004674 </text>
4675
4676 <text style="text_m">
4677 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004678 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004679 </text>
4680
4681 <text style="text_m_accent">
4682 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004683 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004684 </text>
4685
4686 <input>
4687 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4688 <text>%tw_filemanager_rename%</text>
4689 <data name="tw_filemanager_rename"/>
4690 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4691 <actions>
4692 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4693 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4694 <action function="set">tw_back=filemanageroptions</action>
4695 <action function="page">filemanagerconfirm</action>
4696 </actions>
4697 </input>
4698
4699 <fill color="%accent_color%">
4700 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4701 </fill>
4702
4703 <button style="main_button_half_height">
4704 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004705 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004706 <action function="page">filemanageroptions</action>
4707 </button>
4708
4709 <template name="keyboardtemplate"/>
4710
4711 <action>
4712 <touch key="home"/>
4713 <action function="page">main</action>
4714 </action>
4715
4716 <action>
4717 <touch key="back"/>
4718 <action function="page">filemanageroptions</action>
4719 </action>
4720 </page>
4721
4722 <page name="filemanagerconfirm">
4723 <template name="page"/>
4724
4725 <text style="text_l">
4726 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004727 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004728 </text>
4729
4730 <text style="text_m">
4731 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004732 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004733 </text>
4734
4735 <text style="text_m_accent">
4736 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4737 <text>%tw_fm_text1%</text>
4738 </text>
4739
4740 <text style="text_m">
4741 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4742 <text>%tw_filename1%</text>
4743 </text>
4744
4745 <text style="text_m_accent">
4746 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4747 <text>%tw_fm_text2%</text>
4748 </text>
4749
4750 <text style="text_m">
4751 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4752 <text>%tw_fm_text3%</text>
4753 </text>
4754
4755 <text style="text_m">
4756 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004757 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004758 </text>
4759
4760 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004761 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004762 <action function="page">filemanageraction</action>
4763 </slider>
4764
4765 <action>
4766 <touch key="back"/>
4767 <action function="page">%tw_back%</action>
4768 </action>
4769
4770 <action>
4771 <touch key="home"/>
4772 <action function="page">main</action>
4773 </action>
4774 </page>
4775
4776 <page name="filemanageraction">
4777 <template name="page"/>
4778
4779 <text style="text_l">
4780 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004781 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004782 </text>
4783
4784 <text style="text_m">
4785 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4786 <text>%tw_fm_text1%</text>
4787 </text>
4788
4789 <template name="console"/>
4790
4791 <template name="progress_bar"/>
4792
4793 <action>
4794 <conditions>
4795 <condition var1="tw_operation_state" var2="1"/>
4796 <condition var1="tw_operation_status" var2="0"/>
4797 </conditions>
4798 <actions>
4799 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004800 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004801 <action function="page">action_complete</action>
4802 </actions>
4803 </action>
4804
4805 <action>
4806 <conditions>
4807 <condition var1="tw_operation_state" var2="1"/>
4808 <condition var1="tw_operation_status" op="!=" var2="0"/>
4809 </conditions>
4810 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004811 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004812 <action function="page">action_complete</action>
4813 </actions>
4814 </action>
4815
4816 <action>
4817 <condition var1="tw_include_text3" var2="0"/>
4818 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4819 </action>
4820
4821 <action>
4822 <condition var1="tw_include_text3" var2="1"/>
4823 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4824 </action>
4825 </page>
4826
4827 <page name="decrypt">
4828 <template name="page"/>
4829
4830 <action>
4831 <condition var1="tw_crypto_pwtype" var2="2"/>
4832 <action function="page">decrypt_pattern</action>
4833 </action>
4834
4835 <text style="text_l">
4836 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004837 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004838 </text>
4839
4840 <text style="text_m">
4841 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004842 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004843 </text>
4844
4845 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004846 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004847 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004848 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004849 </text>
4850
Noah Jacobson81d638d2019-04-28 00:10:07 -04004851 <text style="text_m_accent">
4852 <condition var1="tw_is_fbe" var2="1"/>
4853 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4854 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4855 </text>
4856
z31s1g28f0a922015-11-07 18:50:22 +01004857 <input>
4858 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4859 <text>%tw_crypto_display%</text>
4860 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4861 <restrict minlen="1" maxlen="254"/>
4862 <action function="page">trydecrypt</action>
4863 </input>
4864
4865 <fill color="%accent_color%">
4866 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4867 </fill>
4868
4869 <fill color="%text_fail_color%">
4870 <condition var1="tw_password_fail" var2="1"/>
4871 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4872 </fill>
4873
4874 <text style="text_m_fail">
4875 <condition var1="tw_password_fail" var2="1"/>
4876 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004877 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004878 </text>
4879
4880 <button style="main_button_half_height">
4881 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004882 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05004883 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004884 </button>
4885
z31s1g608d7ff2016-01-18 19:47:25 +01004886 <button style="main_button_half_height">
4887 <placement x="%center_x%" y="%row10_y%"/>
4888 <text>{@sel_lang_btn=Select Language}</text>
4889 <action function="overlay">select_language</action>
4890 </button>
4891
z31s1g28f0a922015-11-07 18:50:22 +01004892 <template name="keyboardtemplate"/>
4893 </page>
4894
4895 <page name="decrypt_pattern">
4896 <template name="page"/>
4897
4898 <text style="text_l">
4899 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004900 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004901 </text>
4902
4903 <text style="text_m">
4904 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004905 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004906 </text>
4907
4908 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004909 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004910 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004911 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004912 </text>
4913
Noah Jacobson81d638d2019-04-28 00:10:07 -04004914 <text style="text_m_accent">
4915 <condition var1="tw_is_fbe" var2="1"/>
4916 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4917 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
4918 </text>
4919
Aleksa Saraib25a1832015-12-31 17:36:00 +01004920 <text style="text_m_fail">
4921 <condition var1="tw_password_fail" var2="1"/>
4922 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004923 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004924 </text>
4925
z31s1g28f0a922015-11-07 18:50:22 +01004926 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004927 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004928 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4929 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4930 <data name="tw_crypto_password"/>
4931 <action function="page">trydecrypt</action>
4932 </patternpassword>
4933
Aleksa Saraib25a1832015-12-31 17:36:00 +01004934 <button style="button_quarter_width">
4935 <placement x="%indent%" y="%row19a_y%"/>
4936 <text>3x3</text>
4937 <action function="set">tw_gui_pattern_grid_size=3</action>
4938 </button>
4939
4940 <button style="button_quarter_width">
4941 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
4942 <text>4x4</text>
4943 <action function="set">tw_gui_pattern_grid_size=4</action>
4944 </button>
4945
4946 <button style="button_quarter_width">
4947 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
4948 <text>5x5</text>
4949 <action function="set">tw_gui_pattern_grid_size=5</action>
4950 </button>
4951
4952 <button style="button_quarter_width">
4953 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
4954 <text>6x6</text>
4955 <action function="set">tw_gui_pattern_grid_size=6</action>
4956 </button>
4957
z31s1g28f0a922015-11-07 18:50:22 +01004958 <button style="main_button_half_height">
4959 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004960 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05004961 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004962 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01004963
4964 <button style="main_button_half_height">
4965 <placement x="%center_x%" y="%row21a_y%"/>
4966 <text>{@sel_lang_btn=Select Language}</text>
4967 <action function="overlay">select_language</action>
4968 </button>
z31s1g28f0a922015-11-07 18:50:22 +01004969 </page>
4970
4971 <page name="trydecrypt">
4972 <template name="page"/>
4973
4974 <text style="text_l">
4975 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004976 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004977 </text>
4978
4979 <text style="text_m">
4980 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004981 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004982 </text>
4983
4984 <template name="console"/>
4985
4986 <template name="progress_bar"/>
4987
4988 <action>
4989 <action function="decrypt"/>
4990 </action>
4991
4992 <action>
4993 <conditions>
4994 <condition var1="tw_operation_state" var2="1"/>
4995 <condition var1="tw_operation_status" op="!=" var2="0"/>
4996 </conditions>
4997 <actions>
4998 <action function="set">tw_password_fail=1</action>
4999 <action function="page">decrypt</action>
5000 </actions>
5001 </action>
5002
5003 <action>
5004 <conditions>
5005 <condition var1="tw_operation_state" var2="1"/>
5006 <condition var1="tw_operation_status" op="=" var2="0"/>
5007 </conditions>
5008 <actions>
5009 <action function="set">tw_page_done=1</action>
5010 <action function="page">main</action>
5011 </actions>
5012 </action>
5013 </page>
5014
Captain Throwback89b56a12021-02-10 18:25:07 -05005015 <page name="canceldecrypt">
5016 <template name="page"/>
5017
5018 <text style="text_l">
5019 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5020 <text>{@cancel_btn=Cancel}</text>
5021 </text>
5022
5023 <text style="text_m">
5024 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5025 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
5026 </text>
5027
5028 <template name="console"/>
5029
5030 <template name="progress_bar"/>
5031
5032 <action>
5033 <action function="refreshsizes"/>
5034 </action>
5035
5036 <action>
5037 <conditions>
5038 <condition var1="tw_operation_state" var2="1"/>
5039 </conditions>
5040 <actions>
5041 <action function="set">tw_page_done=1</action>
5042 <action function="page">main</action>
5043 </actions>
5044 </action>
5045 </page>
5046
z31s1g28f0a922015-11-07 18:50:22 +01005047 <page name="terminalcommand">
5048 <template name="page"/>
5049
z31s1g56189522016-01-13 19:12:40 +01005050 <fill color="%background_color%">
5051 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005052 </fill>
5053
z31s1g56189522016-01-13 19:12:40 +01005054 <terminal>
5055 <condition var1="tw_hide_kb" var2="0"/>
5056 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
5057 </terminal>
5058
5059 <terminal>
5060 <condition var1="tw_hide_kb" var2="1"/>
5061 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
5062 </terminal>
5063
5064 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005065
5066 <template name="keyboardtemplate"/>
5067
z31s1g608d7ff2016-01-18 19:47:25 +01005068 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01005069 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01005070 </fill>
z31s1g56189522016-01-13 19:12:40 +01005071
z31s1g608d7ff2016-01-18 19:47:25 +01005072 <button>
z31s1g56189522016-01-13 19:12:40 +01005073 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5074 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5075 <image resource="back" />
5076 <condition var1="tw_busy" var2="0" />
5077 <actions>
5078 <action function="set">tw_hide_kb=0</action>
5079 <action function="key">back</action>
5080 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005081 </button>
z31s1g56189522016-01-13 19:12:40 +01005082
z31s1g608d7ff2016-01-18 19:47:25 +01005083 <button>
z31s1g56189522016-01-13 19:12:40 +01005084 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5085 <condition var1="tw_hide_kb" op="=" var2="0" />
5086 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5087 <image resource="kb_hide" />
5088 <condition var1="tw_busy" var2="0" />
5089 <actions>
5090 <action function="set">tw_hide_kb=1</action>
5091 <action function="page">terminalcommand</action>
5092 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005093 </button>
z31s1g56189522016-01-13 19:12:40 +01005094
z31s1g608d7ff2016-01-18 19:47:25 +01005095 <button>
z31s1g56189522016-01-13 19:12:40 +01005096 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5097 <condition var1="tw_hide_kb" op="=" var2="1" />
5098 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5099 <image resource="kb_show" />
5100 <condition var1="tw_busy" var2="0" />
5101 <actions>
5102 <action function="set">tw_hide_kb=0</action>
5103 <action function="page">terminalcommand</action>
5104 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005105 </button>
z31s1g56189522016-01-13 19:12:40 +01005106
z31s1g608d7ff2016-01-18 19:47:25 +01005107 <button>
z31s1g56189522016-01-13 19:12:40 +01005108 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5109 <image resource="home" />
5110 <condition var1="tw_busy" var2="0" />
5111 <actions>
5112 <action function="set">tw_hide_kb=0</action>
5113 <action function="key">home</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005114 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005115 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005116 </button>
z31s1g56189522016-01-13 19:12:40 +01005117
z31s1g608d7ff2016-01-18 19:47:25 +01005118 <button>
z31s1g56189522016-01-13 19:12:40 +01005119 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5120 <condition var1="tw_hide_kb" op="=" var2="0" />
5121 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5122 <image resource="kb_hide" />
5123 <condition var1="tw_busy" var2="0" />
5124 <actions>
5125 <action function="set">tw_hide_kb=1</action>
5126 <action function="page">terminalcommand</action>
5127 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005128 </button>
z31s1g56189522016-01-13 19:12:40 +01005129
z31s1g608d7ff2016-01-18 19:47:25 +01005130 <button>
z31s1g56189522016-01-13 19:12:40 +01005131 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5132 <condition var1="tw_hide_kb" op="=" var2="1" />
5133 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5134 <image resource="kb_show" />
5135 <condition var1="tw_busy" var2="0" />
5136 <actions>
5137 <action function="set">tw_hide_kb=0</action>
5138 <action function="page">terminalcommand</action>
5139 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005140 </button>
z31s1g56189522016-01-13 19:12:40 +01005141
z31s1g608d7ff2016-01-18 19:47:25 +01005142 <button>
z31s1g56189522016-01-13 19:12:40 +01005143 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5144 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5145 <image resource="back" />
5146 <condition var1="tw_busy" var2="0" />
5147 <actions>
5148 <action function="set">tw_hide_kb=0</action>
5149 <action function="key">back</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005150 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005151 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005152 </button>
z31s1g56189522016-01-13 19:12:40 +01005153
z31s1g28f0a922015-11-07 18:50:22 +01005154 <action>
5155 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005156 <actions>
5157 <action function="set">tw_hide_kb=0</action>
5158 <action function="page">main</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005159 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005160 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005161 </action>
5162
5163 <action>
5164 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005165 <actions>
5166 <action function="set">tw_hide_kb=0</action>
5167 <action function="page">advanced</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005168 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005169 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005170 </action>
z31s1g56189522016-01-13 19:12:40 +01005171
z31s1g608d7ff2016-01-18 19:47:25 +01005172 <action>
z31s1g56189522016-01-13 19:12:40 +01005173 <touch key="power+voldown" />
5174 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01005175 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005176 </page>
5177
bigbiffdf8436b2020-08-30 16:22:34 -04005178 <page name="fastboot">
5179 <template name="page"/>
5180
5181 <text style="text_l">
5182 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5183 <text>{@fastboot_button=Fastboot}</text>
5184 </text>
5185
5186 <template name="console"/>
5187
5188 <template name="progress_bar"/>
5189
5190 <button style="main_button_half_height">
5191 <condition var1="tw_enable_fastboot" op="=" var2="1" />
5192 <placement x="%indent%" y="%row21a_y%"/>
5193 <text>{@enable_adb=Enable ADB}</text>
5194 <actions>
5195 <action function="enableadb"/>
5196 <action function="set">tw_enable_adb=1</action>
5197 <action function="set">tw_enable_fastboot=0</action>
5198 </actions>
5199 </button>
5200
5201 <button style="main_button_half_height">
5202 <condition var1="tw_enable_adb" op="=" var2="1" />
5203 <placement x="%indent%" y="%row21a_y%"/>
5204 <text>{@enable_fastboot=Enable Fastboot}</text>
5205 <actions>
5206 <action function="enablefastboot"/>
5207 <action function="set">tw_enable_fastboot=1</action>
5208 <action function="set">tw_enable_adb=0</action>
5209 </actions>
5210 </button>
5211
5212 <button style="main_button_half_height">
5213 <placement x="%center_x%" y="%row21a_y%"/>
5214 <text>{@reboot_btn=Reboot}</text>
5215 <action function="page">fastbootreboot</action>
5216 </button>
5217 </page>
5218
z31s1g28f0a922015-11-07 18:50:22 +01005219 <page name="sideload">
5220 <template name="page"/>
5221
5222 <text style="text_l">
5223 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005224 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005225 </text>
5226
5227 <text style="text_m">
5228 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005229 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005230 </text>
5231
5232 <checkbox>
5233 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005234 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005235 <data variable="tw_wipe_dalvik"/>
5236 </checkbox>
5237
5238 <checkbox>
5239 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005240 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005241 <data variable="tw_wipe_cache"/>
5242 </checkbox>
5243
5244 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005245 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005246 <actions>
5247 <action function="set">tw_back=advanced</action>
5248 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005249 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5250 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5251 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005252 <action function="set">tw_has_cancel=1</action>
5253 <action function="set">tw_show_reboot=1</action>
5254 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5255 <action function="page">action_page</action>
5256 </actions>
5257 </slider>
5258
5259 <action>
5260 <touch key="home"/>
5261 <action function="page">main</action>
5262 </action>
5263
5264 <action>
5265 <touch key="back"/>
5266 <action function="page">advanced</action>
5267 </action>
5268 </page>
5269
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005270 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005271 <template name="page"/>
5272
5273 <text style="text_l">
5274 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005275 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005276 </text>
5277
5278 <text style="text_m">
5279 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005280 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005281 </text>
5282
5283 <text style="text_m_accent">
5284 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005285 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005286 </text>
5287
z31s1g28f0a922015-11-07 18:50:22 +01005288 <text style="text_m_fail">
5289 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005290 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005291 </text>
5292
5293 <text style="text_m_fail">
5294 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005295 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005296 </text>
5297
5298 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005299 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005300 <actions>
5301 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005302 <action function="set">tw_action=fixcontexts</action>
5303 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5304 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005305 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005306 <action function="set">tw_show_reboot=1</action>
5307 <action function="page">action_page</action>
5308 </actions>
5309 </slider>
5310
5311 <action>
5312 <touch key="home"/>
5313 <action function="page">main</action>
5314 </action>
5315
5316 <action>
5317 <touch key="back"/>
5318 <action function="page">advanced</action>
5319 </action>
5320 </page>
5321
z31s1g28f0a922015-11-07 18:50:22 +01005322 <page name="slideout">
5323 <fill color="%background_color%">
5324 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5325 </fill>
5326
5327 <console>
5328 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
5329 </console>
5330
5331 <button>
5332 <fill color="%transparent%"/>
5333 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5334 <action function="overlay"/>
5335 </button>
5336
5337 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005338 <touch key="power"/>
5339 <action function="togglebacklight"/>
5340 </action>
5341
5342 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005343 <touch key="power+voldown"/>
5344 <action function="screenshot"/>
5345 </action>
5346 </page>
5347
5348 <page name="select_storage">
5349 <fill color="%semi_transparent%">
5350 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5351 </fill>
5352
5353 <fill color="%background_color%">
5354 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5355 </fill>
5356
5357 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005358 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005359 <data name="tw_storage_path"/>
5360 <listtype name="storage"/>
5361 </partitionlist>
5362
5363 <button style="button_third_width">
5364 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005365 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005366 <actions>
5367 <action function="set">tw_clear_destination=%tw_back%</action>
5368 <action function="overlay"/>
5369 <action function="page">clear_vars</action>
5370 </actions>
5371 </button>
5372
5373 <fill color="#000000">
5374 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5375 </fill>
5376
5377 <button>
5378 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5379 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5380 <image resource="back"/>
5381 <condition var1="tw_busy" var2="0"/>
5382 <actions>
5383 <action function="overlay"/>
5384 <action function="key">%tw_back%</action>
5385 </actions>
5386 </button>
5387
5388 <button>
5389 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5390 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5391 <image resource="console"/>
5392 <condition var1="tw_busy" var2="0"/>
5393 <action function="overlay">slideout</action>
5394 </button>
5395
5396 <button>
5397 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5398 <image resource="home"/>
5399 <condition var1="tw_busy" var2="0"/>
5400 <actions>
5401 <action function="overlay"/>
5402 <action function="key">home</action>
5403 </actions>
5404 </button>
5405
5406 <button>
5407 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5408 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5409 <image resource="console"/>
5410 <condition var1="tw_busy" var2="0"/>
5411 <action function="overlay">slideout</action>
5412 </button>
5413
5414 <button>
5415 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5416 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5417 <image resource="back"/>
5418 <condition var1="tw_busy" var2="0"/>
5419 <actions>
5420 <action function="overlay"/>
5421 <action function="key">%tw_back%</action>
5422 </actions>
5423 </button>
5424
5425 <action>
5426 <touch key="power+voldown"/>
5427 <action function="screenshot"/>
5428 </action>
5429 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005430
5431 <page name="select_language">
5432 <fill color="%semi_transparent%">
5433 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5434 </fill>
5435
5436 <fill color="%background_color%">
5437 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5438 </fill>
5439
5440 <listbox>
5441 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5442 <text>{@select_language=Select Language:}</text>
5443 <icon selected="radio_true" unselected="radio_false" />
5444 <data name="tw_language" />
5445 </listbox>
5446
5447 <button style="button_third_width">
5448 <placement x="%dialog_button_x%" y="%row14_y%"/>
5449 <text>{@ok_btn=OK}</text>
5450 <actions>
5451 <action function="overlay"/>
5452 <action function="setlanguage"></action>
5453 </actions>
5454 </button>
5455
5456 <fill color="#000000">
5457 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5458 </fill>
5459
5460 <button>
5461 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5462 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5463 <image resource="back"/>
5464 <condition var1="tw_busy" var2="0"/>
5465 <actions>
5466 <action function="overlay"/>
5467 <action function="key">%tw_back%</action>
5468 </actions>
5469 </button>
5470
5471 <button>
5472 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5473 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5474 <image resource="console"/>
5475 <condition var1="tw_busy" var2="0"/>
5476 <action function="overlay">slideout</action>
5477 </button>
5478
5479 <button>
5480 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5481 <image resource="home"/>
5482 <condition var1="tw_busy" var2="0"/>
5483 <actions>
5484 <action function="overlay"/>
5485 <action function="key">home</action>
5486 </actions>
5487 </button>
5488
5489 <button>
5490 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5491 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5492 <image resource="console"/>
5493 <condition var1="tw_busy" var2="0"/>
5494 <action function="overlay">slideout</action>
5495 </button>
5496
5497 <button>
5498 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5499 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5500 <image resource="back"/>
5501 <condition var1="tw_busy" var2="0"/>
5502 <actions>
5503 <action function="overlay"/>
5504 <action function="key">%tw_back%</action>
5505 </actions>
5506 </button>
5507
5508 <action>
5509 <touch key="power+voldown"/>
5510 <action function="screenshot"/>
5511 </action>
5512 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005513
5514 <page name="decrypt_users">
5515 <template name="page"/>
5516
5517 <text style="text_l">
5518 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5519 <text>{@decrypt_users=Decrypt Users}</text>
5520 </text>
5521
5522 <text style="text_m_accent">
5523 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5524 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5525 </text>
5526
5527 <listbox>
5528 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_advanced_height%"/>
5529 <text>{@select_user=Select User}</text>
5530 <icon selected="radio_true" unselected="radio_false" />
5531 <data name="tw_crypto_user_id" />
5532 </listbox>
5533
5534 <button style="main_button_half_height">
5535 <placement x="%center_x%" y="%row21a_y%"/>
5536 <text>{@decrypt_users=Decrypt Users}</text>
5537 <action function="set">tw_crypto_password=</action>
5538 <action function="set">tw_password_fail=0</action>
5539 <action function="page">decrypt</action>
5540 </button>
5541
5542 <action>
5543 <touch key="home"/>
5544 <action function="page">main</action>
5545 </action>
5546
5547 <action>
5548 <touch key="back"/>
5549 <action function="page">advanced</action>
5550 </action>
5551 </page>
epicXa721f952021-01-04 13:01:31 +05305552
5553 <page name="changeTwrpFolder">
5554 <template name="page"/>
5555
5556 <text style="text_l">
5557 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5558 <text>{@advanced_hdr=Advanced}</text>
5559 </text>
5560
5561 <text style="text_m">
5562 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5563 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
5564 </text>
5565
5566 <text style="text_m_accent">
5567 <placement x="%indent%" y="%row2_y%"/>
5568 <text>{@name=Name:}</text>
5569 </text>
5570
5571 <input>
5572 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
5573 <text>%tw_custom_folder%</text>
5574 <data name="tw_custom_folder"/>
5575 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
5576 <actions>
5577 <action function="set">tw_back=changeTwrpFolder</action>
5578 <action function="set">tw_action=applycustomtwrpfolder</action>
5579 <action function="set">tw_action_param=%tw_custom_folder%</action>
5580 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5581 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5582 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5583 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
5584 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5585 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
5586 <action function="set">tw_existpage=changeTwrpFolder</action>
5587 <action function="set">tw_notexistpage=confirm_action</action>
5588 <action function="page">filecheck</action>
5589 </actions>
5590 </input>
5591
5592 <fill color="%accent_color%">
5593 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5594 </fill>
5595
5596 <fill color="%text_fail_color%">
5597 <condition var1="tw_fileexists" var2="1"/>
5598 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5599 </fill>
5600
5601 <text style="text_m_fail">
5602 <condition var1="tw_fileexists" var2="1"/>
5603 <placement x="%indent%" y="%row4a_y%"/>
5604 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
5605 </text>
5606
5607 <button style="main_button_half_height">
5608 <placement x="%indent%" y="%row10_y%"/>
5609 <text>{@cancel_btn=Cancel}</text>
5610 <actions>
5611 <action function="page">advanced</action>
5612 </actions>
5613 </button>
5614
5615 <button style="main_button_half_height">
5616 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
5617 <placement x="%center_x%" y="%row10_y%"/>
5618 <text>{@restore_defaults_btn=Restore Defaults}</text>
5619 <actions>
5620 <action function="set">tw_back=changeTwrpFolder</action>
5621 <action function="set">tw_action=applycustomtwrpfolder</action>
5622 <action function="set">tw_action_param=TWRP</action>
5623 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5624 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5625 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5626 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
5627 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5628 <action function="set">tw_filecheck=/sdcard/TWRP</action>
5629 <action function="set">tw_existpage=changeTwrpFolder</action>
5630 <action function="set">tw_notexistpage=confirm_action</action>
5631 <action function="page">filecheck</action>
5632 </actions>
5633 </button>
5634
5635 <template name="keyboardtemplate"/>
5636
5637 <action>
5638 <touch key="home"/>
5639 <actions>
5640 <action function="page">main</action>
5641 </actions>
5642 </action>
5643
5644 <action>
5645 <touch key="back"/>
5646 <actions>
5647 <action function="page">advanced</action>
5648 </actions>
5649 </action>
5650 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005651 </pages>
5652</recovery>