blob: d65a84cb8aad6f1637e50d046ac273cc0c745348 [file] [log] [blame]
z31s1g28f0a922015-11-07 18:50:22 +01001<?xml version="1.0"?>
2<recovery>
3 <styles>
4 <style name="text_l">
5 <font resource="font_l" color="%text_color%"/>
6 </style>
7
8 <style name="text_m">
9 <font resource="font_m" color="%text_color%"/>
10 </style>
11
12 <style name="text_m_accent">
13 <font resource="font_m" color="%accent_color%"/>
14 </style>
15
16 <style name="text_m_fail">
17 <font resource="font_m" color="%text_fail_color%"/>
18 </style>
19
20 <style name="text_s">
21 <font resource="font_s" color="%text_color%"/>
22 </style>
23
24 <style name="input">
25 <background color="%background_color%"/>
26 <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/>
27 <font resource="font_m" color="%text_color%"/>
28 </style>
29
30 <style name="checkbox">
31 <font resource="font_m" color="%text_color%"/>
32 <image checked="checkbox_true" unchecked="checkbox_false"/>
33 </style>
34
35 <style name="radiobutton">
36 <font resource="font_m" color="%text_color%"/>
37 <image checked="radio_true" unchecked="radio_false"/>
38 </style>
39
40 <style name="main_button">
41 <highlight color="%highlight_color%"/>
42 <font resource="font_l" color="%text_button_color%"/>
43 <image resource="main_button"/>
44 </style>
45
46 <style name="main_button_m">
47 <highlight color="%highlight_color%"/>
48 <font resource="font_m" color="%text_button_color%"/>
49 <image resource="main_button"/>
50 </style>
51
52 <style name="main_button_half_width">
53 <highlight color="%highlight_color%"/>
54 <font resource="font_m" color="%text_button_color%"/>
55 <image resource="main_button_half_width"/>
56 </style>
57
58 <style name="main_button_half_width_low">
59 <highlight color="%highlight_color%"/>
60 <font resource="font_m" color="%text_button_color%"/>
61 <image resource="main_button_half_width_low"/>
62 </style>
63
64 <style name="button_third_width">
65 <highlight color="%highlight_color%"/>
66 <font resource="font_m" color="%text_button_color%"/>
67 <image resource="tab_3"/>
68 </style>
69
70 <style name="button_quarter_width">
71 <highlight color="%highlight_color%"/>
72 <font resource="font_m" color="%text_button_color%"/>
73 <image resource="tab_4"/>
74 </style>
75
76 <style name="sort_asc">
77 <highlight color="%highlight_color%"/>
78 <font resource="font_m" color="%text_button_color%"/>
79 <image resource="sort_asc"/>
80 </style>
81
82 <style name="sort_desc">
83 <highlight color="%highlight_color%"/>
84 <font resource="font_m" color="%text_button_color%"/>
85 <image resource="sort_desc"/>
86 </style>
87
88 <style name="sort_empty">
89 <highlight color="%highlight_color%"/>
90 <font resource="font_m" color="%text_button_color%"/>
91 <image resource="sort_empty"/>
92 </style>
93
94 <style name="fab">
95 <highlight color="%highlight_color%"/>
96 <placement x="%indent_right%" y="%row21a_y%" placement="1"/>
97 <font resource="font_m" color="%button_text_color%"/>
98 </style>
99
100 <style name="tab">
101 <highlight color="%highlight_color%"/>
102 <fill color="%accent_color%"/>
103 <font resource="font_s" color="%text_button_color%"/>
104 </style>
105
106 <style name="console">
107 <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
108 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
109 <font resource="fixed"/>
110 </style>
111
z31s1g56189522016-01-13 19:12:40 +0100112 <style name="terminal">
113 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
114 <background color="%background_color%"/>
115 <font resource="fixed" spacing="3" color="%text_color%"/>
116 </style>
117
z31s1g28f0a922015-11-07 18:50:22 +0100118 <style name="fileselector">
119 <highlight color="%fileselector_highlight_color%"/>
120 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
121 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
122 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
123 <sort name="tw_gui_sort_order"/>
124 <icon folder="folder" file="file"/>
125 <background color="%background_color%"/>
126 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
127 </style>
128
129 <style name="listbox">
130 <highlight color="%fileselector_highlight_color%"/>
131 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
132 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
133 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
134 <icon selected="radio_true" unselected="radio_false"/>
135 <background color="%background_color%"/>
136 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
137 </style>
138
139 <style name="scrolllist">
140 <background color="%background_color%"/>
141 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/>
nkk711a230e42017-08-07 00:28:19 +0300142 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
z31s1g28f0a922015-11-07 18:50:22 +0100143 </style>
144
145 <style name="partitionlist">
146 <highlight color="%fileselector_highlight_color%"/>
147 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
148 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
149 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
150 <icon selected="checkbox_true" unselected="checkbox_false"/>
151 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
152 <background color="%background_color%"/>
153 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
154 </style>
155
156 <style name="partitionlist_storage">
157 <highlight color="%fileselector_highlight_color%"/>
158 <placement x="%dialog_content_x%" y="%row4_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
159 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
160 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
161 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
162 <icon selected="radio_true" unselected="radio_false"/>
163 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
164 <background color="%background_color%"/>
165 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
166 </style>
167
Ethan Yonker64e0a652018-07-25 09:52:17 -0500168 <style name="advanced_listbox">
169 <highlight color="%fileselector_highlight_color%"/>
170 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
171 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
172 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
173 <icon selected="handle" unselected="handle"/>
174 <background color="%background_color%"/>
175 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
176 </style>
177
epicX9597b842021-03-20 21:58:17 +0530178 <style name="options_listbox">
179 <highlight color="%fileselector_highlight_color%"/>
180 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
181 <separator color="%background_color%" height="%fileselector_separatorheight%"/>
182 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
183 <background color="%background_color%"/>
184 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
185 </style>
186
z31s1g28f0a922015-11-07 18:50:22 +0100187 <style name="slider">
188 <placement x="%col2_x_right%" y="%row17a_y%"/>
189 <font resource="font_m" color="%text_color%"/>
190 <resource base="slider" used="slider_used" touch="slider_touch"/>
191 </style>
192
193 <style name="slider_centered">
194 <placement x="%center_x%" y="%row17a_y%"/>
195 <font resource="font_m" color="%text_color%"/>
196 <resource base="slider" used="slider_used" touch="slider_touch"/>
197 </style>
198
199 <style name="slidervalue">
200 <resource handle="handle"/>
201 <font resource="font_m" color="%text_color%"/>
202 <colors line="%fileselector_linecolor%"/>
203 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
204 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100205
206 <style name="patternpassword">
207 <size name="tw_gui_pattern_grid_size" default="3"/>
208 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100209 </styles>
210
211 <pages>
212 <page name="main">
213 <action>
214 <actions>
215 <action function="set">tw_clear_destination=main2</action>
216 <action function="page">clear_vars</action>
217 </actions>
218 </action>
219 </page>
220
221 <page name="main2">
222 <template name="page"/>
223
224 <text style="text_l">
225 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500226 <text>{@twrp_header=Team Win Recovery Project}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100227 </text>
228
229 <text style="text_m">
230 <condition var1="tw_no_cpu_temp" var2="0"/>
231 <placement x="%col1_x_header%" y="%row4_header_y%"/>
232 <text>%tw_version%</text>
233 </text>
234
235 <button style="main_button">
236 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500237 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100238 <actions>
239 <action function="queueclear"/>
240 <action function="set">tw_selectimage=0</action>
241 <action function="page">install</action>
242 </actions>
243 </button>
244
245 <button style="main_button">
246 <placement x="%center_x%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500247 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100248 <action function="page">wipe</action>
249 </button>
250
251 <button style="main_button">
252 <placement x="%col1_x_left%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500253 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100254 <action function="page">backup</action>
255 </button>
256
257 <button style="main_button">
258 <placement x="%center_x%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500259 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100260 <action function="page">restore</action>
261 </button>
262
263 <button style="main_button">
264 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500265 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100266 <action function="page">mount</action>
267 </button>
268
269 <button style="main_button">
270 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500271 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100272 <action function="page">settings</action>
273 </button>
274
275 <button style="main_button">
276 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500277 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100278 <action function="page">advanced</action>
279 </button>
280
281 <button style="main_button">
282 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500283 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100284 <action function="page">reboot</action>
285 </button>
286 </page>
287
288 <page name="install">
289 <template name="page"/>
290
291 <text style="text_l">
292 <condition var1="tw_selectimage" var2="0"/>
293 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500294 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100295 </text>
296
297 <text style="text_l">
298 <condition var1="tw_selectimage" var2="1"/>
299 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500300 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100301 </text>
302
303 <text style="text_m">
304 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500305 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100306 </text>
307
308 <template name="sort_options"/>
309
310 <fileselector>
311 <placement x="%col1_x_left%" y="%row1a_y%" w="%fileselector_install_folder_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500312 <text>{@file_selector_folders_hdr=Folders}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100313 <filter folders="1" files="0"/>
314 <path name="tw_zip_location" default="/sdcard"/>
315 <data name="select"/>
316 </fileselector>
317
318 <fileselector>
319 <condition var1="tw_selectimage" var2="0"/>
320 <placement x="%col2_x_left%" y="%row1a_y%" w="%fileselector_install_width%" h="%fileselector_install_height%"/>
321 <text>%tw_zip_location%</text>
mauronofrio6d3bf892019-10-26 19:47:55 +0200322 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="0" files="1"/>
Ian Macdonalde7c34e52021-01-23 18:52:28 +0100323 <prfxfilter prfx="Magisk-;Magisk.apk;app-release.apk;app-debug.apk" folders="1" files="1"/>
z31s1g28f0a922015-11-07 18:50:22 +0100324 <path name="tw_zip_location" default="/sdcard"/>
325 <data name="tw_filename"/>
326 <selection name="tw_file"/>
327 </fileselector>
328
329 <fileselector>
330 <condition var1="tw_selectimage" var2="1"/>
331 <placement x="%col2_x_left%" y="%row1a_y%" w="%fileselector_install_width%" h="%fileselector_install_height%"/>
332 <text>%tw_zip_location%</text>
333 <filter extn=".img" folders="0" files="1"/>
334 <path name="tw_zip_location" default="/sdcard"/>
335 <data name="tw_filename"/>
336 <selection name="tw_file"/>
337 </fileselector>
338
339 <button style="main_button_half_width_low">
340 <condition var1="tw_selectimage" var2="0"/>
341 <placement x="%col_button_right%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500342 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100343 <actions>
344 <action function="set">tw_selectimage=1</action>
345 <action function="page">install</action>
346 </actions>
347 </button>
348
349 <button style="main_button_half_width_low">
350 <condition var1="tw_selectimage" var2="1"/>
351 <placement x="%col_button_right%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500352 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100353 <actions>
354 <action function="set">tw_selectimage=0</action>
355 <action function="page">install</action>
356 </actions>
357 </button>
358
359 <button style="main_button_half_width_low">
360 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500361 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100362 <actions>
363 <action function="set">tw_back=install</action>
364 <action function="overlay">select_storage</action>
365 </actions>
366 </button>
367
368 <action>
369 <conditions>
370 <condition var1="tw_selectimage" var2="0"/>
371 <condition var1="tw_filename" op="modified"/>
372 </conditions>
373 <actions>
374 <action function="queuezip"/>
375 <action function="page">flash_confirm</action>
376 </actions>
377 </action>
378
379 <action>
380 <conditions>
381 <condition var1="tw_selectimage" var2="1"/>
382 <condition var1="tw_filename" op="modified"/>
383 </conditions>
epicX8f52c0a2021-02-24 23:12:08 +0530384 <actions>
385 <action function="set">tw_is_slot_part=0</action>
386 <action function="page">flashimage_confirm</action>
387 </actions>
z31s1g28f0a922015-11-07 18:50:22 +0100388 </action>
389
390 <action>
391 <touch key="back"/>
392 <action function="page">main</action>
393 </action>
394
395 <action>
396 <touch key="home"/>
397 <action function="page">main</action>
398 </action>
399 </page>
400
401 <page name="flash_confirm">
402 <template name="page"/>
403
404 <text style="text_l">
405 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500406 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100407 </text>
408
409 <text style="text_m">
410 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500411 <text>{@zip_queue_count=%tw_zip_queue_count% of max of 10 Files queued}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100412 </text>
413
414 <text style="text_m_accent">
415 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500416 <text>{@zip_warn1=This operation may install incompatible}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100417 </text>
418
419 <text style="text_m_accent">
420 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500421 <text>{@zip_warn2=software and render your device unusable.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100422 </text>
423
424 <text style="text_m">
425 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500426 <text>{@zip_back_cancel=Press back to cancel adding this zip.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100427 </text>
428
429 <text style="text_m_accent">
430 <placement x="%col1_x_left%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500431 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100432 </text>
433
434 <text style="text_m">
435 <placement x="%col1_x_left%" y="%row9_y%"/>
436 <text>%tw_zip_location%</text>
437 </text>
438
439 <text style="text_m_accent">
440 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500441 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100442 </text>
443
444 <text style="text_m">
445 <placement x="%col1_x_left%" y="%row12_y%"/>
446 <text>%tw_file%</text>
447 </text>
448
449 <text style="text_m_accent">
450 <placement x="%col1_x_right%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500451 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100452 </text>
453
epicX9597b842021-03-20 21:58:17 +0530454 <listbox style="options_listbox">
455 <placement x="%col1_x_right%" y="%row9_y%" w="%content_half_width%" h="%listbox_options_height%"/>
456 <icon selected="checkbox_true" unselected="checkbox_false"/>
457 <listitem name="{@zip_sig_chk=Zip signature verification}">
458 <data variable="tw_signed_zip_verify"/>
459 </listitem>
460 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
461 <data variable="tw_skip_digest_check_zip"/>
462 </listitem>
nebrassyac29e692021-05-20 13:03:30 +0200463 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
464 <conditions>
465 <condition var1="tw_has_boot_slots" var2="1"/>
466 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwback1f5d4ca2023-01-11 13:46:30 -0500467 <condition var1="tw_no_flash_current_twrp" var2="0"/>
nebrassyac29e692021-05-20 13:03:30 +0200468 </conditions>
469 <data variable="tw_auto_reflashtwrp"/>
470 </listitem>
epicX9597b842021-03-20 21:58:17 +0530471 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
472 <data variable="tw_install_reboot"/>
473 </listitem>
474 <listitem name="{@inject_twrp_chk=Inject TWRP after install}">
475 <condition var1="tw_has_injecttwrp" var2="1"/>
476 <data variable="tw_inject_after_zip"/>
477 </listitem>
478 </listbox>
bigbiffa869fc72016-03-01 19:40:36 -0500479
z31s1g28f0a922015-11-07 18:50:22 +0100480 <button style="main_button_half_width">
481 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500482 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100483 <action function="page">install</action>
484 </button>
485
486 <button style="main_button_half_width">
487 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500488 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100489 <actions>
490 <action function="queueclear"/>
491 <action function="page">install</action>
492 </actions>
493 </button>
494
495 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500496 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100497 <action function="flash">flash_zip</action>
498 </slider>
499
500 <action>
501 <touch key="back"/>
502 <actions>
503 <action function="cancelzip"/>
504 <action function="page">install</action>
505 </actions>
506 </action>
507
508 <action>
509 <touch key="home"/>
510 <action function="page">main</action>
511 </action>
512 </page>
513
514 <page name="flash_zip">
515 <template name="page"/>
516
517 <text style="text_l">
518 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500519 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100520 </text>
521
522 <text style="text_m">
523 <placement x="%col1_x_header%" y="%row4_header_y%"/>
524 <text>%tw_file%</text>
525 </text>
526
527 <template name="console"/>
528
529 <template name="progress_bar"/>
530
531 <action>
532 <condition var1="tw_operation_state" var2="1"/>
533 <action function="page">flash_done</action>
534 </action>
535 </page>
536
537 <page name="flash_done">
538 <template name="page"/>
539
540 <text style="text_l">
541 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500542 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100543 </text>
544
545 <text style="text_m_fail">
546 <condition var1="tw_operation_status" op="!=" var2="0"/>
547 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500548 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100549 </text>
550
551 <text style="text_m">
552 <condition var1="tw_operation_status" var2="0"/>
553 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500554 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100555 </text>
556
557 <template name="console"/>
558
559 <button style="main_button_half_width">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500560 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100561 <placement x="%col2_x_left%" y="%row15a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500562 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100563 <actions>
564 <action function="set">tw_back=flash_done</action>
565 <action function="set">tw_action=wipe</action>
566 <action function="set">tw_action_param=/cache</action>
567 <action function="set">tw_has_action2=1</action>
568 <action function="set">tw_action2=wipe</action>
569 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500570 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
571 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
572 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
573 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100574 <action function="page">confirm_action</action>
575 </actions>
576 </button>
577
578 <button style="main_button_half_width">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500579 <condition var1="tw_ab_device" var2="1"/>
580 <placement x="%indent%" y="%row21a_y%"/>
581 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
582 <actions>
583 <action function="set">tw_back=flash_done</action>
584 <action function="set">tw_action=wipe</action>
585 <action function="set">tw_action_param=dalvik</action>
586 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
587 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
588 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
589 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
590 <action function="page">confirm_action</action>
591 </actions>
592 </button>
593
594 <button style="main_button_half_width">
Chaosmaster7b66bf52020-02-07 20:33:43 +0100595 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100596 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500597 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100598 <actions>
599 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500600 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100601 </actions>
602 </button>
603
Chaosmaster7b66bf52020-02-07 20:33:43 +0100604 <button style="main_button_half_width">
605 <condition var1="tw_ab_device" var2="1"/>
606 <placement x="%center_x%" y="%row15a_y%"/>
607 <text>{@reboot_btn=Reboot}</text>
608 <actions>
609 <action function="set">tw_back=main2</action>
610 <action function="page">reboot</action>
611 </actions>
612 </button>
613
614
z31s1g28f0a922015-11-07 18:50:22 +0100615 <action>
616 <touch key="back"/>
617 <actions>
618 <action function="set">tw_clear_destination=install</action>
619 <action function="page">clear_vars</action>
620 </actions>
621 </action>
622
623 <action>
624 <touch key="home"/>
625 <actions>
626 <action function="set">tw_clear_destination=main2</action>
627 <action function="page">clear_vars</action>
628 </actions>
629 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500630
631 <action>
632 <conditions>
633 <condition var1="tw_install_reboot" var2="1"/>
634 <condition var1="tw_operation_status" var2="0"/>
635 <condition var1="tw_reboot_system" var2="1"/>
636 </conditions>
637 <actions>
638 <action function="set">tw_sleep=%tw_sleep_total%</action>
639 <action function="page">flash_sleep_and_reboot</action>
640 </actions>
641 </action>
642 </page>
643
644 <page name="flash_sleep_and_reboot">
645 <template name="page"/>
646
647 <text style="text_l">
648 <placement x="%col1_x_header%" y="%row3_header_y%"/>
649 <text>{@install_zip_hdr=Install Zip}</text>
650 </text>
651
652 <text style="text_m">
653 <placement x="%col1_x_header%" y="%row4_header_y%"/>
654 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
655 </text>
656
657 <template name="console"/>
658
659 <template name="progress_bar"/>
660
661 <button style="main_button_half_width">
662 <condition var1="tw_sleep" op="&gt;" var2="0"/>
663 <placement x="%center_x%" y="%row15a_y%"/>
664 <text>{@cancel_btn=Cancel}</text>
665 <actions>
666 <action function="set">tw_install_reboot=0</action>
667 <action function="page">flash_done</action>
668 </actions>
669 </button>
670
671 <action>
672 <conditions>
673 <condition var1="tw_sleep" var2="tw_sleep_total"/>
674 <condition var1="tw_install_reboot" var2="1"/>
675 </conditions>
676 <action function="sleepcounter">%tw_sleep_total%</action>
677 </action>
678
679 <action>
680 <conditions>
681 <condition var1="tw_sleep" var2="0"/>
682 <condition var1="tw_install_reboot" var2="1"/>
683 </conditions>
684 <actions>
685 <action function="sleep">50000</action>
686 <action function="set">tw_back=main2</action>
687 <action function="page">reboot_system_routine</action>
688 </actions>
689 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100690 </page>
691
692 <page name="flashimage_confirm">
693 <template name="page"/>
694
695 <text style="text_l">
696 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500697 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100698 </text>
699
700 <text style="text_m">
701 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500702 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100703 </text>
704
705 <text style="text_m_accent">
706 <placement x="%col1_x_left%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500707 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100708 </text>
709
710 <text style="text_m">
711 <placement x="%col1_x_left%" y="%row9_y%"/>
712 <text>%tw_zip_location%</text>
713 </text>
714
715 <text style="text_m_accent">
716 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500717 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100718 </text>
719
720 <text style="text_m">
721 <placement x="%col1_x_left%" y="%row12_y%"/>
722 <text>%tw_file%</text>
723 </text>
724
725 <partitionlist>
726 <placement x="%col1_x_right%" y="%row7a_y%" w="%content_half_width%" h="%partitionlist_flashimage_height%"/>
727 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500728 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100729 <data name="tw_flash_partition"/>
730 <listtype name="flashimg"/>
731 </partitionlist>
732
epicX8f52c0a2021-02-24 23:12:08 +0530733 <button style="checkbox">
734 <conditions>
735 <condition var1="tw_is_slot_part" op="=" var2="1"/>
736 <condition var1="tw_flash_both_slots" op="=" var2="0"/>
737 <condition var1="tw_has_boot_slots" var2="1"/>
738 </conditions>
739 <placement x="%col1_x_left%" y="%row14a_y%" textplacement="6"/>
740 <text>{@flash_ab_both_slots=Flash to both slots}</text>
741 <image resource="checkbox_false"/>
742 <action function="set">tw_flash_both_slots=1</action>
743 </button>
744
745 <button style="checkbox">
746 <conditions>
747 <condition var1="tw_is_slot_part" op="=" var2="1"/>
748 <condition var1="tw_flash_both_slots" op="=" var2="1"/>
749 <condition var1="tw_has_boot_slots" var2="1"/>
750 </conditions>
751 <placement x="%col1_x_left%" y="%row14a_y%" textplacement="6"/>
752 <text>{@flash_ab_both_slots=Flash to both slots}</text>
753 <image resource="checkbox_true"/>
754 <action function="set">tw_flash_both_slots=0</action>
755 </button>
756
z31s1g28f0a922015-11-07 18:50:22 +0100757 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500758 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100759 <actions>
760 <action function="set">tw_back=flashimage_confirm</action>
761 <action function="set">tw_action=flashimage</action>
762 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500763 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100764 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500765 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100766 <action function="page">action_page</action>
767 </actions>
768 <action function="flashimage"/>
769 </slider>
770
771 <action>
772 <touch key="back"/>
773 <actions>
774 <action function="set">tw_clear_destination=install</action>
775 <action function="page">clear_vars</action>
776 </actions>
777 </action>
778
779 <action>
780 <touch key="home"/>
781 <actions>
782 <action function="set">tw_clear_destination=main2</action>
783 <action function="page">clear_vars</action>
784 </actions>
785 </action>
786 </page>
787
788 <page name="clear_vars">
789 <action>
790 <action function="set">tw_operation_state=0</action>
791 <action function="set">tw_text1=</action>
792 <action function="set">tw_text2=</action>
793 <action function="set">tw_text3=</action>
794 <action function="set">tw_text4=</action>
795 <action function="set">tw_action_text1=</action>
796 <action function="set">tw_action_text2=</action>
797 <action function="set">tw_action_param=</action>
798 <action function="set">tw_has_action2=0</action>
799 <action function="set">tw_action2=</action>
800 <action function="set">tw_action2_param=</action>
801 <action function="set">tw_has_cancel=0</action>
802 <action function="set">tw_cancel_action=</action>
803 <action function="set">tw_cancel_param=</action>
804 <action function="set">tw_show_exclamation=0</action>
805 <action function="set">tw_show_reboot=0</action>
Noah Jacobson81d638d2019-04-28 00:10:07 -0400806 <action function="set">tw_crypto_user_id=</action>
807 <action function="set">tw_multiuser_warning_accepted=</action>
808 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100809 <action function="page">%tw_clear_destination%</action>
810 </action>
811 </page>
812
Matt Mower908dd252016-05-25 02:26:50 -0500813 <page name="reboot_system_routine">
814 <action>
815 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500816 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500817 <action function="set">tw_has_action2=0</action>
818 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
819 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
820 <action function="set">tw_text3=</action>
821 <action function="set">tw_text4=</action>
822 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
823 <action function="set">tw_action_text2=</action>
824 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
825 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
826 <action function="page">rebootcheck</action>
827 </action>
828 </page>
829
z31s1g28f0a922015-11-07 18:50:22 +0100830 <page name="confirm_action">
831 <template name="page"/>
832
833 <text style="text_l">
834 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500835 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100836 </text>
837
838 <text style="text_m">
839 <placement x="%col1_x_header%" y="%row4_header_y%"/>
840 <text/>
841 </text>
842
843 <text style="text_m_accent">
844 <placement x="%center_x%" y="%row2_y%" placement="5"/>
845 <text>%tw_text1%</text>
846 </text>
847
848 <text style="text_m_accent">
849 <placement x="%center_x%" y="%row3_y%" placement="5"/>
850 <text>%tw_text2%</text>
851 </text>
852
853 <text style="text_m">
854 <placement x="%center_x%" y="%row4_y%" placement="5"/>
855 <text>%tw_text3%</text>
856 </text>
857
858 <text style="text_m">
859 <placement x="%center_x%" y="%row5_y%" placement="5"/>
860 <text>%tw_text4%</text>
861 </text>
862
863 <text style="text_m">
864 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500865 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100866 </text>
867
868 <slider style="slider_centered">
869 <text>%tw_slider_text%</text>
870 <action function="page">action_page</action>
871 </slider>
872
873 <action>
874 <touch key="back"/>
875 <actions>
876 <action function="set">tw_clear_destination=%tw_back%</action>
877 <action function="page">clear_vars</action>
878 </actions>
879 </action>
880
881 <action>
882 <touch key="home"/>
883 <action function="page">main</action>
884 </action>
885 </page>
886
887 <page name="action_page">
888 <template name="page"/>
889
890 <text style="text_l">
891 <placement x="%col1_x_header%" y="%row3_header_y%"/>
892 <text>%tw_action_text1%</text>
893 </text>
894
895 <text style="text_m">
896 <placement x="%col1_x_header%" y="%row4_header_y%"/>
897 <text>%tw_action_text2%</text>
898 </text>
899
900 <template name="console"/>
901
902 <template name="progress_bar"/>
903
904 <button style="main_button_half_width">
905 <condition var1="tw_has_cancel" var2="1"/>
906 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500907 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100908 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
909 </button>
910
911 <action>
912 <condition var1="tw_operation_state" var2="1"/>
913 <actions>
914 <action function="page">action_complete</action>
915 </actions>
916 </action>
917
918 <action>
919 <condition var1="tw_has_action2" var2="0"/>
920 <actions>
921 <action function="%tw_action%">%tw_action_param%</action>
922 </actions>
923 </action>
924
925 <action>
926 <condition var1="tw_has_action2" var2="1"/>
927 <actions>
928 <action function="%tw_action%">%tw_action_param%</action>
929 <action function="%tw_action2%">%tw_action2_param%</action>
930 </actions>
931 </action>
932 </page>
933
934 <page name="singleaction_page">
935 <template name="page"/>
936
937 <text style="text_l">
938 <placement x="%col1_x_header%" y="%row3_header_y%"/>
939 <text>%tw_action_text1%</text>
940 </text>
941
942 <text style="text_m">
943 <placement x="%col1_x_header%" y="%row4_header_y%"/>
944 <text>%tw_action_text2%</text>
945 </text>
946
947 <template name="console"/>
948
949 <template name="progress_bar"/>
950
951 <action>
952 <condition var1="tw_operation_state" var2="1"/>
953 <actions>
954 <action function="set">tw_page_done=1</action>
955 </actions>
956 </action>
957
958 <action>
959 <condition var1="tw_has_action2" var2="0"/>
960 <actions>
961 <action function="%tw_action%">%tw_action_param%</action>
962 </actions>
963 </action>
964
965 <action>
966 <condition var1="tw_has_action2" var2="1"/>
967 <actions>
968 <action function="%tw_action%">%tw_action_param%</action>
969 <action function="%tw_action2%">%tw_action2_param%</action>
970 </actions>
971 </action>
972 </page>
973
974 <page name="action_complete">
975 <template name="page"/>
976
977 <text style="text_l">
978 <placement x="%col1_x_header%" y="%row3_header_y%"/>
979 <text>%tw_complete_text1%</text>
980 </text>
981
982 <text style="text_m_fail">
983 <condition var1="tw_operation_status" op="!=" var2="0"/>
984 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500985 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100986 </text>
987
988 <text style="text_m">
989 <condition var1="tw_operation_status" var2="0"/>
990 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500991 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100992 </text>
993
994 <template name="console"/>
995
996 <button style="main_button_half_width">
997 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500998 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100999 <actions>
1000 <action function="set">tw_clear_destination=%tw_back%</action>
1001 <action function="page">clear_vars</action>
1002 </actions>
1003 </button>
1004
1005 <button style="main_button_half_width">
1006 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001007 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001008 <actions>
1009 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -05001010 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01001011 </actions>
1012 </button>
1013
1014 <action>
1015 <touch key="home"/>
1016 <actions>
1017 <action function="set">tw_clear_destination=main2</action>
1018 <action function="page">clear_vars</action>
1019 </actions>
1020 </action>
1021
1022 <action>
1023 <touch key="back"/>
1024 <actions>
1025 <action function="set">tw_clear_destination=%tw_back%</action>
1026 <action function="page">clear_vars</action>
1027 </actions>
1028 </action>
1029 </page>
1030
1031 <page name="filecheck">
1032 <action>
1033 <action function="fileexists">%tw_filecheck%</action>
1034 </action>
1035
1036 <action>
1037 <conditions>
1038 <condition var1="tw_operation_state" var2="1"/>
1039 <condition var1="tw_operation_status" var2="0"/>
1040 </conditions>
1041 <actions>
1042 <action function="set">tw_fileexists=1</action>
1043 <action function="page">%tw_existpage%</action>
1044 </actions>
1045 </action>
1046
1047 <action>
1048 <conditions>
1049 <condition var1="tw_operation_state" var2="1"/>
1050 <condition var1="tw_operation_status" var2="1"/>
1051 </conditions>
1052 <actions>
1053 <action function="set">tw_fileexists=0</action>
1054 <action function="page">%tw_notexistpage%</action>
1055 </actions>
1056 </action>
1057 </page>
1058
1059 <page name="rebootcheck">
1060 <action>
1061 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06001062 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +01001063 </action>
1064
1065 <action>
1066 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1067 <action function="page">confirm_action</action>
1068 </action>
1069 </page>
1070
1071 <page name="wipe">
1072 <template name="page"/>
1073
1074 <text style="text_l">
1075 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001076 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001077 </text>
1078
1079 <text style="text_m">
1080 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001081 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001082 </text>
1083
1084 <text style="text_m_accent">
1085 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001086 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001087 </text>
1088
1089 <text style="text_m_accent">
bigbiffadc599e2020-05-28 19:36:30 +00001090 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04001091 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1092 </text>
1093
1094 <text style="text_m_accent">
1095 <condition var1="tw_has_data_media" var2="1"/>
1096 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001097 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001098 </text>
1099
1100 <text style="text_m_accent">
1101 <conditions>
1102 <condition var1="tw_has_android_secure" var2="1"/>
1103 <condition var1="fileexists" var2="/and-sec"/>
1104 </conditions>
1105 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001106 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001107 </text>
1108
1109 <text style="text_m_accent">
1110 <condition var1="tw_has_sdext_partition" var2="1"/>
1111 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001112 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001113 </text>
1114
1115 <text style="text_m">
1116 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001117 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001118 </text>
1119
1120 <text style="text_m">
1121 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001122 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001123 </text>
1124
1125 <text style="text_m">
1126 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001127 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001128 </text>
1129
1130 <button style="main_button_half_width">
1131 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001132 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001133 <actions>
1134 <action function="set">partitionlisterror=0</action>
1135 <action function="page">advancedwipe</action>
1136 </actions>
1137 </button>
1138
1139 <button style="main_button_half_width">
1140 <condition var1="tw_has_data_media" var2="1"/>
1141 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001142 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001143 <action function="page">formatdata</action>
1144 </button>
1145
1146 <button style="main_button_half_width">
1147 <conditions>
1148 <condition var1="tw_is_encrypted" var2="1"/>
1149 <condition var1="tw_has_data_media" var2="0"/>
1150 </conditions>
1151 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001152 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001153 <actions>
1154 <action function="set">tw_back=wipe</action>
1155 <action function="set">tw_action=wipe</action>
1156 <action function="set">tw_action_param=DATAMEDIA</action>
1157 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001158 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001159 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001160 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1161 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1162 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001163 <action function="page">confirm_action</action>
1164 </actions>
1165 </button>
1166
1167 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001168 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001169 <actions>
1170 <action function="set">tw_back=wipe</action>
1171 <action function="set">tw_action=wipe</action>
1172 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001173 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1174 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001175 <action function="page">action_page</action>
1176 </actions>
1177 </slider>
1178
1179 <action>
1180 <touch key="back"/>
1181 <action function="page">main</action>
1182 </action>
1183
1184 <action>
1185 <touch key="home"/>
1186 <action function="page">main</action>
1187 </action>
1188 </page>
1189
1190 <page name="advancedwipe">
1191 <template name="page"/>
1192
1193 <action>
1194 <action function="set">tw_wipe_list=</action>
1195 </action>
1196
1197 <text style="text_l">
1198 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001199 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001200 </text>
1201
1202 <text style="text_m">
1203 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001204 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001205 </text>
1206
1207 <partitionlist>
1208 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001209 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001210 <data name="tw_wipe_list"/>
1211 <listtype name="wipe"/>
1212 </partitionlist>
1213
1214 <text style="text_m_fail">
1215 <condition var1="partitionlisterror" var2="1"/>
1216 <placement x="%col2_x_left%" y="%row14a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001217 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001218 </text>
1219
1220 <button style="main_button_m">
1221 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001222 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001223 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001224 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001225 <action function="page">checkpartitionlist</action>
1226 </actions>
1227 </button>
1228
1229 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001230 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001231 <actions>
1232 <action function="set">tw_back=advancedwipe</action>
1233 <action function="set">tw_action=wipe</action>
1234 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001235 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1236 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1237 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001238 <action function="page">action_page</action>
1239 </actions>
1240 </slider>
1241
1242 <action>
1243 <touch key="home"/>
1244 <action function="page">main</action>
1245 </action>
1246
1247 <action>
1248 <touch key="back"/>
1249 <action function="page">wipe</action>
1250 </action>
1251 </page>
1252
1253 <page name="formatdata">
1254 <template name="page"/>
1255
1256 <text style="text_l">
1257 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001258 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001259 </text>
1260
1261 <text style="text_m">
1262 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001263 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001264 </text>
1265
1266 <text style="text_m_fail">
1267 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001268 <text>{@format_data_lcp1=Format Data will wipe all of your apps, backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001269 </text>
1270
1271 <text style="text_m_fail">
1272 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001273 <text>{@format_data_lcp2=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001274 </text>
1275
Ethan Yonker66a19492015-12-10 10:19:45 -06001276 <text style="text_m_fail">
1277 <condition var1="tw_has_adopted_storage" var2="1"/>
1278 <placement x="%center_x%" y="%row4_y%" placement="5"/>
1279 <text>{@format_data_adopted=Including Adopted Storage}</text>
1280 </text>
1281
z31s1g28f0a922015-11-07 18:50:22 +01001282 <text style="text_m">
1283 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001284 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001285 </text>
1286
1287 <text style="text_m">
1288 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001289 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001290 </text>
1291
1292 <input>
1293 <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="%input_height%"/>
1294 <text>%tw_confirm_formatdata%</text>
1295 <data name="tw_confirm_formatdata"/>
1296 <restrict minlen="3" maxlen="3" allow="yes"/>
1297 <action function="page">formatdata_confirm</action>
1298 </input>
1299
1300 <fill color="%accent_color%">
1301 <placement x="%col1_x_left%" y="row9_y" w="%content_width%" h="input_line_width"/>
1302 </fill>
1303
1304 <template name="keyboardtemplate"/>
1305
1306 <action>
1307 <touch key="home"/>
1308 <action function="page">main</action>
1309 </action>
1310
1311 <action>
1312 <touch key="back"/>
1313 <action function="page">wipe</action>
1314 </action>
1315 </page>
1316
1317 <page name="formatdata_confirm">
1318 <action>
1319 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1320 <actions>
1321 <action function="set">tw_back=formatdata</action>
1322 <action function="set">tw_action=wipe</action>
1323 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001324 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1325 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001326 <action function="page">action_page</action>
1327 </actions>
1328 </action>
1329
1330 <action>
1331 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1332 <action function="page">formatdata</action>
1333 </action>
1334 </page>
1335
1336 <page name="checkpartitionlist">
1337 <action>
1338 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1339 <actions>
1340 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001341 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001342 <action function="page">partitionoptions</action>
1343 </actions>
1344 </action>
1345
1346 <action>
1347 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1348 <actions>
1349 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001350 <action function="page">advancedwipe</action>
1351 </actions>
1352 </action>
1353 </page>
1354
1355 <page name="partitionoptions">
1356 <template name="page"/>
1357
1358 <text style="text_l">
1359 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001360 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001361 </text>
1362
1363 <text style="text_m">
1364 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001365 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001366 </text>
1367
1368 <text style="text_m_accent">
1369 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001370 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001371 </text>
1372
1373 <text style="text_m_accent">
1374 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001375 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001376 </text>
1377
1378 <text style="text_m">
1379 <condition var1="tw_partition_is_present" var2="1"/>
1380 <placement x="%col2_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001381 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001382 </text>
1383
1384 <text style="text_m">
1385 <condition var1="tw_partition_is_present" var2="0"/>
1386 <placement x="%col2_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001387 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001388 </text>
1389
1390 <text style="text_m">
1391 <condition var1="tw_partition_removable" var2="1"/>
1392 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001393 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001394 </text>
1395
1396 <text style="text_m">
1397 <condition var1="tw_partition_removable" var2="0"/>
1398 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001399 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001400 </text>
1401
1402 <text style="text_m">
1403 <placement x="%col2_x_left%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001404 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001405 </text>
1406
1407 <text style="text_m">
1408 <placement x="%col1_x_right%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001409 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001410 </text>
1411
1412 <text style="text_m">
1413 <placement x="%col2_x_left%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001414 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001415 </text>
1416
1417 <text style="text_m">
1418 <placement x="%col1_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001419 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001420 </text>
1421
1422 <button style="main_button_half_width">
1423 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1424 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001425 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001426 <actions>
1427 <action function="set">tw_back=partitionoptions</action>
1428 <action function="set">tw_action=resize</action>
1429 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1430 <action function="set">tw_has_action2=1</action>
1431 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001432 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001433 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001434 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001435 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1436 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1437 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001438 <action function="page">confirm_action</action>
1439 </actions>
1440 </button>
1441
1442 <button style="main_button_half_width">
1443 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1444 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001445 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001446 <actions>
1447 <action function="set">tw_back=partitionoptions</action>
1448 <action function="set">tw_action=repair</action>
1449 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1450 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001451 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001452 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001453 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1454 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1455 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001456 <action function="page">confirm_action</action>
1457 </actions>
1458 </button>
1459
1460 <button style="main_button_half_width">
1461 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001462 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001463 <action function="page">selectfilesystem</action>
1464 </button>
1465
1466 <action>
1467 <touch key="home"/>
1468 <action function="page">main</action>
1469 </action>
1470
1471 <action>
1472 <touch key="back"/>
1473 <action function="page">advancedwipe</action>
1474 </action>
1475 </page>
1476
1477 <page name="refreshfilesystem">
1478 <action>
1479 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1480 <actions>
1481 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001482 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001483 <action function="page">selectfilesystem</action>
1484 </actions>
1485 </action>
1486
1487 <action>
1488 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1489 <actions>
1490 <action function="set">partitionlisterror=1</action>
1491 <action function="set">tw_wipe_list=</action>
1492 <action function="page">advancedwipe</action>
1493 </actions>
1494 </action>
1495 </page>
1496
1497 <page name="selectfilesystem">
1498 <template name="page"/>
1499
1500 <text style="text_l">
1501 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001502 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001503 </text>
1504
1505 <text style="text_m">
1506 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001507 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001508 </text>
1509
1510 <text style="text_m_accent">
1511 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001512 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001513 </text>
1514
1515 <text style="text_m_accent">
1516 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001517 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001518 </text>
1519
1520 <text style="text_m_fail">
1521 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001522 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001523 </text>
1524
1525 <text style="text_m_fail">
1526 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001527 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001528 </text>
1529
1530 <button style="main_button_half_width">
1531 <condition var1="tw_partition_ext" op="=" var2="1"/>
1532 <placement x="%col1_x_left%" y="%row11_y%"/>
1533 <text>EXT2</text>
1534 <actions>
1535 <action function="set">tw_back=refreshfilesystem</action>
1536 <action function="set">tw_action=changefilesystem</action>
1537 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1538 <action function="set">tw_action_new_file_system=ext2</action>
1539 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001540 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1541 <action function="set">tw_text2=EXT2</action>
1542 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1543 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1544 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001545 <action function="page">confirm_action</action>
1546 </actions>
1547 </button>
1548
1549 <button style="main_button_half_width">
1550 <condition var1="tw_partition_ext" op="=" var2="1"/>
1551 <placement x="%col2_x_left%" y="%row11_y%"/>
1552 <text>EXT3</text>
1553 <actions>
1554 <action function="set">tw_back=refreshfilesystem</action>
1555 <action function="set">tw_action=changefilesystem</action>
1556 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1557 <action function="set">tw_action_new_file_system=ext3</action>
1558 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001559 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1560 <action function="set">tw_text2=EXT3</action>
1561 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1562 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1563 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001564 <action function="page">confirm_action</action>
1565 </actions>
1566 </button>
1567
1568 <button style="main_button_half_width">
1569 <condition var1="tw_partition_ext" op="=" var2="1"/>
1570 <placement x="%center_x%" y="%row11_y%"/>
1571 <text>EXT4</text>
1572 <actions>
1573 <action function="set">tw_back=refreshfilesystem</action>
1574 <action function="set">tw_action=changefilesystem</action>
1575 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1576 <action function="set">tw_action_new_file_system=ext4</action>
1577 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001578 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1579 <action function="set">tw_text2=EXT4</action>
1580 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1581 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1582 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001583 <action function="page">confirm_action</action>
1584 </actions>
1585 </button>
1586
1587 <button style="main_button_half_width">
1588 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1589 <placement x="%col2_x_right%" y="%row11_y%"/>
1590 <text>FAT</text>
1591 <actions>
1592 <action function="set">tw_back=refreshfilesystem</action>
1593 <action function="set">tw_action=changefilesystem</action>
1594 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1595 <action function="set">tw_action_new_file_system=vfat</action>
1596 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001597 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1598 <action function="set">tw_text2=FAT</action>
1599 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1600 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1601 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001602 <action function="page">confirm_action</action>
1603 </actions>
1604 </button>
1605
1606 <button style="main_button_half_width">
1607 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1608 <placement x="%col2_x_left%" y="%row15a_y%"/>
1609 <text>exFAT</text>
1610 <actions>
1611 <action function="set">tw_back=refreshfilesystem</action>
1612 <action function="set">tw_action=changefilesystem</action>
1613 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1614 <action function="set">tw_action_new_file_system=exfat</action>
1615 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001616 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1617 <action function="set">tw_text2=exFAT</action>
1618 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1619 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1620 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001621 <action function="page">confirm_action</action>
1622 </actions>
1623 </button>
1624
1625 <button style="main_button_half_width">
1626 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1627 <placement x="%center_x%" y="%row15a_y%"/>
1628 <text>F2FS</text>
1629 <actions>
1630 <action function="set">tw_back=refreshfilesystem</action>
1631 <action function="set">tw_action=changefilesystem</action>
1632 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1633 <action function="set">tw_action_new_file_system=f2fs</action>
1634 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001635 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1636 <action function="set">tw_text2=F2FS</action>
1637 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1638 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1639 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001640 <action function="page">confirm_action</action>
1641 </actions>
1642 </button>
1643
1644 <action>
1645 <touch key="home"/>
1646 <action function="page">main</action>
1647 </action>
1648
1649 <action>
1650 <touch key="back"/>
1651 <action function="page">partitionoptions</action>
1652 </action>
1653 </page>
1654
1655 <page name="backup">
1656 <template name="page"/>
1657
Noah Jacobson81d638d2019-04-28 00:10:07 -04001658 <action>
1659 <conditions>
1660 <condition var1="tw_is_fbe" var2="1"/>
1661 <condition var1="tw_all_users_decrypted" var2="0"/>
1662 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1663 </conditions>
1664 <actions>
1665 <action function="set">tw_multiuser_warning_destination=backup</action>
1666 <action function="page">multiuser_warning</action>
1667 </actions>
1668 </action>
1669
z31s1g28f0a922015-11-07 18:50:22 +01001670 <text style="text_l">
1671 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001672 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001673 </text>
1674
1675 <text style="text_m">
1676 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001677 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001678 </text>
1679
1680 <text style="text_m_accent">
1681 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001682 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001683 </text>
1684
1685 <text style="text_m">
1686 <placement x="%col1_x_left%" y="%row3_y%"/>
1687 <text>%tw_backup_name%</text>
1688 </text>
1689
1690 <fill color="%fileselector_linecolor%">
1691 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1692 </fill>
1693
1694 <button>
1695 <placement x="col1_x_left" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/>
1696 <fill color="%transparent%"/>
1697 <actions>
1698 <action function="set">tw_fileexists=0</action>
1699 <action function="page">backupname1</action>
1700 </actions>
1701 </button>
1702
1703 <partitionlist>
1704 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001705 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001706 <data name="tw_backup_list"/>
1707 <listtype name="backup"/>
1708 </partitionlist>
1709
1710 <text style="text_m_accent">
1711 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001712 <text>{@encryption=Encryption:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001713 </text>
1714
1715 <text style="text_m">
1716 <conditions>
1717 <condition var1="tw_include_encrypted_backup" var2="1"/>
1718 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001719 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001720 </conditions>
1721 <placement x="%col1_x_right%" y="%row3_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001722 <text>{@enc_disabled=disabled - set a password to enable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001723 </text>
1724
1725 <text style="text_m">
1726 <conditions>
1727 <condition var1="tw_include_encrypted_backup" var2="1"/>
1728 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001729 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001730 </conditions>
1731 <placement x="%col1_x_right%" y="%row3_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001732 <text>{@enc_enabled=enabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001733 </text>
1734
1735 <fill color="%fileselector_linecolor%">
1736 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1737 </fill>
1738
1739 <button>
1740 <placement x="col1_x_right" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/>
1741 <fill color="%transparent%"/>
1742 <actions>
1743 <action function="set">tw_password_not_match=0</action>
1744 <action function="page">backupencryption</action>
1745 </actions>
1746 </button>
1747
1748 <text style="text_m_accent">
1749 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001750 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001751 </text>
1752
1753 <checkbox>
1754 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001755 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001756 <data variable="tw_use_compression"/>
1757 </checkbox>
1758
1759 <checkbox>
1760 <placement x="%col1_x_right%" y="%row7a_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001761 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1762 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001763 </checkbox>
1764
1765 <checkbox>
1766 <placement x="%col1_x_right%" y="%row9_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001767 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001768 <data variable="tw_disable_free_space"/>
1769 </checkbox>
1770
1771 <button style="main_button_half_width">
bigbiffce8f83c2015-12-12 18:30:21 -05001772 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001773 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001774 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001775 <actions>
1776 <action function="set">tw_back=backup</action>
1777 <action function="overlay">select_storage</action>
1778 </actions>
1779 </button>
1780
1781 <button style="main_button_half_width">
1782 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001783 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001784 <actions>
1785 <action function="refreshsizes"/>
1786 <action function="page">backup</action>
1787 </actions>
1788 </button>
1789
1790 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001791 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001792 <action function="page">backup_run</action>
1793 </slider>
1794
1795 <action>
1796 <touch key="home"/>
1797 <action function="page">main</action>
1798 </action>
1799
1800 <action>
1801 <touch key="back"/>
1802 <action function="page">main</action>
1803 </action>
1804 </page>
1805
Noah Jacobson81d638d2019-04-28 00:10:07 -04001806 <page name="multiuser_warning">
1807 <template name="page"/>
1808
1809 <text style="text_l">
1810 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1811 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
1812 </text>
1813
1814 <text style="text_m_fail">
1815 <placement x="%center_x%" y="%row7_y%" placement="5"/>
1816 <text>{@multiuser_warning1=Not all users decrypted!}</text>
1817 </text>
1818
1819 <text style="text_m_fail">
1820 <placement x="%center_x%" y="%row8_y%" placement="5"/>
1821 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
1822 </text>
1823
1824 <button style="main_button_m">
1825 <placement x="%col1_x_left%" y="%row15a_y%"/>
1826 <text>{@decrypt_users=Decrypt Users}</text>
1827 <action function="page">decrypt_users</action>
1828 </button>
1829
1830 <slider>
1831 <text>{@multiuser_warning_accept=Continue Anyway}</text>
1832 <actions>
1833 <action function="set">tw_multiuser_warning_accepted=1</action>
1834 <action function="page">%tw_multiuser_warning_destination%</action>
1835 </actions>
1836 </slider>
1837
1838 <action>
1839 <touch key="home"/>
1840 <action function="page">main</action>
1841 </action>
1842
1843 <action>
1844 <touch key="back"/>
1845 <action function="page">main</action>
1846 </action>
1847 </page>
1848
z31s1g28f0a922015-11-07 18:50:22 +01001849 <page name="backupname1">
1850 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001851 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001852 <action function="generatebackupname"/>
1853 </action>
1854
1855 <action>
1856 <action function="page">backupname2</action>
1857 </action>
1858 </page>
1859
1860 <page name="backupname2">
1861 <template name="page"/>
1862
1863 <text style="text_l">
1864 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001865 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001866 </text>
1867
1868 <text style="text_m">
1869 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001870 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001871 </text>
1872
1873 <text style="text_m_accent">
1874 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001875 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001876 </text>
1877
1878 <input>
1879 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
1880 <text>%tw_backup_name%</text>
1881 <data name="tw_backup_name"/>
1882 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1883 <actions>
1884 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1885 <action function="set">tw_existpage=backupname2</action>
1886 <action function="set">tw_notexistpage=backup</action>
1887 <action function="page">filecheck</action>
1888 </actions>
1889 </input>
1890
1891 <fill color="%accent_color%">
1892 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1893 </fill>
1894
1895 <fill color="%text_fail_color%">
1896 <condition var1="tw_fileexists" var2="1"/>
1897 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1898 </fill>
1899
1900 <text style="text_m_fail">
1901 <condition var1="tw_fileexists" var2="1"/>
1902 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001903 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001904 </text>
1905
1906 <button style="main_button_half_width_low">
1907 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001908 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001909 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001910 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001911 <action function="page">backup</action>
1912 </actions>
1913 </button>
1914
1915 <button style="main_button_half_width_low">
1916 <placement x="%date_button_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001917 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001918 <action function="appenddatetobackupname"/>
1919 </button>
1920
1921 <template name="keyboardtemplate"/>
1922
1923 <action>
1924 <touch key="home"/>
1925 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001926 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001927 <action function="page">main</action>
1928 </actions>
1929 </action>
1930
1931 <action>
1932 <touch key="back"/>
1933 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001934 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001935 <action function="page">backup</action>
1936 </actions>
1937 </action>
1938 </page>
1939
1940 <page name="backupencryption">
1941 <template name="page"/>
1942
1943 <text style="text_l">
1944 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001945 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001946 </text>
1947
1948 <text style="text_m">
1949 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001950 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001951 </text>
1952
1953 <text style="text_m_accent">
1954 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001955 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001956 </text>
1957
1958 <input>
1959 <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/>
1960 <text>%tw_backup_encrypt_display%</text>
1961 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
1962 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
1963 <action function="page">backupencryption2</action>
1964 </input>
1965
1966 <fill color="%accent_color%">
1967 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1968 </fill>
1969
1970 <fill color="%text_fail_color%">
1971 <condition var1="tw_password_not_match" var2="1"/>
1972 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1973 </fill>
1974
1975 <text style="text_m_fail">
1976 <condition var1="tw_password_not_match" var2="1"/>
1977 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001978 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001979 </text>
1980
1981 <button style="main_button_half_width_low">
1982 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001983 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001984 <actions>
1985 <action function="set">tw_encrypt_backup=0</action>
1986 <action function="set">tw_backup_password=</action>
1987 <action function="set">tw_backup_password2=</action>
1988 <action function="set">tw_backup_encrypt_display=</action>
1989 <action function="set">tw_backup_encrypt_display2=</action>
1990 <action function="page">backup</action>
1991 </actions>
1992 </button>
1993
1994 <template name="keyboardtemplate"/>
1995
1996 <action>
1997 <touch key="home"/>
1998 <action function="page">main</action>
1999 </action>
2000
2001 <action>
2002 <touch key="back"/>
2003 <action function="page">backup</action>
2004 </action>
2005 </page>
2006
2007 <page name="backupencryption2">
2008 <template name="page"/>
2009
2010 <text style="text_l">
2011 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002012 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002013 </text>
2014
2015 <text style="text_m">
2016 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002017 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002018 </text>
2019
2020 <text style="text_m_accent">
2021 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002022 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002023 </text>
2024
2025 <input>
2026 <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/>
2027 <text>%tw_backup_encrypt_display2%</text>
2028 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2029 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2030 <action function="page">checkbackuppassword</action>
2031 </input>
2032
2033 <fill color="%accent_color%">
2034 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
2035 </fill>
2036
2037 <text style="text_m">
2038 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002039 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002040 </text>
2041
2042 <button style="main_button_half_width_low">
2043 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002044 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002045 <actions>
2046 <action function="set">tw_encrypt_backup=0</action>
2047 <action function="set">tw_backup_password=</action>
2048 <action function="set">tw_backup_password2=</action>
2049 <action function="set">tw_backup_encrypt_display=</action>
2050 <action function="set">tw_backup_encrypt_display2=</action>
2051 <action function="page">backup</action>
2052 </actions>
2053 </button>
2054
2055 <template name="keyboardtemplate"/>
2056
2057 <action>
2058 <touch key="home"/>
2059 <action function="page">main</action>
2060 </action>
2061
2062 <action>
2063 <touch key="back"/>
2064 <action function="page">backup</action>
2065 </action>
2066 </page>
2067
2068 <page name="checkbackuppassword">
2069 <action>
2070 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2071 <actions>
2072 <action function="set">tw_encrypt_backup=1</action>
2073 <action function="page">backup</action>
2074 </actions>
2075 </action>
2076
2077 <action>
2078 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2079 <actions>
2080 <action function="set">tw_encrypt_backup=0</action>
2081 <action function="set">tw_password_not_match=1</action>
2082 <action function="set">tw_backup_password=</action>
2083 <action function="set">tw_backup_password2=</action>
2084 <action function="set">tw_backup_encrypt_display=</action>
2085 <action function="set">tw_backup_encrypt_display2=</action>
2086 <action function="page">backupencryption</action>
2087 </actions>
2088 </action>
2089 </page>
2090
2091 <page name="backup_run">
2092 <template name="page"/>
2093
2094 <text style="text_l">
2095 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2096 <text>%tw_operation%</text>
2097 </text>
2098
2099 <text style="text_m">
2100 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2101 <text>%tw_partition% Partition</text>
2102 </text>
2103
2104 <template name="console"/>
2105
2106 <template name="progress_bar"/>
2107
2108 <text style="text_m_accent">
2109 <placement x="%progress_text_x%" y="%progress_text_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002110 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002111 </text>
2112
2113 <text style="text_m">
2114 <placement x="%progress_text_x%" y="%row17_y%"/>
2115 <text>%tw_file_progress%</text>
2116 </text>
2117
2118 <text style="text_m">
2119 <placement x="%progress_text_x%" y="%row18_y%"/>
2120 <text>%tw_size_progress%</text>
2121 </text>
2122
2123 <button style="main_button_half_width">
2124 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002125 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002126 <action function="cancelbackup"/>
2127 </button>
2128
2129 <action>
2130 <action function="nandroid">backup</action>
2131 </action>
2132
2133 <action>
2134 <condition var1="tw_operation_state" var2="1"/>
2135 <condition var1="tw_cancel_backup" var2="0"/>
2136 <actions>
2137 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002138 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002139 <action function="set">tw_show_reboot=1</action>
2140 <action function="page">action_complete</action>
2141 </actions>
2142 </action>
2143
2144 <action>
2145 <condition var1="tw_operation_state" var2="1"/>
2146 <condition var1="tw_cancel_backup" var2="1"/>
2147 <actions>
2148 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002149 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002150 <action function="set">tw_show_reboot=1</action>
2151 <action function="page">action_complete</action>
2152 </actions>
2153 </action>
2154 </page>
2155
2156 <page name="restore">
2157 <template name="page"/>
2158
Noah Jacobson81d638d2019-04-28 00:10:07 -04002159 <action>
2160 <conditions>
2161 <condition var1="tw_is_fbe" var2="1"/>
2162 <condition var1="tw_all_users_decrypted" var2="0"/>
2163 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2164 </conditions>
2165 <actions>
2166 <action function="set">tw_multiuser_warning_destination=restore</action>
2167 <action function="page">multiuser_warning</action>
2168 </actions>
2169 </action>
2170
z31s1g28f0a922015-11-07 18:50:22 +01002171 <text style="text_l">
2172 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002173 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002174 </text>
2175
2176 <text style="text_m">
2177 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002178 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002179 </text>
2180
2181 <template name="sort_options"/>
2182
2183 <fileselector>
2184 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002185 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002186 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002187 <path name="tw_backups_folder"/>
2188 <data name="tw_restore" default=""/>
2189 <selection name="tw_restore_name"/>
2190 </fileselector>
2191
2192 <button style="main_button_half_width_low">
2193 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002194 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002195 <actions>
2196 <action function="set">tw_back=restore</action>
2197 <action function="overlay">select_storage</action>
2198 </actions>
2199 </button>
bigbiff8f5fad32021-11-03 20:39:02 -04002200 <action>
2201 <condition var1="tw_crypto_pwtype" op="!=" var2="0"/>
2202 <actions>
Captain Throwback02e74572022-01-10 12:55:05 -05002203 <action function="page">restore_keymaster</action>
bigbiff8f5fad32021-11-03 20:39:02 -04002204 </actions>
2205 </action>
2206
2207 <action>
2208 <condition var1="tw_restore" op="modified"/>
2209 <actions>
2210 <action function="readBackup"/>
2211 <action function="page">restore_read</action>
2212 </actions>
2213 </action>
2214
2215 <action>
2216 <touch key="home"/>
2217 <action function="page">main</action>
2218 </action>
2219
2220 <action>
2221 <touch key="back"/>
2222 <action function="page">main</action>
2223 </action>
2224 </page>
2225
2226
2227 <page name="restore_force">
2228 <template name="page"/>
2229
2230 <action>
2231 <conditions>
2232 <condition var1="tw_is_fbe" var2="1"/>
2233 <condition var1="tw_all_users_decrypted" var2="0"/>
2234 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2235 </conditions>
2236 <actions>
sekaiacg750c6aa2021-12-06 12:27:46 +08002237 <action function="set">tw_multiuser_warning_destination=restore_force</action>
bigbiff8f5fad32021-11-03 20:39:02 -04002238 <action function="page">multiuser_warning</action>
2239 </actions>
2240 </action>
2241
2242 <text style="text_l">
2243 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2244 <text>{@restore_hdr=Restore}</text>
2245 </text>
2246
2247 <text style="text_m">
2248 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2249 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
2250 </text>
2251
2252 <template name="sort_options"/>
2253
2254 <fileselector>
2255 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_install_height%"/>
2256 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
2257 <filter folders="1" files="1" nav="0" extn=".ab"/>
2258 <path name="tw_backups_folder"/>
2259 <data name="tw_restore" default=""/>
2260 <selection name="tw_restore_name"/>
2261 </fileselector>
2262
2263 <button style="main_button_half_width_low">
2264 <placement x="%col_button_right%" y="%row16a_y%"/>
2265 <text>{@select_storage_btn=Select Storage}</text>
2266 <actions>
2267 <action function="set">tw_back=restore</action>
2268 <action function="overlay">select_storage</action>
2269 </actions>
2270 </button>
z31s1g28f0a922015-11-07 18:50:22 +01002271
2272 <action>
2273 <condition var1="tw_restore" op="modified"/>
2274 <actions>
2275 <action function="readBackup"/>
2276 <action function="page">restore_read</action>
2277 </actions>
2278 </action>
2279
2280 <action>
2281 <touch key="home"/>
2282 <action function="page">main</action>
2283 </action>
2284
2285 <action>
2286 <touch key="back"/>
2287 <action function="page">main</action>
2288 </action>
2289 </page>
2290
2291 <page name="restore_read">
2292 <action>
2293 <condition var1="tw_restore_encrypted" var2="1"/>
2294 <actions>
2295 <action function="set">tw_password_fail=0</action>
2296 <action function="page">restore_decrypt</action>
2297 </actions>
2298 </action>
2299
2300 <action>
2301 <condition var1="tw_restore_encrypted" var2="0"/>
2302 <actions>
2303 <action function="page">restore_select</action>
2304 </actions>
2305 </action>
2306 </page>
2307
2308 <page name="restore_decrypt">
2309 <template name="page"/>
2310
2311 <text style="text_l">
2312 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002313 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002314 </text>
2315
2316 <text style="text_m">
2317 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002318 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002319 </text>
2320
2321 <text style="text_m_accent">
2322 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002323 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002324 </text>
2325
2326 <input>
2327 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2328 <text>%tw_restore_display%</text>
2329 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2330 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2331 <action function="page">try_restore_decrypt</action>
2332 </input>
2333
2334 <fill color="%accent_color%">
2335 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
2336 </fill>
2337
2338 <fill color="%text_fail_color%">
2339 <condition var1="tw_password_fail" var2="1"/>
2340 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
2341 </fill>
2342
2343 <text style="text_m_fail">
2344 <condition var1="tw_password_fail" var2="1"/>
2345 <placement x="%col1_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002346 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002347 </text>
2348
2349 <button style="main_button_half_width_low">
2350 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002351 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002352 <actions>
2353 <action function="set">tw_page_done=1</action>
2354 <action function="page">restore</action>
2355 </actions>
2356 </button>
2357
2358 <button style="main_button_half_width_low">
2359 <placement x="%col_button_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002360 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002361 <actions>
2362 <action function="set">tw_back=restore</action>
2363 <action function="set">tw_action=cmd</action>
2364 <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 -05002365 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2366 <action function="set">tw_text2=%tw_restore_name%</action>
2367 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2368 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2369 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2370 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002371 <action function="page">confirm_action</action>
2372 </actions>
2373 </button>
2374
2375 <template name="keyboardtemplate"/>
2376
2377 <action>
2378 <touch key="home"/>
2379 <action function="page">main</action>
2380 </action>
2381
2382 <action>
2383 <touch key="back"/>
2384 <action function="page">restore</action>
2385 </action>
2386 </page>
2387
2388 <page name="try_restore_decrypt">
2389 <template name="page"/>
2390
2391 <text style="text_l">
2392 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002393 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002394 </text>
2395
2396 <text style="text_m">
2397 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002398 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002399 </text>
2400
2401 <template name="console"/>
2402
2403 <template name="progress_bar"/>
2404
2405 <action>
2406 <action function="decrypt_backup"/>
2407 </action>
2408
2409 <action>
2410 <conditions>
2411 <condition var1="tw_operation_state" var2="1"/>
2412 <condition var1="tw_operation_status" op="!=" var2="0"/>
2413 </conditions>
2414 <actions>
2415 <action function="set">tw_password_fail=1</action>
2416 <action function="page">restore_decrypt</action>
2417 </actions>
2418 </action>
2419
2420 <action>
2421 <conditions>
2422 <condition var1="tw_operation_state" var2="1"/>
2423 <condition var1="tw_operation_status" op="=" var2="0"/>
2424 </conditions>
2425 <actions>
2426 <action function="set">tw_page_done=1</action>
2427 <action function="page">restore_select</action>
2428 </actions>
2429 </action>
2430 </page>
2431
2432 <page name="restore_select">
2433 <template name="page"/>
2434
2435 <text style="text_l">
2436 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002437 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002438 </text>
2439
2440 <text style="text_m">
2441 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002442 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002443 </text>
2444
2445 <text style="text_m_accent">
2446 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002447 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002448 </text>
2449
2450 <text style="text_m">
2451 <placement x="%col1_x_left%" y="%row3_y%"/>
2452 <text>%tw_restore_name%</text>
2453 </text>
2454
2455 <fill color="%fileselector_linecolor%">
2456 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width"/>
2457 </fill>
2458
2459 <button>
2460 <placement x="col1_x_left" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2461 <fill color="%transparent%"/>
2462 <actions>
2463 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2464 <action function="set">tw_fileexists=0</action>
2465 <action function="page">renamebackup</action>
2466 </actions>
2467 </button>
2468
2469 <partitionlist>
2470 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002471 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002472 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2473 <listtype name="restore"/>
2474 </partitionlist>
2475
2476 <text style="text_m_accent">
2477 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002478 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002479 </text>
2480
2481 <checkbox>
2482 <placement x="%col1_x_right%" y="%row6_y%"/>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002483 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002484 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2485 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002486 </checkbox>
2487
2488 <button style="main_button_half_width">
2489 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002490 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002491 <actions>
2492 <action function="set">tw_back=restore</action>
2493 <action function="set">tw_action=cmd</action>
2494 <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 -05002495 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002496 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002497 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2498 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2499 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2500 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002501 <action function="page">confirm_action</action>
2502 </actions>
2503 </button>
2504
2505 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002506 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002507 <action function="page">restore_run</action>
2508 </slider>
2509
2510 <action>
2511 <touch key="home"/>
2512 <action function="page">main</action>
2513 </action>
2514
2515 <action>
2516 <touch key="back"/>
2517 <action function="page">restore</action>
2518 </action>
2519 </page>
2520
2521 <page name="renamebackup">
2522 <template name="page"/>
2523
2524 <text style="text_l">
2525 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002526 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002527 </text>
2528
2529 <text style="text_m">
2530 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002531 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002532 </text>
2533
2534 <text style="text_m_accent">
2535 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002536 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002537 </text>
2538
2539 <input>
2540 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2541 <text>%tw_backup_rename%</text>
2542 <data name="tw_backup_rename"/>
2543 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2544 <actions>
2545 <action function="set">tw_back=restore</action>
2546 <action function="set">tw_action=cmd</action>
2547 <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 -05002548 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2549 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2550 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2551 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2552 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002553 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2554 <action function="set">tw_existpage=renamebackup</action>
2555 <action function="set">tw_notexistpage=confirm_action</action>
2556 <action function="page">filecheck</action>
2557 </actions>
2558 </input>
2559
2560 <fill color="%accent_color%">
2561 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2562 </fill>
2563
2564 <fill color="%text_fail_color%">
2565 <condition var1="tw_fileexists" var2="1"/>
2566 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2567 </fill>
2568
2569 <text style="text_m_fail">
2570 <condition var1="tw_fileexists" var2="1"/>
2571 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002572 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002573 </text>
2574
2575 <button style="main_button_half_width_low">
2576 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002577 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002578 <action function="page">restore_select</action>
2579 </button>
2580
2581 <template name="keyboardtemplate"/>
2582
2583 <action>
2584 <touch key="home"/>
2585 <action function="page">main</action>
2586 </action>
2587
2588 <action>
2589 <touch key="back"/>
2590 <action function="page">restore_select</action>
2591 </action>
2592 </page>
2593
2594 <page name="restore_run">
2595 <template name="page"/>
2596
2597 <text style="text_l">
2598 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002599 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002600 </text>
2601
2602 <text style="text_m">
2603 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2604 <text>%tw_operation% %tw_partition%</text>
2605 </text>
2606
2607 <template name="console"/>
2608
2609 <template name="progress_bar"/>
2610
2611 <text style="text_m_accent">
2612 <placement x="%progress_text_x%" y="%progress_text_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002613 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002614 </text>
2615
2616 <text style="text_m">
2617 <placement x="%progress_text_x%" y="%row18_y%"/>
2618 <text>%tw_size_progress%</text>
2619 </text>
2620
2621 <action>
2622 <condition var1="tw_operation_state" var2="1"/>
2623 <actions>
2624 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002625 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002626 <action function="set">tw_show_reboot=1</action>
2627 <action function="page">action_complete</action>
2628 </actions>
2629 </action>
2630
2631 <action>
2632 <action function="nandroid">restore</action>
2633 </action>
2634 </page>
2635
2636 <page name="mount">
2637 <template name="page"/>
2638
2639 <text style="text_l">
2640 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002641 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002642 </text>
2643
2644 <text style="text_m">
2645 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002646 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002647 </text>
2648
2649 <partitionlist>
2650 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002651 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002652 <listtype name="mount"/>
2653 </partitionlist>
2654
2655 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002656 <conditions>
bigbiffb640d972021-10-12 19:08:10 -04002657 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
bigbiffee7b7ff2020-03-23 15:08:27 -04002658 <condition var1="tw_is_super" op="=" var2="0"/>
2659 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002660 <placement x="%col1_x_left%" y="%row14_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002661 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002662 <image resource="checkbox_false"/>
2663 <action function="mountsystemtoggle">1</action>
2664 </button>
2665
2666 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002667 <conditions>
2668 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2669 <condition var1="tw_is_super" op="=" var2="0"/>
2670 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002671 <placement x="%col1_x_left%" y="%row14_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002672 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002673 <image resource="checkbox_true"/>
2674 <actions>
2675 <action function="set">tw_lifetime_writes=2</action>
2676 <action function="page">system_readonly_check</action>
2677 </actions>
2678 </button>
2679
2680 <button style="main_button_half_width">
2681 <condition var1="tw_has_usb_storage" var2="1"/>
2682 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002683 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002684 <action function="page">usb_mount</action>
2685 </button>
2686
2687 <button style="main_button_half_width">
2688 <conditions>
2689 <condition var1="tw_is_encrypted" var2="1"/>
2690 <condition var1="tw_is_decrypted" var2="0"/>
2691 </conditions>
2692 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002693 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04002694 <action function="set">tw_crypto_user_id=0</action>
2695 <action function="set">tw_crypto_password=</action>
2696 <action function="set">tw_password_fail=0</action>
2697 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002698 <action function="page">decrypt</action>
2699 </button>
2700
2701 <button style="main_button_half_width">
2702 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002703 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002704 <actions>
2705 <action function="set">tw_back=mount</action>
2706 <action function="overlay">select_storage</action>
2707 </actions>
2708 </button>
2709
2710 <button style="main_button_half_width">
2711 <conditions>
2712 <condition var1="tw_has_mtp" var2="1"/>
2713 <condition var1="tw_mtp_enabled" var2="0"/>
2714 </conditions>
2715 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002716 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002717 <action function="startmtp"/>
2718 </button>
2719
2720 <button style="main_button_half_width">
2721 <conditions>
2722 <condition var1="tw_has_mtp" var2="1"/>
2723 <condition var1="tw_mtp_enabled" var2="1"/>
2724 </conditions>
2725 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002726 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002727 <action function="stopmtp"/>
2728 </button>
2729
2730 <action>
2731 <touch key="home"/>
2732 <action function="page">main</action>
2733 </action>
2734
2735 <action>
2736 <touch key="back"/>
2737 <action function="page">main</action>
2738 </action>
2739 </page>
2740
2741 <page name="usb_mount">
2742 <template name="page"/>
2743
2744 <text style="text_l">
2745 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002746 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002747 </text>
2748
2749 <text style="text_m">
2750 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002751 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002752 </text>
2753
2754 <text style="text_m_accent">
2755 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002756 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002757 </text>
2758
2759 <text style="text_m">
2760 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002761 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002762 </text>
2763
2764 <text style="text_m">
2765 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002766 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002767 </text>
2768
2769 <button style="main_button_half_width">
2770 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002771 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002772 <action function="page">usb_umount</action>
2773 </button>
2774
2775 <action>
2776 <action function="mount">usb</action>
2777 <action function="set">tw_busy=1</action>
2778 </action>
2779 </page>
2780
2781 <page name="usb_umount">
2782 <action>
2783 <action function="unmount">usb</action>
2784 </action>
2785
2786 <action>
2787 <action function="page">mount</action>
2788 <action function="set">tw_busy=0</action>
2789 </action>
2790 </page>
2791
2792 <page name="system_readonly_check">
2793 <action>
2794 <action function="checkpartitionlifetimewrites">/system</action>
2795 </action>
2796
2797 <action>
2798 <condition var1="tw_lifetime_writes" var2="1"/>
2799 <actions>
2800 <action function="mountsystemtoggle">0</action>
2801 <action function="page">mount</action>
2802 </actions>
2803 </action>
2804
2805 <action>
2806 <condition var1="tw_lifetime_writes" var2="0"/>
2807 <actions>
2808 <action function="set">tw_back=mount</action>
2809 <action function="page">system_readonly</action>
2810 </actions>
2811 </action>
2812 </page>
2813
bigbiffdf8436b2020-08-30 16:22:34 -04002814 <page name="fastbootreboot">
2815 <template name="page"/>
2816
2817 <text style="text_l">
2818 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2819 <text>{@reboot_hdr=Reboot}</text>
2820 </text>
2821
2822 <listbox style="advanced_listbox">
Captain Throwback6321bc32020-12-25 22:46:59 -05002823 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%fileselector_install_height%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04002824
2825 <listitem name="{@rb_system_btn=System}">
2826 <condition var1="tw_reboot_system" var2="1"/>
2827 <actions>
2828 <action function="set">tw_back=fastbootreboot</action>
2829 <action function="set">tw_action=reboot</action>
2830 <action function="set">tw_action_param=system</action>
2831 <action function="set">tw_reboot_param=system</action>
2832 <action function="set">tw_has_action2=0</action>
2833 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2834 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2835 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2836 <action function="page">confirm_action</action>
2837 </actions>
2838 </listitem>
2839
2840 <listitem name="{@rb_poweroff_btn=Power Off}">
2841 <condition var1="tw_reboot_poweroff" var2="1"/>
2842 <actions>
2843 <action function="set">tw_back=fastbootreboot</action>
2844 <action function="set">tw_action=reboot</action>
2845 <action function="set">tw_action_param=poweroff</action>
2846 <action function="set">tw_reboot_param=poweroff</action>
2847 <action function="set">tw_has_action2=0</action>
2848 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2849 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2850 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2851 <action function="page">confirm_action</action>
2852 </actions>
2853 </listitem>
2854
2855 <listitem name="{@rb_recovery_btn=Recovery}">
2856 <condition var1="tw_reboot_recovery" var2="1"/>
2857 <actions>
2858 <action function="set">tw_back=fastbootreboot</action>
2859 <action function="set">tw_action=reboot</action>
2860 <action function="set">tw_action_param=recovery</action>
2861 <action function="set">tw_reboot_param=recovery</action>
2862 <action function="set">tw_has_action2=0</action>
2863 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2864 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2865 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2866 <action function="page">confirm_action</action>
2867 </actions>
2868 </listitem>
2869
2870 <listitem name="{@rb_bootloader_btn=Bootloader}">
2871 <condition var1="tw_reboot_bootloader" var2="1"/>
2872 <actions>
2873 <action function="set">tw_back=fastbootreboot</action>
2874 <action function="set">tw_action=reboot</action>
2875 <action function="set">tw_action_param=bootloader</action>
2876 <action function="set">tw_reboot_param=bootloader</action>
2877 <action function="set">tw_has_action2=0</action>
2878 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2879 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2880 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2881 <action function="page">confirm_action</action>
2882 </actions>
2883 </listitem>
2884
2885 <listitem name="{@rb_download_btn=Download}">
2886 <condition var1="tw_download_mode" var2="1"/>
2887 <actions>
2888 <action function="set">tw_back=fastbootreboot</action>
2889 <action function="set">tw_action=reboot</action>
2890 <action function="set">tw_action_param=download</action>
2891 <action function="set">tw_reboot_param=download</action>
2892 <action function="set">tw_has_action2=0</action>
2893 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2894 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2895 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2896 <action function="page">confirm_action</action>
2897 </actions>
2898 </listitem>
2899
2900 <listitem name="{@fastboot_button=Fastboot}">
2901 <condition var1="tw_fastboot_mode" var2="1"/>
2902 <actions>
2903 <action function="set">tw_back=fastbootreboot</action>
2904 <action function="set">tw_action=reboot</action>
2905 <action function="set">tw_action_param=fastboot</action>
2906 <action function="set">tw_reboot_param=fastboot</action>
2907 <action function="set">tw_has_action2=0</action>
2908 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2909 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2910 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2911 <action function="page">confirm_action</action>
2912 </actions>
2913 </listitem>
2914
Aseem Athaledd81b9a2021-11-08 13:12:30 +05302915 <listitem name="{@rb_edl_btn=EDL}">
bigbiffdf8436b2020-08-30 16:22:34 -04002916 <condition var1="tw_edl_mode" var2="1"/>
2917 <actions>
2918 <action function="set">tw_back=fastbootreboot</action>
2919 <action function="set">tw_action=reboot</action>
2920 <action function="set">tw_action_param=edl</action>
2921 <action function="set">tw_reboot_param=edl</action>
2922 <action function="set">tw_has_action2=0</action>
2923 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2924 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2925 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2926 <action function="page">confirm_action</action>
2927 </actions>
2928 </listitem>
2929 </listbox>
2930 <action>
2931 <touch key="home"/>
2932 <action function="page">fastboot</action>
2933 </action>
2934
2935 <action>
2936 <touch key="back"/>
2937 <action function="page">fastboot</action>
2938 </action>
2939 </page>
2940
z31s1g28f0a922015-11-07 18:50:22 +01002941 <page name="reboot">
2942 <template name="page"/>
2943
2944 <text style="text_l">
2945 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002946 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002947 </text>
2948
bigbiffdf8436b2020-08-30 16:22:34 -04002949 <listbox style="advanced_listbox">
Captain Throwback6321bc32020-12-25 22:46:59 -05002950 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%fileselector_install_height%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04002951
2952 <listitem name="{@rb_system_btn=System}">
2953 <condition var1="tw_reboot_system" var2="1"/>
2954 <actions>
2955 <action function="set">tw_back=reboot</action>
2956 <action function="page">reboot_system_routine</action>
2957 </actions>
2958 </listitem>
2959
2960 <listitem name="{@rb_poweroff_btn=Power Off}">
2961 <condition var1="tw_reboot_poweroff" var2="1"/>
2962 <actions>
2963 <action function="set">tw_back=reboot</action>
2964 <action function="set">tw_action=reboot</action>
2965 <action function="set">tw_action_param=poweroff</action>
2966 <action function="set">tw_reboot_param=poweroff</action>
2967 <action function="set">tw_has_action2=0</action>
2968 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2969 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
2970 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2971 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2972 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2973 <action function="page">rebootcheck</action>
2974 </actions>
2975 </listitem>
2976
2977 <listitem name="{@rb_recovery_btn=Recovery}">
2978 <condition var1="tw_reboot_recovery" var2="1"/>
2979 <actions>
2980 <action function="set">tw_back=reboot</action>
2981 <action function="set">tw_action=reboot</action>
2982 <action function="set">tw_action_param=recovery</action>
2983 <action function="set">tw_reboot_param=recovery</action>
2984 <action function="set">tw_has_action2=0</action>
2985 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2986 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2987 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2988 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2989 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2990 <action function="page">rebootcheck</action>
2991 </actions>
2992 </listitem>
2993
2994 <listitem name="{@rb_bootloader_btn=Bootloader}">
2995 <condition var1="tw_reboot_bootloader" var2="1"/>
2996 <actions>
2997 <action function="set">tw_back=reboot</action>
2998 <action function="set">tw_action=reboot</action>
2999 <action function="set">tw_action_param=bootloader</action>
3000 <action function="set">tw_reboot_param=bootloader</action>
3001 <action function="set">tw_has_action2=0</action>
3002 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3003 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3004 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3005 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3006 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3007 <action function="page">rebootcheck</action>
3008 </actions>
3009 </listitem>
3010
3011 <listitem name="{@rb_download_btn=Download}">
3012 <condition var1="tw_download_mode" var2="1"/>
3013 <actions>
3014 <action function="set">tw_back=reboot</action>
3015 <action function="set">tw_action=reboot</action>
3016 <action function="set">tw_action_param=download</action>
3017 <action function="set">tw_reboot_param=download</action>
3018 <action function="set">tw_has_action2=0</action>
3019 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3020 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3021 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3022 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3023 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3024 <action function="page">rebootcheck</action>
3025 </actions>
3026 </listitem>
3027
3028
3029 <listitem name="{@fastboot_button=Fastboot}">
3030 <condition var1="tw_fastboot_mode" var2="1"/>
3031 <actions>
3032 <action function="set">tw_back=reboot</action>
3033 <action function="set">tw_action=reboot</action>
3034 <action function="set">tw_action_param=fastboot</action>
3035 <action function="set">tw_reboot_param=fastboot</action>
3036 <action function="set">tw_has_action2=0</action>
3037 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3038 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3039 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3040 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3041 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3042 <action function="page">rebootcheck</action>
3043 </actions>
3044 </listitem>
3045
Aseem Athaledd81b9a2021-11-08 13:12:30 +05303046 <listitem name="{@rb_edl_btn=EDL}">
bigbiffdf8436b2020-08-30 16:22:34 -04003047 <condition var1="tw_edl_mode" var2="1"/>
3048 <actions>
3049 <action function="set">tw_back=reboot</action>
3050 <action function="set">tw_action=reboot</action>
3051 <action function="set">tw_action_param=edl</action>
3052 <action function="set">tw_reboot_param=edl</action>
3053 <action function="set">tw_has_action2=0</action>
3054 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3055 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3056 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3057 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3058 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3059 <action function="page">rebootcheck</action>
3060 </actions>
Captain Throwback52978932021-09-05 15:11:07 -04003061 </listitem>
bigbiffdf8436b2020-08-30 16:22:34 -04003062 </listbox>
3063
3064 <text style="text_m">
3065 <condition var1="tw_has_boot_slots" var2="1"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003066 <placement x="%col1_x_header%" y="%row14_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04003067 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
3068 </text>
3069
z31s1g28f0a922015-11-07 18:50:22 +01003070 <button style="main_button">
bigbiffdf8436b2020-08-30 16:22:34 -04003071 <condition var1="tw_has_boot_slots" var2="1"/>
3072 <placement x="%indent%" y="%row16_y%"/>
3073 <text>{@boot_slot_a=Slot A}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003074 <actions>
3075 <action function="set">tw_back=reboot</action>
bigbiffdf8436b2020-08-30 16:22:34 -04003076 <action function="set">tw_action=setbootslot</action>
3077 <action function="set">tw_action_param=A</action>
3078 <action function="set">tw_has_action2=0</action>
3079 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3080 <action function="set">tw_action_text2=</action>
3081 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3082 <action function="page">action_page</action>
z31s1g28f0a922015-11-07 18:50:22 +01003083 </actions>
3084 </button>
3085
3086 <button style="main_button">
bigbiffdf8436b2020-08-30 16:22:34 -04003087 <condition var1="tw_has_boot_slots" var2="1"/>
3088 <placement x="%center_x%" y="%row16_y%"/>
3089 <text>{@boot_slot_b=Slot B}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003090 <actions>
3091 <action function="set">tw_back=reboot</action>
bigbiffdf8436b2020-08-30 16:22:34 -04003092 <action function="set">tw_action=setbootslot</action>
3093 <action function="set">tw_action_param=B</action>
z31s1g28f0a922015-11-07 18:50:22 +01003094 <action function="set">tw_has_action2=0</action>
bigbiffdf8436b2020-08-30 16:22:34 -04003095 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3096 <action function="set">tw_action_text2=</action>
3097 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3098 <action function="page">action_page</action>
mauronofrioe9a49ef2018-10-03 13:38:16 +02003099 </actions>
3100 </button>
3101
z31s1g28f0a922015-11-07 18:50:22 +01003102 <action>
3103 <touch key="home"/>
3104 <action function="page">main</action>
3105 </action>
3106
3107 <action>
3108 <touch key="back"/>
3109 <action function="page">main</action>
3110 </action>
3111 </page>
3112
Ethan Yonker8581ab32020-12-17 14:51:50 -06003113 <page name="installapp">
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003114 <template name="page"/>
3115
3116 <text style="text_l">
3117 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003118 <text>%tw_appinstall_title%</text>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003119 </text>
3120
3121 <text style="text_m">
3122 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003123 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003124 </text>
3125
3126 <text style="text_m_accent">
3127 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3128 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3129 </text>
3130
3131 <text style="text_m_accent">
3132 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3133 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3134 </text>
3135
3136 <checkbox>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003137 <condition var1="tw_mount_system_ro" var2="0"/>
3138 <placement x="%indent%" y="%row7_y%"/>
3139 <text>{@reboot_install_app_system=Install as a System App}</text>
3140 <data variable="tw_app_install_system"/>
3141 </checkbox>
3142
3143 <button style="main_button_half_width">
3144 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003145 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003146 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003147 </button>
3148
3149 <slider>
3150 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3151 <actions>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003152 <action function="set">tw_action=installapp</action>
3153 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3154 <action function="set">tw_action_text2=</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003155 <action function="set">tw_complete_text1={@successful=Successful}</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003156 <action function="page">action_page</action>
3157 </actions>
3158 </slider>
3159
3160 <action>
3161 <touch key="home"/>
3162 <actions>
3163 <action function="set">tw_app_install_status=0</action>
3164 <action function="page">main</action>
3165 </actions>
3166 </action>
3167
3168 <action>
3169 <touch key="back"/>
3170 <actions>
3171 <action function="set">tw_app_install_status=0</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003172 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003173 </actions>
3174 </action>
3175 </page>
3176
z31s1g28f0a922015-11-07 18:50:22 +01003177 <page name="system_readonly">
3178 <template name="page"/>
3179
3180 <text style="text_l">
3181 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003182 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003183 </text>
3184
3185 <text style="text_m_accent">
3186 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003187 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003188 </text>
3189
3190 <text style="text_m">
3191 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003192 <text>{@sys_rol1=TWRP can leave your system partition unmodified to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003193 </text>
3194
3195 <text style="text_m">
3196 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003197 <text>{@sys_rol2=TWRP will be unable to prevent the stock ROM from replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003198 </text>
3199
3200 <text style="text_m_fail">
3201 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003202 <text>{@sys_rol3=Installing zips or performing adb operations may still modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003203 </text>
3204
3205 <checkbox>
3206 <condition var1="tw_is_encrypted" var2="0"/>
3207 <placement x="%col1_x_left%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003208 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003209 <data variable="tw_never_show_system_ro_page"/>
3210 </checkbox>
3211
3212 <button style="main_button_half_width">
3213 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003214 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003215 <actions>
3216 <action function="mountsystemtoggle">1</action>
3217 <action function="set">tw_page_done=1</action>
3218 <action function="page">%tw_back%</action>
3219 </actions>
3220 </button>
3221
z31s1g608d7ff2016-01-18 19:47:25 +01003222 <button style="main_button_half_width">
3223 <placement x="%col2_x_left%" y="%row15a_y%"/>
3224 <text>{@sel_lang_btn=Select Language}</text>
3225 <action function="overlay">select_language</action>
3226 </button>
3227
z31s1g28f0a922015-11-07 18:50:22 +01003228 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003229 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003230 <actions>
3231 <action function="mountsystemtoggle">0</action>
3232 <action function="set">tw_page_done=1</action>
3233 <action function="page">%tw_back%</action>
3234 </actions>
3235 </slider>
3236 </page>
3237
3238 <page name="settings">
3239 <template name="page"/>
3240
3241 <text style="text_l">
3242 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003243 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003244 </text>
3245
3246 <text style="text_m">
3247 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003248 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003249 </text>
3250
3251 <template name="tabs_settings"/>
3252
3253 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003254 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003255 </fill>
3256
3257 <listbox style="scrolllist">
3258 <placement x="%col1_x_left%" y="%row3a_y%" w="%content_half_width%" h="%listbox_settings_height%"/>
3259 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003260 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003261 <data variable="tw_signed_zip_verify"/>
3262 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003263 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3264 <data variable="tw_install_reboot"/>
3265 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003266 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003267 <data variable="tw_rm_rf"/>
3268 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003269 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3270 <data variable="tw_disable_free_space"/>
3271 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003272 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3273 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003274 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003275 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3276 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003277 </listitem>
epicX9597b842021-03-20 21:58:17 +05303278 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
3279 <data variable="tw_skip_digest_check_zip"/>
3280 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003281 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003282 <data variable="tw_military_time"/>
3283 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003284 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003285 <data variable="tw_simulate_actions"/>
3286 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003287 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003288 <condition var1="tw_simulate_actions" var2="1"/>
3289 <data variable="tw_simulate_fail"/>
3290 </listitem>
bigbiff bigbiff1c01fab2017-08-07 18:41:14 -04003291 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3292 <condition var1="tw_no_sha2" var2="0"/>
3293 <data variable="tw_use_sha2"/>
3294 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003295 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3296 <data variable="tw_unmount_system"/>
3297 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003298 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
3299 <conditions>
3300 <condition var1="tw_has_boot_slots" var2="1"/>
3301 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwback1f5d4ca2023-01-11 13:46:30 -05003302 <condition var1="tw_no_flash_current_twrp" var2="0"/>
nebrassyac29e692021-05-20 13:03:30 +02003303 </conditions>
3304 <data variable="tw_auto_reflashtwrp"/>
3305 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003306 </listbox>
3307
3308 <checkbox>
3309 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003310 <text>{@rev_navbar_chk=Reversed navbar layout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003311 <data variable="tw_samsung_navbar"/>
3312 </checkbox>
3313
3314 <button style="radiobutton">
3315 <condition var1="tw_navbar_button_position" op="!=" var2="0"/>
3316 <placement x="%col1_x_right%" y="%row5_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003317 <text>{@ctr_navbar_rdo=Center navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003318 <image resource="radio_false"/>
3319 <action function="set">tw_navbar_button_position=0</action>
3320 </button>
3321
3322 <button style="radiobutton">
3323 <condition var1="tw_navbar_button_position" var2="0"/>
3324 <placement x="%col1_x_right%" y="%row5_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003325 <text>{@ctr_navbar_rdo=Center navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003326 <image resource="radio_true"/>
3327 <action function="set">tw_navbar_button_position=0</action>
3328 </button>
3329
3330 <button style="radiobutton">
3331 <condition var1="tw_navbar_button_position" op="!=" var2="1"/>
3332 <placement x="%col1_x_right%" y="%row6a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003333 <text>{@lft_navbar_rdo=Left align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003334 <image resource="radio_false"/>
3335 <action function="set">tw_navbar_button_position=1</action>
3336 </button>
3337
3338 <button style="radiobutton">
3339 <condition var1="tw_navbar_button_position" var2="1"/>
3340 <placement x="%col1_x_right%" y="%row6a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003341 <text>{@lft_navbar_rdo=Left align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003342 <image resource="radio_true"/>
3343 <action function="set">tw_navbar_button_position=1</action>
3344 </button>
3345
3346 <button style="radiobutton">
3347 <condition var1="tw_navbar_button_position" op="!=" var2="2"/>
3348 <placement x="%col1_x_right%" y="%row8_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003349 <text>{@rht_navbar_rdo=Right align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003350 <image resource="radio_false"/>
3351 <action function="set">tw_navbar_button_position=2</action>
3352 </button>
3353
3354 <button style="radiobutton">
3355 <condition var1="tw_navbar_button_position" var2="2"/>
3356 <placement x="%col1_x_right%" y="%row8_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003357 <text>{@rht_navbar_rdo=Right align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003358 <image resource="radio_true"/>
3359 <action function="set">tw_navbar_button_position=2</action>
3360 </button>
3361
3362 <button style="main_button_half_width">
3363 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003364 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003365 <action function="restoredefaultsettings"/>
3366 </button>
3367
3368 <action>
3369 <touch key="home"/>
3370 <action function="page">main</action>
3371 </action>
3372
3373 <action>
3374 <touch key="back"/>
3375 <action function="page">main</action>
3376 </action>
3377 </page>
3378
3379 <page name="settings_timezone">
3380 <template name="page"/>
3381
3382 <text style="text_l">
3383 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003384 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003385 </text>
3386
3387 <text style="text_m">
3388 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003389 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003390 </text>
3391
3392 <template name="tabs_settings"/>
3393
3394 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003395 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003396 </fill>
3397
3398 <listbox>
3399 <placement x="%col1_x_left%" y="%row3_y%" w="%content_half_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003400 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003401 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003402 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3403 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3404 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3405 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3406 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3407 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3408 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3409 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3410 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3411 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3412 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3413 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3414 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3415 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3416 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3417 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3418 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3419 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3420 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3421 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3422 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3423 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3424 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3425 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003426 </listbox>
3427
3428 <text style="text_m_accent">
3429 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003430 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003431 </text>
3432
3433 <button style="button_quarter_width">
3434 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003435 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003436 <action function="set">tw_time_zone_guioffset=0</action>
3437 </button>
3438
3439 <button style="button_quarter_width">
3440 <placement x="%btn4_col2_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003441 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003442 <action function="set">tw_time_zone_guioffset=15</action>
3443 </button>
3444
3445 <button style="button_quarter_width">
3446 <placement x="%btn4_col3_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003447 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003448 <action function="set">tw_time_zone_guioffset=30</action>
3449 </button>
3450
3451 <button style="button_quarter_width">
3452 <placement x="%btn4_col4_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003453 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003454 <action function="set">tw_time_zone_guioffset=45</action>
3455 </button>
3456
3457 <checkbox>
3458 <placement x="%col1_x_right%" y="%row7_y%"/>
3459 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003460 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003461 <data variable="tw_time_zone_guidst"/>
3462 <image checked="checkbox_true" unchecked="checkbox_false"/>
3463 </checkbox>
3464
3465 <text color="%text_color%">
3466 <font resource="font_m"/>
3467 <placement x="%col1_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003468 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003469 </text>
3470
3471 <button>
3472 <highlight color="%highlight_color%"/>
3473 <placement x="%col2_x_right%" y="%row15a_y%"/>
3474 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003475 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003476 <image resource="main_button_half_width"/>
3477 <action function="setguitimezone"/>
3478 </button>
3479
3480 <action>
3481 <touch key="home"/>
3482 <action function="page">main</action>
3483 </action>
3484
3485 <action>
3486 <touch key="back"/>
3487 <action function="page">main</action>
3488 </action>
3489 </page>
3490
3491 <page name="settings_screen">
3492 <template name="page"/>
3493
3494 <text style="text_l">
3495 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003496 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003497 </text>
3498
3499 <text style="text_m">
3500 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003501 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003502 </text>
3503
3504 <template name="tabs_settings"/>
3505
3506 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003507 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003508 </fill>
3509
3510 <button>
3511 <placement x="%col1_x_left%" y="%row3a_y%" textplacement="6"/>
3512 <font resource="font_m" color="%text_color%"/>
3513 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3514 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003515 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003516 <image resource="checkbox_false"/>
3517 <action function="set">tw_screen_timeout_secs=60</action>
3518 </button>
3519
3520 <button>
3521 <placement x="%col1_x_left%" y="%row3a_y%" textplacement="6"/>
3522 <font resource="font_m" color="%text_color%"/>
3523 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3524 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003525 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003526 <image resource="checkbox_true"/>
3527 <action function="set">tw_screen_timeout_secs=0</action>
3528 </button>
3529
3530 <slidervalue>
3531 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3532 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3533 <placement x="col1_x_left" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003534 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003535 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3536 </slidervalue>
3537
3538 <slidervalue>
3539 <condition var1="tw_has_brightnesss_file" var2="1"/>
3540 <placement x="col1_x_left" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003541 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003542 <data variable="tw_brightness_pct" min="10" max="100"/>
3543 <actions>
3544 <action function="set">tw_brightness=%tw_brightness_max%</action>
3545 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3546 <action function="compute">tw_brightness/100</action>
3547 <action function="setbrightness">%tw_brightness%</action>
3548 </actions>
3549 </slidervalue>
3550
3551 <action>
3552 <touch key="home"/>
3553 <action function="page">main</action>
3554 </action>
3555
3556 <action>
3557 <touch key="back"/>
3558 <action function="page">main</action>
3559 </action>
3560 </page>
3561
3562 <page name="settings_vibration">
3563 <template name="page"/>
3564
3565 <text style="text_l">
3566 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003567 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003568 </text>
3569
3570 <text style="text_m">
3571 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003572 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003573 </text>
3574
3575 <template name="tabs_settings"/>
3576
3577 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003578 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003579 </fill>
3580
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003581 <text style="text_m">
3582 <condition var1="tw_disable_haptics" var2="1"/>
3583 <placement x="col1_x_left" y="%row4_y%" w="%content_width%"/>
3584 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3585 </text>
3586
z31s1g28f0a922015-11-07 18:50:22 +01003587 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003588 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003589 <placement x="col1_x_left" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003590 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003591 <data variable="tw_button_vibrate" min="0" max="300"/>
3592 </slidervalue>
3593
3594 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003595 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003596 <placement x="col1_x_left" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003597 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003598 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3599 </slidervalue>
3600
3601 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003602 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003603 <placement x="col1_x_left" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003604 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003605 <data variable="tw_action_vibrate" min="0" max="500"/>
3606 </slidervalue>
3607
3608 <action>
3609 <touch key="home"/>
3610 <action function="page">main</action>
3611 </action>
3612
3613 <action>
3614 <touch key="back"/>
3615 <action function="page">main</action>
3616 </action>
3617 </page>
3618
Ethan Yonker74db1572015-10-28 12:44:49 -05003619 <page name="settings_language">
3620 <template name="page"/>
3621
3622 <text style="text_l">
3623 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3624 <text>{@settings_hdr=Settings}</text>
3625 </text>
3626
3627 <text style="text_m">
3628 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3629 <text>{@language_hdr=Language - %tw_language_display%}</text>
3630 </text>
3631
3632 <template name="tabs_settings"/>
3633
3634 <fill color="%text_color%">
3635 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3636 </fill>
3637
3638 <listbox>
z31s1g56189522016-01-13 19:12:40 +01003639 <placement x="%col1_x_left%" y="%row3_y%" w="%content_half_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003640 <text>{@select_language=Select Language:}</text>
3641 <icon selected="radio_true" unselected="radio_false" />
3642 <data name="tw_language" />
3643 </listbox>
3644
z31s1g56189522016-01-13 19:12:40 +01003645 <button>
3646 <highlight color="%highlight_color%"/>
3647 <placement x="%col2_x_right%" y="%row15a_y%"/>
3648 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003649 <text>{@set_language_btn=Set Language}</text>
z31s1g56189522016-01-13 19:12:40 +01003650 <image resource="main_button_half_width"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003651 <action function="setlanguage"></action>
3652 </button>
3653
3654 <action>
3655 <touch key="home" />
3656 <action function="page">main</action>
3657 </action>
3658
3659 <action>
3660 <touch key="back" />
3661 <action function="page">settings</action>
3662 </action>
3663 </page>
3664
Matt Mower32676622017-01-18 18:56:13 -06003665 <page name="copylog">
3666 <template name="page"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003667
Matt Mower32676622017-01-18 18:56:13 -06003668 <text style="text_l">
3669 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3670 <text>{@copying_log=Copy Logs to SD Card}</text>
3671 </text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003672
Matt Mower32676622017-01-18 18:56:13 -06003673 <checkbox>
Captain Throwback52978932021-09-05 15:11:07 -04003674 <condition var1="tw_logcat_exists" var2="1"/>
Matt Mower32676622017-01-18 18:56:13 -06003675 <placement x="%indent%" y="%row4_y%"/>
Captain Throwback52978932021-09-05 15:11:07 -04003676 <text>{@include_logcat=Include Logcat}</text>
3677 <data variable="tw_include_logcat" value="1"/>
3678 </checkbox>
3679
3680 <checkbox>
3681 <placement x="%indent%" y="%row6_y%"/>
Matt Mower32676622017-01-18 18:56:13 -06003682 <text>{@include_kernel_log=Include Kernel Log}</text>
3683 <data variable="tw_include_kernel_log" value="1"/>
3684 </checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003685
Matt Mower32676622017-01-18 18:56:13 -06003686 <slider>
3687 <text>{@copying_log=Copy Logs to SD Card}</text>
3688 <actions>
3689 <action function="set">tw_back=advanced</action>
3690 <action function="set">tw_action=copylog</action>
3691 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3692 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
3693 <action function="page">action_page</action>
3694 </actions>
3695 </slider>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003696
Matt Mower32676622017-01-18 18:56:13 -06003697 <action>
3698 <touch key="home"/>
3699 <action function="page">main</action>
3700 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003701
Matt Mower32676622017-01-18 18:56:13 -06003702 <action>
3703 <touch key="back"/>
3704 <actions>
3705 <action function="page">advanced</action>
3706 </actions>
3707 </action>
3708 </page>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003709
z31s1g28f0a922015-11-07 18:50:22 +01003710 <page name="advanced">
3711 <template name="page"/>
3712
3713 <text style="text_l">
3714 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003715 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003716 </text>
3717
3718 <button style="main_button">
3719 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003720 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003721 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003722 </button>
3723
3724 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003725 <placement x="%col1_x_left%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003726 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003727 <action function="page">filemanagerlist</action>
3728 </button>
3729
3730 <button style="main_button">
3731 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003732 <text>{@terminal_btn=Terminal}</text>
z31s1g56189522016-01-13 19:12:40 +01003733 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003734 </button>
3735
3736 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003737 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003738 <text>{@adb_sideload_btn=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003739 <action function="page">sideload</action>
3740 </button>
3741
Ethan Yonker64e0a652018-07-25 09:52:17 -05003742 <listbox style="advanced_listbox">
3743 <placement x="%center_x%" y="%row2_y%" w="%content_half_width%" h="%fileselector_install_height%"/>
epicXa721f952021-01-04 13:01:31 +05303744 <listitem name="{@change_twrp_folder_btn=Change TWRP folder}">
nebrassya9e4c462021-12-20 20:09:40 +01003745 <condition var1="tw_is_decrypted" var2="1"/>
epicXa721f952021-01-04 13:01:31 +05303746 <action function="page">changeTwrpFolder</action>
3747 </listitem>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003748 <listitem name="{@decrypt_users=Decrypt Users}">
3749 <conditions>
3750 <condition var1="tw_is_fbe" var2="1"/>
3751 <condition var1="tw_all_users_decrypted" var2="0"/>
3752 </conditions>
3753 <actions>
3754 <action function="set">tw_crypto_user_id=</action>
3755 <action function="page">decrypt_users</action>
3756 </actions>
3757 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003758 <listitem name="{@reload_theme_btn=Reload Theme}">
3759 <action function="reload"/>
3760 </listitem>
3761 <listitem name="{@part_sd_btn=Partition SD Card}">
3762 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3763 <actions>
3764 <action function="set">partitionlisterror=0</action>
3765 <action function="page">partsdcardsel</action>
3766 </actions>
3767 </listitem>
3768 <listitem name="{@fix_context_btn=Fix Contexts}">
3769 <condition var1="tw_has_data_media" var2="1"/>
3770 <action function="page">fixcontexts</action>
3771 </listitem>
3772 <listitem name="{@dumlock_btn=HTC Dumlock}">
3773 <condition var1="tw_show_dumlock" var2="1"/>
3774 <action function="page">htcdumlock</action>
3775 </listitem>
3776 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3777 <condition var1="tw_has_injecttwrp" var2="1"/>
3778 <actions>
3779 <action function="set">tw_back=advanced</action>
3780 <action function="set">tw_action=reinjecttwrp</action>
3781 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3782 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3783 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3784 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3785 <action function="page">confirm_action</action>
3786 </actions>
3787 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003788 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3789 <conditions>
3790 <condition var1="tw_has_boot_slots" var2="1"/>
3791 <condition var1="tw_has_repack_tools" var2="1"/>
3792 </conditions>
3793 <actions>
3794 <action function="set">tw_repack_kernel=0</action>
3795 <action function="page">repackselect</action>
3796 </actions>
3797 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003798 <listitem name="{@reflash_twrp=Flash Current TWRP}">
3799 <conditions>
3800 <condition var1="tw_has_boot_slots" var2="1"/>
3801 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwback1f5d4ca2023-01-11 13:46:30 -05003802 <condition var1="tw_no_flash_current_twrp" var2="0"/>
nebrassyac29e692021-05-20 13:03:30 +02003803 </conditions>
3804 <actions>
3805 <action function="set">tw_repack_kernel=0</action>
3806 <action function="set">tw_back=advanced</action>
3807 <action function="set">tw_action=reflashtwrp</action>
3808 <action function="set">tw_text1={@reflash_twrp_confirm=Flash Current TWRP?}</action>
3809 <action function="set">tw_action_text1={@reflashing_twrp=Flashing TWRP...}</action>
3810 <action function="set">tw_complete_text1={@reflash_twrp_complete=Done flashing TWRP}</action>
3811 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3812 <action function="page">confirm_action</action>
3813 </actions>
3814 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003815 <listitem name="{@install_kernel=Install Kernel}">
3816 <conditions>
3817 <condition var1="tw_has_boot_slots" var2="1"/>
3818 <condition var1="tw_has_repack_tools" var2="1"/>
3819 </conditions>
3820 <actions>
3821 <action function="set">tw_repack_kernel=1</action>
3822 <action function="page">repackselect</action>
3823 </actions>
3824 </listitem>
3825 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3826 <conditions>
3827 <condition var1="tw_has_boot_slots" var2="1"/>
3828 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwbackbc2cfa32021-09-16 10:04:26 -04003829 <condition var1="tw_uses_initramfs" var2="1"/>
Ethan Yonker53796e72019-01-11 22:49:52 -06003830 </conditions>
3831 <actions>
3832 <action function="set">tw_back=advanced</action>
3833 <action function="set">tw_action=fixabrecoverybootloop</action>
3834 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3835 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3836 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3837 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3838 <action function="page">confirm_action</action>
3839 </actions>
3840 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003841 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3842 <condition var1="tw_app_install_status" var2="1"/>
3843 <actions>
3844 <action function="set">tw_back=advanced</action>
3845 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3846 <action function="page">installapp</action>
3847 </actions>
3848 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003849 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3850 <condition var1="tw_app_installed_in_system" var2="1"/>
3851 <actions>
3852 <action function="set">tw_back=advanced</action>
3853 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3854 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3855 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3856 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3857 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3858 <action function="page">confirm_action</action>
3859 </actions>
3860 </listitem>
bigbiffcfa875c2021-06-20 16:20:27 -04003861 <listitem name="{@unmap_super_devices=Unmap Super Devices}">
me-cafebabe2136fc52022-07-20 06:42:18 +08003862 <condition var1="tw_is_super" op="=" var2="1"/>
bigbiffcfa875c2021-06-20 16:20:27 -04003863 <actions>
3864 <action function="set">tw_back=advanced</action>
3865 <action function="set">tw_action=unmapsuperdevices</action>
3866 <action function="set">tw_text1={@unmap_super_devices_confirm=Unmap all Super Devices?}</action>
3867 <action function="set">tw_action_text1={@unmapping_super_devices=Unmapping Super Devices...}</action>
3868 <action function="set">tw_complete_text1={@unmap_super_devices_complete=Unmapped all Super Devices}</action>
3869 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3870 <action function="page">confirm_action</action>
3871 </actions>
3872 </listitem>
bigbiffd21252f2021-09-18 15:56:32 -04003873 <listitem name="{@merges_snapshots=Merge Snapshots}">
bigbiffab76bd72021-10-11 10:17:48 -04003874 <condition var1="tw_virtual_ab.enabled" op="=" var2="1"/>
bigbiffd21252f2021-09-18 15:56:32 -04003875 <actions>
3876 <action function="set">tw_back=advanced</action>
3877 <action function="set">tw_action=mergesnapshots</action>
3878 <action function="set">tw_text1={@merge_snapshots_confirm=Merge Snapshots?}</action>
3879 <action function="set">tw_action_text1={@merging_snapshots=Merging Snapshots...}</action>
3880 <action function="set">tw_complete_text1={@merging_snapshots_complete=Merged Snapshots}</action>
3881 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3882 <action function="page">confirm_action</action>
3883 </actions>
3884 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003885 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003886
3887 <action>
3888 <touch key="home"/>
3889 <action function="page">main</action>
3890 </action>
3891
3892 <action>
3893 <touch key="back"/>
3894 <action function="page">main</action>
3895 </action>
3896 </page>
3897
Ethan Yonker483e9f42016-01-11 22:21:18 -06003898 <page name="partsdcardsel">
3899 <template name="page"/>
3900
3901 <text style="text_l">
3902 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3903 <text>{@advanced_hdr=Advanced}</text>
3904 </text>
3905
3906 <text style="text_m">
3907 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3908 <text>{@part_sd_hdr=Partition SD Card}</text>
3909 </text>
3910
z31s1g782e1c92016-01-30 16:50:09 +01003911 <partitionlist>
3912 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003913 <text>{@sel_storage_list=Select Storage}</text>
3914 <data name="tw_storage_path"/>
3915 <listtype name="storage"/>
3916 </partitionlist>
3917
z31s1g782e1c92016-01-30 16:50:09 +01003918 <text style="text_m_fail">
3919 <condition var1="partitionlisterror" var2="1"/>
3920 <placement x="%center_x%" y="%row14_y%" placement="5"/>
3921 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3922 </text>
3923
3924 <button style="main_button_half_width">
3925 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003926 <text>{@ok_btn=OK}</text>
3927 <actions>
3928 <action function="getpartitiondetails">tw_storage_path</action>
3929 <action function="page">partsdcardcheck</action>
3930 </actions>
3931 </button>
3932
Ethan Yonker483e9f42016-01-11 22:21:18 -06003933 <action>
3934 <touch key="home"/>
3935 <action function="page">main</action>
3936 </action>
3937
3938 <action>
3939 <touch key="back"/>
3940 <action function="page">advanced</action>
3941 </action>
3942 </page>
3943
3944 <page name="partsdcardcheck">
3945 <action>
3946 <condition var1="tw_partition_removable" op="=" var2="1"/>
3947 <actions>
3948 <action function="set">partitionlisterror=0</action>
3949 <action function="page">partsdcard</action>
3950 </actions>
3951 </action>
3952
3953 <action>
3954 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3955 <actions>
3956 <action function="set">partitionlisterror=1</action>
3957 <action function="page">partsdcardsel</action>
3958 </actions>
3959 </action>
3960 </page>
3961
z31s1g28f0a922015-11-07 18:50:22 +01003962 <page name="partsdcard">
3963 <template name="page"/>
3964
3965 <text style="text_l">
3966 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003967 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003968 </text>
3969
3970 <text style="text_m">
3971 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003972 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003973 </text>
3974
3975 <text style="text_m_fail">
3976 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003977 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003978 </text>
3979
3980 <text style="text_m_fail">
3981 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003982 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003983 </text>
3984
3985 <text style="text_m_accent">
3986 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003987 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003988 </text>
3989
3990 <text style="text_m">
3991 <placement x="%center_x%" y="%row6_y%" placement="5"/>
3992 <text>%tw_sdext_size%</text>
3993 </text>
3994
3995 <button style="button_quarter_width">
3996 <placement x="%btn4_col3_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003997 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003998 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003999 </button>
4000
4001 <button style="button_quarter_width">
4002 <placement x="%btn4_col2_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004003 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004004 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004005 </button>
4006
4007 <text style="text_m_accent">
4008 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004009 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004010 </text>
4011
4012 <text style="text_m">
4013 <placement x="%center_x%" y="%row10_y%" placement="5"/>
4014 <text>%tw_swap_size%</text>
4015 </text>
4016
4017 <button style="button_quarter_width">
4018 <placement x="%btn4_col3_x_left%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004019 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004020 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004021 </button>
4022
4023 <button style="button_quarter_width">
4024 <placement x="%btn4_col2_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004025 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004026 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004027 </button>
4028
4029 <text style="text_m_accent">
4030 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004031 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004032 </text>
4033
4034 <text style="text_m">
4035 <placement x="%center_x%" y="%row14_y%" placement="5"/>
4036 <text>%tw_sdpart_file_system%</text>
4037 </text>
4038
4039 <button style="button_quarter_width">
4040 <placement x="%btn4_col3_x_left%" y="%row13_y%"/>
4041 <text>EXT3</text>
4042 <action function="set">tw_sdpart_file_system=ext3</action>
4043 </button>
4044
4045 <button style="button_quarter_width">
4046 <placement x="%btn4_col2_x_right%" y="%row13_y%"/>
4047 <text>EXT4</text>
4048 <action function="set">tw_sdpart_file_system=ext4</action>
4049 </button>
4050
4051 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004052 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004053 <action function="page">partsdcardaction</action>
4054 <actions>
4055 <action function="set">tw_back=partsdcard</action>
4056 <action function="set">tw_action=partitionsd</action>
4057 <action function="set">tw_has_action2=1</action>
4058 <action function="set">tw_action2=set</action>
4059 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004060 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4061 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4062 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004063 <action function="page">action_page</action>
4064 </actions>
4065 </slider>
4066
4067 <action>
4068 <touch key="home"/>
4069 <action function="page">main</action>
4070 </action>
4071
4072 <action>
4073 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004074 <action function="page">partsdcardsel</action>
z31s1g28f0a922015-11-07 18:50:22 +01004075 </action>
4076 </page>
4077
4078 <page name="htcdumlock">
4079 <template name="page"/>
4080
4081 <text style="text_l">
4082 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004083 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004084 </text>
4085
4086 <text style="text_m">
4087 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004088 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004089 </text>
4090
4091 <button style="main_button_m">
4092 <placement x="%col2_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004093 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004094 <actions>
4095 <action function="set">tw_back=htcdumlock</action>
4096 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004097 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4098 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4099 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4100 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004101 <action function="page">confirm_action</action>
4102 </actions>
4103 </button>
4104
4105 <button style="main_button_m">
4106 <placement x="%col2_x_left%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004107 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004108 <actions>
4109 <action function="set">tw_back=htcdumlock</action>
4110 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004111 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4112 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4113 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4114 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004115 <action function="page">confirm_action</action>
4116 </actions>
4117 </button>
4118
4119 <button style="main_button_m">
4120 <placement x="%col2_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004121 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004122 <actions>
4123 <action function="set">tw_back=htcdumlock</action>
4124 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004125 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
4126 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4127 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4128 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004129 <action function="page">confirm_action</action>
4130 </actions>
4131 </button>
4132
4133 <action>
4134 <touch key="home"/>
4135 <action function="page">main</action>
4136 </action>
4137
4138 <action>
4139 <touch key="back"/>
4140 <action function="page">advanced</action>
4141 </action>
4142 </page>
4143
Ethan Yonker53796e72019-01-11 22:49:52 -06004144 <page name="repackselect">
4145 <template name="page"/>
4146
4147 <text style="text_l">
4148 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4149 <text>{@repack_image_hdr=Select Image}</text>
4150 </text>
4151
4152 <text style="text_m">
4153 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4154 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
4155 </text>
4156
4157 <template name="sort_options"/>
4158
4159 <fileselector>
4160 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4161 <text>%tw_zip_location%</text>
4162 <filter extn=".img" folders="1" files="1"/>
4163 <path name="tw_zip_location" default="/sdcard"/>
4164 <data name="tw_filename"/>
4165 <selection name="tw_file"/>
4166 </fileselector>
4167
4168 <button style="main_button_half_width_low">
4169 <placement x="%col_button_right%" y="%row16a_y%"/>
4170 <text>{@select_storage_btn=Select Storage}</text>
4171 <actions>
4172 <action function="set">tw_back=install</action>
4173 <action function="overlay">select_storage</action>
4174 </actions>
4175 </button>
4176
4177 <action>
4178 <conditions>
4179 <condition var1="tw_filename" op="modified"/>
4180 </conditions>
4181 <action function="page">repackconfirm</action>
4182 </action>
4183
4184 <action>
4185 <touch key="back"/>
4186 <action function="page">advanced</action>
4187 </action>
4188
4189 <action>
4190 <touch key="home"/>
4191 <action function="page">main</action>
4192 </action>
4193 </page>
4194
4195 <page name="repackconfirm">
4196 <template name="page"/>
4197
4198 <text style="text_l">
4199 <condition var1="tw_repack_kernel" var2="1"/>
4200 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4201 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4202 </text>
4203
4204 <text style="text_l">
4205 <condition var1="tw_repack_kernel" var2="0"/>
4206 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4207 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4208 </text>
4209
4210 <text style="text_m">
4211 <condition var1="tw_repack_kernel" var2="1"/>
4212 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4213 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4214 </text>
4215
4216 <text style="text_m">
4217 <condition var1="tw_repack_kernel" var2="0"/>
4218 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4219 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4220 </text>
4221
4222 <text style="text_m_accent">
4223 <placement x="%indent%" y="%row2_y%"/>
4224 <text>{@folder=Folder:}</text>
4225 </text>
4226
4227 <text style="text_m">
4228 <placement x="%indent%" y="%row3_y%"/>
4229 <text>%tw_zip_location%</text>
4230 </text>
4231
4232 <text style="text_m_accent">
4233 <placement x="%indent%" y="%row4_y%"/>
4234 <text>{@file=File:}</text>
4235 </text>
4236
4237 <text style="text_m">
4238 <placement x="%indent%" y="%row5_y%"/>
4239 <text>%tw_file%</text>
4240 </text>
4241
4242 <checkbox>
4243 <placement x="%indent%" y="%row7_y%"/>
4244 <text>{@repack_backup_first=Back up existing image first}</text>
4245 <data variable="tw_repack_backup_first"/>
4246 </checkbox>
4247
4248 <button style="main_button_half_width">
4249 <placement x="%col1_x_left%" y="%row15a_y%"/>
4250 <text>{@install_cancel=Do not Install}</text>
4251 <action function="page">repackselect</action>
4252 </button>
4253
4254 <slider style="slider_centered">
4255 <text>{@swipe_to_install=Swipe to Install}</text>
4256 <actions>
4257 <action function="set">tw_back=advanced</action>
4258 <action function="set">tw_action=repackimage</action>
4259 <action function="set">tw_action_param=/boot</action>
4260 <action function="set">tw_action_text1={@installing=Installing...}</action>
4261 <action function="set">tw_action_text2=</action>
4262 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4263 <action function="page">action_page</action>
4264 </actions>
4265 </slider>
4266
4267 <action>
4268 <touch key="back"/>
4269 <action function="page">repackselect</action>
4270 </action>
4271
4272 <action>
4273 <touch key="home"/>
4274 <action function="page">main</action>
4275 </action>
4276 </page>
4277
z31s1g28f0a922015-11-07 18:50:22 +01004278 <page name="lock">
4279 <background color="%semi_transparent%"/>
4280
4281 <image>
4282 <image resource="unlock_icon"/>
4283 <placement x="%center_x%" y="%row8_y%" placement="4"/>
4284 </image>
4285
4286 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004287 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004288 <action function="overlay"/>
4289 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004290
4291 <action>
4292 <touch key="power"/>
4293 <action function="togglebacklight"/>
4294 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004295 </page>
4296
4297 <page name="filemanagerlist">
4298 <template name="page"/>
4299
4300 <text style="text_l">
4301 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004302 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004303 </text>
4304
4305 <text style="text_m">
4306 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004307 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004308 </text>
4309
4310 <template name="sort_options"/>
4311
4312 <fileselector>
4313 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4314 <text>%tw_file_location1%</text>
4315 <filter folders="1" files="1"/>
4316 <path name="tw_file_location1" default="/"/>
4317 <data name="tw_filename1"/>
4318 <selection name="tw_selection1"/>
4319 </fileselector>
4320
4321 <button style="main_button_half_width_low">
4322 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004323 <text>{@fm_sel_curr_folder=Select Current Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004324 <actions>
4325 <action function="set">tw_filename1=tw_file_location1</action>
4326 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004327 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004328 <action function="page">filemanageroptions</action>
4329 </actions>
4330 </button>
4331
4332 <action>
4333 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004334 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004335 <action function="set">tw_fm_isfolder=0</action>
4336 </actions>
4337 </action>
4338
4339 <action>
4340 <touch key="home"/>
4341 <action function="page">main</action>
4342 </action>
4343
4344 <action>
4345 <touch key="back"/>
4346 <action function="page">advanced</action>
4347 </action>
4348
4349 <action>
4350 <condition var1="tw_filename1" op="modified"/>
4351 <action function="page">filemanageroptions</action>
4352 </action>
4353 </page>
4354
4355 <page name="filemanageroptions">
4356 <template name="page"/>
4357
4358 <text style="text_l">
4359 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004360 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004361 </text>
4362
4363 <text style="text_m">
4364 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004365 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004366 </text>
4367
4368 <text style="text_m_accent">
4369 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004370 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004371 </text>
4372
4373 <text style="text_m">
4374 <placement x="%col1_x_left%" y="%row3_y%"/>
4375 <text>%tw_filename1%</text>
4376 </text>
4377
4378 <button style="main_button_half_width">
4379 <condition var1="tw_fm_isfolder" var2="0"/>
4380 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004381 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004382 <actions>
4383 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004384 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004385 <action function="page">choosedestinationfolder</action>
4386 </actions>
4387 </button>
4388
4389 <button style="main_button_half_width">
4390 <condition var1="tw_fm_isfolder" var2="1"/>
4391 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004392 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004393 <actions>
4394 <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 -05004395 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004396 <action function="page">choosedestinationfolder</action>
4397 </actions>
4398 </button>
4399
4400 <button style="main_button_half_width">
Captain Throwback16dd81b2021-02-12 19:32:36 -05004401edi <conditions>
4402 <condition var1="tw_include_nano" var2="1"/>
4403 <condition var1="tw_fm_isfolder" var2="0"/>
4404 </conditions>
4405 <placement x="%col1_x_left%" y="%row15a_y%"/>
4406 <text>{@fm_edit_file=Edit File}</text>
4407 <actions>
4408 <action function="editfile">nano "%tw_filename1%"</action>
4409 <action function="page">terminalcommand</action>
4410 </actions>
4411 </button>
4412
4413 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004414 <placement x="%col2_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004415 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004416 <actions>
4417 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004418 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004419 <action function="page">choosedestinationfolder</action>
4420 </actions>
4421 </button>
4422
4423 <button style="main_button_half_width">
4424 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004425 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004426 <actions>
4427 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004428 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004429 <action function="set">tw_fm_text2=</action>
4430 <action function="set">tw_fm_text3=</action>
4431 <action function="set">tw_include_text3=0</action>
4432 <action function="set">tw_back=filemanageroptions</action>
4433 <action function="page">filemanagerconfirm</action>
4434 </actions>
4435 </button>
4436
4437 <button style="main_button_half_width">
4438 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004439 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004440 <actions>
4441 <action function="set">tw_filemanager_rename=0000</action>
4442 <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">filemanagerchmod</action>
4447 </actions>
4448 </button>
4449
4450 <button style="main_button_half_width">
Mohd Faraz77bbeb02020-08-12 12:29:42 +00004451 <condition var1="tw_fm_isfolder" var2="1"/>
4452 <placement x="%col2_x_right%" y="%row15a_y%"/>
4453 <text>{@fm_open_terminal_btn=Open Terminal Here}</text>
4454 <action function="changeterminal">%tw_filename1%</action>
4455 </button>
4456
4457 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004458 <placement x="%col2_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004459 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004460 <actions>
4461 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004462 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004463 <action function="set">tw_fm_text2=</action>
4464 <action function="set">tw_fm_text3=</action>
4465 <action function="set">tw_include_text3=0</action>
4466 <action function="set">tw_back=filemanageroptions</action>
4467 <action function="page">filemanagerconfirm</action>
4468 </actions>
4469 </button>
4470
4471 <button style="main_button_half_width">
4472 <condition var1="tw_fm_isfolder" var2="0"/>
4473 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004474 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004475 <actions>
4476 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004477 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004478 <action function="set">tw_filemanager_command=mv</action>
4479 <action function="page">filemanagerrenamefile</action>
4480 </actions>
4481 </button>
4482
4483 <button style="main_button_half_width">
4484 <condition var1="tw_fm_isfolder" var2="1"/>
4485 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004486 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004487 <actions>
4488 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004489 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004490 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4491 <action function="page">filemanagerrenamefolder</action>
4492 </actions>
4493 </button>
4494
4495 <action>
4496 <touch key="home"/>
4497 <action function="page">main</action>
4498 </action>
4499
4500 <action>
4501 <touch key="back"/>
4502 <action function="page">filemanagerlist</action>
4503 </action>
4504 </page>
4505
4506 <page name="choosedestinationfolder">
4507 <template name="page"/>
4508
4509 <text style="text_l">
4510 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004511 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004512 </text>
4513
4514 <text style="text_m">
4515 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004516 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004517 </text>
4518
4519 <template name="sort_options"/>
4520
4521 <fileselector>
4522 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4523 <text>%tw_file_location2%</text>
4524 <filter folders="1" files="0"/>
4525 <path name="tw_file_location2" default="/"/>
4526 <data name="tw_filename2"/>
4527 <selection name="tw_selection2"/>
4528 </fileselector>
4529
4530 <button style="main_button_half_width_low">
4531 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004532 <text>{@fm_sel_curr_folder=Select Current Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004533 <actions>
4534 <action function="set">tw_fm_text2=to</action>
4535 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4536 <action function="set">tw_include_text3=1</action>
4537 <action function="set">tw_back=filemanageroptions</action>
4538 <action function="page">filemanagerconfirm</action>
4539 </actions>
4540 </button>
4541
4542 <action>
4543 <touch key="home"/>
4544 <action function="page">main</action>
4545 </action>
4546
4547 <action>
4548 <touch key="back"/>
4549 <action function="page">filemanageroptions</action>
4550 </action>
4551 </page>
4552
4553 <page name="filemanagerrenamefile">
4554 <template name="page"/>
4555
4556 <text style="text_l">
4557 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004558 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004559 </text>
4560
4561 <text style="text_m">
4562 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004563 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004564 </text>
4565
4566 <text style="text_m_accent">
4567 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004568 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004569 </text>
4570
4571 <input>
4572 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4573 <text>%tw_filemanager_rename%</text>
4574 <data name="tw_filemanager_rename"/>
4575 <restrict minlen="1" maxlen="128"/>
4576 <actions>
4577 <action function="set">tw_fm_text2=to</action>
4578 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4579 <action function="set">tw_include_text3=1</action>
4580 <action function="set">tw_back=filemanageroptions</action>
4581 <action function="page">filemanagerconfirm</action>
4582 </actions>
4583 </input>
4584
4585 <fill color="%accent_color%">
4586 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4587 </fill>
4588
4589 <button style="main_button_half_width_low">
4590 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004591 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004592 <action function="page">filemanageroptions</action>
4593 </button>
4594
4595 <template name="keyboardtemplate"/>
4596
4597 <action>
4598 <touch key="home"/>
4599 <action function="page">main</action>
4600 </action>
4601
4602 <action>
4603 <touch key="back"/>
4604 <action function="page">filemanageroptions</action>
4605 </action>
4606 </page>
4607
4608 <page name="filemanagerrenamefolder">
4609 <template name="page"/>
4610
4611 <text style="text_l">
4612 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004613 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004614 </text>
4615
4616 <text style="text_m">
4617 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004618 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004619 </text>
4620
4621 <text style="text_m_accent">
4622 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004623 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004624 </text>
4625
4626 <input>
4627 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4628 <text>%tw_filemanager_rename%</text>
4629 <data name="tw_filemanager_rename"/>
4630 <restrict minlen="1" maxlen="128"/>
4631 <actions>
4632 <action function="set">tw_fm_text2=to</action>
4633 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4634 <action function="set">tw_include_text3=1</action>
4635 <action function="set">tw_back=filemanageroptions</action>
4636 <action function="page">filemanagerconfirm</action>
4637 </actions>
4638 </input>
4639
4640 <fill color="%accent_color%">
4641 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4642 </fill>
4643
4644 <button style="main_button_half_width_low">
4645 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004646 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004647 <action function="page">filemanageroptions</action>
4648 </button>
4649
4650 <template name="keyboardtemplate"/>
4651
4652 <action>
4653 <touch key="home"/>
4654 <action function="page">main</action>
4655 </action>
4656
4657 <action>
4658 <touch key="back"/>
4659 <action function="page">filemanageroptions</action>
4660 </action>
4661 </page>
4662
4663 <page name="filemanagerchmod">
4664 <template name="page"/>
4665
4666 <text style="text_l">
4667 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004668 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004669 </text>
4670
4671 <text style="text_m">
4672 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004673 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004674 </text>
4675
4676 <text style="text_m_accent">
4677 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004678 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004679 </text>
4680
4681 <input>
4682 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4683 <text>%tw_filemanager_rename%</text>
4684 <data name="tw_filemanager_rename"/>
4685 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4686 <actions>
4687 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4688 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4689 <action function="set">tw_back=filemanageroptions</action>
4690 <action function="page">filemanagerconfirm</action>
4691 </actions>
4692 </input>
4693
4694 <fill color="%accent_color%">
4695 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4696 </fill>
4697
4698 <button style="main_button_half_width_low">
4699 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004700 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004701 <action function="page">filemanageroptions</action>
4702 </button>
4703
4704 <template name="keyboardtemplate"/>
4705
4706 <action>
4707 <touch key="home"/>
4708 <action function="page">main</action>
4709 </action>
4710
4711 <action>
4712 <touch key="back"/>
4713 <action function="page">filemanageroptions</action>
4714 </action>
4715 </page>
4716
4717 <page name="filemanagerconfirm">
4718 <template name="page"/>
4719
4720 <text style="text_l">
4721 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004722 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004723 </text>
4724
4725 <text style="text_m">
4726 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004727 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004728 </text>
4729
4730 <text style="text_m_accent">
4731 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4732 <text>%tw_fm_text1%</text>
4733 </text>
4734
4735 <text style="text_m">
4736 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4737 <text>%tw_filename1%</text>
4738 </text>
4739
4740 <text style="text_m_accent">
4741 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4742 <text>%tw_fm_text2%</text>
4743 </text>
4744
4745 <text style="text_m">
4746 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4747 <text>%tw_fm_text3%</text>
4748 </text>
4749
4750 <text style="text_m">
4751 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004752 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004753 </text>
4754
4755 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004756 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004757 <action function="page">filemanageraction</action>
4758 </slider>
4759
4760 <action>
4761 <touch key="back"/>
4762 <action function="page">%tw_back%</action>
4763 </action>
4764
4765 <action>
4766 <touch key="home"/>
4767 <action function="page">main</action>
4768 </action>
4769 </page>
4770
4771 <page name="filemanageraction">
4772 <template name="page"/>
4773
4774 <text style="text_l">
4775 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004776 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004777 </text>
4778
4779 <text style="text_m">
4780 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4781 <text>%tw_fm_text1%</text>
4782 </text>
4783
4784 <template name="console"/>
4785
4786 <template name="progress_bar"/>
4787
4788 <action>
4789 <conditions>
4790 <condition var1="tw_operation_state" var2="1"/>
4791 <condition var1="tw_operation_status" var2="0"/>
4792 </conditions>
4793 <actions>
4794 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004795 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004796 <action function="page">action_complete</action>
4797 </actions>
4798 </action>
4799
4800 <action>
4801 <conditions>
4802 <condition var1="tw_operation_state" var2="1"/>
4803 <condition var1="tw_operation_status" op="!=" var2="0"/>
4804 </conditions>
4805 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004806 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004807 <action function="page">action_complete</action>
4808 </actions>
4809 </action>
4810
4811 <action>
4812 <condition var1="tw_include_text3" var2="0"/>
4813 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4814 </action>
4815
4816 <action>
4817 <condition var1="tw_include_text3" var2="1"/>
4818 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4819 </action>
4820 </page>
4821
4822 <page name="decrypt">
4823 <template name="page"/>
4824
4825 <action>
4826 <condition var1="tw_crypto_pwtype" var2="2"/>
4827 <action function="page">decrypt_pattern</action>
4828 </action>
4829
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04004830 <action>
4831 <condition var1="tw_crypto_pwtype" var2="3"/>
4832 <action function="page">decrypt_pin</action>
4833 </action>
4834
z31s1g28f0a922015-11-07 18:50:22 +01004835 <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="%col1_x_left%" 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="%col1_x_left%" y="row5_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="%col1_x_left%" y="row5_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="%col1_x_left%" 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_width_low">
4881 <placement x="%indent%" y="%row6_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_width_low">
4887 <placement x="%indent_right%" y="%row6_y%" placement="1"/>
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">
Aleksa Saraib25a1832015-12-31 17:36:00 +01004909 <placement x="%col2_x_left%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004910 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004911 </text>
4912
Aleksa Saraib25a1832015-12-31 17:36:00 +01004913 <text style="text_m_fail">
4914 <condition var1="tw_password_fail" var2="1"/>
4915 <placement x="%col2_x_left%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004916 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004917 </text>
4918
z31s1g28f0a922015-11-07 18:50:22 +01004919 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004920 <placement x="%pattern_x%" y="%row4a_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004921 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4922 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4923 <data name="tw_crypto_password"/>
4924 <action function="page">trydecrypt</action>
4925 </patternpassword>
4926
Aleksa Saraib25a1832015-12-31 17:36:00 +01004927 <button style="main_button_half_width_low">
4928 <placement x="%col_button_right%" y="%row1a_y%"/>
4929 <text>3x3</text>
4930 <action function="set">tw_gui_pattern_grid_size=3</action>
4931 </button>
4932
4933 <button style="main_button_half_width_low">
4934 <placement x="%col_button_right%" y="%row4a_y%"/>
4935 <text>4x4</text>
4936 <action function="set">tw_gui_pattern_grid_size=4</action>
4937 </button>
4938
4939 <button style="main_button_half_width_low">
4940 <placement x="%col_button_right%" y="%row7a_y%"/>
4941 <text>5x5</text>
4942 <action function="set">tw_gui_pattern_grid_size=5</action>
4943 </button>
4944
4945 <button style="main_button_half_width_low">
4946 <placement x="%col_button_right%" y="%row10a_y%"/>
4947 <text>6x6</text>
4948 <action function="set">tw_gui_pattern_grid_size=6</action>
4949 </button>
4950
z31s1g28f0a922015-11-07 18:50:22 +01004951 <button style="main_button_half_width">
z31s1g608d7ff2016-01-18 19:47:25 +01004952 <placement x="%col1_x_right%" y="%row15a_y%"/>
4953 <text>{@sel_lang_btn=Select Language}</text>
4954 <action function="overlay">select_language</action>
4955 </button>
4956
4957 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004958 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004959 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05004960 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004961 </button>
4962 </page>
4963
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04004964 <page name="decrypt_pin">
4965 <template name="page"/>
4966
4967 <text style="text_l">
4968 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4969 <text>{@mount_hdr=Mount}</text>
4970 </text>
4971
4972 <text style="text_m">
4973 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4974 <text>{@decrypt_data_hdr=Decrypt Data}</text>
4975 </text>
4976
4977 <text style="text_m_accent">
4978 <condition var1="tw_is_fbe" op="!=" var2="1"/>
4979 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4980 <text>{@decrypt_data_enter_pass=Enter PIN:}</text>
4981 </text>
4982
4983 <text style="text_m_accent">
4984 <condition var1="tw_is_fbe" var2="1"/>
4985 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4986 <text>{@decrypt_data_enter_pass_fbe=Enter PIN for User [%tw_crypto_user_id%]}</text>
4987 </text>
4988
4989 <input>
4990 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4991 <text>%tw_crypto_display%</text>
4992 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4993 <restrict minlen="1" maxlen="254"/>
4994 <action function="page">trydecrypt</action>
4995 </input>
4996
4997 <fill color="%accent_color%">
4998 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
4999 </fill>
5000
5001 <fill color="%text_fail_color%">
5002 <condition var1="tw_password_fail" var2="1"/>
5003 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
5004 </fill>
5005
5006 <text style="text_m_fail">
5007 <condition var1="tw_password_fail" var2="1"/>
5008 <placement x="%col1_x_left%" y="%row5_y%"/>
5009 <text>{@decrypt_data_failed=PIN failed, please try again!}</text>
5010 </text>
5011
5012 <button style="main_button_half_width_low">
5013 <placement x="%indent%" y="%row6_y%"/>
5014 <text>{@cancel_btn=Cancel}</text>
5015 <action function="page">canceldecrypt</action>
5016 </button>
5017
5018 <button style="main_button_half_width_low">
5019 <placement x="%indent_right%" y="%row6_y%" placement="1"/>
5020 <text>{@sel_lang_btn=Select Language}</text>
5021 <action function="overlay">select_language</action>
5022 </button>
5023
5024 <template name="keyboardnum"/>
5025 </page>
5026
z31s1g28f0a922015-11-07 18:50:22 +01005027 <page name="trydecrypt">
5028 <template name="page"/>
5029
5030 <text style="text_l">
5031 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005032 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005033 </text>
5034
5035 <text style="text_m">
5036 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005037 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005038 </text>
5039
5040 <template name="console"/>
5041
5042 <template name="progress_bar"/>
5043
5044 <action>
5045 <action function="decrypt"/>
5046 </action>
5047
5048 <action>
5049 <conditions>
5050 <condition var1="tw_operation_state" var2="1"/>
5051 <condition var1="tw_operation_status" op="!=" var2="0"/>
5052 </conditions>
5053 <actions>
5054 <action function="set">tw_password_fail=1</action>
5055 <action function="page">decrypt</action>
5056 </actions>
5057 </action>
5058
5059 <action>
5060 <conditions>
5061 <condition var1="tw_operation_state" var2="1"/>
5062 <condition var1="tw_operation_status" op="=" var2="0"/>
5063 </conditions>
5064 <actions>
5065 <action function="set">tw_page_done=1</action>
5066 <action function="page">main</action>
5067 </actions>
5068 </action>
5069 </page>
5070
Captain Throwback89b56a12021-02-10 18:25:07 -05005071 <page name="canceldecrypt">
5072 <template name="page"/>
5073
5074 <text style="text_l">
5075 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5076 <text>{@cancel_btn=Cancel}</text>
5077 </text>
5078
5079 <text style="text_m">
5080 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5081 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
5082 </text>
5083
5084 <template name="console"/>
5085
5086 <template name="progress_bar"/>
5087
5088 <action>
5089 <action function="refreshsizes"/>
5090 </action>
5091
5092 <action>
5093 <conditions>
5094 <condition var1="tw_operation_state" var2="1"/>
5095 </conditions>
5096 <actions>
5097 <action function="set">tw_page_done=1</action>
5098 <action function="page">main</action>
5099 </actions>
5100 </action>
5101 </page>
5102
z31s1g28f0a922015-11-07 18:50:22 +01005103 <page name="terminalcommand">
5104 <template name="page"/>
5105
5106 <fill color="%background_color%">
5107 <placement x="0" y="%status_height%" w="%screen_width%" h="%header_height%"/>
5108 </fill>
5109
z31s1g56189522016-01-13 19:12:40 +01005110 <terminal>
5111 <condition var1="tw_hide_kb" var2="0"/>
5112 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%terminal_s_height%"/>
5113 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005114
z31s1g56189522016-01-13 19:12:40 +01005115 <terminal>
5116 <condition var1="tw_hide_kb" var2="1"/>
5117 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%terminal_l_height%"/>
5118 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005119
z31s1g56189522016-01-13 19:12:40 +01005120 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005121
z31s1g56189522016-01-13 19:12:40 +01005122 <object type="fill" color="#000000">
5123 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
5124 </object>
z31s1g28f0a922015-11-07 18:50:22 +01005125
z31s1g608d7ff2016-01-18 19:47:25 +01005126 <button>
z31s1g56189522016-01-13 19:12:40 +01005127 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5128 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5129 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5130 <image resource="back" />
5131 <condition var1="tw_busy" var2="0" />
5132 <actions>
5133 <action function="set">tw_hide_kb=0</action>
5134 <action function="page">advanced</action>
5135 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005136 </button>
z31s1g56189522016-01-13 19:12:40 +01005137
z31s1g608d7ff2016-01-18 19:47:25 +01005138 <button>
z31s1g56189522016-01-13 19:12:40 +01005139 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5140 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5141 <condition var1="tw_hide_kb" op="=" var2="0" />
5142 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5143 <image resource="kb_hide" />
5144 <condition var1="tw_busy" var2="0" />
5145 <actions>
5146 <action function="set">tw_hide_kb=1</action>
5147 <action function="page">terminalcommand</action>
5148 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005149 </button>
z31s1g56189522016-01-13 19:12:40 +01005150
z31s1g608d7ff2016-01-18 19:47:25 +01005151 <button>
z31s1g56189522016-01-13 19:12:40 +01005152 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5153 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5154 <condition var1="tw_hide_kb" op="=" var2="1" />
5155 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5156 <image resource="kb_show" />
5157 <condition var1="tw_busy" var2="0" />
5158 <actions>
5159 <action function="set">tw_hide_kb=0</action>
5160 <action function="page">terminalcommand</action>
5161 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005162 </button>
z31s1g56189522016-01-13 19:12:40 +01005163
z31s1g608d7ff2016-01-18 19:47:25 +01005164 <button>
z31s1g56189522016-01-13 19:12:40 +01005165 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5166 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5167 <image resource="home" />
5168 <condition var1="tw_busy" var2="0" />
5169 <actions>
5170 <action function="set">tw_hide_kb=0</action>
5171 <action function="key">home</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005172 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005173 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005174 </button>
z31s1g56189522016-01-13 19:12:40 +01005175
z31s1g608d7ff2016-01-18 19:47:25 +01005176 <button>
z31s1g56189522016-01-13 19:12:40 +01005177 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5178 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5179 <condition var1="tw_hide_kb" op="=" var2="0" />
5180 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5181 <image resource="kb_hide" />
5182 <condition var1="tw_busy" var2="0" />
5183 <actions>
5184 <action function="set">tw_hide_kb=1</action>
5185 <action function="page">terminalcommand</action>
5186 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005187 </button>
z31s1g56189522016-01-13 19:12:40 +01005188
z31s1g608d7ff2016-01-18 19:47:25 +01005189 <button>
z31s1g56189522016-01-13 19:12:40 +01005190 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5191 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5192 <condition var1="tw_hide_kb" op="=" var2="1" />
5193 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5194 <image resource="kb_show" />
5195 <condition var1="tw_busy" var2="0" />
5196 <actions>
5197 <action function="set">tw_hide_kb=0</action>
5198 <action function="page">terminalcommand</action>
5199 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005200 </button>
z31s1g56189522016-01-13 19:12:40 +01005201
z31s1g608d7ff2016-01-18 19:47:25 +01005202 <button>
z31s1g56189522016-01-13 19:12:40 +01005203 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5204 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5205 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5206 <image resource="back" />
5207 <condition var1="tw_busy" var2="0" />
5208 <actions>
5209 <action function="set">tw_hide_kb=0</action>
5210 <action function="page">advanced</action>
5211 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005212 </button>
z31s1g56189522016-01-13 19:12:40 +01005213
z31s1g608d7ff2016-01-18 19:47:25 +01005214 <button>
z31s1g56189522016-01-13 19:12:40 +01005215 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5216 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5217 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5218 <image resource="back" />
5219 <condition var1="tw_busy" var2="0" />
5220 <actions>
5221 <action function="set">tw_hide_kb=0</action>
5222 <action function="page">advanced</action>
5223 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005224 </button>
z31s1g56189522016-01-13 19:12:40 +01005225
z31s1g608d7ff2016-01-18 19:47:25 +01005226 <button>
z31s1g56189522016-01-13 19:12:40 +01005227 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5228 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5229 <condition var1="tw_hide_kb" op="=" var2="0" />
5230 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5231 <image resource="kb_hide" />
5232 <condition var1="tw_busy" var2="0" />
5233 <actions>
5234 <action function="set">tw_hide_kb=1</action>
5235 <action function="page">terminalcommand</action>
5236 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005237 </button>
z31s1g56189522016-01-13 19:12:40 +01005238
z31s1g608d7ff2016-01-18 19:47:25 +01005239 <button>
z31s1g56189522016-01-13 19:12:40 +01005240 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5241 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5242 <condition var1="tw_hide_kb" op="=" var2="1" />
5243 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5244 <image resource="kb_show" />
5245 <condition var1="tw_busy" var2="0" />
5246 <actions>
5247 <action function="set">tw_hide_kb=0</action>
5248 <action function="page">terminalcommand</action>
5249 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005250 </button>
z31s1g56189522016-01-13 19:12:40 +01005251
z31s1g608d7ff2016-01-18 19:47:25 +01005252 <button>
z31s1g56189522016-01-13 19:12:40 +01005253 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5254 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5255 <image resource="home" />
5256 <condition var1="tw_busy" var2="0" />
5257 <actions>
5258 <action function="set">tw_hide_kb=0</action>
5259 <action function="key">home</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005260 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005261 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005262 </button>
z31s1g56189522016-01-13 19:12:40 +01005263
z31s1g608d7ff2016-01-18 19:47:25 +01005264 <button>
z31s1g56189522016-01-13 19:12:40 +01005265 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5266 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5267 <condition var1="tw_hide_kb" op="=" var2="0" />
5268 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5269 <image resource="kb_hide" />
5270 <condition var1="tw_busy" var2="0" />
5271 <actions>
5272 <action function="set">tw_hide_kb=1</action>
5273 <action function="page">terminalcommand</action>
5274 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005275 </button>
z31s1g56189522016-01-13 19:12:40 +01005276
z31s1g608d7ff2016-01-18 19:47:25 +01005277 <button>
z31s1g56189522016-01-13 19:12:40 +01005278 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5279 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5280 <condition var1="tw_hide_kb" op="=" var2="1" />
5281 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5282 <image resource="kb_show" />
5283 <condition var1="tw_busy" var2="0" />
5284 <actions>
5285 <action function="set">tw_hide_kb=0</action>
5286 <action function="page">terminalcommand</action>
5287 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005288 </button>
z31s1g56189522016-01-13 19:12:40 +01005289
z31s1g608d7ff2016-01-18 19:47:25 +01005290 <button>
z31s1g56189522016-01-13 19:12:40 +01005291 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5292 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5293 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5294 <image resource="back" />
5295 <condition var1="tw_busy" var2="0" />
5296 <actions>
5297 <action function="set">tw_hide_kb=0</action>
5298 <action function="page">advanced</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005299 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005300 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005301 </button>
z31s1g56189522016-01-13 19:12:40 +01005302
z31s1g608d7ff2016-01-18 19:47:25 +01005303 <button>
z31s1g56189522016-01-13 19:12:40 +01005304 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5305 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5306 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5307 <image resource="back" />
5308 <condition var1="tw_busy" var2="0" />
5309 <actions>
5310 <action function="set">tw_hide_kb=0</action>
5311 <action function="page">advanced</action>
5312 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005313 </button>
z31s1g56189522016-01-13 19:12:40 +01005314
z31s1g608d7ff2016-01-18 19:47:25 +01005315 <button>
z31s1g56189522016-01-13 19:12:40 +01005316 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5317 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5318 <condition var1="tw_hide_kb" op="=" var2="0" />
5319 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5320 <image resource="kb_hide" />
5321 <condition var1="tw_busy" var2="0" />
5322 <actions>
5323 <action function="set">tw_hide_kb=1</action>
5324 <action function="page">terminalcommand</action>
5325 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005326 </button>
z31s1g56189522016-01-13 19:12:40 +01005327
z31s1g608d7ff2016-01-18 19:47:25 +01005328 <button>
z31s1g56189522016-01-13 19:12:40 +01005329 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5330 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5331 <condition var1="tw_hide_kb" op="=" var2="1" />
5332 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5333 <image resource="kb_show" />
5334 <condition var1="tw_busy" var2="0" />
5335 <actions>
5336 <action function="set">tw_hide_kb=0</action>
5337 <action function="page">terminalcommand</action>
5338 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005339 </button>
z31s1g56189522016-01-13 19:12:40 +01005340
z31s1g608d7ff2016-01-18 19:47:25 +01005341 <button>
z31s1g56189522016-01-13 19:12:40 +01005342 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5343 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5344 <image resource="home" />
5345 <condition var1="tw_busy" var2="0" />
5346 <actions>
5347 <action function="set">tw_hide_kb=0</action>
5348 <action function="key">home</action>
5349 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005350 </button>
z31s1g56189522016-01-13 19:12:40 +01005351
z31s1g608d7ff2016-01-18 19:47:25 +01005352 <button>
z31s1g56189522016-01-13 19:12:40 +01005353 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5354 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5355 <condition var1="tw_hide_kb" op="=" var2="0" />
5356 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5357 <image resource="kb_hide" />
5358 <condition var1="tw_busy" var2="0" />
5359 <actions>
5360 <action function="set">tw_hide_kb=1</action>
5361 <action function="page">terminalcommand</action>
5362 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005363 </button>
z31s1g56189522016-01-13 19:12:40 +01005364
z31s1g608d7ff2016-01-18 19:47:25 +01005365 <button>
z31s1g56189522016-01-13 19:12:40 +01005366 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5367 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5368 <condition var1="tw_hide_kb" op="=" var2="1" />
5369 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5370 <image resource="kb_show" />
5371 <condition var1="tw_busy" var2="0" />
5372 <actions>
5373 <action function="set">tw_hide_kb=0</action>
5374 <action function="page">terminalcommand</action>
5375 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005376 </button>
z31s1g56189522016-01-13 19:12:40 +01005377
z31s1g608d7ff2016-01-18 19:47:25 +01005378 <button>
z31s1g56189522016-01-13 19:12:40 +01005379 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5380 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5381 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5382 <image resource="back" />
5383 <condition var1="tw_busy" var2="0" />
5384 <actions>
5385 <action function="set">tw_hide_kb=0</action>
5386 <action function="page">advanced</action>
5387 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005388 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005389
5390 <action>
5391 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005392 <actions>
5393 <action function="page">main</action>
5394 <action function="set">tw_hide_kb=0</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005395 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005396 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005397 </action>
5398
5399 <action>
5400 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005401 <actions>
5402 <action function="page">advanced</action>
5403 <action function="set">tw_hide_kb=0</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005404 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005405 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005406 </action>
z31s1g56189522016-01-13 19:12:40 +01005407
5408 <object type="action">
5409 <touch key="power+voldown" />
5410 <action function="screenshot" />
5411 </object>
z31s1g28f0a922015-11-07 18:50:22 +01005412 </page>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005413
bigbiffdf8436b2020-08-30 16:22:34 -04005414 <page name="fastboot">
5415 <template name="page"/>
5416
5417 <text style="text_l">
5418 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5419 <text>{@fastboot_button=Fastboot}</text>
5420 </text>
5421
5422 <template name="console"/>
5423
5424 <template name="progress_bar"/>
5425
5426 <button style="main_button_half_width">
5427 <condition var1="tw_enable_fastboot" op="=" var2="1" />
bigbiff7138a0f2020-10-24 19:52:25 -04005428 <placement x="%col1_x_left%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005429 <text>{@enable_adb=Enable ADB}</text>
5430 <actions>
5431 <action function="enableadb"/>
5432 <action function="set">tw_enable_adb=1</action>
5433 <action function="set">tw_enable_fastboot=0</action>
5434 </actions>
5435 </button>
5436
5437 <button style="main_button_half_width">
5438 <condition var1="tw_enable_adb" op="=" var2="1" />
bigbiff7138a0f2020-10-24 19:52:25 -04005439 <placement x="%col1_x_left%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005440 <text>{@enable_fastboot=Enable Fastboot}</text>
5441 <actions>
5442 <action function="enablefastboot"/>
5443 <action function="set">tw_enable_fastboot=1</action>
5444 <action function="set">tw_enable_adb=0</action>
5445 </actions>
5446 </button>
5447
5448 <button style="main_button_half_width">
bigbiff7138a0f2020-10-24 19:52:25 -04005449 <placement x="%col2_x_right%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005450 <text>{@reboot_btn=Reboot}</text>
5451 <action function="page">fastbootreboot</action>
5452 </button>
5453 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005454
5455 <page name="sideload">
5456 <template name="page"/>
5457
5458 <text style="text_l">
5459 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005460 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005461 </text>
5462
5463 <text style="text_m">
5464 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005465 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005466 </text>
5467
5468 <checkbox>
5469 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005470 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005471 <data variable="tw_wipe_dalvik"/>
5472 </checkbox>
5473
5474 <checkbox>
5475 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005476 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005477 <data variable="tw_wipe_cache"/>
5478 </checkbox>
5479
5480 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05005481 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005482 <actions>
5483 <action function="set">tw_back=advanced</action>
5484 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005485 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5486 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5487 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005488 <action function="set">tw_has_cancel=1</action>
5489 <action function="set">tw_show_reboot=1</action>
5490 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5491 <action function="page">action_page</action>
5492 </actions>
5493 </slider>
5494
5495 <action>
5496 <touch key="home"/>
5497 <action function="page">main</action>
5498 </action>
5499
5500 <action>
5501 <touch key="back"/>
5502 <action function="page">advanced</action>
5503 </action>
5504 </page>
5505
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005506 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005507 <template name="page"/>
5508
5509 <text style="text_l">
5510 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005511 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005512 </text>
5513
5514 <text style="text_m">
5515 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005516 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005517 </text>
5518
5519 <text style="text_m_accent">
5520 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005521 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005522 </text>
5523
z31s1g28f0a922015-11-07 18:50:22 +01005524 <text style="text_m_fail">
5525 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005526 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005527 </text>
5528
5529 <text style="text_m_fail">
5530 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005531 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005532 </text>
5533
5534 <slider style="slider_centered">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005535 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005536 <actions>
5537 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005538 <action function="set">tw_action=fixcontexts</action>
5539 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5540 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005541 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005542 <action function="set">tw_show_reboot=1</action>
5543 <action function="page">action_page</action>
5544 </actions>
5545 </slider>
5546
5547 <action>
5548 <touch key="home"/>
5549 <action function="page">main</action>
5550 </action>
5551
5552 <action>
5553 <touch key="back"/>
5554 <action function="page">advanced</action>
5555 </action>
5556 </page>
5557
z31s1g28f0a922015-11-07 18:50:22 +01005558 <page name="slideout">
5559 <fill color="%background_color%">
5560 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5561 </fill>
5562
5563 <console>
5564 <placement x="%col1_x_left%" y="%slideout_y%" w="%content_width%" h="%slideout_height%"/>
5565 </console>
5566
5567 <button>
5568 <fill color="%transparent%"/>
5569 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5570 <action function="overlay"/>
5571 </button>
5572
5573 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005574 <touch key="power"/>
5575 <action function="togglebacklight"/>
5576 </action>
5577
5578 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005579 <touch key="power+voldown"/>
5580 <action function="screenshot"/>
5581 </action>
5582 </page>
5583
5584 <page name="select_storage">
5585 <fill color="%semi_transparent%">
5586 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5587 </fill>
5588
5589 <fill color="%background_color%">
5590 <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/>
5591 </fill>
5592
5593 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005594 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005595 <data name="tw_storage_path"/>
5596 <listtype name="storage"/>
5597 </partitionlist>
5598
5599 <button style="button_third_width">
5600 <placement x="%dialog_button_x%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005601 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005602 <actions>
5603 <action function="set">tw_clear_destination=%tw_back%</action>
5604 <action function="overlay"/>
5605 <action function="page">clear_vars</action>
5606 </actions>
5607 </button>
5608
5609 <fill color="#000000">
5610 <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/>
5611 </fill>
5612
5613 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005614 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5615 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5616 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5617 <image resource="back" />
5618 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005619 <actions>
5620 <action function="overlay"/>
5621 <action function="key">%tw_back%</action>
5622 </actions>
5623 </button>
5624
5625 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005626 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5627 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5628 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5629 <image resource="console" />
5630 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005631 <action function="overlay">slideout</action>
5632 </button>
5633
5634 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005635 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5636 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5637 <image resource="home" />
5638 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005639 <actions>
5640 <action function="overlay"/>
5641 <action function="key">home</action>
5642 </actions>
5643 </button>
5644
5645 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005646 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5647 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5648 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5649 <image resource="console" />
5650 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005651 <action function="overlay">slideout</action>
5652 </button>
5653
5654 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005655 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5656 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5657 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5658 <image resource="back" />
5659 <condition var1="tw_busy" var2="0" />
5660 <actions>
5661 <action function="overlay"/>
5662 <action function="key">%tw_back%</action>
5663 </actions>
5664 </button>
5665
5666 <button>
5667 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5668 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5669 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5670 <image resource="back" />
5671 <condition var1="tw_busy" var2="0" />
5672 <actions>
5673 <action function="overlay"/>
5674 <action function="key">%tw_back%</action>
5675 </actions>
5676 </button>
5677
5678 <button>
5679 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5680 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5681 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5682 <image resource="console" />
5683 <condition var1="tw_busy" var2="0" />
5684 <action function="overlay">slideout</action>
5685 </button>
5686
5687 <button>
5688 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5689 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5690 <image resource="home" />
5691 <condition var1="tw_busy" var2="0" />
5692 <actions>
5693 <action function="overlay"/>
5694 <action function="key">home</action>
5695 </actions>
5696 </button>
5697
5698 <button>
5699 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5700 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5701 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5702 <image resource="console" />
5703 <condition var1="tw_busy" var2="0" />
5704 <action function="overlay">slideout</action>
5705 </button>
5706
5707 <button>
5708 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5709 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5710 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5711 <image resource="back" />
5712 <condition var1="tw_busy" var2="0" />
5713 <actions>
5714 <action function="overlay"/>
5715 <action function="key">%tw_back%</action>
5716 </actions>
5717 </button>
5718
5719 <button>
5720 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5721 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5722 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5723 <image resource="back" />
5724 <condition var1="tw_busy" var2="0" />
5725 <actions>
5726 <action function="overlay"/>
5727 <action function="key">%tw_back%</action>
5728 </actions>
5729 </button>
5730
5731 <button>
5732 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5733 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5734 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5735 <image resource="console" />
5736 <condition var1="tw_busy" var2="0" />
5737 <action function="overlay">slideout</action>
5738 </button>
5739
5740 <button>
5741 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5742 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5743 <image resource="home" />
5744 <condition var1="tw_busy" var2="0" />
5745 <actions>
5746 <action function="overlay"/>
5747 <action function="key">home</action>
5748 </actions>
5749 </button>
5750
5751 <button>
5752 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5753 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5754 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5755 <image resource="console" />
5756 <condition var1="tw_busy" var2="0" />
5757 <action function="overlay">slideout</action>
5758 </button>
5759
5760 <button>
5761 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5762 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5763 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5764 <image resource="back" />
5765 <condition var1="tw_busy" var2="0" />
5766 <actions>
5767 <action function="overlay"/>
5768 <action function="key">%tw_back%</action>
5769 </actions>
5770 </button>
5771
5772 <action>
5773 <touch key="power+voldown"/>
5774 <action function="screenshot"/>
5775 </action>
5776 </page>
5777
5778 <page name="select_language">
5779 <fill color="%semi_transparent%">
5780 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5781 </fill>
5782
5783 <fill color="%background_color%">
5784 <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/>
5785 </fill>
5786
5787 <listbox>
5788 <placement x="%dialog_content_x%" y="%row4_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5789 <text>{@select_language=Select Language:}</text>
5790 <icon selected="radio_true" unselected="radio_false" />
5791 <data name="tw_language" />
5792 </listbox>
5793
5794 <button style="button_third_width">
5795 <placement x="%dialog_button_x%" y="%row13_y%"/>
5796 <text>{@ok_btn=OK}</text>
5797 <actions>
5798 <action function="overlay"/>
5799 <action function="setlanguage"></action>
5800 </actions>
5801 </button>
5802
5803 <fill color="#000000">
5804 <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/>
5805 </fill>
5806
5807 <button>
5808 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5809 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5810 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5811 <image resource="back" />
5812 <condition var1="tw_busy" var2="0" />
5813 <actions>
5814 <action function="overlay"/>
5815 <action function="key">%tw_back%</action>
5816 </actions>
5817 </button>
5818
5819 <button>
5820 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5821 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5822 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5823 <image resource="console" />
5824 <condition var1="tw_busy" var2="0" />
5825 <action function="overlay">slideout</action>
5826 </button>
5827
5828 <button>
5829 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5830 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5831 <image resource="home" />
5832 <condition var1="tw_busy" var2="0" />
5833 <actions>
5834 <action function="overlay"/>
5835 <action function="key">home</action>
5836 </actions>
5837 </button>
5838
5839 <button>
5840 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5841 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5842 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5843 <image resource="console" />
5844 <condition var1="tw_busy" var2="0" />
5845 <action function="overlay">slideout</action>
5846 </button>
5847
5848 <button>
5849 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5850 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5851 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5852 <image resource="back" />
5853 <condition var1="tw_busy" var2="0" />
5854 <actions>
5855 <action function="overlay"/>
5856 <action function="key">%tw_back%</action>
5857 </actions>
5858 </button>
5859
5860 <button>
5861 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5862 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5863 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5864 <image resource="back" />
5865 <condition var1="tw_busy" var2="0" />
5866 <actions>
5867 <action function="overlay"/>
5868 <action function="key">%tw_back%</action>
5869 </actions>
5870 </button>
5871
5872 <button>
5873 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5874 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5875 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5876 <image resource="console" />
5877 <condition var1="tw_busy" var2="0" />
5878 <action function="overlay">slideout</action>
5879 </button>
5880
5881 <button>
5882 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5883 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5884 <image resource="home" />
5885 <condition var1="tw_busy" var2="0" />
5886 <actions>
5887 <action function="overlay"/>
5888 <action function="key">home</action>
5889 </actions>
5890 </button>
5891
5892 <button>
5893 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5894 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5895 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5896 <image resource="console" />
5897 <condition var1="tw_busy" var2="0" />
5898 <action function="overlay">slideout</action>
5899 </button>
5900
5901 <button>
5902 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5903 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5904 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5905 <image resource="back" />
5906 <condition var1="tw_busy" var2="0" />
5907 <actions>
5908 <action function="overlay"/>
5909 <action function="key">%tw_back%</action>
5910 </actions>
5911 </button>
5912
5913 <button>
5914 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5915 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5916 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5917 <image resource="back" />
5918 <condition var1="tw_busy" var2="0" />
5919 <actions>
5920 <action function="overlay"/>
5921 <action function="key">%tw_back%</action>
5922 </actions>
5923 </button>
5924
5925 <button>
5926 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5927 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5928 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5929 <image resource="console" />
5930 <condition var1="tw_busy" var2="0" />
5931 <action function="overlay">slideout</action>
5932 </button>
5933
5934 <button>
5935 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5936 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5937 <image resource="home" />
5938 <condition var1="tw_busy" var2="0" />
5939 <actions>
5940 <action function="overlay"/>
5941 <action function="key">home</action>
5942 </actions>
5943 </button>
5944
5945 <button>
5946 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5947 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5948 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5949 <image resource="console" />
5950 <condition var1="tw_busy" var2="0" />
5951 <action function="overlay">slideout</action>
5952 </button>
5953
5954 <button>
5955 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5956 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5957 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5958 <image resource="back" />
5959 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005960 <actions>
5961 <action function="overlay"/>
5962 <action function="key">%tw_back%</action>
5963 </actions>
5964 </button>
5965
5966 <action>
5967 <touch key="power+voldown"/>
5968 <action function="screenshot"/>
5969 </action>
5970 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005971
5972 <page name="decrypt_users">
5973 <template name="page"/>
5974
5975 <text style="text_l">
5976 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5977 <text>{@decrypt_users=Decrypt Users}</text>
5978 </text>
5979
5980 <text style="text_m_accent">
5981 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5982 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5983 </text>
5984
5985 <listbox>
5986 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
5987 <text>{@select_user=Select User}</text>
5988 <icon selected="radio_true" unselected="radio_false" />
5989 <data name="tw_crypto_user_id" />
5990 </listbox>
5991
5992 <button style="main_button_half_width">
5993 <placement x="%col2_x_right%" y="%row15a_y%"/>
5994 <text>{@decrypt_users=Decrypt Users}</text>
5995 <action function="set">tw_crypto_password=</action>
5996 <action function="set">tw_password_fail=0</action>
5997 <action function="page">decrypt</action>
5998 </button>
5999
6000 <action>
6001 <touch key="home"/>
6002 <action function="page">main</action>
6003 </action>
6004
6005 <action>
6006 <touch key="back"/>
6007 <action function="page">advanced</action>
6008 </action>
6009 </page>
epicXa721f952021-01-04 13:01:31 +05306010
6011 <page name="changeTwrpFolder">
6012 <template name="page"/>
6013
6014 <text style="text_l">
6015 <placement x="%col1_x_header%" y="%row3_header_y%"/>
6016 <text>{@advanced_hdr=Advanced}</text>
6017 </text>
6018
6019 <text style="text_m">
6020 <placement x="%col1_x_header%" y="%row4_header_y%"/>
6021 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
6022 </text>
6023
6024 <text style="text_m_accent">
6025 <placement x="%col1_x_left%" y="%row2_y%"/>
6026 <text>{@name=Name:}</text>
6027 </text>
6028
6029 <input>
6030 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
6031 <text>%tw_custom_folder%</text>
6032 <data name="tw_custom_folder"/>
6033 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
6034 <actions>
6035 <action function="set">tw_back=changeTwrpFolder</action>
6036 <action function="set">tw_action=applycustomtwrpfolder</action>
6037 <action function="set">tw_action_param=%tw_custom_folder%</action>
6038 <action function="set">tw_text1={@confirm_action=Confirm}</action>
6039 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
6040 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
6041 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
6042 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
6043 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
6044 <action function="set">tw_existpage=changeTwrpFolder</action>
6045 <action function="set">tw_notexistpage=confirm_action</action>
6046 <action function="page">filecheck</action>
6047 </actions>
6048 </input>
6049
6050 <fill color="%accent_color%">
6051 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
6052 </fill>
6053
6054 <fill color="%text_fail_color%">
6055 <condition var1="tw_fileexists" var2="1"/>
6056 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
6057 </fill>
6058
6059 <text style="text_m_fail">
6060 <condition var1="tw_fileexists" var2="1"/>
6061 <placement x="%col1_x_left%" y="%row4_y%"/>
6062 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
6063 </text>
6064
6065 <button style="main_button_half_width_low">
6066 <placement x="%indent%" y="%row5_y%"/>
6067 <text>{@cancel_btn=Cancel}</text>
6068 <action function="page">advanced</action>
6069 </button>
6070
6071 <button style="main_button_half_width_low">
6072 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
6073 <placement x="%date_button_x%" y="%row5_y%"/>
6074 <text>{@restore_defaults_btn=Restore Defaults}</text>
6075 <actions>
6076 <action function="set">tw_back=changeTwrpFolder</action>
6077 <action function="set">tw_action=applycustomtwrpfolder</action>
6078 <action function="set">tw_action_param=TWRP</action>
6079 <action function="set">tw_text1={@confirm_action=Confirm}</action>
6080 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
6081 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
6082 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
6083 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
6084 <action function="set">tw_filecheck=/sdcard/TWRP</action>
6085 <action function="set">tw_existpage=changeTwrpFolder</action>
6086 <action function="set">tw_notexistpage=confirm_action</action>
6087 <action function="page">filecheck</action>
6088 </actions>
6089 </button>
6090
6091 <template name="keyboardtemplate"/>
6092
6093 <action>
6094 <touch key="home"/>
6095 <actions>
6096 <action function="page">main</action>
6097 </actions>
6098 </action>
6099
6100 <action>
6101 <touch key="back"/>
6102 <actions>
6103 <action function="page">advanced</action>
6104 </actions>
6105 </action>
6106 </page>
bigbiff8f5fad32021-11-03 20:39:02 -04006107
Captain Throwback02e74572022-01-10 12:55:05 -05006108 <page name="restore_keymaster">
bigbiff8f5fad32021-11-03 20:39:02 -04006109 <template name="page"/>
6110
6111 <text style="text_m_accent">
6112 <condition var1="tw_crypto_pwtype" var2="1"/>
6113 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Captain Throwback02e74572022-01-10 12:55:05 -05006114 <text>{@restore_with_pin_password1=PIN/Password is enabled}</text>
bigbiff8f5fad32021-11-03 20:39:02 -04006115 </text>
6116
6117 <text style="text_m_accent">
6118 <condition var1="tw_crypto_pwtype" var2="1"/>
6119 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Captain Throwback02e74572022-01-10 12:55:05 -05006120 <text>{@restore_with_pin_password2=PIN/Password should be disabled before restore}</text>
bigbiff8f5fad32021-11-03 20:39:02 -04006121 </text>
6122 <text style="text_l">
6123 <condition var1="tw_crypto_pwtype" var2="1"/>
6124 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Captain Throwback02e74572022-01-10 12:55:05 -05006125 <text>{@restore_pin_password=Restore While PIN/Password Enabled?}</text>
bigbiff8f5fad32021-11-03 20:39:02 -04006126 </text>
6127
6128 <text style="text_m_accent">
6129 <condition var1="tw_crypto_pwtype" var2="2"/>
6130 <placement x="%col1_x_header%" y="%row3_header_y%"/>
6131 <text>{@restore_with_pattern1=Pattern is enabled}</text>
6132 </text>
6133
6134 <text style="text_m_accent">
6135 <condition var1="tw_crypto_pwtype" var2="2"/>
6136 <placement x="%col1_x_header%" y="%row4_header_y%"/>
6137 <text>{@restore_with_pattern2=Pattern should be disabled before restore}</text>
6138 </text>
6139
6140 <text style="text_l">
6141 <condition var1="tw_crypto_pwtype" var2="2"/>
6142 <placement x="%center_x%" y="%row2_y%" placement="5"/>
6143 <text>{@restore_pattern=Restore While Pattern Enabled?}</text>
6144 </text>
6145
Captain Throwback02e74572022-01-10 12:55:05 -05006146 <text style="text_m_accent">
6147 <condition var1="tw_crypto_pwtype" var2="3"/>
6148 <placement x="%col1_x_header%" y="%row3_header_y%"/>
6149 <text>{@restore_with_pin1=PIN is enabled}</text>
6150 </text>
6151
6152 <text style="text_m_accent">
6153 <condition var1="tw_crypto_pwtype" var2="3"/>
6154 <placement x="%col1_x_header%" y="%row4_header_y%"/>
6155 <text>{@restore_with_pin2=PIN should be disabled before restore}</text>
6156 </text>
6157 <text style="text_l">
6158 <condition var1="tw_crypto_pwtype" var2="3"/>
6159 <placement x="%center_x%" y="%row2_y%" placement="5"/>
6160 <text>{@restore_pin=Restore While PIN Enabled?}</text>
6161 </text>
6162
bigbiff8f5fad32021-11-03 20:39:02 -04006163 <slider>
6164 <text>{@continue_restore_encrypted=Continue Restore?}</text>
6165 <actions>
6166 <action function="page">restore_force</action>
6167 </actions>
6168 </slider>
6169
6170 <action>
6171 <touch key="home"/>
6172 <action function="page">main</action>
6173 </action>
6174
6175 <action>
6176 <touch key="back"/>
6177 <actions>
6178 <action function="page">main</action>
6179 </actions>
6180 </action>
6181 </page>
z31s1g28f0a922015-11-07 18:50:22 +01006182 </pages>
6183</recovery>