blob: f7e366b800c090441b9b476aad7d1474249e0d14 [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>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003772 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3773 <condition var1="tw_has_injecttwrp" var2="1"/>
3774 <actions>
3775 <action function="set">tw_back=advanced</action>
3776 <action function="set">tw_action=reinjecttwrp</action>
3777 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3778 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3779 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3780 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3781 <action function="page">confirm_action</action>
3782 </actions>
3783 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003784 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3785 <conditions>
3786 <condition var1="tw_has_boot_slots" var2="1"/>
3787 <condition var1="tw_has_repack_tools" var2="1"/>
3788 </conditions>
3789 <actions>
3790 <action function="set">tw_repack_kernel=0</action>
3791 <action function="page">repackselect</action>
3792 </actions>
3793 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003794 <listitem name="{@reflash_twrp=Flash Current TWRP}">
3795 <conditions>
3796 <condition var1="tw_has_boot_slots" var2="1"/>
3797 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwback1f5d4ca2023-01-11 13:46:30 -05003798 <condition var1="tw_no_flash_current_twrp" var2="0"/>
nebrassyac29e692021-05-20 13:03:30 +02003799 </conditions>
3800 <actions>
3801 <action function="set">tw_repack_kernel=0</action>
3802 <action function="set">tw_back=advanced</action>
3803 <action function="set">tw_action=reflashtwrp</action>
3804 <action function="set">tw_text1={@reflash_twrp_confirm=Flash Current TWRP?}</action>
3805 <action function="set">tw_action_text1={@reflashing_twrp=Flashing TWRP...}</action>
3806 <action function="set">tw_complete_text1={@reflash_twrp_complete=Done flashing TWRP}</action>
3807 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3808 <action function="page">confirm_action</action>
3809 </actions>
3810 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003811 <listitem name="{@install_kernel=Install Kernel}">
3812 <conditions>
3813 <condition var1="tw_has_boot_slots" var2="1"/>
3814 <condition var1="tw_has_repack_tools" var2="1"/>
3815 </conditions>
3816 <actions>
3817 <action function="set">tw_repack_kernel=1</action>
3818 <action function="page">repackselect</action>
3819 </actions>
3820 </listitem>
3821 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3822 <conditions>
3823 <condition var1="tw_has_boot_slots" var2="1"/>
3824 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwbackbc2cfa32021-09-16 10:04:26 -04003825 <condition var1="tw_uses_initramfs" var2="1"/>
Ethan Yonker53796e72019-01-11 22:49:52 -06003826 </conditions>
3827 <actions>
3828 <action function="set">tw_back=advanced</action>
3829 <action function="set">tw_action=fixabrecoverybootloop</action>
3830 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3831 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3832 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3833 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3834 <action function="page">confirm_action</action>
3835 </actions>
3836 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003837 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3838 <condition var1="tw_app_install_status" var2="1"/>
3839 <actions>
3840 <action function="set">tw_back=advanced</action>
3841 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3842 <action function="page">installapp</action>
3843 </actions>
3844 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003845 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3846 <condition var1="tw_app_installed_in_system" var2="1"/>
3847 <actions>
3848 <action function="set">tw_back=advanced</action>
3849 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3850 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3851 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3852 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3853 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3854 <action function="page">confirm_action</action>
3855 </actions>
3856 </listitem>
bigbiffcfa875c2021-06-20 16:20:27 -04003857 <listitem name="{@unmap_super_devices=Unmap Super Devices}">
me-cafebabe2136fc52022-07-20 06:42:18 +08003858 <condition var1="tw_is_super" op="=" var2="1"/>
bigbiffcfa875c2021-06-20 16:20:27 -04003859 <actions>
3860 <action function="set">tw_back=advanced</action>
3861 <action function="set">tw_action=unmapsuperdevices</action>
3862 <action function="set">tw_text1={@unmap_super_devices_confirm=Unmap all Super Devices?}</action>
3863 <action function="set">tw_action_text1={@unmapping_super_devices=Unmapping Super Devices...}</action>
3864 <action function="set">tw_complete_text1={@unmap_super_devices_complete=Unmapped all Super Devices}</action>
3865 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3866 <action function="page">confirm_action</action>
3867 </actions>
3868 </listitem>
bigbiffd21252f2021-09-18 15:56:32 -04003869 <listitem name="{@merges_snapshots=Merge Snapshots}">
bigbiffab76bd72021-10-11 10:17:48 -04003870 <condition var1="tw_virtual_ab.enabled" op="=" var2="1"/>
bigbiffd21252f2021-09-18 15:56:32 -04003871 <actions>
3872 <action function="set">tw_back=advanced</action>
3873 <action function="set">tw_action=mergesnapshots</action>
3874 <action function="set">tw_text1={@merge_snapshots_confirm=Merge Snapshots?}</action>
3875 <action function="set">tw_action_text1={@merging_snapshots=Merging Snapshots...}</action>
3876 <action function="set">tw_complete_text1={@merging_snapshots_complete=Merged Snapshots}</action>
3877 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3878 <action function="page">confirm_action</action>
3879 </actions>
3880 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003881 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003882
3883 <action>
3884 <touch key="home"/>
3885 <action function="page">main</action>
3886 </action>
3887
3888 <action>
3889 <touch key="back"/>
3890 <action function="page">main</action>
3891 </action>
3892 </page>
3893
Ethan Yonker483e9f42016-01-11 22:21:18 -06003894 <page name="partsdcardsel">
3895 <template name="page"/>
3896
3897 <text style="text_l">
3898 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3899 <text>{@advanced_hdr=Advanced}</text>
3900 </text>
3901
3902 <text style="text_m">
3903 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3904 <text>{@part_sd_hdr=Partition SD Card}</text>
3905 </text>
3906
z31s1g782e1c92016-01-30 16:50:09 +01003907 <partitionlist>
3908 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003909 <text>{@sel_storage_list=Select Storage}</text>
3910 <data name="tw_storage_path"/>
3911 <listtype name="storage"/>
3912 </partitionlist>
3913
z31s1g782e1c92016-01-30 16:50:09 +01003914 <text style="text_m_fail">
3915 <condition var1="partitionlisterror" var2="1"/>
3916 <placement x="%center_x%" y="%row14_y%" placement="5"/>
3917 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3918 </text>
3919
3920 <button style="main_button_half_width">
3921 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003922 <text>{@ok_btn=OK}</text>
3923 <actions>
3924 <action function="getpartitiondetails">tw_storage_path</action>
3925 <action function="page">partsdcardcheck</action>
3926 </actions>
3927 </button>
3928
Ethan Yonker483e9f42016-01-11 22:21:18 -06003929 <action>
3930 <touch key="home"/>
3931 <action function="page">main</action>
3932 </action>
3933
3934 <action>
3935 <touch key="back"/>
3936 <action function="page">advanced</action>
3937 </action>
3938 </page>
3939
3940 <page name="partsdcardcheck">
3941 <action>
3942 <condition var1="tw_partition_removable" op="=" var2="1"/>
3943 <actions>
3944 <action function="set">partitionlisterror=0</action>
3945 <action function="page">partsdcard</action>
3946 </actions>
3947 </action>
3948
3949 <action>
3950 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3951 <actions>
3952 <action function="set">partitionlisterror=1</action>
3953 <action function="page">partsdcardsel</action>
3954 </actions>
3955 </action>
3956 </page>
3957
z31s1g28f0a922015-11-07 18:50:22 +01003958 <page name="partsdcard">
3959 <template name="page"/>
3960
3961 <text style="text_l">
3962 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003963 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003964 </text>
3965
3966 <text style="text_m">
3967 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003968 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003969 </text>
3970
3971 <text style="text_m_fail">
3972 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003973 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003974 </text>
3975
3976 <text style="text_m_fail">
3977 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003978 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003979 </text>
3980
3981 <text style="text_m_accent">
3982 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003983 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003984 </text>
3985
3986 <text style="text_m">
3987 <placement x="%center_x%" y="%row6_y%" placement="5"/>
3988 <text>%tw_sdext_size%</text>
3989 </text>
3990
3991 <button style="button_quarter_width">
3992 <placement x="%btn4_col3_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003993 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003994 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003995 </button>
3996
3997 <button style="button_quarter_width">
3998 <placement x="%btn4_col2_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003999 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004000 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004001 </button>
4002
4003 <text style="text_m_accent">
4004 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004005 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004006 </text>
4007
4008 <text style="text_m">
4009 <placement x="%center_x%" y="%row10_y%" placement="5"/>
4010 <text>%tw_swap_size%</text>
4011 </text>
4012
4013 <button style="button_quarter_width">
4014 <placement x="%btn4_col3_x_left%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004015 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004016 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004017 </button>
4018
4019 <button style="button_quarter_width">
4020 <placement x="%btn4_col2_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004021 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004022 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004023 </button>
4024
4025 <text style="text_m_accent">
4026 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004027 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004028 </text>
4029
4030 <text style="text_m">
4031 <placement x="%center_x%" y="%row14_y%" placement="5"/>
4032 <text>%tw_sdpart_file_system%</text>
4033 </text>
4034
4035 <button style="button_quarter_width">
4036 <placement x="%btn4_col3_x_left%" y="%row13_y%"/>
4037 <text>EXT3</text>
4038 <action function="set">tw_sdpart_file_system=ext3</action>
4039 </button>
4040
4041 <button style="button_quarter_width">
4042 <placement x="%btn4_col2_x_right%" y="%row13_y%"/>
4043 <text>EXT4</text>
4044 <action function="set">tw_sdpart_file_system=ext4</action>
4045 </button>
4046
4047 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004048 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004049 <action function="page">partsdcardaction</action>
4050 <actions>
4051 <action function="set">tw_back=partsdcard</action>
4052 <action function="set">tw_action=partitionsd</action>
4053 <action function="set">tw_has_action2=1</action>
4054 <action function="set">tw_action2=set</action>
4055 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004056 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4057 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4058 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004059 <action function="page">action_page</action>
4060 </actions>
4061 </slider>
4062
4063 <action>
4064 <touch key="home"/>
4065 <action function="page">main</action>
4066 </action>
4067
4068 <action>
4069 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004070 <action function="page">partsdcardsel</action>
z31s1g28f0a922015-11-07 18:50:22 +01004071 </action>
4072 </page>
4073
Ethan Yonker53796e72019-01-11 22:49:52 -06004074 <page name="repackselect">
4075 <template name="page"/>
4076
4077 <text style="text_l">
4078 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4079 <text>{@repack_image_hdr=Select Image}</text>
4080 </text>
4081
4082 <text style="text_m">
4083 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4084 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
4085 </text>
4086
4087 <template name="sort_options"/>
4088
4089 <fileselector>
4090 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4091 <text>%tw_zip_location%</text>
4092 <filter extn=".img" folders="1" files="1"/>
4093 <path name="tw_zip_location" default="/sdcard"/>
4094 <data name="tw_filename"/>
4095 <selection name="tw_file"/>
4096 </fileselector>
4097
4098 <button style="main_button_half_width_low">
4099 <placement x="%col_button_right%" y="%row16a_y%"/>
4100 <text>{@select_storage_btn=Select Storage}</text>
4101 <actions>
4102 <action function="set">tw_back=install</action>
4103 <action function="overlay">select_storage</action>
4104 </actions>
4105 </button>
4106
4107 <action>
4108 <conditions>
4109 <condition var1="tw_filename" op="modified"/>
4110 </conditions>
4111 <action function="page">repackconfirm</action>
4112 </action>
4113
4114 <action>
4115 <touch key="back"/>
4116 <action function="page">advanced</action>
4117 </action>
4118
4119 <action>
4120 <touch key="home"/>
4121 <action function="page">main</action>
4122 </action>
4123 </page>
4124
4125 <page name="repackconfirm">
4126 <template name="page"/>
4127
4128 <text style="text_l">
4129 <condition var1="tw_repack_kernel" var2="1"/>
4130 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4131 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4132 </text>
4133
4134 <text style="text_l">
4135 <condition var1="tw_repack_kernel" var2="0"/>
4136 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4137 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4138 </text>
4139
4140 <text style="text_m">
4141 <condition var1="tw_repack_kernel" var2="1"/>
4142 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4143 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4144 </text>
4145
4146 <text style="text_m">
4147 <condition var1="tw_repack_kernel" var2="0"/>
4148 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4149 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4150 </text>
4151
4152 <text style="text_m_accent">
4153 <placement x="%indent%" y="%row2_y%"/>
4154 <text>{@folder=Folder:}</text>
4155 </text>
4156
4157 <text style="text_m">
4158 <placement x="%indent%" y="%row3_y%"/>
4159 <text>%tw_zip_location%</text>
4160 </text>
4161
4162 <text style="text_m_accent">
4163 <placement x="%indent%" y="%row4_y%"/>
4164 <text>{@file=File:}</text>
4165 </text>
4166
4167 <text style="text_m">
4168 <placement x="%indent%" y="%row5_y%"/>
4169 <text>%tw_file%</text>
4170 </text>
4171
4172 <checkbox>
4173 <placement x="%indent%" y="%row7_y%"/>
4174 <text>{@repack_backup_first=Back up existing image first}</text>
4175 <data variable="tw_repack_backup_first"/>
4176 </checkbox>
4177
4178 <button style="main_button_half_width">
4179 <placement x="%col1_x_left%" y="%row15a_y%"/>
4180 <text>{@install_cancel=Do not Install}</text>
4181 <action function="page">repackselect</action>
4182 </button>
4183
4184 <slider style="slider_centered">
4185 <text>{@swipe_to_install=Swipe to Install}</text>
4186 <actions>
4187 <action function="set">tw_back=advanced</action>
4188 <action function="set">tw_action=repackimage</action>
4189 <action function="set">tw_action_param=/boot</action>
4190 <action function="set">tw_action_text1={@installing=Installing...}</action>
4191 <action function="set">tw_action_text2=</action>
4192 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4193 <action function="page">action_page</action>
4194 </actions>
4195 </slider>
4196
4197 <action>
4198 <touch key="back"/>
4199 <action function="page">repackselect</action>
4200 </action>
4201
4202 <action>
4203 <touch key="home"/>
4204 <action function="page">main</action>
4205 </action>
4206 </page>
4207
z31s1g28f0a922015-11-07 18:50:22 +01004208 <page name="lock">
4209 <background color="%semi_transparent%"/>
4210
4211 <image>
4212 <image resource="unlock_icon"/>
4213 <placement x="%center_x%" y="%row8_y%" placement="4"/>
4214 </image>
4215
4216 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004217 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004218 <action function="overlay"/>
4219 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004220
4221 <action>
4222 <touch key="power"/>
4223 <action function="togglebacklight"/>
4224 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004225 </page>
4226
4227 <page name="filemanagerlist">
4228 <template name="page"/>
4229
4230 <text style="text_l">
4231 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004232 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004233 </text>
4234
4235 <text style="text_m">
4236 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004237 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004238 </text>
4239
4240 <template name="sort_options"/>
4241
4242 <fileselector>
4243 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4244 <text>%tw_file_location1%</text>
4245 <filter folders="1" files="1"/>
4246 <path name="tw_file_location1" default="/"/>
4247 <data name="tw_filename1"/>
4248 <selection name="tw_selection1"/>
4249 </fileselector>
4250
4251 <button style="main_button_half_width_low">
4252 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004253 <text>{@fm_sel_curr_folder=Select Current Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004254 <actions>
4255 <action function="set">tw_filename1=tw_file_location1</action>
4256 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004257 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004258 <action function="page">filemanageroptions</action>
4259 </actions>
4260 </button>
4261
4262 <action>
4263 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004264 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004265 <action function="set">tw_fm_isfolder=0</action>
4266 </actions>
4267 </action>
4268
4269 <action>
4270 <touch key="home"/>
4271 <action function="page">main</action>
4272 </action>
4273
4274 <action>
4275 <touch key="back"/>
4276 <action function="page">advanced</action>
4277 </action>
4278
4279 <action>
4280 <condition var1="tw_filename1" op="modified"/>
4281 <action function="page">filemanageroptions</action>
4282 </action>
4283 </page>
4284
4285 <page name="filemanageroptions">
4286 <template name="page"/>
4287
4288 <text style="text_l">
4289 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004290 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004291 </text>
4292
4293 <text style="text_m">
4294 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004295 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004296 </text>
4297
4298 <text style="text_m_accent">
4299 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004300 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004301 </text>
4302
4303 <text style="text_m">
4304 <placement x="%col1_x_left%" y="%row3_y%"/>
4305 <text>%tw_filename1%</text>
4306 </text>
4307
4308 <button style="main_button_half_width">
4309 <condition var1="tw_fm_isfolder" var2="0"/>
4310 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004311 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004312 <actions>
4313 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004314 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004315 <action function="page">choosedestinationfolder</action>
4316 </actions>
4317 </button>
4318
4319 <button style="main_button_half_width">
4320 <condition var1="tw_fm_isfolder" var2="1"/>
4321 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004322 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004323 <actions>
4324 <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 -05004325 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004326 <action function="page">choosedestinationfolder</action>
4327 </actions>
4328 </button>
4329
4330 <button style="main_button_half_width">
Captain Throwback16dd81b2021-02-12 19:32:36 -05004331edi <conditions>
4332 <condition var1="tw_include_nano" var2="1"/>
4333 <condition var1="tw_fm_isfolder" var2="0"/>
4334 </conditions>
4335 <placement x="%col1_x_left%" y="%row15a_y%"/>
4336 <text>{@fm_edit_file=Edit File}</text>
4337 <actions>
4338 <action function="editfile">nano "%tw_filename1%"</action>
4339 <action function="page">terminalcommand</action>
4340 </actions>
4341 </button>
4342
4343 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004344 <placement x="%col2_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004345 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004346 <actions>
4347 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004348 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004349 <action function="page">choosedestinationfolder</action>
4350 </actions>
4351 </button>
4352
4353 <button style="main_button_half_width">
4354 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004355 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004356 <actions>
4357 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004358 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004359 <action function="set">tw_fm_text2=</action>
4360 <action function="set">tw_fm_text3=</action>
4361 <action function="set">tw_include_text3=0</action>
4362 <action function="set">tw_back=filemanageroptions</action>
4363 <action function="page">filemanagerconfirm</action>
4364 </actions>
4365 </button>
4366
4367 <button style="main_button_half_width">
4368 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004369 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004370 <actions>
4371 <action function="set">tw_filemanager_rename=0000</action>
4372 <action function="set">tw_fm_text2=</action>
4373 <action function="set">tw_fm_text3=</action>
4374 <action function="set">tw_include_text3=0</action>
4375 <action function="set">tw_back=filemanageroptions</action>
4376 <action function="page">filemanagerchmod</action>
4377 </actions>
4378 </button>
4379
4380 <button style="main_button_half_width">
Mohd Faraz77bbeb02020-08-12 12:29:42 +00004381 <condition var1="tw_fm_isfolder" var2="1"/>
4382 <placement x="%col2_x_right%" y="%row15a_y%"/>
4383 <text>{@fm_open_terminal_btn=Open Terminal Here}</text>
4384 <action function="changeterminal">%tw_filename1%</action>
4385 </button>
4386
4387 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004388 <placement x="%col2_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004389 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004390 <actions>
4391 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004392 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004393 <action function="set">tw_fm_text2=</action>
4394 <action function="set">tw_fm_text3=</action>
4395 <action function="set">tw_include_text3=0</action>
4396 <action function="set">tw_back=filemanageroptions</action>
4397 <action function="page">filemanagerconfirm</action>
4398 </actions>
4399 </button>
4400
4401 <button style="main_button_half_width">
4402 <condition var1="tw_fm_isfolder" var2="0"/>
4403 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004404 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004405 <actions>
4406 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004407 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004408 <action function="set">tw_filemanager_command=mv</action>
4409 <action function="page">filemanagerrenamefile</action>
4410 </actions>
4411 </button>
4412
4413 <button style="main_button_half_width">
4414 <condition var1="tw_fm_isfolder" var2="1"/>
4415 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004416 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004417 <actions>
4418 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004419 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004420 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4421 <action function="page">filemanagerrenamefolder</action>
4422 </actions>
4423 </button>
4424
4425 <action>
4426 <touch key="home"/>
4427 <action function="page">main</action>
4428 </action>
4429
4430 <action>
4431 <touch key="back"/>
4432 <action function="page">filemanagerlist</action>
4433 </action>
4434 </page>
4435
4436 <page name="choosedestinationfolder">
4437 <template name="page"/>
4438
4439 <text style="text_l">
4440 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004441 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004442 </text>
4443
4444 <text style="text_m">
4445 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004446 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004447 </text>
4448
4449 <template name="sort_options"/>
4450
4451 <fileselector>
4452 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4453 <text>%tw_file_location2%</text>
4454 <filter folders="1" files="0"/>
4455 <path name="tw_file_location2" default="/"/>
4456 <data name="tw_filename2"/>
4457 <selection name="tw_selection2"/>
4458 </fileselector>
4459
4460 <button style="main_button_half_width_low">
4461 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004462 <text>{@fm_sel_curr_folder=Select Current Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004463 <actions>
4464 <action function="set">tw_fm_text2=to</action>
4465 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4466 <action function="set">tw_include_text3=1</action>
4467 <action function="set">tw_back=filemanageroptions</action>
4468 <action function="page">filemanagerconfirm</action>
4469 </actions>
4470 </button>
4471
4472 <action>
4473 <touch key="home"/>
4474 <action function="page">main</action>
4475 </action>
4476
4477 <action>
4478 <touch key="back"/>
4479 <action function="page">filemanageroptions</action>
4480 </action>
4481 </page>
4482
4483 <page name="filemanagerrenamefile">
4484 <template name="page"/>
4485
4486 <text style="text_l">
4487 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004488 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004489 </text>
4490
4491 <text style="text_m">
4492 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004493 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004494 </text>
4495
4496 <text style="text_m_accent">
4497 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004498 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004499 </text>
4500
4501 <input>
4502 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4503 <text>%tw_filemanager_rename%</text>
4504 <data name="tw_filemanager_rename"/>
4505 <restrict minlen="1" maxlen="128"/>
4506 <actions>
4507 <action function="set">tw_fm_text2=to</action>
4508 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4509 <action function="set">tw_include_text3=1</action>
4510 <action function="set">tw_back=filemanageroptions</action>
4511 <action function="page">filemanagerconfirm</action>
4512 </actions>
4513 </input>
4514
4515 <fill color="%accent_color%">
4516 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4517 </fill>
4518
4519 <button style="main_button_half_width_low">
4520 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004521 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004522 <action function="page">filemanageroptions</action>
4523 </button>
4524
4525 <template name="keyboardtemplate"/>
4526
4527 <action>
4528 <touch key="home"/>
4529 <action function="page">main</action>
4530 </action>
4531
4532 <action>
4533 <touch key="back"/>
4534 <action function="page">filemanageroptions</action>
4535 </action>
4536 </page>
4537
4538 <page name="filemanagerrenamefolder">
4539 <template name="page"/>
4540
4541 <text style="text_l">
4542 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004543 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004544 </text>
4545
4546 <text style="text_m">
4547 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004548 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004549 </text>
4550
4551 <text style="text_m_accent">
4552 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004553 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004554 </text>
4555
4556 <input>
4557 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4558 <text>%tw_filemanager_rename%</text>
4559 <data name="tw_filemanager_rename"/>
4560 <restrict minlen="1" maxlen="128"/>
4561 <actions>
4562 <action function="set">tw_fm_text2=to</action>
4563 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4564 <action function="set">tw_include_text3=1</action>
4565 <action function="set">tw_back=filemanageroptions</action>
4566 <action function="page">filemanagerconfirm</action>
4567 </actions>
4568 </input>
4569
4570 <fill color="%accent_color%">
4571 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4572 </fill>
4573
4574 <button style="main_button_half_width_low">
4575 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004576 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004577 <action function="page">filemanageroptions</action>
4578 </button>
4579
4580 <template name="keyboardtemplate"/>
4581
4582 <action>
4583 <touch key="home"/>
4584 <action function="page">main</action>
4585 </action>
4586
4587 <action>
4588 <touch key="back"/>
4589 <action function="page">filemanageroptions</action>
4590 </action>
4591 </page>
4592
4593 <page name="filemanagerchmod">
4594 <template name="page"/>
4595
4596 <text style="text_l">
4597 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004598 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004599 </text>
4600
4601 <text style="text_m">
4602 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004603 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004604 </text>
4605
4606 <text style="text_m_accent">
4607 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004608 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004609 </text>
4610
4611 <input>
4612 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4613 <text>%tw_filemanager_rename%</text>
4614 <data name="tw_filemanager_rename"/>
4615 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4616 <actions>
4617 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4618 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4619 <action function="set">tw_back=filemanageroptions</action>
4620 <action function="page">filemanagerconfirm</action>
4621 </actions>
4622 </input>
4623
4624 <fill color="%accent_color%">
4625 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4626 </fill>
4627
4628 <button style="main_button_half_width_low">
4629 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004630 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004631 <action function="page">filemanageroptions</action>
4632 </button>
4633
4634 <template name="keyboardtemplate"/>
4635
4636 <action>
4637 <touch key="home"/>
4638 <action function="page">main</action>
4639 </action>
4640
4641 <action>
4642 <touch key="back"/>
4643 <action function="page">filemanageroptions</action>
4644 </action>
4645 </page>
4646
4647 <page name="filemanagerconfirm">
4648 <template name="page"/>
4649
4650 <text style="text_l">
4651 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004652 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004653 </text>
4654
4655 <text style="text_m">
4656 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004657 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004658 </text>
4659
4660 <text style="text_m_accent">
4661 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4662 <text>%tw_fm_text1%</text>
4663 </text>
4664
4665 <text style="text_m">
4666 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4667 <text>%tw_filename1%</text>
4668 </text>
4669
4670 <text style="text_m_accent">
4671 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4672 <text>%tw_fm_text2%</text>
4673 </text>
4674
4675 <text style="text_m">
4676 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4677 <text>%tw_fm_text3%</text>
4678 </text>
4679
4680 <text style="text_m">
4681 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004682 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004683 </text>
4684
4685 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004686 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004687 <action function="page">filemanageraction</action>
4688 </slider>
4689
4690 <action>
4691 <touch key="back"/>
4692 <action function="page">%tw_back%</action>
4693 </action>
4694
4695 <action>
4696 <touch key="home"/>
4697 <action function="page">main</action>
4698 </action>
4699 </page>
4700
4701 <page name="filemanageraction">
4702 <template name="page"/>
4703
4704 <text style="text_l">
4705 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004706 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004707 </text>
4708
4709 <text style="text_m">
4710 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4711 <text>%tw_fm_text1%</text>
4712 </text>
4713
4714 <template name="console"/>
4715
4716 <template name="progress_bar"/>
4717
4718 <action>
4719 <conditions>
4720 <condition var1="tw_operation_state" var2="1"/>
4721 <condition var1="tw_operation_status" var2="0"/>
4722 </conditions>
4723 <actions>
4724 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004725 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004726 <action function="page">action_complete</action>
4727 </actions>
4728 </action>
4729
4730 <action>
4731 <conditions>
4732 <condition var1="tw_operation_state" var2="1"/>
4733 <condition var1="tw_operation_status" op="!=" var2="0"/>
4734 </conditions>
4735 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004736 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004737 <action function="page">action_complete</action>
4738 </actions>
4739 </action>
4740
4741 <action>
4742 <condition var1="tw_include_text3" var2="0"/>
4743 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4744 </action>
4745
4746 <action>
4747 <condition var1="tw_include_text3" var2="1"/>
4748 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4749 </action>
4750 </page>
4751
4752 <page name="decrypt">
4753 <template name="page"/>
4754
4755 <action>
4756 <condition var1="tw_crypto_pwtype" var2="2"/>
4757 <action function="page">decrypt_pattern</action>
4758 </action>
4759
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04004760 <action>
4761 <condition var1="tw_crypto_pwtype" var2="3"/>
4762 <action function="page">decrypt_pin</action>
4763 </action>
4764
z31s1g28f0a922015-11-07 18:50:22 +01004765 <text style="text_l">
4766 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004767 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004768 </text>
4769
4770 <text style="text_m">
4771 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004772 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004773 </text>
4774
4775 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004776 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004777 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004778 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004779 </text>
4780
Noah Jacobson81d638d2019-04-28 00:10:07 -04004781 <text style="text_m_accent">
4782 <condition var1="tw_is_fbe" var2="1"/>
4783 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4784 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4785 </text>
4786
z31s1g28f0a922015-11-07 18:50:22 +01004787 <input>
4788 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4789 <text>%tw_crypto_display%</text>
4790 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4791 <restrict minlen="1" maxlen="254"/>
4792 <action function="page">trydecrypt</action>
4793 </input>
4794
4795 <fill color="%accent_color%">
4796 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
4797 </fill>
4798
4799 <fill color="%text_fail_color%">
4800 <condition var1="tw_password_fail" var2="1"/>
4801 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
4802 </fill>
4803
4804 <text style="text_m_fail">
4805 <condition var1="tw_password_fail" var2="1"/>
4806 <placement x="%col1_x_left%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004807 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004808 </text>
4809
4810 <button style="main_button_half_width_low">
4811 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004812 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05004813 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004814 </button>
4815
z31s1g608d7ff2016-01-18 19:47:25 +01004816 <button style="main_button_half_width_low">
4817 <placement x="%indent_right%" y="%row6_y%" placement="1"/>
4818 <text>{@sel_lang_btn=Select Language}</text>
4819 <action function="overlay">select_language</action>
4820 </button>
4821
z31s1g28f0a922015-11-07 18:50:22 +01004822 <template name="keyboardtemplate"/>
4823 </page>
4824
4825 <page name="decrypt_pattern">
4826 <template name="page"/>
4827
4828 <text style="text_l">
4829 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004830 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004831 </text>
4832
4833 <text style="text_m">
4834 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004835 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004836 </text>
4837
4838 <text style="text_m_accent">
Aleksa Saraib25a1832015-12-31 17:36:00 +01004839 <placement x="%col2_x_left%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004840 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004841 </text>
4842
Aleksa Saraib25a1832015-12-31 17:36:00 +01004843 <text style="text_m_fail">
4844 <condition var1="tw_password_fail" var2="1"/>
4845 <placement x="%col2_x_left%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004846 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004847 </text>
4848
z31s1g28f0a922015-11-07 18:50:22 +01004849 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004850 <placement x="%pattern_x%" y="%row4a_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004851 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4852 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4853 <data name="tw_crypto_password"/>
4854 <action function="page">trydecrypt</action>
4855 </patternpassword>
4856
Aleksa Saraib25a1832015-12-31 17:36:00 +01004857 <button style="main_button_half_width_low">
4858 <placement x="%col_button_right%" y="%row1a_y%"/>
4859 <text>3x3</text>
4860 <action function="set">tw_gui_pattern_grid_size=3</action>
4861 </button>
4862
4863 <button style="main_button_half_width_low">
4864 <placement x="%col_button_right%" y="%row4a_y%"/>
4865 <text>4x4</text>
4866 <action function="set">tw_gui_pattern_grid_size=4</action>
4867 </button>
4868
4869 <button style="main_button_half_width_low">
4870 <placement x="%col_button_right%" y="%row7a_y%"/>
4871 <text>5x5</text>
4872 <action function="set">tw_gui_pattern_grid_size=5</action>
4873 </button>
4874
4875 <button style="main_button_half_width_low">
4876 <placement x="%col_button_right%" y="%row10a_y%"/>
4877 <text>6x6</text>
4878 <action function="set">tw_gui_pattern_grid_size=6</action>
4879 </button>
4880
z31s1g28f0a922015-11-07 18:50:22 +01004881 <button style="main_button_half_width">
z31s1g608d7ff2016-01-18 19:47:25 +01004882 <placement x="%col1_x_right%" y="%row15a_y%"/>
4883 <text>{@sel_lang_btn=Select Language}</text>
4884 <action function="overlay">select_language</action>
4885 </button>
4886
4887 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004888 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004889 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05004890 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004891 </button>
4892 </page>
4893
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04004894 <page name="decrypt_pin">
4895 <template name="page"/>
4896
4897 <text style="text_l">
4898 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4899 <text>{@mount_hdr=Mount}</text>
4900 </text>
4901
4902 <text style="text_m">
4903 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4904 <text>{@decrypt_data_hdr=Decrypt Data}</text>
4905 </text>
4906
4907 <text style="text_m_accent">
4908 <condition var1="tw_is_fbe" op="!=" var2="1"/>
4909 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4910 <text>{@decrypt_data_enter_pass=Enter PIN:}</text>
4911 </text>
4912
4913 <text style="text_m_accent">
4914 <condition var1="tw_is_fbe" var2="1"/>
4915 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4916 <text>{@decrypt_data_enter_pass_fbe=Enter PIN for User [%tw_crypto_user_id%]}</text>
4917 </text>
4918
4919 <input>
4920 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4921 <text>%tw_crypto_display%</text>
4922 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4923 <restrict minlen="1" maxlen="254"/>
4924 <action function="page">trydecrypt</action>
4925 </input>
4926
4927 <fill color="%accent_color%">
4928 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
4929 </fill>
4930
4931 <fill color="%text_fail_color%">
4932 <condition var1="tw_password_fail" var2="1"/>
4933 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
4934 </fill>
4935
4936 <text style="text_m_fail">
4937 <condition var1="tw_password_fail" var2="1"/>
4938 <placement x="%col1_x_left%" y="%row5_y%"/>
4939 <text>{@decrypt_data_failed=PIN failed, please try again!}</text>
4940 </text>
4941
4942 <button style="main_button_half_width_low">
4943 <placement x="%indent%" y="%row6_y%"/>
4944 <text>{@cancel_btn=Cancel}</text>
4945 <action function="page">canceldecrypt</action>
4946 </button>
4947
4948 <button style="main_button_half_width_low">
4949 <placement x="%indent_right%" y="%row6_y%" placement="1"/>
4950 <text>{@sel_lang_btn=Select Language}</text>
4951 <action function="overlay">select_language</action>
4952 </button>
4953
4954 <template name="keyboardnum"/>
4955 </page>
4956
z31s1g28f0a922015-11-07 18:50:22 +01004957 <page name="trydecrypt">
4958 <template name="page"/>
4959
4960 <text style="text_l">
4961 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004962 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004963 </text>
4964
4965 <text style="text_m">
4966 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004967 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004968 </text>
4969
4970 <template name="console"/>
4971
4972 <template name="progress_bar"/>
4973
4974 <action>
4975 <action function="decrypt"/>
4976 </action>
4977
4978 <action>
4979 <conditions>
4980 <condition var1="tw_operation_state" var2="1"/>
4981 <condition var1="tw_operation_status" op="!=" var2="0"/>
4982 </conditions>
4983 <actions>
4984 <action function="set">tw_password_fail=1</action>
4985 <action function="page">decrypt</action>
4986 </actions>
4987 </action>
4988
4989 <action>
4990 <conditions>
4991 <condition var1="tw_operation_state" var2="1"/>
4992 <condition var1="tw_operation_status" op="=" var2="0"/>
4993 </conditions>
4994 <actions>
4995 <action function="set">tw_page_done=1</action>
4996 <action function="page">main</action>
4997 </actions>
4998 </action>
4999 </page>
5000
Captain Throwback89b56a12021-02-10 18:25:07 -05005001 <page name="canceldecrypt">
5002 <template name="page"/>
5003
5004 <text style="text_l">
5005 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5006 <text>{@cancel_btn=Cancel}</text>
5007 </text>
5008
5009 <text style="text_m">
5010 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5011 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
5012 </text>
5013
5014 <template name="console"/>
5015
5016 <template name="progress_bar"/>
5017
5018 <action>
5019 <action function="refreshsizes"/>
5020 </action>
5021
5022 <action>
5023 <conditions>
5024 <condition var1="tw_operation_state" var2="1"/>
5025 </conditions>
5026 <actions>
5027 <action function="set">tw_page_done=1</action>
5028 <action function="page">main</action>
5029 </actions>
5030 </action>
5031 </page>
5032
z31s1g28f0a922015-11-07 18:50:22 +01005033 <page name="terminalcommand">
5034 <template name="page"/>
5035
5036 <fill color="%background_color%">
5037 <placement x="0" y="%status_height%" w="%screen_width%" h="%header_height%"/>
5038 </fill>
5039
z31s1g56189522016-01-13 19:12:40 +01005040 <terminal>
5041 <condition var1="tw_hide_kb" var2="0"/>
5042 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%terminal_s_height%"/>
5043 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005044
z31s1g56189522016-01-13 19:12:40 +01005045 <terminal>
5046 <condition var1="tw_hide_kb" var2="1"/>
5047 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%terminal_l_height%"/>
5048 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005049
z31s1g56189522016-01-13 19:12:40 +01005050 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005051
z31s1g56189522016-01-13 19:12:40 +01005052 <object type="fill" color="#000000">
5053 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
5054 </object>
z31s1g28f0a922015-11-07 18:50:22 +01005055
z31s1g608d7ff2016-01-18 19:47:25 +01005056 <button>
z31s1g56189522016-01-13 19:12:40 +01005057 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5058 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5059 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5060 <image resource="back" />
5061 <condition var1="tw_busy" var2="0" />
5062 <actions>
5063 <action function="set">tw_hide_kb=0</action>
5064 <action function="page">advanced</action>
5065 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005066 </button>
z31s1g56189522016-01-13 19:12:40 +01005067
z31s1g608d7ff2016-01-18 19:47:25 +01005068 <button>
z31s1g56189522016-01-13 19:12:40 +01005069 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5070 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5071 <condition var1="tw_hide_kb" op="=" var2="0" />
5072 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5073 <image resource="kb_hide" />
5074 <condition var1="tw_busy" var2="0" />
5075 <actions>
5076 <action function="set">tw_hide_kb=1</action>
5077 <action function="page">terminalcommand</action>
5078 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005079 </button>
z31s1g56189522016-01-13 19:12:40 +01005080
z31s1g608d7ff2016-01-18 19:47:25 +01005081 <button>
z31s1g56189522016-01-13 19:12:40 +01005082 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5083 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5084 <condition var1="tw_hide_kb" op="=" var2="1" />
5085 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5086 <image resource="kb_show" />
5087 <condition var1="tw_busy" var2="0" />
5088 <actions>
5089 <action function="set">tw_hide_kb=0</action>
5090 <action function="page">terminalcommand</action>
5091 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005092 </button>
z31s1g56189522016-01-13 19:12:40 +01005093
z31s1g608d7ff2016-01-18 19:47:25 +01005094 <button>
z31s1g56189522016-01-13 19:12:40 +01005095 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5096 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5097 <image resource="home" />
5098 <condition var1="tw_busy" var2="0" />
5099 <actions>
5100 <action function="set">tw_hide_kb=0</action>
5101 <action function="key">home</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005102 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005103 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005104 </button>
z31s1g56189522016-01-13 19:12:40 +01005105
z31s1g608d7ff2016-01-18 19:47:25 +01005106 <button>
z31s1g56189522016-01-13 19:12:40 +01005107 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5108 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5109 <condition var1="tw_hide_kb" op="=" var2="0" />
5110 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5111 <image resource="kb_hide" />
5112 <condition var1="tw_busy" var2="0" />
5113 <actions>
5114 <action function="set">tw_hide_kb=1</action>
5115 <action function="page">terminalcommand</action>
5116 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005117 </button>
z31s1g56189522016-01-13 19:12:40 +01005118
z31s1g608d7ff2016-01-18 19:47:25 +01005119 <button>
z31s1g56189522016-01-13 19:12:40 +01005120 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5121 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5122 <condition var1="tw_hide_kb" op="=" var2="1" />
5123 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5124 <image resource="kb_show" />
5125 <condition var1="tw_busy" var2="0" />
5126 <actions>
5127 <action function="set">tw_hide_kb=0</action>
5128 <action function="page">terminalcommand</action>
5129 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005130 </button>
z31s1g56189522016-01-13 19:12:40 +01005131
z31s1g608d7ff2016-01-18 19:47:25 +01005132 <button>
z31s1g56189522016-01-13 19:12:40 +01005133 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5134 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5135 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5136 <image resource="back" />
5137 <condition var1="tw_busy" var2="0" />
5138 <actions>
5139 <action function="set">tw_hide_kb=0</action>
5140 <action function="page">advanced</action>
5141 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005142 </button>
z31s1g56189522016-01-13 19:12:40 +01005143
z31s1g608d7ff2016-01-18 19:47:25 +01005144 <button>
z31s1g56189522016-01-13 19:12:40 +01005145 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5146 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5147 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5148 <image resource="back" />
5149 <condition var1="tw_busy" var2="0" />
5150 <actions>
5151 <action function="set">tw_hide_kb=0</action>
5152 <action function="page">advanced</action>
5153 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005154 </button>
z31s1g56189522016-01-13 19:12:40 +01005155
z31s1g608d7ff2016-01-18 19:47:25 +01005156 <button>
z31s1g56189522016-01-13 19:12:40 +01005157 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5158 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5159 <condition var1="tw_hide_kb" op="=" var2="0" />
5160 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5161 <image resource="kb_hide" />
5162 <condition var1="tw_busy" var2="0" />
5163 <actions>
5164 <action function="set">tw_hide_kb=1</action>
5165 <action function="page">terminalcommand</action>
5166 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005167 </button>
z31s1g56189522016-01-13 19:12:40 +01005168
z31s1g608d7ff2016-01-18 19:47:25 +01005169 <button>
z31s1g56189522016-01-13 19:12:40 +01005170 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5171 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5172 <condition var1="tw_hide_kb" op="=" var2="1" />
5173 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5174 <image resource="kb_show" />
5175 <condition var1="tw_busy" var2="0" />
5176 <actions>
5177 <action function="set">tw_hide_kb=0</action>
5178 <action function="page">terminalcommand</action>
5179 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005180 </button>
z31s1g56189522016-01-13 19:12:40 +01005181
z31s1g608d7ff2016-01-18 19:47:25 +01005182 <button>
z31s1g56189522016-01-13 19:12:40 +01005183 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5184 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5185 <image resource="home" />
5186 <condition var1="tw_busy" var2="0" />
5187 <actions>
5188 <action function="set">tw_hide_kb=0</action>
5189 <action function="key">home</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005190 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005191 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005192 </button>
z31s1g56189522016-01-13 19:12:40 +01005193
z31s1g608d7ff2016-01-18 19:47:25 +01005194 <button>
z31s1g56189522016-01-13 19:12:40 +01005195 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5196 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5197 <condition var1="tw_hide_kb" op="=" var2="0" />
5198 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5199 <image resource="kb_hide" />
5200 <condition var1="tw_busy" var2="0" />
5201 <actions>
5202 <action function="set">tw_hide_kb=1</action>
5203 <action function="page">terminalcommand</action>
5204 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005205 </button>
z31s1g56189522016-01-13 19:12:40 +01005206
z31s1g608d7ff2016-01-18 19:47:25 +01005207 <button>
z31s1g56189522016-01-13 19:12:40 +01005208 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5209 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5210 <condition var1="tw_hide_kb" op="=" var2="1" />
5211 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5212 <image resource="kb_show" />
5213 <condition var1="tw_busy" var2="0" />
5214 <actions>
5215 <action function="set">tw_hide_kb=0</action>
5216 <action function="page">terminalcommand</action>
5217 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005218 </button>
z31s1g56189522016-01-13 19:12:40 +01005219
z31s1g608d7ff2016-01-18 19:47:25 +01005220 <button>
z31s1g56189522016-01-13 19:12:40 +01005221 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5222 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5223 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5224 <image resource="back" />
5225 <condition var1="tw_busy" var2="0" />
5226 <actions>
5227 <action function="set">tw_hide_kb=0</action>
5228 <action function="page">advanced</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005229 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005230 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005231 </button>
z31s1g56189522016-01-13 19:12:40 +01005232
z31s1g608d7ff2016-01-18 19:47:25 +01005233 <button>
z31s1g56189522016-01-13 19:12:40 +01005234 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5235 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5236 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5237 <image resource="back" />
5238 <condition var1="tw_busy" var2="0" />
5239 <actions>
5240 <action function="set">tw_hide_kb=0</action>
5241 <action function="page">advanced</action>
5242 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005243 </button>
z31s1g56189522016-01-13 19:12:40 +01005244
z31s1g608d7ff2016-01-18 19:47:25 +01005245 <button>
z31s1g56189522016-01-13 19:12:40 +01005246 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5247 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5248 <condition var1="tw_hide_kb" op="=" var2="0" />
5249 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5250 <image resource="kb_hide" />
5251 <condition var1="tw_busy" var2="0" />
5252 <actions>
5253 <action function="set">tw_hide_kb=1</action>
5254 <action function="page">terminalcommand</action>
5255 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005256 </button>
z31s1g56189522016-01-13 19:12:40 +01005257
z31s1g608d7ff2016-01-18 19:47:25 +01005258 <button>
z31s1g56189522016-01-13 19:12:40 +01005259 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5260 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5261 <condition var1="tw_hide_kb" op="=" var2="1" />
5262 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5263 <image resource="kb_show" />
5264 <condition var1="tw_busy" var2="0" />
5265 <actions>
5266 <action function="set">tw_hide_kb=0</action>
5267 <action function="page">terminalcommand</action>
5268 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005269 </button>
z31s1g56189522016-01-13 19:12:40 +01005270
z31s1g608d7ff2016-01-18 19:47:25 +01005271 <button>
z31s1g56189522016-01-13 19:12:40 +01005272 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5273 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5274 <image resource="home" />
5275 <condition var1="tw_busy" var2="0" />
5276 <actions>
5277 <action function="set">tw_hide_kb=0</action>
5278 <action function="key">home</action>
5279 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005280 </button>
z31s1g56189522016-01-13 19:12:40 +01005281
z31s1g608d7ff2016-01-18 19:47:25 +01005282 <button>
z31s1g56189522016-01-13 19:12:40 +01005283 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5284 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5285 <condition var1="tw_hide_kb" op="=" var2="0" />
5286 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5287 <image resource="kb_hide" />
5288 <condition var1="tw_busy" var2="0" />
5289 <actions>
5290 <action function="set">tw_hide_kb=1</action>
5291 <action function="page">terminalcommand</action>
5292 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005293 </button>
z31s1g56189522016-01-13 19:12:40 +01005294
z31s1g608d7ff2016-01-18 19:47:25 +01005295 <button>
z31s1g56189522016-01-13 19:12:40 +01005296 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5297 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5298 <condition var1="tw_hide_kb" op="=" var2="1" />
5299 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5300 <image resource="kb_show" />
5301 <condition var1="tw_busy" var2="0" />
5302 <actions>
5303 <action function="set">tw_hide_kb=0</action>
5304 <action function="page">terminalcommand</action>
5305 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005306 </button>
z31s1g56189522016-01-13 19:12:40 +01005307
z31s1g608d7ff2016-01-18 19:47:25 +01005308 <button>
z31s1g56189522016-01-13 19:12:40 +01005309 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5310 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5311 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5312 <image resource="back" />
5313 <condition var1="tw_busy" var2="0" />
5314 <actions>
5315 <action function="set">tw_hide_kb=0</action>
5316 <action function="page">advanced</action>
5317 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005318 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005319
5320 <action>
5321 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005322 <actions>
5323 <action function="page">main</action>
5324 <action function="set">tw_hide_kb=0</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005325 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005326 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005327 </action>
5328
5329 <action>
5330 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005331 <actions>
5332 <action function="page">advanced</action>
5333 <action function="set">tw_hide_kb=0</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005334 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005335 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005336 </action>
z31s1g56189522016-01-13 19:12:40 +01005337
5338 <object type="action">
5339 <touch key="power+voldown" />
5340 <action function="screenshot" />
5341 </object>
z31s1g28f0a922015-11-07 18:50:22 +01005342 </page>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005343
bigbiffdf8436b2020-08-30 16:22:34 -04005344 <page name="fastboot">
5345 <template name="page"/>
5346
5347 <text style="text_l">
5348 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5349 <text>{@fastboot_button=Fastboot}</text>
5350 </text>
5351
5352 <template name="console"/>
5353
5354 <template name="progress_bar"/>
5355
5356 <button style="main_button_half_width">
5357 <condition var1="tw_enable_fastboot" op="=" var2="1" />
bigbiff7138a0f2020-10-24 19:52:25 -04005358 <placement x="%col1_x_left%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005359 <text>{@enable_adb=Enable ADB}</text>
5360 <actions>
5361 <action function="enableadb"/>
5362 <action function="set">tw_enable_adb=1</action>
5363 <action function="set">tw_enable_fastboot=0</action>
5364 </actions>
5365 </button>
5366
5367 <button style="main_button_half_width">
5368 <condition var1="tw_enable_adb" op="=" var2="1" />
bigbiff7138a0f2020-10-24 19:52:25 -04005369 <placement x="%col1_x_left%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005370 <text>{@enable_fastboot=Enable Fastboot}</text>
5371 <actions>
5372 <action function="enablefastboot"/>
5373 <action function="set">tw_enable_fastboot=1</action>
5374 <action function="set">tw_enable_adb=0</action>
5375 </actions>
5376 </button>
5377
5378 <button style="main_button_half_width">
bigbiff7138a0f2020-10-24 19:52:25 -04005379 <placement x="%col2_x_right%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005380 <text>{@reboot_btn=Reboot}</text>
5381 <action function="page">fastbootreboot</action>
5382 </button>
5383 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005384
5385 <page name="sideload">
5386 <template name="page"/>
5387
5388 <text style="text_l">
5389 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005390 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005391 </text>
5392
5393 <text style="text_m">
5394 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005395 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005396 </text>
5397
5398 <checkbox>
5399 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005400 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005401 <data variable="tw_wipe_dalvik"/>
5402 </checkbox>
5403
5404 <checkbox>
5405 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005406 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005407 <data variable="tw_wipe_cache"/>
5408 </checkbox>
5409
5410 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05005411 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005412 <actions>
5413 <action function="set">tw_back=advanced</action>
5414 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005415 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5416 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5417 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005418 <action function="set">tw_has_cancel=1</action>
5419 <action function="set">tw_show_reboot=1</action>
5420 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5421 <action function="page">action_page</action>
5422 </actions>
5423 </slider>
5424
5425 <action>
5426 <touch key="home"/>
5427 <action function="page">main</action>
5428 </action>
5429
5430 <action>
5431 <touch key="back"/>
5432 <action function="page">advanced</action>
5433 </action>
5434 </page>
5435
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005436 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005437 <template name="page"/>
5438
5439 <text style="text_l">
5440 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005441 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005442 </text>
5443
5444 <text style="text_m">
5445 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005446 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005447 </text>
5448
5449 <text style="text_m_accent">
5450 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005451 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005452 </text>
5453
z31s1g28f0a922015-11-07 18:50:22 +01005454 <text style="text_m_fail">
5455 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005456 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005457 </text>
5458
5459 <text style="text_m_fail">
5460 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005461 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005462 </text>
5463
5464 <slider style="slider_centered">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005465 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005466 <actions>
5467 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005468 <action function="set">tw_action=fixcontexts</action>
5469 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5470 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005471 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005472 <action function="set">tw_show_reboot=1</action>
5473 <action function="page">action_page</action>
5474 </actions>
5475 </slider>
5476
5477 <action>
5478 <touch key="home"/>
5479 <action function="page">main</action>
5480 </action>
5481
5482 <action>
5483 <touch key="back"/>
5484 <action function="page">advanced</action>
5485 </action>
5486 </page>
5487
z31s1g28f0a922015-11-07 18:50:22 +01005488 <page name="slideout">
5489 <fill color="%background_color%">
5490 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5491 </fill>
5492
5493 <console>
5494 <placement x="%col1_x_left%" y="%slideout_y%" w="%content_width%" h="%slideout_height%"/>
5495 </console>
5496
5497 <button>
5498 <fill color="%transparent%"/>
5499 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5500 <action function="overlay"/>
5501 </button>
5502
5503 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005504 <touch key="power"/>
5505 <action function="togglebacklight"/>
5506 </action>
5507
5508 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005509 <touch key="power+voldown"/>
5510 <action function="screenshot"/>
5511 </action>
5512 </page>
5513
5514 <page name="select_storage">
5515 <fill color="%semi_transparent%">
5516 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5517 </fill>
5518
5519 <fill color="%background_color%">
5520 <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/>
5521 </fill>
5522
5523 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005524 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005525 <data name="tw_storage_path"/>
5526 <listtype name="storage"/>
5527 </partitionlist>
5528
5529 <button style="button_third_width">
5530 <placement x="%dialog_button_x%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005531 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005532 <actions>
5533 <action function="set">tw_clear_destination=%tw_back%</action>
5534 <action function="overlay"/>
5535 <action function="page">clear_vars</action>
5536 </actions>
5537 </button>
5538
5539 <fill color="#000000">
5540 <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/>
5541 </fill>
5542
5543 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005544 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5545 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5546 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5547 <image resource="back" />
5548 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005549 <actions>
5550 <action function="overlay"/>
5551 <action function="key">%tw_back%</action>
5552 </actions>
5553 </button>
5554
5555 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005556 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5557 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5558 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5559 <image resource="console" />
5560 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005561 <action function="overlay">slideout</action>
5562 </button>
5563
5564 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005565 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5566 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5567 <image resource="home" />
5568 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005569 <actions>
5570 <action function="overlay"/>
5571 <action function="key">home</action>
5572 </actions>
5573 </button>
5574
5575 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005576 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5577 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5578 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5579 <image resource="console" />
5580 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005581 <action function="overlay">slideout</action>
5582 </button>
5583
5584 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005585 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5586 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5587 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5588 <image resource="back" />
5589 <condition var1="tw_busy" var2="0" />
5590 <actions>
5591 <action function="overlay"/>
5592 <action function="key">%tw_back%</action>
5593 </actions>
5594 </button>
5595
5596 <button>
5597 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5598 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5599 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5600 <image resource="back" />
5601 <condition var1="tw_busy" var2="0" />
5602 <actions>
5603 <action function="overlay"/>
5604 <action function="key">%tw_back%</action>
5605 </actions>
5606 </button>
5607
5608 <button>
5609 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5610 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5611 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5612 <image resource="console" />
5613 <condition var1="tw_busy" var2="0" />
5614 <action function="overlay">slideout</action>
5615 </button>
5616
5617 <button>
5618 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5619 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5620 <image resource="home" />
5621 <condition var1="tw_busy" var2="0" />
5622 <actions>
5623 <action function="overlay"/>
5624 <action function="key">home</action>
5625 </actions>
5626 </button>
5627
5628 <button>
5629 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5630 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5631 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5632 <image resource="console" />
5633 <condition var1="tw_busy" var2="0" />
5634 <action function="overlay">slideout</action>
5635 </button>
5636
5637 <button>
5638 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5639 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5640 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5641 <image resource="back" />
5642 <condition var1="tw_busy" var2="0" />
5643 <actions>
5644 <action function="overlay"/>
5645 <action function="key">%tw_back%</action>
5646 </actions>
5647 </button>
5648
5649 <button>
5650 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5651 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5652 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5653 <image resource="back" />
5654 <condition var1="tw_busy" var2="0" />
5655 <actions>
5656 <action function="overlay"/>
5657 <action function="key">%tw_back%</action>
5658 </actions>
5659 </button>
5660
5661 <button>
5662 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5663 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5664 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5665 <image resource="console" />
5666 <condition var1="tw_busy" var2="0" />
5667 <action function="overlay">slideout</action>
5668 </button>
5669
5670 <button>
5671 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5672 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5673 <image resource="home" />
5674 <condition var1="tw_busy" var2="0" />
5675 <actions>
5676 <action function="overlay"/>
5677 <action function="key">home</action>
5678 </actions>
5679 </button>
5680
5681 <button>
5682 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5683 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5684 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5685 <image resource="console" />
5686 <condition var1="tw_busy" var2="0" />
5687 <action function="overlay">slideout</action>
5688 </button>
5689
5690 <button>
5691 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5692 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5693 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5694 <image resource="back" />
5695 <condition var1="tw_busy" var2="0" />
5696 <actions>
5697 <action function="overlay"/>
5698 <action function="key">%tw_back%</action>
5699 </actions>
5700 </button>
5701
5702 <action>
5703 <touch key="power+voldown"/>
5704 <action function="screenshot"/>
5705 </action>
5706 </page>
5707
5708 <page name="select_language">
5709 <fill color="%semi_transparent%">
5710 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5711 </fill>
5712
5713 <fill color="%background_color%">
5714 <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/>
5715 </fill>
5716
5717 <listbox>
5718 <placement x="%dialog_content_x%" y="%row4_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5719 <text>{@select_language=Select Language:}</text>
5720 <icon selected="radio_true" unselected="radio_false" />
5721 <data name="tw_language" />
5722 </listbox>
5723
5724 <button style="button_third_width">
5725 <placement x="%dialog_button_x%" y="%row13_y%"/>
5726 <text>{@ok_btn=OK}</text>
5727 <actions>
5728 <action function="overlay"/>
5729 <action function="setlanguage"></action>
5730 </actions>
5731 </button>
5732
5733 <fill color="#000000">
5734 <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/>
5735 </fill>
5736
5737 <button>
5738 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5739 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5740 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5741 <image resource="back" />
5742 <condition var1="tw_busy" var2="0" />
5743 <actions>
5744 <action function="overlay"/>
5745 <action function="key">%tw_back%</action>
5746 </actions>
5747 </button>
5748
5749 <button>
5750 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5751 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5752 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5753 <image resource="console" />
5754 <condition var1="tw_busy" var2="0" />
5755 <action function="overlay">slideout</action>
5756 </button>
5757
5758 <button>
5759 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5760 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5761 <image resource="home" />
5762 <condition var1="tw_busy" var2="0" />
5763 <actions>
5764 <action function="overlay"/>
5765 <action function="key">home</action>
5766 </actions>
5767 </button>
5768
5769 <button>
5770 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5771 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5772 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5773 <image resource="console" />
5774 <condition var1="tw_busy" var2="0" />
5775 <action function="overlay">slideout</action>
5776 </button>
5777
5778 <button>
5779 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5780 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5781 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5782 <image resource="back" />
5783 <condition var1="tw_busy" var2="0" />
5784 <actions>
5785 <action function="overlay"/>
5786 <action function="key">%tw_back%</action>
5787 </actions>
5788 </button>
5789
5790 <button>
5791 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5792 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5793 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5794 <image resource="back" />
5795 <condition var1="tw_busy" var2="0" />
5796 <actions>
5797 <action function="overlay"/>
5798 <action function="key">%tw_back%</action>
5799 </actions>
5800 </button>
5801
5802 <button>
5803 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5804 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5805 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5806 <image resource="console" />
5807 <condition var1="tw_busy" var2="0" />
5808 <action function="overlay">slideout</action>
5809 </button>
5810
5811 <button>
5812 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5813 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5814 <image resource="home" />
5815 <condition var1="tw_busy" var2="0" />
5816 <actions>
5817 <action function="overlay"/>
5818 <action function="key">home</action>
5819 </actions>
5820 </button>
5821
5822 <button>
5823 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5824 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5825 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5826 <image resource="console" />
5827 <condition var1="tw_busy" var2="0" />
5828 <action function="overlay">slideout</action>
5829 </button>
5830
5831 <button>
5832 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5833 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5834 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5835 <image resource="back" />
5836 <condition var1="tw_busy" var2="0" />
5837 <actions>
5838 <action function="overlay"/>
5839 <action function="key">%tw_back%</action>
5840 </actions>
5841 </button>
5842
5843 <button>
5844 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5845 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5846 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5847 <image resource="back" />
5848 <condition var1="tw_busy" var2="0" />
5849 <actions>
5850 <action function="overlay"/>
5851 <action function="key">%tw_back%</action>
5852 </actions>
5853 </button>
5854
5855 <button>
5856 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5857 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5858 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5859 <image resource="console" />
5860 <condition var1="tw_busy" var2="0" />
5861 <action function="overlay">slideout</action>
5862 </button>
5863
5864 <button>
5865 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5866 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5867 <image resource="home" />
5868 <condition var1="tw_busy" var2="0" />
5869 <actions>
5870 <action function="overlay"/>
5871 <action function="key">home</action>
5872 </actions>
5873 </button>
5874
5875 <button>
5876 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5877 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5878 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5879 <image resource="console" />
5880 <condition var1="tw_busy" var2="0" />
5881 <action function="overlay">slideout</action>
5882 </button>
5883
5884 <button>
5885 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5886 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5887 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5888 <image resource="back" />
5889 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005890 <actions>
5891 <action function="overlay"/>
5892 <action function="key">%tw_back%</action>
5893 </actions>
5894 </button>
5895
5896 <action>
5897 <touch key="power+voldown"/>
5898 <action function="screenshot"/>
5899 </action>
5900 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005901
5902 <page name="decrypt_users">
5903 <template name="page"/>
5904
5905 <text style="text_l">
5906 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5907 <text>{@decrypt_users=Decrypt Users}</text>
5908 </text>
5909
5910 <text style="text_m_accent">
5911 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5912 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5913 </text>
5914
5915 <listbox>
5916 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
5917 <text>{@select_user=Select User}</text>
5918 <icon selected="radio_true" unselected="radio_false" />
5919 <data name="tw_crypto_user_id" />
5920 </listbox>
5921
5922 <button style="main_button_half_width">
5923 <placement x="%col2_x_right%" y="%row15a_y%"/>
5924 <text>{@decrypt_users=Decrypt Users}</text>
5925 <action function="set">tw_crypto_password=</action>
5926 <action function="set">tw_password_fail=0</action>
5927 <action function="page">decrypt</action>
5928 </button>
5929
5930 <action>
5931 <touch key="home"/>
5932 <action function="page">main</action>
5933 </action>
5934
5935 <action>
5936 <touch key="back"/>
5937 <action function="page">advanced</action>
5938 </action>
5939 </page>
epicXa721f952021-01-04 13:01:31 +05305940
5941 <page name="changeTwrpFolder">
5942 <template name="page"/>
5943
5944 <text style="text_l">
5945 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5946 <text>{@advanced_hdr=Advanced}</text>
5947 </text>
5948
5949 <text style="text_m">
5950 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5951 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
5952 </text>
5953
5954 <text style="text_m_accent">
5955 <placement x="%col1_x_left%" y="%row2_y%"/>
5956 <text>{@name=Name:}</text>
5957 </text>
5958
5959 <input>
5960 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
5961 <text>%tw_custom_folder%</text>
5962 <data name="tw_custom_folder"/>
5963 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
5964 <actions>
5965 <action function="set">tw_back=changeTwrpFolder</action>
5966 <action function="set">tw_action=applycustomtwrpfolder</action>
5967 <action function="set">tw_action_param=%tw_custom_folder%</action>
5968 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5969 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5970 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5971 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
5972 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5973 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
5974 <action function="set">tw_existpage=changeTwrpFolder</action>
5975 <action function="set">tw_notexistpage=confirm_action</action>
5976 <action function="page">filecheck</action>
5977 </actions>
5978 </input>
5979
5980 <fill color="%accent_color%">
5981 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5982 </fill>
5983
5984 <fill color="%text_fail_color%">
5985 <condition var1="tw_fileexists" var2="1"/>
5986 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5987 </fill>
5988
5989 <text style="text_m_fail">
5990 <condition var1="tw_fileexists" var2="1"/>
5991 <placement x="%col1_x_left%" y="%row4_y%"/>
5992 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
5993 </text>
5994
5995 <button style="main_button_half_width_low">
5996 <placement x="%indent%" y="%row5_y%"/>
5997 <text>{@cancel_btn=Cancel}</text>
5998 <action function="page">advanced</action>
5999 </button>
6000
6001 <button style="main_button_half_width_low">
6002 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
6003 <placement x="%date_button_x%" y="%row5_y%"/>
6004 <text>{@restore_defaults_btn=Restore Defaults}</text>
6005 <actions>
6006 <action function="set">tw_back=changeTwrpFolder</action>
6007 <action function="set">tw_action=applycustomtwrpfolder</action>
6008 <action function="set">tw_action_param=TWRP</action>
6009 <action function="set">tw_text1={@confirm_action=Confirm}</action>
6010 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
6011 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
6012 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
6013 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
6014 <action function="set">tw_filecheck=/sdcard/TWRP</action>
6015 <action function="set">tw_existpage=changeTwrpFolder</action>
6016 <action function="set">tw_notexistpage=confirm_action</action>
6017 <action function="page">filecheck</action>
6018 </actions>
6019 </button>
6020
6021 <template name="keyboardtemplate"/>
6022
6023 <action>
6024 <touch key="home"/>
6025 <actions>
6026 <action function="page">main</action>
6027 </actions>
6028 </action>
6029
6030 <action>
6031 <touch key="back"/>
6032 <actions>
6033 <action function="page">advanced</action>
6034 </actions>
6035 </action>
6036 </page>
bigbiff8f5fad32021-11-03 20:39:02 -04006037
Captain Throwback02e74572022-01-10 12:55:05 -05006038 <page name="restore_keymaster">
bigbiff8f5fad32021-11-03 20:39:02 -04006039 <template name="page"/>
6040
6041 <text style="text_m_accent">
6042 <condition var1="tw_crypto_pwtype" var2="1"/>
6043 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Captain Throwback02e74572022-01-10 12:55:05 -05006044 <text>{@restore_with_pin_password1=PIN/Password is enabled}</text>
bigbiff8f5fad32021-11-03 20:39:02 -04006045 </text>
6046
6047 <text style="text_m_accent">
6048 <condition var1="tw_crypto_pwtype" var2="1"/>
6049 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Captain Throwback02e74572022-01-10 12:55:05 -05006050 <text>{@restore_with_pin_password2=PIN/Password should be disabled before restore}</text>
bigbiff8f5fad32021-11-03 20:39:02 -04006051 </text>
6052 <text style="text_l">
6053 <condition var1="tw_crypto_pwtype" var2="1"/>
6054 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Captain Throwback02e74572022-01-10 12:55:05 -05006055 <text>{@restore_pin_password=Restore While PIN/Password Enabled?}</text>
bigbiff8f5fad32021-11-03 20:39:02 -04006056 </text>
6057
6058 <text style="text_m_accent">
6059 <condition var1="tw_crypto_pwtype" var2="2"/>
6060 <placement x="%col1_x_header%" y="%row3_header_y%"/>
6061 <text>{@restore_with_pattern1=Pattern is enabled}</text>
6062 </text>
6063
6064 <text style="text_m_accent">
6065 <condition var1="tw_crypto_pwtype" var2="2"/>
6066 <placement x="%col1_x_header%" y="%row4_header_y%"/>
6067 <text>{@restore_with_pattern2=Pattern should be disabled before restore}</text>
6068 </text>
6069
6070 <text style="text_l">
6071 <condition var1="tw_crypto_pwtype" var2="2"/>
6072 <placement x="%center_x%" y="%row2_y%" placement="5"/>
6073 <text>{@restore_pattern=Restore While Pattern Enabled?}</text>
6074 </text>
6075
Captain Throwback02e74572022-01-10 12:55:05 -05006076 <text style="text_m_accent">
6077 <condition var1="tw_crypto_pwtype" var2="3"/>
6078 <placement x="%col1_x_header%" y="%row3_header_y%"/>
6079 <text>{@restore_with_pin1=PIN is enabled}</text>
6080 </text>
6081
6082 <text style="text_m_accent">
6083 <condition var1="tw_crypto_pwtype" var2="3"/>
6084 <placement x="%col1_x_header%" y="%row4_header_y%"/>
6085 <text>{@restore_with_pin2=PIN should be disabled before restore}</text>
6086 </text>
6087 <text style="text_l">
6088 <condition var1="tw_crypto_pwtype" var2="3"/>
6089 <placement x="%center_x%" y="%row2_y%" placement="5"/>
6090 <text>{@restore_pin=Restore While PIN Enabled?}</text>
6091 </text>
6092
bigbiff8f5fad32021-11-03 20:39:02 -04006093 <slider>
6094 <text>{@continue_restore_encrypted=Continue Restore?}</text>
6095 <actions>
6096 <action function="page">restore_force</action>
6097 </actions>
6098 </slider>
6099
6100 <action>
6101 <touch key="home"/>
6102 <action function="page">main</action>
6103 </action>
6104
6105 <action>
6106 <touch key="back"/>
6107 <actions>
6108 <action function="page">main</action>
6109 </actions>
6110 </action>
6111 </page>
z31s1g28f0a922015-11-07 18:50:22 +01006112 </pages>
6113</recovery>