blob: 0aed0b4e674c687f238a719abd2bd716a74be4be [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"/>
467 </conditions>
468 <data variable="tw_auto_reflashtwrp"/>
469 </listitem>
epicX9597b842021-03-20 21:58:17 +0530470 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
471 <data variable="tw_install_reboot"/>
472 </listitem>
473 <listitem name="{@inject_twrp_chk=Inject TWRP after install}">
474 <condition var1="tw_has_injecttwrp" var2="1"/>
475 <data variable="tw_inject_after_zip"/>
476 </listitem>
477 </listbox>
bigbiffa869fc72016-03-01 19:40:36 -0500478
z31s1g28f0a922015-11-07 18:50:22 +0100479 <button style="main_button_half_width">
480 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500481 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100482 <action function="page">install</action>
483 </button>
484
485 <button style="main_button_half_width">
486 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500487 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100488 <actions>
489 <action function="queueclear"/>
490 <action function="page">install</action>
491 </actions>
492 </button>
493
494 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500495 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100496 <action function="flash">flash_zip</action>
497 </slider>
498
499 <action>
500 <touch key="back"/>
501 <actions>
502 <action function="cancelzip"/>
503 <action function="page">install</action>
504 </actions>
505 </action>
506
507 <action>
508 <touch key="home"/>
509 <action function="page">main</action>
510 </action>
511 </page>
512
513 <page name="flash_zip">
514 <template name="page"/>
515
516 <text style="text_l">
517 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500518 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100519 </text>
520
521 <text style="text_m">
522 <placement x="%col1_x_header%" y="%row4_header_y%"/>
523 <text>%tw_file%</text>
524 </text>
525
526 <template name="console"/>
527
528 <template name="progress_bar"/>
529
530 <action>
531 <condition var1="tw_operation_state" var2="1"/>
532 <action function="page">flash_done</action>
533 </action>
534 </page>
535
536 <page name="flash_done">
537 <template name="page"/>
538
539 <text style="text_l">
540 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500541 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100542 </text>
543
544 <text style="text_m_fail">
545 <condition var1="tw_operation_status" op="!=" var2="0"/>
546 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500547 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100548 </text>
549
550 <text style="text_m">
551 <condition var1="tw_operation_status" var2="0"/>
552 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500553 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100554 </text>
555
556 <template name="console"/>
557
558 <button style="main_button_half_width">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500559 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100560 <placement x="%col2_x_left%" y="%row15a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500561 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100562 <actions>
563 <action function="set">tw_back=flash_done</action>
564 <action function="set">tw_action=wipe</action>
565 <action function="set">tw_action_param=/cache</action>
566 <action function="set">tw_has_action2=1</action>
567 <action function="set">tw_action2=wipe</action>
568 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500569 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
570 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
571 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
572 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100573 <action function="page">confirm_action</action>
574 </actions>
575 </button>
576
577 <button style="main_button_half_width">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500578 <condition var1="tw_ab_device" var2="1"/>
579 <placement x="%indent%" y="%row21a_y%"/>
580 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
581 <actions>
582 <action function="set">tw_back=flash_done</action>
583 <action function="set">tw_action=wipe</action>
584 <action function="set">tw_action_param=dalvik</action>
585 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
586 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
587 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
588 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
589 <action function="page">confirm_action</action>
590 </actions>
591 </button>
592
593 <button style="main_button_half_width">
Chaosmaster7b66bf52020-02-07 20:33:43 +0100594 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100595 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500596 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100597 <actions>
598 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500599 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100600 </actions>
601 </button>
602
Chaosmaster7b66bf52020-02-07 20:33:43 +0100603 <button style="main_button_half_width">
604 <condition var1="tw_ab_device" var2="1"/>
605 <placement x="%center_x%" y="%row15a_y%"/>
606 <text>{@reboot_btn=Reboot}</text>
607 <actions>
608 <action function="set">tw_back=main2</action>
609 <action function="page">reboot</action>
610 </actions>
611 </button>
612
613
z31s1g28f0a922015-11-07 18:50:22 +0100614 <action>
615 <touch key="back"/>
616 <actions>
617 <action function="set">tw_clear_destination=install</action>
618 <action function="page">clear_vars</action>
619 </actions>
620 </action>
621
622 <action>
623 <touch key="home"/>
624 <actions>
625 <action function="set">tw_clear_destination=main2</action>
626 <action function="page">clear_vars</action>
627 </actions>
628 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500629
630 <action>
631 <conditions>
632 <condition var1="tw_install_reboot" var2="1"/>
633 <condition var1="tw_operation_status" var2="0"/>
634 <condition var1="tw_reboot_system" var2="1"/>
635 </conditions>
636 <actions>
637 <action function="set">tw_sleep=%tw_sleep_total%</action>
638 <action function="page">flash_sleep_and_reboot</action>
639 </actions>
640 </action>
641 </page>
642
643 <page name="flash_sleep_and_reboot">
644 <template name="page"/>
645
646 <text style="text_l">
647 <placement x="%col1_x_header%" y="%row3_header_y%"/>
648 <text>{@install_zip_hdr=Install Zip}</text>
649 </text>
650
651 <text style="text_m">
652 <placement x="%col1_x_header%" y="%row4_header_y%"/>
653 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
654 </text>
655
656 <template name="console"/>
657
658 <template name="progress_bar"/>
659
660 <button style="main_button_half_width">
661 <condition var1="tw_sleep" op="&gt;" var2="0"/>
662 <placement x="%center_x%" y="%row15a_y%"/>
663 <text>{@cancel_btn=Cancel}</text>
664 <actions>
665 <action function="set">tw_install_reboot=0</action>
666 <action function="page">flash_done</action>
667 </actions>
668 </button>
669
670 <action>
671 <conditions>
672 <condition var1="tw_sleep" var2="tw_sleep_total"/>
673 <condition var1="tw_install_reboot" var2="1"/>
674 </conditions>
675 <action function="sleepcounter">%tw_sleep_total%</action>
676 </action>
677
678 <action>
679 <conditions>
680 <condition var1="tw_sleep" var2="0"/>
681 <condition var1="tw_install_reboot" var2="1"/>
682 </conditions>
683 <actions>
684 <action function="sleep">50000</action>
685 <action function="set">tw_back=main2</action>
686 <action function="page">reboot_system_routine</action>
687 </actions>
688 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100689 </page>
690
691 <page name="flashimage_confirm">
692 <template name="page"/>
693
694 <text style="text_l">
695 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500696 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100697 </text>
698
699 <text style="text_m">
700 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500701 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100702 </text>
703
704 <text style="text_m_accent">
705 <placement x="%col1_x_left%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500706 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100707 </text>
708
709 <text style="text_m">
710 <placement x="%col1_x_left%" y="%row9_y%"/>
711 <text>%tw_zip_location%</text>
712 </text>
713
714 <text style="text_m_accent">
715 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500716 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100717 </text>
718
719 <text style="text_m">
720 <placement x="%col1_x_left%" y="%row12_y%"/>
721 <text>%tw_file%</text>
722 </text>
723
724 <partitionlist>
725 <placement x="%col1_x_right%" y="%row7a_y%" w="%content_half_width%" h="%partitionlist_flashimage_height%"/>
726 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500727 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100728 <data name="tw_flash_partition"/>
729 <listtype name="flashimg"/>
730 </partitionlist>
731
epicX8f52c0a2021-02-24 23:12:08 +0530732 <button style="checkbox">
733 <conditions>
734 <condition var1="tw_is_slot_part" op="=" var2="1"/>
735 <condition var1="tw_flash_both_slots" op="=" var2="0"/>
736 <condition var1="tw_has_boot_slots" var2="1"/>
737 </conditions>
738 <placement x="%col1_x_left%" y="%row14a_y%" textplacement="6"/>
739 <text>{@flash_ab_both_slots=Flash to both slots}</text>
740 <image resource="checkbox_false"/>
741 <action function="set">tw_flash_both_slots=1</action>
742 </button>
743
744 <button style="checkbox">
745 <conditions>
746 <condition var1="tw_is_slot_part" op="=" var2="1"/>
747 <condition var1="tw_flash_both_slots" op="=" var2="1"/>
748 <condition var1="tw_has_boot_slots" var2="1"/>
749 </conditions>
750 <placement x="%col1_x_left%" y="%row14a_y%" textplacement="6"/>
751 <text>{@flash_ab_both_slots=Flash to both slots}</text>
752 <image resource="checkbox_true"/>
753 <action function="set">tw_flash_both_slots=0</action>
754 </button>
755
z31s1g28f0a922015-11-07 18:50:22 +0100756 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500757 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100758 <actions>
759 <action function="set">tw_back=flashimage_confirm</action>
760 <action function="set">tw_action=flashimage</action>
761 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500762 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100763 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500764 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100765 <action function="page">action_page</action>
766 </actions>
767 <action function="flashimage"/>
768 </slider>
769
770 <action>
771 <touch key="back"/>
772 <actions>
773 <action function="set">tw_clear_destination=install</action>
774 <action function="page">clear_vars</action>
775 </actions>
776 </action>
777
778 <action>
779 <touch key="home"/>
780 <actions>
781 <action function="set">tw_clear_destination=main2</action>
782 <action function="page">clear_vars</action>
783 </actions>
784 </action>
785 </page>
786
787 <page name="clear_vars">
788 <action>
789 <action function="set">tw_operation_state=0</action>
790 <action function="set">tw_text1=</action>
791 <action function="set">tw_text2=</action>
792 <action function="set">tw_text3=</action>
793 <action function="set">tw_text4=</action>
794 <action function="set">tw_action_text1=</action>
795 <action function="set">tw_action_text2=</action>
796 <action function="set">tw_action_param=</action>
797 <action function="set">tw_has_action2=0</action>
798 <action function="set">tw_action2=</action>
799 <action function="set">tw_action2_param=</action>
800 <action function="set">tw_has_cancel=0</action>
801 <action function="set">tw_cancel_action=</action>
802 <action function="set">tw_cancel_param=</action>
803 <action function="set">tw_show_exclamation=0</action>
804 <action function="set">tw_show_reboot=0</action>
Noah Jacobson81d638d2019-04-28 00:10:07 -0400805 <action function="set">tw_crypto_user_id=</action>
806 <action function="set">tw_multiuser_warning_accepted=</action>
807 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100808 <action function="page">%tw_clear_destination%</action>
809 </action>
810 </page>
811
Matt Mower908dd252016-05-25 02:26:50 -0500812 <page name="reboot_system_routine">
813 <action>
814 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500815 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500816 <action function="set">tw_has_action2=0</action>
817 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
818 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
819 <action function="set">tw_text3=</action>
820 <action function="set">tw_text4=</action>
821 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
822 <action function="set">tw_action_text2=</action>
823 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
824 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
825 <action function="page">rebootcheck</action>
826 </action>
827 </page>
828
z31s1g28f0a922015-11-07 18:50:22 +0100829 <page name="confirm_action">
830 <template name="page"/>
831
832 <text style="text_l">
833 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500834 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100835 </text>
836
837 <text style="text_m">
838 <placement x="%col1_x_header%" y="%row4_header_y%"/>
839 <text/>
840 </text>
841
842 <text style="text_m_accent">
843 <placement x="%center_x%" y="%row2_y%" placement="5"/>
844 <text>%tw_text1%</text>
845 </text>
846
847 <text style="text_m_accent">
848 <placement x="%center_x%" y="%row3_y%" placement="5"/>
849 <text>%tw_text2%</text>
850 </text>
851
852 <text style="text_m">
853 <placement x="%center_x%" y="%row4_y%" placement="5"/>
854 <text>%tw_text3%</text>
855 </text>
856
857 <text style="text_m">
858 <placement x="%center_x%" y="%row5_y%" placement="5"/>
859 <text>%tw_text4%</text>
860 </text>
861
862 <text style="text_m">
863 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500864 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100865 </text>
866
867 <slider style="slider_centered">
868 <text>%tw_slider_text%</text>
869 <action function="page">action_page</action>
870 </slider>
871
872 <action>
873 <touch key="back"/>
874 <actions>
875 <action function="set">tw_clear_destination=%tw_back%</action>
876 <action function="page">clear_vars</action>
877 </actions>
878 </action>
879
880 <action>
881 <touch key="home"/>
882 <action function="page">main</action>
883 </action>
884 </page>
885
886 <page name="action_page">
887 <template name="page"/>
888
889 <text style="text_l">
890 <placement x="%col1_x_header%" y="%row3_header_y%"/>
891 <text>%tw_action_text1%</text>
892 </text>
893
894 <text style="text_m">
895 <placement x="%col1_x_header%" y="%row4_header_y%"/>
896 <text>%tw_action_text2%</text>
897 </text>
898
899 <template name="console"/>
900
901 <template name="progress_bar"/>
902
903 <button style="main_button_half_width">
904 <condition var1="tw_has_cancel" var2="1"/>
905 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500906 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100907 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
908 </button>
909
910 <action>
911 <condition var1="tw_operation_state" var2="1"/>
912 <actions>
913 <action function="page">action_complete</action>
914 </actions>
915 </action>
916
917 <action>
918 <condition var1="tw_has_action2" var2="0"/>
919 <actions>
920 <action function="%tw_action%">%tw_action_param%</action>
921 </actions>
922 </action>
923
924 <action>
925 <condition var1="tw_has_action2" var2="1"/>
926 <actions>
927 <action function="%tw_action%">%tw_action_param%</action>
928 <action function="%tw_action2%">%tw_action2_param%</action>
929 </actions>
930 </action>
931 </page>
932
933 <page name="singleaction_page">
934 <template name="page"/>
935
936 <text style="text_l">
937 <placement x="%col1_x_header%" y="%row3_header_y%"/>
938 <text>%tw_action_text1%</text>
939 </text>
940
941 <text style="text_m">
942 <placement x="%col1_x_header%" y="%row4_header_y%"/>
943 <text>%tw_action_text2%</text>
944 </text>
945
946 <template name="console"/>
947
948 <template name="progress_bar"/>
949
950 <action>
951 <condition var1="tw_operation_state" var2="1"/>
952 <actions>
953 <action function="set">tw_page_done=1</action>
954 </actions>
955 </action>
956
957 <action>
958 <condition var1="tw_has_action2" var2="0"/>
959 <actions>
960 <action function="%tw_action%">%tw_action_param%</action>
961 </actions>
962 </action>
963
964 <action>
965 <condition var1="tw_has_action2" var2="1"/>
966 <actions>
967 <action function="%tw_action%">%tw_action_param%</action>
968 <action function="%tw_action2%">%tw_action2_param%</action>
969 </actions>
970 </action>
971 </page>
972
973 <page name="action_complete">
974 <template name="page"/>
975
976 <text style="text_l">
977 <placement x="%col1_x_header%" y="%row3_header_y%"/>
978 <text>%tw_complete_text1%</text>
979 </text>
980
981 <text style="text_m_fail">
982 <condition var1="tw_operation_status" op="!=" var2="0"/>
983 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500984 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100985 </text>
986
987 <text style="text_m">
988 <condition var1="tw_operation_status" var2="0"/>
989 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500990 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100991 </text>
992
993 <template name="console"/>
994
995 <button style="main_button_half_width">
996 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500997 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100998 <actions>
999 <action function="set">tw_clear_destination=%tw_back%</action>
1000 <action function="page">clear_vars</action>
1001 </actions>
1002 </button>
1003
1004 <button style="main_button_half_width">
1005 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001006 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001007 <actions>
1008 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -05001009 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01001010 </actions>
1011 </button>
1012
1013 <action>
1014 <touch key="home"/>
1015 <actions>
1016 <action function="set">tw_clear_destination=main2</action>
1017 <action function="page">clear_vars</action>
1018 </actions>
1019 </action>
1020
1021 <action>
1022 <touch key="back"/>
1023 <actions>
1024 <action function="set">tw_clear_destination=%tw_back%</action>
1025 <action function="page">clear_vars</action>
1026 </actions>
1027 </action>
1028 </page>
1029
1030 <page name="filecheck">
1031 <action>
1032 <action function="fileexists">%tw_filecheck%</action>
1033 </action>
1034
1035 <action>
1036 <conditions>
1037 <condition var1="tw_operation_state" var2="1"/>
1038 <condition var1="tw_operation_status" var2="0"/>
1039 </conditions>
1040 <actions>
1041 <action function="set">tw_fileexists=1</action>
1042 <action function="page">%tw_existpage%</action>
1043 </actions>
1044 </action>
1045
1046 <action>
1047 <conditions>
1048 <condition var1="tw_operation_state" var2="1"/>
1049 <condition var1="tw_operation_status" var2="1"/>
1050 </conditions>
1051 <actions>
1052 <action function="set">tw_fileexists=0</action>
1053 <action function="page">%tw_notexistpage%</action>
1054 </actions>
1055 </action>
1056 </page>
1057
1058 <page name="rebootcheck">
1059 <action>
1060 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06001061 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +01001062 </action>
1063
1064 <action>
1065 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1066 <action function="page">confirm_action</action>
1067 </action>
1068 </page>
1069
1070 <page name="wipe">
1071 <template name="page"/>
1072
1073 <text style="text_l">
1074 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001075 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001076 </text>
1077
1078 <text style="text_m">
1079 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001080 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001081 </text>
1082
1083 <text style="text_m_accent">
1084 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001085 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001086 </text>
1087
1088 <text style="text_m_accent">
bigbiffadc599e2020-05-28 19:36:30 +00001089 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04001090 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1091 </text>
1092
1093 <text style="text_m_accent">
1094 <condition var1="tw_has_data_media" var2="1"/>
1095 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001096 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001097 </text>
1098
1099 <text style="text_m_accent">
1100 <conditions>
1101 <condition var1="tw_has_android_secure" var2="1"/>
1102 <condition var1="fileexists" var2="/and-sec"/>
1103 </conditions>
1104 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001105 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001106 </text>
1107
1108 <text style="text_m_accent">
1109 <condition var1="tw_has_sdext_partition" var2="1"/>
1110 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001111 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001112 </text>
1113
1114 <text style="text_m">
1115 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001116 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001117 </text>
1118
1119 <text style="text_m">
1120 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001121 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001122 </text>
1123
1124 <text style="text_m">
1125 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001126 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001127 </text>
1128
1129 <button style="main_button_half_width">
1130 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001131 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001132 <actions>
1133 <action function="set">partitionlisterror=0</action>
1134 <action function="page">advancedwipe</action>
1135 </actions>
1136 </button>
1137
1138 <button style="main_button_half_width">
1139 <condition var1="tw_has_data_media" var2="1"/>
1140 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001141 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001142 <action function="page">formatdata</action>
1143 </button>
1144
1145 <button style="main_button_half_width">
1146 <conditions>
1147 <condition var1="tw_is_encrypted" var2="1"/>
1148 <condition var1="tw_has_data_media" var2="0"/>
1149 </conditions>
1150 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001151 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001152 <actions>
1153 <action function="set">tw_back=wipe</action>
1154 <action function="set">tw_action=wipe</action>
1155 <action function="set">tw_action_param=DATAMEDIA</action>
1156 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001157 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001158 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001159 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1160 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1161 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001162 <action function="page">confirm_action</action>
1163 </actions>
1164 </button>
1165
1166 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001167 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001168 <actions>
1169 <action function="set">tw_back=wipe</action>
1170 <action function="set">tw_action=wipe</action>
1171 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001172 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1173 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001174 <action function="page">action_page</action>
1175 </actions>
1176 </slider>
1177
1178 <action>
1179 <touch key="back"/>
1180 <action function="page">main</action>
1181 </action>
1182
1183 <action>
1184 <touch key="home"/>
1185 <action function="page">main</action>
1186 </action>
1187 </page>
1188
1189 <page name="advancedwipe">
1190 <template name="page"/>
1191
1192 <action>
1193 <action function="set">tw_wipe_list=</action>
1194 </action>
1195
1196 <text style="text_l">
1197 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001198 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001199 </text>
1200
1201 <text style="text_m">
1202 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001203 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001204 </text>
1205
1206 <partitionlist>
1207 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001208 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001209 <data name="tw_wipe_list"/>
1210 <listtype name="wipe"/>
1211 </partitionlist>
1212
1213 <text style="text_m_fail">
1214 <condition var1="partitionlisterror" var2="1"/>
1215 <placement x="%col2_x_left%" y="%row14a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001216 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001217 </text>
1218
1219 <button style="main_button_m">
1220 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001221 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001222 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001223 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001224 <action function="page">checkpartitionlist</action>
1225 </actions>
1226 </button>
1227
1228 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001229 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001230 <actions>
1231 <action function="set">tw_back=advancedwipe</action>
1232 <action function="set">tw_action=wipe</action>
1233 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001234 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1235 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1236 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001237 <action function="page">action_page</action>
1238 </actions>
1239 </slider>
1240
1241 <action>
1242 <touch key="home"/>
1243 <action function="page">main</action>
1244 </action>
1245
1246 <action>
1247 <touch key="back"/>
1248 <action function="page">wipe</action>
1249 </action>
1250 </page>
1251
1252 <page name="formatdata">
1253 <template name="page"/>
1254
1255 <text style="text_l">
1256 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001257 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001258 </text>
1259
1260 <text style="text_m">
1261 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001262 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001263 </text>
1264
1265 <text style="text_m_fail">
1266 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001267 <text>{@format_data_lcp1=Format Data will wipe all of your apps, backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001268 </text>
1269
1270 <text style="text_m_fail">
1271 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001272 <text>{@format_data_lcp2=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001273 </text>
1274
Ethan Yonker66a19492015-12-10 10:19:45 -06001275 <text style="text_m_fail">
1276 <condition var1="tw_has_adopted_storage" var2="1"/>
1277 <placement x="%center_x%" y="%row4_y%" placement="5"/>
1278 <text>{@format_data_adopted=Including Adopted Storage}</text>
1279 </text>
1280
z31s1g28f0a922015-11-07 18:50:22 +01001281 <text style="text_m">
1282 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001283 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001284 </text>
1285
1286 <text style="text_m">
1287 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001288 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001289 </text>
1290
1291 <input>
1292 <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="%input_height%"/>
1293 <text>%tw_confirm_formatdata%</text>
1294 <data name="tw_confirm_formatdata"/>
1295 <restrict minlen="3" maxlen="3" allow="yes"/>
1296 <action function="page">formatdata_confirm</action>
1297 </input>
1298
1299 <fill color="%accent_color%">
1300 <placement x="%col1_x_left%" y="row9_y" w="%content_width%" h="input_line_width"/>
1301 </fill>
1302
1303 <template name="keyboardtemplate"/>
1304
1305 <action>
1306 <touch key="home"/>
1307 <action function="page">main</action>
1308 </action>
1309
1310 <action>
1311 <touch key="back"/>
1312 <action function="page">wipe</action>
1313 </action>
1314 </page>
1315
1316 <page name="formatdata_confirm">
1317 <action>
1318 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1319 <actions>
1320 <action function="set">tw_back=formatdata</action>
1321 <action function="set">tw_action=wipe</action>
1322 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001323 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1324 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001325 <action function="page">action_page</action>
1326 </actions>
1327 </action>
1328
1329 <action>
1330 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1331 <action function="page">formatdata</action>
1332 </action>
1333 </page>
1334
1335 <page name="checkpartitionlist">
1336 <action>
1337 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1338 <actions>
1339 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001340 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001341 <action function="page">partitionoptions</action>
1342 </actions>
1343 </action>
1344
1345 <action>
1346 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1347 <actions>
1348 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001349 <action function="page">advancedwipe</action>
1350 </actions>
1351 </action>
1352 </page>
1353
1354 <page name="partitionoptions">
1355 <template name="page"/>
1356
1357 <text style="text_l">
1358 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001359 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001360 </text>
1361
1362 <text style="text_m">
1363 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001364 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001365 </text>
1366
1367 <text style="text_m_accent">
1368 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001369 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001370 </text>
1371
1372 <text style="text_m_accent">
1373 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001374 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001375 </text>
1376
1377 <text style="text_m">
1378 <condition var1="tw_partition_is_present" var2="1"/>
1379 <placement x="%col2_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001380 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001381 </text>
1382
1383 <text style="text_m">
1384 <condition var1="tw_partition_is_present" var2="0"/>
1385 <placement x="%col2_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001386 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001387 </text>
1388
1389 <text style="text_m">
1390 <condition var1="tw_partition_removable" var2="1"/>
1391 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001392 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001393 </text>
1394
1395 <text style="text_m">
1396 <condition var1="tw_partition_removable" var2="0"/>
1397 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001398 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001399 </text>
1400
1401 <text style="text_m">
1402 <placement x="%col2_x_left%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001403 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001404 </text>
1405
1406 <text style="text_m">
1407 <placement x="%col1_x_right%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001408 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001409 </text>
1410
1411 <text style="text_m">
1412 <placement x="%col2_x_left%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001413 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001414 </text>
1415
1416 <text style="text_m">
1417 <placement x="%col1_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001418 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001419 </text>
1420
1421 <button style="main_button_half_width">
1422 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1423 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001424 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001425 <actions>
1426 <action function="set">tw_back=partitionoptions</action>
1427 <action function="set">tw_action=resize</action>
1428 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1429 <action function="set">tw_has_action2=1</action>
1430 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001431 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001432 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001433 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001434 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1435 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1436 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001437 <action function="page">confirm_action</action>
1438 </actions>
1439 </button>
1440
1441 <button style="main_button_half_width">
1442 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1443 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001444 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001445 <actions>
1446 <action function="set">tw_back=partitionoptions</action>
1447 <action function="set">tw_action=repair</action>
1448 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1449 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001450 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001451 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001452 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1453 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1454 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001455 <action function="page">confirm_action</action>
1456 </actions>
1457 </button>
1458
1459 <button style="main_button_half_width">
1460 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001461 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001462 <action function="page">selectfilesystem</action>
1463 </button>
1464
1465 <action>
1466 <touch key="home"/>
1467 <action function="page">main</action>
1468 </action>
1469
1470 <action>
1471 <touch key="back"/>
1472 <action function="page">advancedwipe</action>
1473 </action>
1474 </page>
1475
1476 <page name="refreshfilesystem">
1477 <action>
1478 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1479 <actions>
1480 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001481 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001482 <action function="page">selectfilesystem</action>
1483 </actions>
1484 </action>
1485
1486 <action>
1487 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1488 <actions>
1489 <action function="set">partitionlisterror=1</action>
1490 <action function="set">tw_wipe_list=</action>
1491 <action function="page">advancedwipe</action>
1492 </actions>
1493 </action>
1494 </page>
1495
1496 <page name="selectfilesystem">
1497 <template name="page"/>
1498
1499 <text style="text_l">
1500 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001501 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001502 </text>
1503
1504 <text style="text_m">
1505 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001506 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001507 </text>
1508
1509 <text style="text_m_accent">
1510 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001511 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001512 </text>
1513
1514 <text style="text_m_accent">
1515 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001516 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001517 </text>
1518
1519 <text style="text_m_fail">
1520 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001521 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001522 </text>
1523
1524 <text style="text_m_fail">
1525 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001526 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001527 </text>
1528
1529 <button style="main_button_half_width">
1530 <condition var1="tw_partition_ext" op="=" var2="1"/>
1531 <placement x="%col1_x_left%" y="%row11_y%"/>
1532 <text>EXT2</text>
1533 <actions>
1534 <action function="set">tw_back=refreshfilesystem</action>
1535 <action function="set">tw_action=changefilesystem</action>
1536 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1537 <action function="set">tw_action_new_file_system=ext2</action>
1538 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001539 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1540 <action function="set">tw_text2=EXT2</action>
1541 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1542 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1543 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001544 <action function="page">confirm_action</action>
1545 </actions>
1546 </button>
1547
1548 <button style="main_button_half_width">
1549 <condition var1="tw_partition_ext" op="=" var2="1"/>
1550 <placement x="%col2_x_left%" y="%row11_y%"/>
1551 <text>EXT3</text>
1552 <actions>
1553 <action function="set">tw_back=refreshfilesystem</action>
1554 <action function="set">tw_action=changefilesystem</action>
1555 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1556 <action function="set">tw_action_new_file_system=ext3</action>
1557 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001558 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1559 <action function="set">tw_text2=EXT3</action>
1560 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1561 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1562 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001563 <action function="page">confirm_action</action>
1564 </actions>
1565 </button>
1566
1567 <button style="main_button_half_width">
1568 <condition var1="tw_partition_ext" op="=" var2="1"/>
1569 <placement x="%center_x%" y="%row11_y%"/>
1570 <text>EXT4</text>
1571 <actions>
1572 <action function="set">tw_back=refreshfilesystem</action>
1573 <action function="set">tw_action=changefilesystem</action>
1574 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1575 <action function="set">tw_action_new_file_system=ext4</action>
1576 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001577 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1578 <action function="set">tw_text2=EXT4</action>
1579 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1580 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1581 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001582 <action function="page">confirm_action</action>
1583 </actions>
1584 </button>
1585
1586 <button style="main_button_half_width">
1587 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1588 <placement x="%col2_x_right%" y="%row11_y%"/>
1589 <text>FAT</text>
1590 <actions>
1591 <action function="set">tw_back=refreshfilesystem</action>
1592 <action function="set">tw_action=changefilesystem</action>
1593 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1594 <action function="set">tw_action_new_file_system=vfat</action>
1595 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001596 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1597 <action function="set">tw_text2=FAT</action>
1598 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1599 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1600 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001601 <action function="page">confirm_action</action>
1602 </actions>
1603 </button>
1604
1605 <button style="main_button_half_width">
1606 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1607 <placement x="%col2_x_left%" y="%row15a_y%"/>
1608 <text>exFAT</text>
1609 <actions>
1610 <action function="set">tw_back=refreshfilesystem</action>
1611 <action function="set">tw_action=changefilesystem</action>
1612 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1613 <action function="set">tw_action_new_file_system=exfat</action>
1614 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001615 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1616 <action function="set">tw_text2=exFAT</action>
1617 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1618 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1619 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001620 <action function="page">confirm_action</action>
1621 </actions>
1622 </button>
1623
1624 <button style="main_button_half_width">
1625 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1626 <placement x="%center_x%" y="%row15a_y%"/>
1627 <text>F2FS</text>
1628 <actions>
1629 <action function="set">tw_back=refreshfilesystem</action>
1630 <action function="set">tw_action=changefilesystem</action>
1631 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1632 <action function="set">tw_action_new_file_system=f2fs</action>
1633 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001634 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1635 <action function="set">tw_text2=F2FS</action>
1636 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1637 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1638 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001639 <action function="page">confirm_action</action>
1640 </actions>
1641 </button>
1642
1643 <action>
1644 <touch key="home"/>
1645 <action function="page">main</action>
1646 </action>
1647
1648 <action>
1649 <touch key="back"/>
1650 <action function="page">partitionoptions</action>
1651 </action>
1652 </page>
1653
1654 <page name="backup">
1655 <template name="page"/>
1656
Noah Jacobson81d638d2019-04-28 00:10:07 -04001657 <action>
1658 <conditions>
1659 <condition var1="tw_is_fbe" var2="1"/>
1660 <condition var1="tw_all_users_decrypted" var2="0"/>
1661 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1662 </conditions>
1663 <actions>
1664 <action function="set">tw_multiuser_warning_destination=backup</action>
1665 <action function="page">multiuser_warning</action>
1666 </actions>
1667 </action>
1668
z31s1g28f0a922015-11-07 18:50:22 +01001669 <text style="text_l">
1670 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001671 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001672 </text>
1673
1674 <text style="text_m">
1675 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001676 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001677 </text>
1678
1679 <text style="text_m_accent">
1680 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001681 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001682 </text>
1683
1684 <text style="text_m">
1685 <placement x="%col1_x_left%" y="%row3_y%"/>
1686 <text>%tw_backup_name%</text>
1687 </text>
1688
1689 <fill color="%fileselector_linecolor%">
1690 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1691 </fill>
1692
1693 <button>
1694 <placement x="col1_x_left" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/>
1695 <fill color="%transparent%"/>
1696 <actions>
1697 <action function="set">tw_fileexists=0</action>
1698 <action function="page">backupname1</action>
1699 </actions>
1700 </button>
1701
1702 <partitionlist>
1703 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001704 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001705 <data name="tw_backup_list"/>
1706 <listtype name="backup"/>
1707 </partitionlist>
1708
1709 <text style="text_m_accent">
1710 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001711 <text>{@encryption=Encryption:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001712 </text>
1713
1714 <text style="text_m">
1715 <conditions>
1716 <condition var1="tw_include_encrypted_backup" var2="1"/>
1717 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001718 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001719 </conditions>
1720 <placement x="%col1_x_right%" y="%row3_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001721 <text>{@enc_disabled=disabled - set a password to enable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001722 </text>
1723
1724 <text style="text_m">
1725 <conditions>
1726 <condition var1="tw_include_encrypted_backup" var2="1"/>
1727 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001728 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001729 </conditions>
1730 <placement x="%col1_x_right%" y="%row3_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001731 <text>{@enc_enabled=enabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001732 </text>
1733
1734 <fill color="%fileselector_linecolor%">
1735 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1736 </fill>
1737
1738 <button>
1739 <placement x="col1_x_right" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/>
1740 <fill color="%transparent%"/>
1741 <actions>
1742 <action function="set">tw_password_not_match=0</action>
1743 <action function="page">backupencryption</action>
1744 </actions>
1745 </button>
1746
1747 <text style="text_m_accent">
1748 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001749 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001750 </text>
1751
1752 <checkbox>
1753 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001754 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001755 <data variable="tw_use_compression"/>
1756 </checkbox>
1757
1758 <checkbox>
1759 <placement x="%col1_x_right%" y="%row7a_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001760 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1761 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001762 </checkbox>
1763
1764 <checkbox>
1765 <placement x="%col1_x_right%" y="%row9_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001766 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001767 <data variable="tw_disable_free_space"/>
1768 </checkbox>
1769
1770 <button style="main_button_half_width">
bigbiffce8f83c2015-12-12 18:30:21 -05001771 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001772 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001773 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001774 <actions>
1775 <action function="set">tw_back=backup</action>
1776 <action function="overlay">select_storage</action>
1777 </actions>
1778 </button>
1779
1780 <button style="main_button_half_width">
1781 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001782 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001783 <actions>
1784 <action function="refreshsizes"/>
1785 <action function="page">backup</action>
1786 </actions>
1787 </button>
1788
1789 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001790 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001791 <action function="page">backup_run</action>
1792 </slider>
1793
1794 <action>
1795 <touch key="home"/>
1796 <action function="page">main</action>
1797 </action>
1798
1799 <action>
1800 <touch key="back"/>
1801 <action function="page">main</action>
1802 </action>
1803 </page>
1804
Noah Jacobson81d638d2019-04-28 00:10:07 -04001805 <page name="multiuser_warning">
1806 <template name="page"/>
1807
1808 <text style="text_l">
1809 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1810 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
1811 </text>
1812
1813 <text style="text_m_fail">
1814 <placement x="%center_x%" y="%row7_y%" placement="5"/>
1815 <text>{@multiuser_warning1=Not all users decrypted!}</text>
1816 </text>
1817
1818 <text style="text_m_fail">
1819 <placement x="%center_x%" y="%row8_y%" placement="5"/>
1820 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
1821 </text>
1822
1823 <button style="main_button_m">
1824 <placement x="%col1_x_left%" y="%row15a_y%"/>
1825 <text>{@decrypt_users=Decrypt Users}</text>
1826 <action function="page">decrypt_users</action>
1827 </button>
1828
1829 <slider>
1830 <text>{@multiuser_warning_accept=Continue Anyway}</text>
1831 <actions>
1832 <action function="set">tw_multiuser_warning_accepted=1</action>
1833 <action function="page">%tw_multiuser_warning_destination%</action>
1834 </actions>
1835 </slider>
1836
1837 <action>
1838 <touch key="home"/>
1839 <action function="page">main</action>
1840 </action>
1841
1842 <action>
1843 <touch key="back"/>
1844 <action function="page">main</action>
1845 </action>
1846 </page>
1847
z31s1g28f0a922015-11-07 18:50:22 +01001848 <page name="backupname1">
1849 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001850 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001851 <action function="generatebackupname"/>
1852 </action>
1853
1854 <action>
1855 <action function="page">backupname2</action>
1856 </action>
1857 </page>
1858
1859 <page name="backupname2">
1860 <template name="page"/>
1861
1862 <text style="text_l">
1863 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001864 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001865 </text>
1866
1867 <text style="text_m">
1868 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001869 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001870 </text>
1871
1872 <text style="text_m_accent">
1873 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001874 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001875 </text>
1876
1877 <input>
1878 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
1879 <text>%tw_backup_name%</text>
1880 <data name="tw_backup_name"/>
1881 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1882 <actions>
1883 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1884 <action function="set">tw_existpage=backupname2</action>
1885 <action function="set">tw_notexistpage=backup</action>
1886 <action function="page">filecheck</action>
1887 </actions>
1888 </input>
1889
1890 <fill color="%accent_color%">
1891 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1892 </fill>
1893
1894 <fill color="%text_fail_color%">
1895 <condition var1="tw_fileexists" var2="1"/>
1896 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1897 </fill>
1898
1899 <text style="text_m_fail">
1900 <condition var1="tw_fileexists" var2="1"/>
1901 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001902 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001903 </text>
1904
1905 <button style="main_button_half_width_low">
1906 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001907 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001908 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001909 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001910 <action function="page">backup</action>
1911 </actions>
1912 </button>
1913
1914 <button style="main_button_half_width_low">
1915 <placement x="%date_button_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001916 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001917 <action function="appenddatetobackupname"/>
1918 </button>
1919
1920 <template name="keyboardtemplate"/>
1921
1922 <action>
1923 <touch key="home"/>
1924 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001925 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001926 <action function="page">main</action>
1927 </actions>
1928 </action>
1929
1930 <action>
1931 <touch key="back"/>
1932 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001933 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001934 <action function="page">backup</action>
1935 </actions>
1936 </action>
1937 </page>
1938
1939 <page name="backupencryption">
1940 <template name="page"/>
1941
1942 <text style="text_l">
1943 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001944 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001945 </text>
1946
1947 <text style="text_m">
1948 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001949 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001950 </text>
1951
1952 <text style="text_m_accent">
1953 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001954 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001955 </text>
1956
1957 <input>
1958 <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/>
1959 <text>%tw_backup_encrypt_display%</text>
1960 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
1961 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
1962 <action function="page">backupencryption2</action>
1963 </input>
1964
1965 <fill color="%accent_color%">
1966 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1967 </fill>
1968
1969 <fill color="%text_fail_color%">
1970 <condition var1="tw_password_not_match" var2="1"/>
1971 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1972 </fill>
1973
1974 <text style="text_m_fail">
1975 <condition var1="tw_password_not_match" var2="1"/>
1976 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001977 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001978 </text>
1979
1980 <button style="main_button_half_width_low">
1981 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001982 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001983 <actions>
1984 <action function="set">tw_encrypt_backup=0</action>
1985 <action function="set">tw_backup_password=</action>
1986 <action function="set">tw_backup_password2=</action>
1987 <action function="set">tw_backup_encrypt_display=</action>
1988 <action function="set">tw_backup_encrypt_display2=</action>
1989 <action function="page">backup</action>
1990 </actions>
1991 </button>
1992
1993 <template name="keyboardtemplate"/>
1994
1995 <action>
1996 <touch key="home"/>
1997 <action function="page">main</action>
1998 </action>
1999
2000 <action>
2001 <touch key="back"/>
2002 <action function="page">backup</action>
2003 </action>
2004 </page>
2005
2006 <page name="backupencryption2">
2007 <template name="page"/>
2008
2009 <text style="text_l">
2010 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002011 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002012 </text>
2013
2014 <text style="text_m">
2015 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002016 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002017 </text>
2018
2019 <text style="text_m_accent">
2020 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002021 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002022 </text>
2023
2024 <input>
2025 <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/>
2026 <text>%tw_backup_encrypt_display2%</text>
2027 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2028 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2029 <action function="page">checkbackuppassword</action>
2030 </input>
2031
2032 <fill color="%accent_color%">
2033 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
2034 </fill>
2035
2036 <text style="text_m">
2037 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002038 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002039 </text>
2040
2041 <button style="main_button_half_width_low">
2042 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002043 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002044 <actions>
2045 <action function="set">tw_encrypt_backup=0</action>
2046 <action function="set">tw_backup_password=</action>
2047 <action function="set">tw_backup_password2=</action>
2048 <action function="set">tw_backup_encrypt_display=</action>
2049 <action function="set">tw_backup_encrypt_display2=</action>
2050 <action function="page">backup</action>
2051 </actions>
2052 </button>
2053
2054 <template name="keyboardtemplate"/>
2055
2056 <action>
2057 <touch key="home"/>
2058 <action function="page">main</action>
2059 </action>
2060
2061 <action>
2062 <touch key="back"/>
2063 <action function="page">backup</action>
2064 </action>
2065 </page>
2066
2067 <page name="checkbackuppassword">
2068 <action>
2069 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2070 <actions>
2071 <action function="set">tw_encrypt_backup=1</action>
2072 <action function="page">backup</action>
2073 </actions>
2074 </action>
2075
2076 <action>
2077 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2078 <actions>
2079 <action function="set">tw_encrypt_backup=0</action>
2080 <action function="set">tw_password_not_match=1</action>
2081 <action function="set">tw_backup_password=</action>
2082 <action function="set">tw_backup_password2=</action>
2083 <action function="set">tw_backup_encrypt_display=</action>
2084 <action function="set">tw_backup_encrypt_display2=</action>
2085 <action function="page">backupencryption</action>
2086 </actions>
2087 </action>
2088 </page>
2089
2090 <page name="backup_run">
2091 <template name="page"/>
2092
2093 <text style="text_l">
2094 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2095 <text>%tw_operation%</text>
2096 </text>
2097
2098 <text style="text_m">
2099 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2100 <text>%tw_partition% Partition</text>
2101 </text>
2102
2103 <template name="console"/>
2104
2105 <template name="progress_bar"/>
2106
2107 <text style="text_m_accent">
2108 <placement x="%progress_text_x%" y="%progress_text_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002109 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002110 </text>
2111
2112 <text style="text_m">
2113 <placement x="%progress_text_x%" y="%row17_y%"/>
2114 <text>%tw_file_progress%</text>
2115 </text>
2116
2117 <text style="text_m">
2118 <placement x="%progress_text_x%" y="%row18_y%"/>
2119 <text>%tw_size_progress%</text>
2120 </text>
2121
2122 <button style="main_button_half_width">
2123 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002124 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002125 <action function="cancelbackup"/>
2126 </button>
2127
2128 <action>
2129 <action function="nandroid">backup</action>
2130 </action>
2131
2132 <action>
2133 <condition var1="tw_operation_state" var2="1"/>
2134 <condition var1="tw_cancel_backup" var2="0"/>
2135 <actions>
2136 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002137 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002138 <action function="set">tw_show_reboot=1</action>
2139 <action function="page">action_complete</action>
2140 </actions>
2141 </action>
2142
2143 <action>
2144 <condition var1="tw_operation_state" var2="1"/>
2145 <condition var1="tw_cancel_backup" var2="1"/>
2146 <actions>
2147 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002148 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002149 <action function="set">tw_show_reboot=1</action>
2150 <action function="page">action_complete</action>
2151 </actions>
2152 </action>
2153 </page>
2154
2155 <page name="restore">
2156 <template name="page"/>
2157
Noah Jacobson81d638d2019-04-28 00:10:07 -04002158 <action>
2159 <conditions>
2160 <condition var1="tw_is_fbe" var2="1"/>
2161 <condition var1="tw_all_users_decrypted" var2="0"/>
2162 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2163 </conditions>
2164 <actions>
2165 <action function="set">tw_multiuser_warning_destination=restore</action>
2166 <action function="page">multiuser_warning</action>
2167 </actions>
2168 </action>
2169
z31s1g28f0a922015-11-07 18:50:22 +01002170 <text style="text_l">
2171 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002172 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002173 </text>
2174
2175 <text style="text_m">
2176 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002177 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002178 </text>
2179
2180 <template name="sort_options"/>
2181
2182 <fileselector>
2183 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002184 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002185 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002186 <path name="tw_backups_folder"/>
2187 <data name="tw_restore" default=""/>
2188 <selection name="tw_restore_name"/>
2189 </fileselector>
2190
2191 <button style="main_button_half_width_low">
2192 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002193 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002194 <actions>
2195 <action function="set">tw_back=restore</action>
2196 <action function="overlay">select_storage</action>
2197 </actions>
2198 </button>
bigbiff8f5fad32021-11-03 20:39:02 -04002199 <action>
2200 <condition var1="tw_crypto_pwtype" op="!=" var2="0"/>
2201 <actions>
2202 <action function="page">restore_pin</action>
2203 </actions>
2204 </action>
2205
2206 <action>
2207 <condition var1="tw_restore" op="modified"/>
2208 <actions>
2209 <action function="readBackup"/>
2210 <action function="page">restore_read</action>
2211 </actions>
2212 </action>
2213
2214 <action>
2215 <touch key="home"/>
2216 <action function="page">main</action>
2217 </action>
2218
2219 <action>
2220 <touch key="back"/>
2221 <action function="page">main</action>
2222 </action>
2223 </page>
2224
2225
2226 <page name="restore_force">
2227 <template name="page"/>
2228
2229 <action>
2230 <conditions>
2231 <condition var1="tw_is_fbe" var2="1"/>
2232 <condition var1="tw_all_users_decrypted" var2="0"/>
2233 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2234 </conditions>
2235 <actions>
2236 <action function="set">tw_multiuser_warning_destination=restore</action>
2237 <action function="page">multiuser_warning</action>
2238 </actions>
2239 </action>
2240
2241 <text style="text_l">
2242 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2243 <text>{@restore_hdr=Restore}</text>
2244 </text>
2245
2246 <text style="text_m">
2247 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2248 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
2249 </text>
2250
2251 <template name="sort_options"/>
2252
2253 <fileselector>
2254 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_install_height%"/>
2255 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
2256 <filter folders="1" files="1" nav="0" extn=".ab"/>
2257 <path name="tw_backups_folder"/>
2258 <data name="tw_restore" default=""/>
2259 <selection name="tw_restore_name"/>
2260 </fileselector>
2261
2262 <button style="main_button_half_width_low">
2263 <placement x="%col_button_right%" y="%row16a_y%"/>
2264 <text>{@select_storage_btn=Select Storage}</text>
2265 <actions>
2266 <action function="set">tw_back=restore</action>
2267 <action function="overlay">select_storage</action>
2268 </actions>
2269 </button>
2270 <action>
2271 <condition var1="tw_crypto_pwtype" op="!=" var2="0"/>
2272 <actions>
2273 <action function="page">restore_pin</action>
2274 </actions>
2275 </action>
z31s1g28f0a922015-11-07 18:50:22 +01002276
2277 <action>
2278 <condition var1="tw_restore" op="modified"/>
2279 <actions>
2280 <action function="readBackup"/>
2281 <action function="page">restore_read</action>
2282 </actions>
2283 </action>
2284
2285 <action>
2286 <touch key="home"/>
2287 <action function="page">main</action>
2288 </action>
2289
2290 <action>
2291 <touch key="back"/>
2292 <action function="page">main</action>
2293 </action>
2294 </page>
2295
2296 <page name="restore_read">
2297 <action>
2298 <condition var1="tw_restore_encrypted" var2="1"/>
2299 <actions>
2300 <action function="set">tw_password_fail=0</action>
2301 <action function="page">restore_decrypt</action>
2302 </actions>
2303 </action>
2304
2305 <action>
2306 <condition var1="tw_restore_encrypted" var2="0"/>
2307 <actions>
2308 <action function="page">restore_select</action>
2309 </actions>
2310 </action>
2311 </page>
2312
2313 <page name="restore_decrypt">
2314 <template name="page"/>
2315
2316 <text style="text_l">
2317 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002318 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002319 </text>
2320
2321 <text style="text_m">
2322 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002323 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002324 </text>
2325
2326 <text style="text_m_accent">
2327 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002328 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002329 </text>
2330
2331 <input>
2332 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2333 <text>%tw_restore_display%</text>
2334 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2335 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2336 <action function="page">try_restore_decrypt</action>
2337 </input>
2338
2339 <fill color="%accent_color%">
2340 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
2341 </fill>
2342
2343 <fill color="%text_fail_color%">
2344 <condition var1="tw_password_fail" var2="1"/>
2345 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
2346 </fill>
2347
2348 <text style="text_m_fail">
2349 <condition var1="tw_password_fail" var2="1"/>
2350 <placement x="%col1_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002351 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002352 </text>
2353
2354 <button style="main_button_half_width_low">
2355 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002356 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002357 <actions>
2358 <action function="set">tw_page_done=1</action>
2359 <action function="page">restore</action>
2360 </actions>
2361 </button>
2362
2363 <button style="main_button_half_width_low">
2364 <placement x="%col_button_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002365 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002366 <actions>
2367 <action function="set">tw_back=restore</action>
2368 <action function="set">tw_action=cmd</action>
2369 <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 -05002370 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2371 <action function="set">tw_text2=%tw_restore_name%</action>
2372 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2373 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2374 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2375 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002376 <action function="page">confirm_action</action>
2377 </actions>
2378 </button>
2379
2380 <template name="keyboardtemplate"/>
2381
2382 <action>
2383 <touch key="home"/>
2384 <action function="page">main</action>
2385 </action>
2386
2387 <action>
2388 <touch key="back"/>
2389 <action function="page">restore</action>
2390 </action>
2391 </page>
2392
2393 <page name="try_restore_decrypt">
2394 <template name="page"/>
2395
2396 <text style="text_l">
2397 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002398 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002399 </text>
2400
2401 <text style="text_m">
2402 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002403 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002404 </text>
2405
2406 <template name="console"/>
2407
2408 <template name="progress_bar"/>
2409
2410 <action>
2411 <action function="decrypt_backup"/>
2412 </action>
2413
2414 <action>
2415 <conditions>
2416 <condition var1="tw_operation_state" var2="1"/>
2417 <condition var1="tw_operation_status" op="!=" var2="0"/>
2418 </conditions>
2419 <actions>
2420 <action function="set">tw_password_fail=1</action>
2421 <action function="page">restore_decrypt</action>
2422 </actions>
2423 </action>
2424
2425 <action>
2426 <conditions>
2427 <condition var1="tw_operation_state" var2="1"/>
2428 <condition var1="tw_operation_status" op="=" var2="0"/>
2429 </conditions>
2430 <actions>
2431 <action function="set">tw_page_done=1</action>
2432 <action function="page">restore_select</action>
2433 </actions>
2434 </action>
2435 </page>
2436
2437 <page name="restore_select">
2438 <template name="page"/>
2439
2440 <text style="text_l">
2441 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002442 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002443 </text>
2444
2445 <text style="text_m">
2446 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002447 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002448 </text>
2449
2450 <text style="text_m_accent">
2451 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002452 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002453 </text>
2454
2455 <text style="text_m">
2456 <placement x="%col1_x_left%" y="%row3_y%"/>
2457 <text>%tw_restore_name%</text>
2458 </text>
2459
2460 <fill color="%fileselector_linecolor%">
2461 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width"/>
2462 </fill>
2463
2464 <button>
2465 <placement x="col1_x_left" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2466 <fill color="%transparent%"/>
2467 <actions>
2468 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2469 <action function="set">tw_fileexists=0</action>
2470 <action function="page">renamebackup</action>
2471 </actions>
2472 </button>
2473
2474 <partitionlist>
2475 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002476 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002477 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2478 <listtype name="restore"/>
2479 </partitionlist>
2480
2481 <text style="text_m_accent">
2482 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002483 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002484 </text>
2485
2486 <checkbox>
2487 <placement x="%col1_x_right%" y="%row6_y%"/>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002488 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002489 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2490 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002491 </checkbox>
2492
2493 <button style="main_button_half_width">
2494 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002495 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002496 <actions>
2497 <action function="set">tw_back=restore</action>
2498 <action function="set">tw_action=cmd</action>
2499 <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 -05002500 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002501 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002502 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2503 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2504 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2505 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002506 <action function="page">confirm_action</action>
2507 </actions>
2508 </button>
2509
2510 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002511 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002512 <action function="page">restore_run</action>
2513 </slider>
2514
2515 <action>
2516 <touch key="home"/>
2517 <action function="page">main</action>
2518 </action>
2519
2520 <action>
2521 <touch key="back"/>
2522 <action function="page">restore</action>
2523 </action>
2524 </page>
2525
2526 <page name="renamebackup">
2527 <template name="page"/>
2528
2529 <text style="text_l">
2530 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002531 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002532 </text>
2533
2534 <text style="text_m">
2535 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002536 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002537 </text>
2538
2539 <text style="text_m_accent">
2540 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002541 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002542 </text>
2543
2544 <input>
2545 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2546 <text>%tw_backup_rename%</text>
2547 <data name="tw_backup_rename"/>
2548 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2549 <actions>
2550 <action function="set">tw_back=restore</action>
2551 <action function="set">tw_action=cmd</action>
2552 <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 -05002553 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2554 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2555 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2556 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2557 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002558 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2559 <action function="set">tw_existpage=renamebackup</action>
2560 <action function="set">tw_notexistpage=confirm_action</action>
2561 <action function="page">filecheck</action>
2562 </actions>
2563 </input>
2564
2565 <fill color="%accent_color%">
2566 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2567 </fill>
2568
2569 <fill color="%text_fail_color%">
2570 <condition var1="tw_fileexists" var2="1"/>
2571 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2572 </fill>
2573
2574 <text style="text_m_fail">
2575 <condition var1="tw_fileexists" var2="1"/>
2576 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002577 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002578 </text>
2579
2580 <button style="main_button_half_width_low">
2581 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002582 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002583 <action function="page">restore_select</action>
2584 </button>
2585
2586 <template name="keyboardtemplate"/>
2587
2588 <action>
2589 <touch key="home"/>
2590 <action function="page">main</action>
2591 </action>
2592
2593 <action>
2594 <touch key="back"/>
2595 <action function="page">restore_select</action>
2596 </action>
2597 </page>
2598
2599 <page name="restore_run">
2600 <template name="page"/>
2601
2602 <text style="text_l">
2603 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002604 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002605 </text>
2606
2607 <text style="text_m">
2608 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2609 <text>%tw_operation% %tw_partition%</text>
2610 </text>
2611
2612 <template name="console"/>
2613
2614 <template name="progress_bar"/>
2615
2616 <text style="text_m_accent">
2617 <placement x="%progress_text_x%" y="%progress_text_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002618 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002619 </text>
2620
2621 <text style="text_m">
2622 <placement x="%progress_text_x%" y="%row18_y%"/>
2623 <text>%tw_size_progress%</text>
2624 </text>
2625
2626 <action>
2627 <condition var1="tw_operation_state" var2="1"/>
2628 <actions>
2629 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002630 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002631 <action function="set">tw_show_reboot=1</action>
2632 <action function="page">action_complete</action>
2633 </actions>
2634 </action>
2635
2636 <action>
2637 <action function="nandroid">restore</action>
2638 </action>
2639 </page>
2640
2641 <page name="mount">
2642 <template name="page"/>
2643
2644 <text style="text_l">
2645 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002646 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002647 </text>
2648
2649 <text style="text_m">
2650 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002651 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002652 </text>
2653
2654 <partitionlist>
2655 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002656 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002657 <listtype name="mount"/>
2658 </partitionlist>
2659
2660 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002661 <conditions>
bigbiffb640d972021-10-12 19:08:10 -04002662 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
bigbiffee7b7ff2020-03-23 15:08:27 -04002663 <condition var1="tw_is_super" op="=" var2="0"/>
2664 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002665 <placement x="%col1_x_left%" y="%row14_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002666 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002667 <image resource="checkbox_false"/>
2668 <action function="mountsystemtoggle">1</action>
2669 </button>
2670
2671 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002672 <conditions>
2673 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2674 <condition var1="tw_is_super" op="=" var2="0"/>
2675 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002676 <placement x="%col1_x_left%" y="%row14_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002677 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002678 <image resource="checkbox_true"/>
2679 <actions>
2680 <action function="set">tw_lifetime_writes=2</action>
2681 <action function="page">system_readonly_check</action>
2682 </actions>
2683 </button>
2684
2685 <button style="main_button_half_width">
2686 <condition var1="tw_has_usb_storage" var2="1"/>
2687 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002688 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002689 <action function="page">usb_mount</action>
2690 </button>
2691
2692 <button style="main_button_half_width">
2693 <conditions>
2694 <condition var1="tw_is_encrypted" var2="1"/>
2695 <condition var1="tw_is_decrypted" var2="0"/>
2696 </conditions>
2697 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002698 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04002699 <action function="set">tw_crypto_user_id=0</action>
2700 <action function="set">tw_crypto_password=</action>
2701 <action function="set">tw_password_fail=0</action>
2702 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002703 <action function="page">decrypt</action>
2704 </button>
2705
2706 <button style="main_button_half_width">
2707 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002708 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002709 <actions>
2710 <action function="set">tw_back=mount</action>
2711 <action function="overlay">select_storage</action>
2712 </actions>
2713 </button>
2714
2715 <button style="main_button_half_width">
2716 <conditions>
2717 <condition var1="tw_has_mtp" var2="1"/>
2718 <condition var1="tw_mtp_enabled" var2="0"/>
2719 </conditions>
2720 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002721 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002722 <action function="startmtp"/>
2723 </button>
2724
2725 <button style="main_button_half_width">
2726 <conditions>
2727 <condition var1="tw_has_mtp" var2="1"/>
2728 <condition var1="tw_mtp_enabled" var2="1"/>
2729 </conditions>
2730 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002731 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002732 <action function="stopmtp"/>
2733 </button>
2734
2735 <action>
2736 <touch key="home"/>
2737 <action function="page">main</action>
2738 </action>
2739
2740 <action>
2741 <touch key="back"/>
2742 <action function="page">main</action>
2743 </action>
2744 </page>
2745
2746 <page name="usb_mount">
2747 <template name="page"/>
2748
2749 <text style="text_l">
2750 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002751 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002752 </text>
2753
2754 <text style="text_m">
2755 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002756 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002757 </text>
2758
2759 <text style="text_m_accent">
2760 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002761 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002762 </text>
2763
2764 <text style="text_m">
2765 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002766 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002767 </text>
2768
2769 <text style="text_m">
2770 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002771 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002772 </text>
2773
2774 <button style="main_button_half_width">
2775 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002776 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002777 <action function="page">usb_umount</action>
2778 </button>
2779
2780 <action>
2781 <action function="mount">usb</action>
2782 <action function="set">tw_busy=1</action>
2783 </action>
2784 </page>
2785
2786 <page name="usb_umount">
2787 <action>
2788 <action function="unmount">usb</action>
2789 </action>
2790
2791 <action>
2792 <action function="page">mount</action>
2793 <action function="set">tw_busy=0</action>
2794 </action>
2795 </page>
2796
2797 <page name="system_readonly_check">
2798 <action>
2799 <action function="checkpartitionlifetimewrites">/system</action>
2800 </action>
2801
2802 <action>
2803 <condition var1="tw_lifetime_writes" var2="1"/>
2804 <actions>
2805 <action function="mountsystemtoggle">0</action>
2806 <action function="page">mount</action>
2807 </actions>
2808 </action>
2809
2810 <action>
2811 <condition var1="tw_lifetime_writes" var2="0"/>
2812 <actions>
2813 <action function="set">tw_back=mount</action>
2814 <action function="page">system_readonly</action>
2815 </actions>
2816 </action>
2817 </page>
2818
bigbiffdf8436b2020-08-30 16:22:34 -04002819 <page name="fastbootreboot">
2820 <template name="page"/>
2821
2822 <text style="text_l">
2823 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2824 <text>{@reboot_hdr=Reboot}</text>
2825 </text>
2826
2827 <listbox style="advanced_listbox">
Captain Throwback6321bc32020-12-25 22:46:59 -05002828 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%fileselector_install_height%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04002829
2830 <listitem name="{@rb_system_btn=System}">
2831 <condition var1="tw_reboot_system" var2="1"/>
2832 <actions>
2833 <action function="set">tw_back=fastbootreboot</action>
2834 <action function="set">tw_action=reboot</action>
2835 <action function="set">tw_action_param=system</action>
2836 <action function="set">tw_reboot_param=system</action>
2837 <action function="set">tw_has_action2=0</action>
2838 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2839 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2840 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2841 <action function="page">confirm_action</action>
2842 </actions>
2843 </listitem>
2844
2845 <listitem name="{@rb_poweroff_btn=Power Off}">
2846 <condition var1="tw_reboot_poweroff" var2="1"/>
2847 <actions>
2848 <action function="set">tw_back=fastbootreboot</action>
2849 <action function="set">tw_action=reboot</action>
2850 <action function="set">tw_action_param=poweroff</action>
2851 <action function="set">tw_reboot_param=poweroff</action>
2852 <action function="set">tw_has_action2=0</action>
2853 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2854 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2855 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2856 <action function="page">confirm_action</action>
2857 </actions>
2858 </listitem>
2859
2860 <listitem name="{@rb_recovery_btn=Recovery}">
2861 <condition var1="tw_reboot_recovery" var2="1"/>
2862 <actions>
2863 <action function="set">tw_back=fastbootreboot</action>
2864 <action function="set">tw_action=reboot</action>
2865 <action function="set">tw_action_param=recovery</action>
2866 <action function="set">tw_reboot_param=recovery</action>
2867 <action function="set">tw_has_action2=0</action>
2868 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2869 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2870 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2871 <action function="page">confirm_action</action>
2872 </actions>
2873 </listitem>
2874
2875 <listitem name="{@rb_bootloader_btn=Bootloader}">
2876 <condition var1="tw_reboot_bootloader" var2="1"/>
2877 <actions>
2878 <action function="set">tw_back=fastbootreboot</action>
2879 <action function="set">tw_action=reboot</action>
2880 <action function="set">tw_action_param=bootloader</action>
2881 <action function="set">tw_reboot_param=bootloader</action>
2882 <action function="set">tw_has_action2=0</action>
2883 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2884 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2885 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2886 <action function="page">confirm_action</action>
2887 </actions>
2888 </listitem>
2889
2890 <listitem name="{@rb_download_btn=Download}">
2891 <condition var1="tw_download_mode" var2="1"/>
2892 <actions>
2893 <action function="set">tw_back=fastbootreboot</action>
2894 <action function="set">tw_action=reboot</action>
2895 <action function="set">tw_action_param=download</action>
2896 <action function="set">tw_reboot_param=download</action>
2897 <action function="set">tw_has_action2=0</action>
2898 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2899 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2900 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2901 <action function="page">confirm_action</action>
2902 </actions>
2903 </listitem>
2904
2905 <listitem name="{@fastboot_button=Fastboot}">
2906 <condition var1="tw_fastboot_mode" var2="1"/>
2907 <actions>
2908 <action function="set">tw_back=fastbootreboot</action>
2909 <action function="set">tw_action=reboot</action>
2910 <action function="set">tw_action_param=fastboot</action>
2911 <action function="set">tw_reboot_param=fastboot</action>
2912 <action function="set">tw_has_action2=0</action>
2913 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2914 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2915 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2916 <action function="page">confirm_action</action>
2917 </actions>
2918 </listitem>
2919
Aseem Athaledd81b9a2021-11-08 13:12:30 +05302920 <listitem name="{@rb_edl_btn=EDL}">
bigbiffdf8436b2020-08-30 16:22:34 -04002921 <condition var1="tw_edl_mode" var2="1"/>
2922 <actions>
2923 <action function="set">tw_back=fastbootreboot</action>
2924 <action function="set">tw_action=reboot</action>
2925 <action function="set">tw_action_param=edl</action>
2926 <action function="set">tw_reboot_param=edl</action>
2927 <action function="set">tw_has_action2=0</action>
2928 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2929 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2930 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2931 <action function="page">confirm_action</action>
2932 </actions>
2933 </listitem>
2934 </listbox>
2935 <action>
2936 <touch key="home"/>
2937 <action function="page">fastboot</action>
2938 </action>
2939
2940 <action>
2941 <touch key="back"/>
2942 <action function="page">fastboot</action>
2943 </action>
2944 </page>
2945
z31s1g28f0a922015-11-07 18:50:22 +01002946 <page name="reboot">
Ethan Yonker8581ab32020-12-17 14:51:50 -06002947 <action>
2948 <action function="checkforapp"></action>
2949 <action function="page">reboot2</action>
2950 </action>
2951 </page>
2952
2953 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01002954 <template name="page"/>
2955
2956 <text style="text_l">
2957 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002958 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002959 </text>
2960
bigbiffdf8436b2020-08-30 16:22:34 -04002961 <listbox style="advanced_listbox">
Captain Throwback6321bc32020-12-25 22:46:59 -05002962 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%fileselector_install_height%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04002963
2964 <listitem name="{@rb_system_btn=System}">
2965 <condition var1="tw_reboot_system" var2="1"/>
2966 <actions>
2967 <action function="set">tw_back=reboot</action>
2968 <action function="page">reboot_system_routine</action>
2969 </actions>
2970 </listitem>
2971
2972 <listitem name="{@rb_poweroff_btn=Power Off}">
2973 <condition var1="tw_reboot_poweroff" var2="1"/>
2974 <actions>
2975 <action function="set">tw_back=reboot</action>
2976 <action function="set">tw_action=reboot</action>
2977 <action function="set">tw_action_param=poweroff</action>
2978 <action function="set">tw_reboot_param=poweroff</action>
2979 <action function="set">tw_has_action2=0</action>
2980 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2981 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
2982 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2983 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2984 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2985 <action function="page">rebootcheck</action>
2986 </actions>
2987 </listitem>
2988
2989 <listitem name="{@rb_recovery_btn=Recovery}">
2990 <condition var1="tw_reboot_recovery" var2="1"/>
2991 <actions>
2992 <action function="set">tw_back=reboot</action>
2993 <action function="set">tw_action=reboot</action>
2994 <action function="set">tw_action_param=recovery</action>
2995 <action function="set">tw_reboot_param=recovery</action>
2996 <action function="set">tw_has_action2=0</action>
2997 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2998 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2999 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3000 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3001 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3002 <action function="page">rebootcheck</action>
3003 </actions>
3004 </listitem>
3005
3006 <listitem name="{@rb_bootloader_btn=Bootloader}">
3007 <condition var1="tw_reboot_bootloader" var2="1"/>
3008 <actions>
3009 <action function="set">tw_back=reboot</action>
3010 <action function="set">tw_action=reboot</action>
3011 <action function="set">tw_action_param=bootloader</action>
3012 <action function="set">tw_reboot_param=bootloader</action>
3013 <action function="set">tw_has_action2=0</action>
3014 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3015 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3016 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3017 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3018 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3019 <action function="page">rebootcheck</action>
3020 </actions>
3021 </listitem>
3022
3023 <listitem name="{@rb_download_btn=Download}">
3024 <condition var1="tw_download_mode" var2="1"/>
3025 <actions>
3026 <action function="set">tw_back=reboot</action>
3027 <action function="set">tw_action=reboot</action>
3028 <action function="set">tw_action_param=download</action>
3029 <action function="set">tw_reboot_param=download</action>
3030 <action function="set">tw_has_action2=0</action>
3031 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3032 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3033 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3034 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3035 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3036 <action function="page">rebootcheck</action>
3037 </actions>
3038 </listitem>
3039
3040
3041 <listitem name="{@fastboot_button=Fastboot}">
3042 <condition var1="tw_fastboot_mode" var2="1"/>
3043 <actions>
3044 <action function="set">tw_back=reboot</action>
3045 <action function="set">tw_action=reboot</action>
3046 <action function="set">tw_action_param=fastboot</action>
3047 <action function="set">tw_reboot_param=fastboot</action>
3048 <action function="set">tw_has_action2=0</action>
3049 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3050 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3051 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3052 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3053 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3054 <action function="page">rebootcheck</action>
3055 </actions>
3056 </listitem>
3057
Aseem Athaledd81b9a2021-11-08 13:12:30 +05303058 <listitem name="{@rb_edl_btn=EDL}">
bigbiffdf8436b2020-08-30 16:22:34 -04003059 <condition var1="tw_edl_mode" var2="1"/>
3060 <actions>
3061 <action function="set">tw_back=reboot</action>
3062 <action function="set">tw_action=reboot</action>
3063 <action function="set">tw_action_param=edl</action>
3064 <action function="set">tw_reboot_param=edl</action>
3065 <action function="set">tw_has_action2=0</action>
3066 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3067 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3068 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3069 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3070 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3071 <action function="page">rebootcheck</action>
3072 </actions>
Captain Throwback52978932021-09-05 15:11:07 -04003073 </listitem>
bigbiffdf8436b2020-08-30 16:22:34 -04003074 </listbox>
3075
Ethan Yonker8581ab32020-12-17 14:51:50 -06003076 <button style="main_button">
3077 <condition var1="tw_app_install_status" var2="1"/>
3078 <placement x="%center_x%" y="%row12_y%"/>
3079 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
3080 <actions>
3081 <action function="set">tw_back=reboot</action>
3082 <action function="set">tw_appinstall_title={@reboot_hdr=Reboot}</action>
3083 <action function="page">installapp</action>
3084 </actions>
3085 </button>
3086
bigbiffdf8436b2020-08-30 16:22:34 -04003087 <text style="text_m">
3088 <condition var1="tw_has_boot_slots" var2="1"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003089 <placement x="%col1_x_header%" y="%row14_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04003090 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
3091 </text>
3092
z31s1g28f0a922015-11-07 18:50:22 +01003093 <button style="main_button">
bigbiffdf8436b2020-08-30 16:22:34 -04003094 <condition var1="tw_has_boot_slots" var2="1"/>
3095 <placement x="%indent%" y="%row16_y%"/>
3096 <text>{@boot_slot_a=Slot A}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003097 <actions>
3098 <action function="set">tw_back=reboot</action>
bigbiffdf8436b2020-08-30 16:22:34 -04003099 <action function="set">tw_action=setbootslot</action>
3100 <action function="set">tw_action_param=A</action>
3101 <action function="set">tw_has_action2=0</action>
3102 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3103 <action function="set">tw_action_text2=</action>
3104 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3105 <action function="page">action_page</action>
z31s1g28f0a922015-11-07 18:50:22 +01003106 </actions>
3107 </button>
3108
3109 <button style="main_button">
bigbiffdf8436b2020-08-30 16:22:34 -04003110 <condition var1="tw_has_boot_slots" var2="1"/>
3111 <placement x="%center_x%" y="%row16_y%"/>
3112 <text>{@boot_slot_b=Slot B}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003113 <actions>
3114 <action function="set">tw_back=reboot</action>
bigbiffdf8436b2020-08-30 16:22:34 -04003115 <action function="set">tw_action=setbootslot</action>
3116 <action function="set">tw_action_param=B</action>
z31s1g28f0a922015-11-07 18:50:22 +01003117 <action function="set">tw_has_action2=0</action>
bigbiffdf8436b2020-08-30 16:22:34 -04003118 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3119 <action function="set">tw_action_text2=</action>
3120 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3121 <action function="page">action_page</action>
mauronofrioe9a49ef2018-10-03 13:38:16 +02003122 </actions>
3123 </button>
3124
z31s1g28f0a922015-11-07 18:50:22 +01003125 <action>
3126 <touch key="home"/>
3127 <action function="page">main</action>
3128 </action>
3129
3130 <action>
3131 <touch key="back"/>
3132 <action function="page">main</action>
3133 </action>
3134 </page>
3135
Ethan Yonker8581ab32020-12-17 14:51:50 -06003136 <page name="installapp">
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003137 <template name="page"/>
3138
3139 <text style="text_l">
3140 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003141 <text>%tw_appinstall_title%</text>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003142 </text>
3143
3144 <text style="text_m">
3145 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003146 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003147 </text>
3148
3149 <text style="text_m_accent">
3150 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3151 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3152 </text>
3153
3154 <text style="text_m_accent">
3155 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3156 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3157 </text>
3158
3159 <checkbox>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003160 <condition var1="tw_mount_system_ro" var2="0"/>
3161 <placement x="%indent%" y="%row7_y%"/>
3162 <text>{@reboot_install_app_system=Install as a System App}</text>
3163 <data variable="tw_app_install_system"/>
3164 </checkbox>
3165
3166 <button style="main_button_half_width">
3167 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003168 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003169 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003170 </button>
3171
3172 <slider>
3173 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3174 <actions>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003175 <action function="set">tw_action=installapp</action>
3176 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3177 <action function="set">tw_action_text2=</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003178 <action function="set">tw_complete_text1={@successful=Successful}</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003179 <action function="page">action_page</action>
3180 </actions>
3181 </slider>
3182
3183 <action>
3184 <touch key="home"/>
3185 <actions>
3186 <action function="set">tw_app_install_status=0</action>
3187 <action function="page">main</action>
3188 </actions>
3189 </action>
3190
3191 <action>
3192 <touch key="back"/>
3193 <actions>
3194 <action function="set">tw_app_install_status=0</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003195 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003196 </actions>
3197 </action>
3198 </page>
3199
z31s1g28f0a922015-11-07 18:50:22 +01003200 <page name="system_readonly">
3201 <template name="page"/>
3202
3203 <text style="text_l">
3204 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003205 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003206 </text>
3207
3208 <text style="text_m_accent">
3209 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003210 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003211 </text>
3212
3213 <text style="text_m">
3214 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003215 <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 +01003216 </text>
3217
3218 <text style="text_m">
3219 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003220 <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 +01003221 </text>
3222
3223 <text style="text_m_fail">
3224 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003225 <text>{@sys_rol3=Installing zips or performing adb operations may still modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003226 </text>
3227
3228 <checkbox>
3229 <condition var1="tw_is_encrypted" var2="0"/>
3230 <placement x="%col1_x_left%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003231 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003232 <data variable="tw_never_show_system_ro_page"/>
3233 </checkbox>
3234
3235 <button style="main_button_half_width">
3236 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003237 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003238 <actions>
3239 <action function="mountsystemtoggle">1</action>
3240 <action function="set">tw_page_done=1</action>
3241 <action function="page">%tw_back%</action>
3242 </actions>
3243 </button>
3244
z31s1g608d7ff2016-01-18 19:47:25 +01003245 <button style="main_button_half_width">
3246 <placement x="%col2_x_left%" y="%row15a_y%"/>
3247 <text>{@sel_lang_btn=Select Language}</text>
3248 <action function="overlay">select_language</action>
3249 </button>
3250
z31s1g28f0a922015-11-07 18:50:22 +01003251 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003252 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003253 <actions>
3254 <action function="mountsystemtoggle">0</action>
3255 <action function="set">tw_page_done=1</action>
3256 <action function="page">%tw_back%</action>
3257 </actions>
3258 </slider>
3259 </page>
3260
3261 <page name="settings">
3262 <template name="page"/>
3263
3264 <text style="text_l">
3265 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003266 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003267 </text>
3268
3269 <text style="text_m">
3270 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003271 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003272 </text>
3273
3274 <template name="tabs_settings"/>
3275
3276 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003277 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003278 </fill>
3279
3280 <listbox style="scrolllist">
3281 <placement x="%col1_x_left%" y="%row3a_y%" w="%content_half_width%" h="%listbox_settings_height%"/>
3282 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003283 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003284 <data variable="tw_signed_zip_verify"/>
3285 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003286 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3287 <data variable="tw_install_reboot"/>
3288 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003289 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003290 <data variable="tw_rm_rf"/>
3291 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003292 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3293 <data variable="tw_disable_free_space"/>
3294 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003295 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3296 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003297 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003298 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3299 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003300 </listitem>
epicX9597b842021-03-20 21:58:17 +05303301 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
3302 <data variable="tw_skip_digest_check_zip"/>
3303 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003304 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003305 <data variable="tw_military_time"/>
3306 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003307 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003308 <data variable="tw_simulate_actions"/>
3309 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003310 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003311 <condition var1="tw_simulate_actions" var2="1"/>
3312 <data variable="tw_simulate_fail"/>
3313 </listitem>
bigbiff bigbiff1c01fab2017-08-07 18:41:14 -04003314 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3315 <condition var1="tw_no_sha2" var2="0"/>
3316 <data variable="tw_use_sha2"/>
3317 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003318 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3319 <data variable="tw_unmount_system"/>
3320 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003321 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
3322 <conditions>
3323 <condition var1="tw_has_boot_slots" var2="1"/>
3324 <condition var1="tw_has_repack_tools" var2="1"/>
3325 </conditions>
3326 <data variable="tw_auto_reflashtwrp"/>
3327 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003328 </listbox>
3329
3330 <checkbox>
3331 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003332 <text>{@rev_navbar_chk=Reversed navbar layout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003333 <data variable="tw_samsung_navbar"/>
3334 </checkbox>
3335
3336 <button style="radiobutton">
3337 <condition var1="tw_navbar_button_position" op="!=" var2="0"/>
3338 <placement x="%col1_x_right%" y="%row5_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003339 <text>{@ctr_navbar_rdo=Center navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003340 <image resource="radio_false"/>
3341 <action function="set">tw_navbar_button_position=0</action>
3342 </button>
3343
3344 <button style="radiobutton">
3345 <condition var1="tw_navbar_button_position" var2="0"/>
3346 <placement x="%col1_x_right%" y="%row5_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003347 <text>{@ctr_navbar_rdo=Center navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003348 <image resource="radio_true"/>
3349 <action function="set">tw_navbar_button_position=0</action>
3350 </button>
3351
3352 <button style="radiobutton">
3353 <condition var1="tw_navbar_button_position" op="!=" var2="1"/>
3354 <placement x="%col1_x_right%" y="%row6a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003355 <text>{@lft_navbar_rdo=Left align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003356 <image resource="radio_false"/>
3357 <action function="set">tw_navbar_button_position=1</action>
3358 </button>
3359
3360 <button style="radiobutton">
3361 <condition var1="tw_navbar_button_position" var2="1"/>
3362 <placement x="%col1_x_right%" y="%row6a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003363 <text>{@lft_navbar_rdo=Left align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003364 <image resource="radio_true"/>
3365 <action function="set">tw_navbar_button_position=1</action>
3366 </button>
3367
3368 <button style="radiobutton">
3369 <condition var1="tw_navbar_button_position" op="!=" var2="2"/>
3370 <placement x="%col1_x_right%" y="%row8_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003371 <text>{@rht_navbar_rdo=Right align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003372 <image resource="radio_false"/>
3373 <action function="set">tw_navbar_button_position=2</action>
3374 </button>
3375
3376 <button style="radiobutton">
3377 <condition var1="tw_navbar_button_position" var2="2"/>
3378 <placement x="%col1_x_right%" y="%row8_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003379 <text>{@rht_navbar_rdo=Right align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003380 <image resource="radio_true"/>
3381 <action function="set">tw_navbar_button_position=2</action>
3382 </button>
3383
3384 <button style="main_button_half_width">
3385 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003386 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003387 <action function="restoredefaultsettings"/>
3388 </button>
3389
3390 <action>
3391 <touch key="home"/>
3392 <action function="page">main</action>
3393 </action>
3394
3395 <action>
3396 <touch key="back"/>
3397 <action function="page">main</action>
3398 </action>
3399 </page>
3400
3401 <page name="settings_timezone">
3402 <template name="page"/>
3403
3404 <text style="text_l">
3405 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003406 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003407 </text>
3408
3409 <text style="text_m">
3410 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003411 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003412 </text>
3413
3414 <template name="tabs_settings"/>
3415
3416 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003417 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003418 </fill>
3419
3420 <listbox>
3421 <placement x="%col1_x_left%" y="%row3_y%" w="%content_half_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003422 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003423 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003424 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3425 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3426 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3427 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3428 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3429 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3430 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3431 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3432 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3433 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3434 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3435 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3436 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3437 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3438 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3439 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3440 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3441 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3442 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3443 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3444 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3445 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3446 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3447 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003448 </listbox>
3449
3450 <text style="text_m_accent">
3451 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003452 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003453 </text>
3454
3455 <button style="button_quarter_width">
3456 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003457 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003458 <action function="set">tw_time_zone_guioffset=0</action>
3459 </button>
3460
3461 <button style="button_quarter_width">
3462 <placement x="%btn4_col2_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003463 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003464 <action function="set">tw_time_zone_guioffset=15</action>
3465 </button>
3466
3467 <button style="button_quarter_width">
3468 <placement x="%btn4_col3_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003469 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003470 <action function="set">tw_time_zone_guioffset=30</action>
3471 </button>
3472
3473 <button style="button_quarter_width">
3474 <placement x="%btn4_col4_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003475 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003476 <action function="set">tw_time_zone_guioffset=45</action>
3477 </button>
3478
3479 <checkbox>
3480 <placement x="%col1_x_right%" y="%row7_y%"/>
3481 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003482 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003483 <data variable="tw_time_zone_guidst"/>
3484 <image checked="checkbox_true" unchecked="checkbox_false"/>
3485 </checkbox>
3486
3487 <text color="%text_color%">
3488 <font resource="font_m"/>
3489 <placement x="%col1_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003490 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003491 </text>
3492
3493 <button>
3494 <highlight color="%highlight_color%"/>
3495 <placement x="%col2_x_right%" y="%row15a_y%"/>
3496 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003497 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003498 <image resource="main_button_half_width"/>
3499 <action function="setguitimezone"/>
3500 </button>
3501
3502 <action>
3503 <touch key="home"/>
3504 <action function="page">main</action>
3505 </action>
3506
3507 <action>
3508 <touch key="back"/>
3509 <action function="page">main</action>
3510 </action>
3511 </page>
3512
3513 <page name="settings_screen">
3514 <template name="page"/>
3515
3516 <text style="text_l">
3517 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003518 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003519 </text>
3520
3521 <text style="text_m">
3522 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003523 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003524 </text>
3525
3526 <template name="tabs_settings"/>
3527
3528 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003529 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003530 </fill>
3531
3532 <button>
3533 <placement x="%col1_x_left%" y="%row3a_y%" textplacement="6"/>
3534 <font resource="font_m" color="%text_color%"/>
3535 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3536 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003537 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003538 <image resource="checkbox_false"/>
3539 <action function="set">tw_screen_timeout_secs=60</action>
3540 </button>
3541
3542 <button>
3543 <placement x="%col1_x_left%" y="%row3a_y%" textplacement="6"/>
3544 <font resource="font_m" color="%text_color%"/>
3545 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3546 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003547 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003548 <image resource="checkbox_true"/>
3549 <action function="set">tw_screen_timeout_secs=0</action>
3550 </button>
3551
3552 <slidervalue>
3553 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3554 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3555 <placement x="col1_x_left" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003556 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003557 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3558 </slidervalue>
3559
3560 <slidervalue>
3561 <condition var1="tw_has_brightnesss_file" var2="1"/>
3562 <placement x="col1_x_left" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003563 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003564 <data variable="tw_brightness_pct" min="10" max="100"/>
3565 <actions>
3566 <action function="set">tw_brightness=%tw_brightness_max%</action>
3567 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3568 <action function="compute">tw_brightness/100</action>
3569 <action function="setbrightness">%tw_brightness%</action>
3570 </actions>
3571 </slidervalue>
3572
3573 <action>
3574 <touch key="home"/>
3575 <action function="page">main</action>
3576 </action>
3577
3578 <action>
3579 <touch key="back"/>
3580 <action function="page">main</action>
3581 </action>
3582 </page>
3583
3584 <page name="settings_vibration">
3585 <template name="page"/>
3586
3587 <text style="text_l">
3588 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003589 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003590 </text>
3591
3592 <text style="text_m">
3593 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003594 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003595 </text>
3596
3597 <template name="tabs_settings"/>
3598
3599 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003600 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003601 </fill>
3602
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003603 <text style="text_m">
3604 <condition var1="tw_disable_haptics" var2="1"/>
3605 <placement x="col1_x_left" y="%row4_y%" w="%content_width%"/>
3606 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3607 </text>
3608
z31s1g28f0a922015-11-07 18:50:22 +01003609 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003610 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003611 <placement x="col1_x_left" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003612 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003613 <data variable="tw_button_vibrate" min="0" max="300"/>
3614 </slidervalue>
3615
3616 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003617 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003618 <placement x="col1_x_left" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003619 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003620 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3621 </slidervalue>
3622
3623 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003624 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003625 <placement x="col1_x_left" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003626 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003627 <data variable="tw_action_vibrate" min="0" max="500"/>
3628 </slidervalue>
3629
3630 <action>
3631 <touch key="home"/>
3632 <action function="page">main</action>
3633 </action>
3634
3635 <action>
3636 <touch key="back"/>
3637 <action function="page">main</action>
3638 </action>
3639 </page>
3640
Ethan Yonker74db1572015-10-28 12:44:49 -05003641 <page name="settings_language">
3642 <template name="page"/>
3643
3644 <text style="text_l">
3645 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3646 <text>{@settings_hdr=Settings}</text>
3647 </text>
3648
3649 <text style="text_m">
3650 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3651 <text>{@language_hdr=Language - %tw_language_display%}</text>
3652 </text>
3653
3654 <template name="tabs_settings"/>
3655
3656 <fill color="%text_color%">
3657 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3658 </fill>
3659
3660 <listbox>
z31s1g56189522016-01-13 19:12:40 +01003661 <placement x="%col1_x_left%" y="%row3_y%" w="%content_half_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003662 <text>{@select_language=Select Language:}</text>
3663 <icon selected="radio_true" unselected="radio_false" />
3664 <data name="tw_language" />
3665 </listbox>
3666
z31s1g56189522016-01-13 19:12:40 +01003667 <button>
3668 <highlight color="%highlight_color%"/>
3669 <placement x="%col2_x_right%" y="%row15a_y%"/>
3670 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003671 <text>{@set_language_btn=Set Language}</text>
z31s1g56189522016-01-13 19:12:40 +01003672 <image resource="main_button_half_width"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003673 <action function="setlanguage"></action>
3674 </button>
3675
3676 <action>
3677 <touch key="home" />
3678 <action function="page">main</action>
3679 </action>
3680
3681 <action>
3682 <touch key="back" />
3683 <action function="page">settings</action>
3684 </action>
3685 </page>
3686
Matt Mower32676622017-01-18 18:56:13 -06003687 <page name="copylog">
3688 <template name="page"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003689
Matt Mower32676622017-01-18 18:56:13 -06003690 <text style="text_l">
3691 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3692 <text>{@copying_log=Copy Logs to SD Card}</text>
3693 </text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003694
Matt Mower32676622017-01-18 18:56:13 -06003695 <checkbox>
Captain Throwback52978932021-09-05 15:11:07 -04003696 <condition var1="tw_logcat_exists" var2="1"/>
Matt Mower32676622017-01-18 18:56:13 -06003697 <placement x="%indent%" y="%row4_y%"/>
Captain Throwback52978932021-09-05 15:11:07 -04003698 <text>{@include_logcat=Include Logcat}</text>
3699 <data variable="tw_include_logcat" value="1"/>
3700 </checkbox>
3701
3702 <checkbox>
3703 <placement x="%indent%" y="%row6_y%"/>
Matt Mower32676622017-01-18 18:56:13 -06003704 <text>{@include_kernel_log=Include Kernel Log}</text>
3705 <data variable="tw_include_kernel_log" value="1"/>
3706 </checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003707
Matt Mower32676622017-01-18 18:56:13 -06003708 <slider>
3709 <text>{@copying_log=Copy Logs to SD Card}</text>
3710 <actions>
3711 <action function="set">tw_back=advanced</action>
3712 <action function="set">tw_action=copylog</action>
3713 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3714 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
3715 <action function="page">action_page</action>
3716 </actions>
3717 </slider>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003718
Matt Mower32676622017-01-18 18:56:13 -06003719 <action>
3720 <touch key="home"/>
3721 <action function="page">main</action>
3722 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003723
Matt Mower32676622017-01-18 18:56:13 -06003724 <action>
3725 <touch key="back"/>
3726 <actions>
3727 <action function="page">advanced</action>
3728 </actions>
3729 </action>
3730 </page>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003731
z31s1g28f0a922015-11-07 18:50:22 +01003732 <page name="advanced">
3733 <template name="page"/>
3734
3735 <text style="text_l">
3736 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003737 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003738 </text>
3739
3740 <button style="main_button">
3741 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003742 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003743 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003744 </button>
3745
3746 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003747 <placement x="%col1_x_left%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003748 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003749 <action function="page">filemanagerlist</action>
3750 </button>
3751
3752 <button style="main_button">
3753 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003754 <text>{@terminal_btn=Terminal}</text>
z31s1g56189522016-01-13 19:12:40 +01003755 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003756 </button>
3757
3758 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003759 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003760 <text>{@adb_sideload_btn=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003761 <action function="page">sideload</action>
3762 </button>
3763
Ethan Yonker64e0a652018-07-25 09:52:17 -05003764 <listbox style="advanced_listbox">
3765 <placement x="%center_x%" y="%row2_y%" w="%content_half_width%" h="%fileselector_install_height%"/>
epicXa721f952021-01-04 13:01:31 +05303766 <listitem name="{@change_twrp_folder_btn=Change TWRP folder}">
3767 <condition var1="tw_is_encrypted" var2="0"/>
3768 <action function="page">changeTwrpFolder</action>
3769 </listitem>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003770 <listitem name="{@decrypt_users=Decrypt Users}">
3771 <conditions>
3772 <condition var1="tw_is_fbe" var2="1"/>
3773 <condition var1="tw_all_users_decrypted" var2="0"/>
3774 </conditions>
3775 <actions>
3776 <action function="set">tw_crypto_user_id=</action>
3777 <action function="page">decrypt_users</action>
3778 </actions>
3779 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003780 <listitem name="{@reload_theme_btn=Reload Theme}">
3781 <action function="reload"/>
3782 </listitem>
3783 <listitem name="{@part_sd_btn=Partition SD Card}">
3784 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3785 <actions>
3786 <action function="set">partitionlisterror=0</action>
3787 <action function="page">partsdcardsel</action>
3788 </actions>
3789 </listitem>
3790 <listitem name="{@fix_context_btn=Fix Contexts}">
3791 <condition var1="tw_has_data_media" var2="1"/>
3792 <action function="page">fixcontexts</action>
3793 </listitem>
3794 <listitem name="{@dumlock_btn=HTC Dumlock}">
3795 <condition var1="tw_show_dumlock" var2="1"/>
3796 <action function="page">htcdumlock</action>
3797 </listitem>
3798 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3799 <condition var1="tw_has_injecttwrp" var2="1"/>
3800 <actions>
3801 <action function="set">tw_back=advanced</action>
3802 <action function="set">tw_action=reinjecttwrp</action>
3803 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3804 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3805 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3806 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3807 <action function="page">confirm_action</action>
3808 </actions>
3809 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003810 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3811 <conditions>
3812 <condition var1="tw_has_boot_slots" var2="1"/>
3813 <condition var1="tw_has_repack_tools" var2="1"/>
3814 </conditions>
3815 <actions>
3816 <action function="set">tw_repack_kernel=0</action>
3817 <action function="page">repackselect</action>
3818 </actions>
3819 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003820 <listitem name="{@reflash_twrp=Flash Current TWRP}">
3821 <conditions>
3822 <condition var1="tw_has_boot_slots" var2="1"/>
3823 <condition var1="tw_has_repack_tools" var2="1"/>
3824 </conditions>
3825 <actions>
3826 <action function="set">tw_repack_kernel=0</action>
3827 <action function="set">tw_back=advanced</action>
3828 <action function="set">tw_action=reflashtwrp</action>
3829 <action function="set">tw_text1={@reflash_twrp_confirm=Flash Current TWRP?}</action>
3830 <action function="set">tw_action_text1={@reflashing_twrp=Flashing TWRP...}</action>
3831 <action function="set">tw_complete_text1={@reflash_twrp_complete=Done flashing TWRP}</action>
3832 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3833 <action function="page">confirm_action</action>
3834 </actions>
3835 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003836 <listitem name="{@install_kernel=Install Kernel}">
3837 <conditions>
3838 <condition var1="tw_has_boot_slots" var2="1"/>
3839 <condition var1="tw_has_repack_tools" var2="1"/>
3840 </conditions>
3841 <actions>
3842 <action function="set">tw_repack_kernel=1</action>
3843 <action function="page">repackselect</action>
3844 </actions>
3845 </listitem>
3846 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3847 <conditions>
3848 <condition var1="tw_has_boot_slots" var2="1"/>
3849 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwbackbc2cfa32021-09-16 10:04:26 -04003850 <condition var1="tw_uses_initramfs" var2="1"/>
Ethan Yonker53796e72019-01-11 22:49:52 -06003851 </conditions>
3852 <actions>
3853 <action function="set">tw_back=advanced</action>
3854 <action function="set">tw_action=fixabrecoverybootloop</action>
3855 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3856 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3857 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3858 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3859 <action function="page">confirm_action</action>
3860 </actions>
3861 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003862 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3863 <condition var1="tw_app_install_status" var2="1"/>
3864 <actions>
3865 <action function="set">tw_back=advanced</action>
3866 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3867 <action function="page">installapp</action>
3868 </actions>
3869 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003870 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3871 <condition var1="tw_app_installed_in_system" var2="1"/>
3872 <actions>
3873 <action function="set">tw_back=advanced</action>
3874 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3875 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3876 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3877 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3878 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3879 <action function="page">confirm_action</action>
3880 </actions>
3881 </listitem>
bigbiffcfa875c2021-06-20 16:20:27 -04003882 <listitem name="{@unmap_super_devices=Unmap Super Devices}">
bigbiffab76bd72021-10-11 10:17:48 -04003883 <condition var1="tw_virtual_ab.enabled" op="=" var2="1"/>
bigbiffcfa875c2021-06-20 16:20:27 -04003884 <actions>
3885 <action function="set">tw_back=advanced</action>
3886 <action function="set">tw_action=unmapsuperdevices</action>
3887 <action function="set">tw_text1={@unmap_super_devices_confirm=Unmap all Super Devices?}</action>
3888 <action function="set">tw_action_text1={@unmapping_super_devices=Unmapping Super Devices...}</action>
3889 <action function="set">tw_complete_text1={@unmap_super_devices_complete=Unmapped all Super Devices}</action>
3890 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3891 <action function="page">confirm_action</action>
3892 </actions>
3893 </listitem>
bigbiffd21252f2021-09-18 15:56:32 -04003894 <listitem name="{@merges_snapshots=Merge Snapshots}">
bigbiffab76bd72021-10-11 10:17:48 -04003895 <condition var1="tw_virtual_ab.enabled" op="=" var2="1"/>
bigbiffd21252f2021-09-18 15:56:32 -04003896 <actions>
3897 <action function="set">tw_back=advanced</action>
3898 <action function="set">tw_action=mergesnapshots</action>
3899 <action function="set">tw_text1={@merge_snapshots_confirm=Merge Snapshots?}</action>
3900 <action function="set">tw_action_text1={@merging_snapshots=Merging Snapshots...}</action>
3901 <action function="set">tw_complete_text1={@merging_snapshots_complete=Merged Snapshots}</action>
3902 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3903 <action function="page">confirm_action</action>
3904 </actions>
3905 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003906 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003907
3908 <action>
3909 <touch key="home"/>
3910 <action function="page">main</action>
3911 </action>
3912
3913 <action>
3914 <touch key="back"/>
3915 <action function="page">main</action>
3916 </action>
3917 </page>
3918
Ethan Yonker483e9f42016-01-11 22:21:18 -06003919 <page name="partsdcardsel">
3920 <template name="page"/>
3921
3922 <text style="text_l">
3923 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3924 <text>{@advanced_hdr=Advanced}</text>
3925 </text>
3926
3927 <text style="text_m">
3928 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3929 <text>{@part_sd_hdr=Partition SD Card}</text>
3930 </text>
3931
z31s1g782e1c92016-01-30 16:50:09 +01003932 <partitionlist>
3933 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003934 <text>{@sel_storage_list=Select Storage}</text>
3935 <data name="tw_storage_path"/>
3936 <listtype name="storage"/>
3937 </partitionlist>
3938
z31s1g782e1c92016-01-30 16:50:09 +01003939 <text style="text_m_fail">
3940 <condition var1="partitionlisterror" var2="1"/>
3941 <placement x="%center_x%" y="%row14_y%" placement="5"/>
3942 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3943 </text>
3944
3945 <button style="main_button_half_width">
3946 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003947 <text>{@ok_btn=OK}</text>
3948 <actions>
3949 <action function="getpartitiondetails">tw_storage_path</action>
3950 <action function="page">partsdcardcheck</action>
3951 </actions>
3952 </button>
3953
Ethan Yonker483e9f42016-01-11 22:21:18 -06003954 <action>
3955 <touch key="home"/>
3956 <action function="page">main</action>
3957 </action>
3958
3959 <action>
3960 <touch key="back"/>
3961 <action function="page">advanced</action>
3962 </action>
3963 </page>
3964
3965 <page name="partsdcardcheck">
3966 <action>
3967 <condition var1="tw_partition_removable" op="=" var2="1"/>
3968 <actions>
3969 <action function="set">partitionlisterror=0</action>
3970 <action function="page">partsdcard</action>
3971 </actions>
3972 </action>
3973
3974 <action>
3975 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3976 <actions>
3977 <action function="set">partitionlisterror=1</action>
3978 <action function="page">partsdcardsel</action>
3979 </actions>
3980 </action>
3981 </page>
3982
z31s1g28f0a922015-11-07 18:50:22 +01003983 <page name="partsdcard">
3984 <template name="page"/>
3985
3986 <text style="text_l">
3987 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003988 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003989 </text>
3990
3991 <text style="text_m">
3992 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003993 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003994 </text>
3995
3996 <text style="text_m_fail">
3997 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003998 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003999 </text>
4000
4001 <text style="text_m_fail">
4002 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004003 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004004 </text>
4005
4006 <text style="text_m_accent">
4007 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004008 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004009 </text>
4010
4011 <text style="text_m">
4012 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4013 <text>%tw_sdext_size%</text>
4014 </text>
4015
4016 <button style="button_quarter_width">
4017 <placement x="%btn4_col3_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004018 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004019 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004020 </button>
4021
4022 <button style="button_quarter_width">
4023 <placement x="%btn4_col2_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004024 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004025 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004026 </button>
4027
4028 <text style="text_m_accent">
4029 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004030 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004031 </text>
4032
4033 <text style="text_m">
4034 <placement x="%center_x%" y="%row10_y%" placement="5"/>
4035 <text>%tw_swap_size%</text>
4036 </text>
4037
4038 <button style="button_quarter_width">
4039 <placement x="%btn4_col3_x_left%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004040 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004041 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004042 </button>
4043
4044 <button style="button_quarter_width">
4045 <placement x="%btn4_col2_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004046 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004047 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004048 </button>
4049
4050 <text style="text_m_accent">
4051 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004052 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004053 </text>
4054
4055 <text style="text_m">
4056 <placement x="%center_x%" y="%row14_y%" placement="5"/>
4057 <text>%tw_sdpart_file_system%</text>
4058 </text>
4059
4060 <button style="button_quarter_width">
4061 <placement x="%btn4_col3_x_left%" y="%row13_y%"/>
4062 <text>EXT3</text>
4063 <action function="set">tw_sdpart_file_system=ext3</action>
4064 </button>
4065
4066 <button style="button_quarter_width">
4067 <placement x="%btn4_col2_x_right%" y="%row13_y%"/>
4068 <text>EXT4</text>
4069 <action function="set">tw_sdpart_file_system=ext4</action>
4070 </button>
4071
4072 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004073 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004074 <action function="page">partsdcardaction</action>
4075 <actions>
4076 <action function="set">tw_back=partsdcard</action>
4077 <action function="set">tw_action=partitionsd</action>
4078 <action function="set">tw_has_action2=1</action>
4079 <action function="set">tw_action2=set</action>
4080 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004081 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4082 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4083 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004084 <action function="page">action_page</action>
4085 </actions>
4086 </slider>
4087
4088 <action>
4089 <touch key="home"/>
4090 <action function="page">main</action>
4091 </action>
4092
4093 <action>
4094 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004095 <action function="page">partsdcardsel</action>
z31s1g28f0a922015-11-07 18:50:22 +01004096 </action>
4097 </page>
4098
4099 <page name="htcdumlock">
4100 <template name="page"/>
4101
4102 <text style="text_l">
4103 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004104 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004105 </text>
4106
4107 <text style="text_m">
4108 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004109 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004110 </text>
4111
4112 <button style="main_button_m">
4113 <placement x="%col2_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004114 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004115 <actions>
4116 <action function="set">tw_back=htcdumlock</action>
4117 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004118 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4119 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4120 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4121 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004122 <action function="page">confirm_action</action>
4123 </actions>
4124 </button>
4125
4126 <button style="main_button_m">
4127 <placement x="%col2_x_left%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004128 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004129 <actions>
4130 <action function="set">tw_back=htcdumlock</action>
4131 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004132 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4133 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4134 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4135 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004136 <action function="page">confirm_action</action>
4137 </actions>
4138 </button>
4139
4140 <button style="main_button_m">
4141 <placement x="%col2_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004142 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004143 <actions>
4144 <action function="set">tw_back=htcdumlock</action>
4145 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004146 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
4147 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4148 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4149 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004150 <action function="page">confirm_action</action>
4151 </actions>
4152 </button>
4153
4154 <action>
4155 <touch key="home"/>
4156 <action function="page">main</action>
4157 </action>
4158
4159 <action>
4160 <touch key="back"/>
4161 <action function="page">advanced</action>
4162 </action>
4163 </page>
4164
Ethan Yonker53796e72019-01-11 22:49:52 -06004165 <page name="repackselect">
4166 <template name="page"/>
4167
4168 <text style="text_l">
4169 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4170 <text>{@repack_image_hdr=Select Image}</text>
4171 </text>
4172
4173 <text style="text_m">
4174 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4175 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
4176 </text>
4177
4178 <template name="sort_options"/>
4179
4180 <fileselector>
4181 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4182 <text>%tw_zip_location%</text>
4183 <filter extn=".img" folders="1" files="1"/>
4184 <path name="tw_zip_location" default="/sdcard"/>
4185 <data name="tw_filename"/>
4186 <selection name="tw_file"/>
4187 </fileselector>
4188
4189 <button style="main_button_half_width_low">
4190 <placement x="%col_button_right%" y="%row16a_y%"/>
4191 <text>{@select_storage_btn=Select Storage}</text>
4192 <actions>
4193 <action function="set">tw_back=install</action>
4194 <action function="overlay">select_storage</action>
4195 </actions>
4196 </button>
4197
4198 <action>
4199 <conditions>
4200 <condition var1="tw_filename" op="modified"/>
4201 </conditions>
4202 <action function="page">repackconfirm</action>
4203 </action>
4204
4205 <action>
4206 <touch key="back"/>
4207 <action function="page">advanced</action>
4208 </action>
4209
4210 <action>
4211 <touch key="home"/>
4212 <action function="page">main</action>
4213 </action>
4214 </page>
4215
4216 <page name="repackconfirm">
4217 <template name="page"/>
4218
4219 <text style="text_l">
4220 <condition var1="tw_repack_kernel" var2="1"/>
4221 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4222 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4223 </text>
4224
4225 <text style="text_l">
4226 <condition var1="tw_repack_kernel" var2="0"/>
4227 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4228 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4229 </text>
4230
4231 <text style="text_m">
4232 <condition var1="tw_repack_kernel" var2="1"/>
4233 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4234 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4235 </text>
4236
4237 <text style="text_m">
4238 <condition var1="tw_repack_kernel" var2="0"/>
4239 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4240 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4241 </text>
4242
4243 <text style="text_m_accent">
4244 <placement x="%indent%" y="%row2_y%"/>
4245 <text>{@folder=Folder:}</text>
4246 </text>
4247
4248 <text style="text_m">
4249 <placement x="%indent%" y="%row3_y%"/>
4250 <text>%tw_zip_location%</text>
4251 </text>
4252
4253 <text style="text_m_accent">
4254 <placement x="%indent%" y="%row4_y%"/>
4255 <text>{@file=File:}</text>
4256 </text>
4257
4258 <text style="text_m">
4259 <placement x="%indent%" y="%row5_y%"/>
4260 <text>%tw_file%</text>
4261 </text>
4262
4263 <checkbox>
4264 <placement x="%indent%" y="%row7_y%"/>
4265 <text>{@repack_backup_first=Back up existing image first}</text>
4266 <data variable="tw_repack_backup_first"/>
4267 </checkbox>
4268
4269 <button style="main_button_half_width">
4270 <placement x="%col1_x_left%" y="%row15a_y%"/>
4271 <text>{@install_cancel=Do not Install}</text>
4272 <action function="page">repackselect</action>
4273 </button>
4274
4275 <slider style="slider_centered">
4276 <text>{@swipe_to_install=Swipe to Install}</text>
4277 <actions>
4278 <action function="set">tw_back=advanced</action>
4279 <action function="set">tw_action=repackimage</action>
4280 <action function="set">tw_action_param=/boot</action>
4281 <action function="set">tw_action_text1={@installing=Installing...}</action>
4282 <action function="set">tw_action_text2=</action>
4283 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4284 <action function="page">action_page</action>
4285 </actions>
4286 </slider>
4287
4288 <action>
4289 <touch key="back"/>
4290 <action function="page">repackselect</action>
4291 </action>
4292
4293 <action>
4294 <touch key="home"/>
4295 <action function="page">main</action>
4296 </action>
4297 </page>
4298
z31s1g28f0a922015-11-07 18:50:22 +01004299 <page name="lock">
4300 <background color="%semi_transparent%"/>
4301
4302 <image>
4303 <image resource="unlock_icon"/>
4304 <placement x="%center_x%" y="%row8_y%" placement="4"/>
4305 </image>
4306
4307 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004308 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004309 <action function="overlay"/>
4310 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004311
4312 <action>
4313 <touch key="power"/>
4314 <action function="togglebacklight"/>
4315 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004316 </page>
4317
4318 <page name="filemanagerlist">
4319 <template name="page"/>
4320
4321 <text style="text_l">
4322 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004323 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004324 </text>
4325
4326 <text style="text_m">
4327 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004328 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004329 </text>
4330
4331 <template name="sort_options"/>
4332
4333 <fileselector>
4334 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4335 <text>%tw_file_location1%</text>
4336 <filter folders="1" files="1"/>
4337 <path name="tw_file_location1" default="/"/>
4338 <data name="tw_filename1"/>
4339 <selection name="tw_selection1"/>
4340 </fileselector>
4341
4342 <button style="main_button_half_width_low">
4343 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004344 <text>{@fm_sel_curr_folder=Select Current Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004345 <actions>
4346 <action function="set">tw_filename1=tw_file_location1</action>
4347 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004348 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004349 <action function="page">filemanageroptions</action>
4350 </actions>
4351 </button>
4352
4353 <action>
4354 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004355 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004356 <action function="set">tw_fm_isfolder=0</action>
4357 </actions>
4358 </action>
4359
4360 <action>
4361 <touch key="home"/>
4362 <action function="page">main</action>
4363 </action>
4364
4365 <action>
4366 <touch key="back"/>
4367 <action function="page">advanced</action>
4368 </action>
4369
4370 <action>
4371 <condition var1="tw_filename1" op="modified"/>
4372 <action function="page">filemanageroptions</action>
4373 </action>
4374 </page>
4375
4376 <page name="filemanageroptions">
4377 <template name="page"/>
4378
4379 <text style="text_l">
4380 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004381 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004382 </text>
4383
4384 <text style="text_m">
4385 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004386 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004387 </text>
4388
4389 <text style="text_m_accent">
4390 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004391 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004392 </text>
4393
4394 <text style="text_m">
4395 <placement x="%col1_x_left%" y="%row3_y%"/>
4396 <text>%tw_filename1%</text>
4397 </text>
4398
4399 <button style="main_button_half_width">
4400 <condition var1="tw_fm_isfolder" var2="0"/>
4401 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004402 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004403 <actions>
4404 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004405 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004406 <action function="page">choosedestinationfolder</action>
4407 </actions>
4408 </button>
4409
4410 <button style="main_button_half_width">
4411 <condition var1="tw_fm_isfolder" var2="1"/>
4412 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004413 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004414 <actions>
4415 <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 -05004416 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004417 <action function="page">choosedestinationfolder</action>
4418 </actions>
4419 </button>
4420
4421 <button style="main_button_half_width">
Captain Throwback16dd81b2021-02-12 19:32:36 -05004422edi <conditions>
4423 <condition var1="tw_include_nano" var2="1"/>
4424 <condition var1="tw_fm_isfolder" var2="0"/>
4425 </conditions>
4426 <placement x="%col1_x_left%" y="%row15a_y%"/>
4427 <text>{@fm_edit_file=Edit File}</text>
4428 <actions>
4429 <action function="editfile">nano "%tw_filename1%"</action>
4430 <action function="page">terminalcommand</action>
4431 </actions>
4432 </button>
4433
4434 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004435 <placement x="%col2_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004436 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004437 <actions>
4438 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004439 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004440 <action function="page">choosedestinationfolder</action>
4441 </actions>
4442 </button>
4443
4444 <button style="main_button_half_width">
4445 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004446 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004447 <actions>
4448 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004449 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004450 <action function="set">tw_fm_text2=</action>
4451 <action function="set">tw_fm_text3=</action>
4452 <action function="set">tw_include_text3=0</action>
4453 <action function="set">tw_back=filemanageroptions</action>
4454 <action function="page">filemanagerconfirm</action>
4455 </actions>
4456 </button>
4457
4458 <button style="main_button_half_width">
4459 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004460 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004461 <actions>
4462 <action function="set">tw_filemanager_rename=0000</action>
4463 <action function="set">tw_fm_text2=</action>
4464 <action function="set">tw_fm_text3=</action>
4465 <action function="set">tw_include_text3=0</action>
4466 <action function="set">tw_back=filemanageroptions</action>
4467 <action function="page">filemanagerchmod</action>
4468 </actions>
4469 </button>
4470
4471 <button style="main_button_half_width">
Mohd Faraz77bbeb02020-08-12 12:29:42 +00004472 <condition var1="tw_fm_isfolder" var2="1"/>
4473 <placement x="%col2_x_right%" y="%row15a_y%"/>
4474 <text>{@fm_open_terminal_btn=Open Terminal Here}</text>
4475 <action function="changeterminal">%tw_filename1%</action>
4476 </button>
4477
4478 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004479 <placement x="%col2_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004480 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004481 <actions>
4482 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004483 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004484 <action function="set">tw_fm_text2=</action>
4485 <action function="set">tw_fm_text3=</action>
4486 <action function="set">tw_include_text3=0</action>
4487 <action function="set">tw_back=filemanageroptions</action>
4488 <action function="page">filemanagerconfirm</action>
4489 </actions>
4490 </button>
4491
4492 <button style="main_button_half_width">
4493 <condition var1="tw_fm_isfolder" var2="0"/>
4494 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004495 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004496 <actions>
4497 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004498 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004499 <action function="set">tw_filemanager_command=mv</action>
4500 <action function="page">filemanagerrenamefile</action>
4501 </actions>
4502 </button>
4503
4504 <button style="main_button_half_width">
4505 <condition var1="tw_fm_isfolder" var2="1"/>
4506 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004507 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004508 <actions>
4509 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004510 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004511 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4512 <action function="page">filemanagerrenamefolder</action>
4513 </actions>
4514 </button>
4515
4516 <action>
4517 <touch key="home"/>
4518 <action function="page">main</action>
4519 </action>
4520
4521 <action>
4522 <touch key="back"/>
4523 <action function="page">filemanagerlist</action>
4524 </action>
4525 </page>
4526
4527 <page name="choosedestinationfolder">
4528 <template name="page"/>
4529
4530 <text style="text_l">
4531 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004532 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004533 </text>
4534
4535 <text style="text_m">
4536 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004537 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004538 </text>
4539
4540 <template name="sort_options"/>
4541
4542 <fileselector>
4543 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4544 <text>%tw_file_location2%</text>
4545 <filter folders="1" files="0"/>
4546 <path name="tw_file_location2" default="/"/>
4547 <data name="tw_filename2"/>
4548 <selection name="tw_selection2"/>
4549 </fileselector>
4550
4551 <button style="main_button_half_width_low">
4552 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004553 <text>{@fm_sel_curr_folder=Select Current Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004554 <actions>
4555 <action function="set">tw_fm_text2=to</action>
4556 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4557 <action function="set">tw_include_text3=1</action>
4558 <action function="set">tw_back=filemanageroptions</action>
4559 <action function="page">filemanagerconfirm</action>
4560 </actions>
4561 </button>
4562
4563 <action>
4564 <touch key="home"/>
4565 <action function="page">main</action>
4566 </action>
4567
4568 <action>
4569 <touch key="back"/>
4570 <action function="page">filemanageroptions</action>
4571 </action>
4572 </page>
4573
4574 <page name="filemanagerrenamefile">
4575 <template name="page"/>
4576
4577 <text style="text_l">
4578 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004579 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004580 </text>
4581
4582 <text style="text_m">
4583 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004584 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004585 </text>
4586
4587 <text style="text_m_accent">
4588 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004589 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004590 </text>
4591
4592 <input>
4593 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4594 <text>%tw_filemanager_rename%</text>
4595 <data name="tw_filemanager_rename"/>
4596 <restrict minlen="1" maxlen="128"/>
4597 <actions>
4598 <action function="set">tw_fm_text2=to</action>
4599 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4600 <action function="set">tw_include_text3=1</action>
4601 <action function="set">tw_back=filemanageroptions</action>
4602 <action function="page">filemanagerconfirm</action>
4603 </actions>
4604 </input>
4605
4606 <fill color="%accent_color%">
4607 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4608 </fill>
4609
4610 <button style="main_button_half_width_low">
4611 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004612 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004613 <action function="page">filemanageroptions</action>
4614 </button>
4615
4616 <template name="keyboardtemplate"/>
4617
4618 <action>
4619 <touch key="home"/>
4620 <action function="page">main</action>
4621 </action>
4622
4623 <action>
4624 <touch key="back"/>
4625 <action function="page">filemanageroptions</action>
4626 </action>
4627 </page>
4628
4629 <page name="filemanagerrenamefolder">
4630 <template name="page"/>
4631
4632 <text style="text_l">
4633 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004634 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004635 </text>
4636
4637 <text style="text_m">
4638 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004639 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004640 </text>
4641
4642 <text style="text_m_accent">
4643 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004644 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004645 </text>
4646
4647 <input>
4648 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4649 <text>%tw_filemanager_rename%</text>
4650 <data name="tw_filemanager_rename"/>
4651 <restrict minlen="1" maxlen="128"/>
4652 <actions>
4653 <action function="set">tw_fm_text2=to</action>
4654 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4655 <action function="set">tw_include_text3=1</action>
4656 <action function="set">tw_back=filemanageroptions</action>
4657 <action function="page">filemanagerconfirm</action>
4658 </actions>
4659 </input>
4660
4661 <fill color="%accent_color%">
4662 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4663 </fill>
4664
4665 <button style="main_button_half_width_low">
4666 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004667 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004668 <action function="page">filemanageroptions</action>
4669 </button>
4670
4671 <template name="keyboardtemplate"/>
4672
4673 <action>
4674 <touch key="home"/>
4675 <action function="page">main</action>
4676 </action>
4677
4678 <action>
4679 <touch key="back"/>
4680 <action function="page">filemanageroptions</action>
4681 </action>
4682 </page>
4683
4684 <page name="filemanagerchmod">
4685 <template name="page"/>
4686
4687 <text style="text_l">
4688 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004689 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004690 </text>
4691
4692 <text style="text_m">
4693 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004694 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004695 </text>
4696
4697 <text style="text_m_accent">
4698 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004699 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004700 </text>
4701
4702 <input>
4703 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4704 <text>%tw_filemanager_rename%</text>
4705 <data name="tw_filemanager_rename"/>
4706 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4707 <actions>
4708 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4709 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4710 <action function="set">tw_back=filemanageroptions</action>
4711 <action function="page">filemanagerconfirm</action>
4712 </actions>
4713 </input>
4714
4715 <fill color="%accent_color%">
4716 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4717 </fill>
4718
4719 <button style="main_button_half_width_low">
4720 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004721 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004722 <action function="page">filemanageroptions</action>
4723 </button>
4724
4725 <template name="keyboardtemplate"/>
4726
4727 <action>
4728 <touch key="home"/>
4729 <action function="page">main</action>
4730 </action>
4731
4732 <action>
4733 <touch key="back"/>
4734 <action function="page">filemanageroptions</action>
4735 </action>
4736 </page>
4737
4738 <page name="filemanagerconfirm">
4739 <template name="page"/>
4740
4741 <text style="text_l">
4742 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004743 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004744 </text>
4745
4746 <text style="text_m">
4747 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004748 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004749 </text>
4750
4751 <text style="text_m_accent">
4752 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4753 <text>%tw_fm_text1%</text>
4754 </text>
4755
4756 <text style="text_m">
4757 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4758 <text>%tw_filename1%</text>
4759 </text>
4760
4761 <text style="text_m_accent">
4762 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4763 <text>%tw_fm_text2%</text>
4764 </text>
4765
4766 <text style="text_m">
4767 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4768 <text>%tw_fm_text3%</text>
4769 </text>
4770
4771 <text style="text_m">
4772 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004773 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004774 </text>
4775
4776 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004777 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004778 <action function="page">filemanageraction</action>
4779 </slider>
4780
4781 <action>
4782 <touch key="back"/>
4783 <action function="page">%tw_back%</action>
4784 </action>
4785
4786 <action>
4787 <touch key="home"/>
4788 <action function="page">main</action>
4789 </action>
4790 </page>
4791
4792 <page name="filemanageraction">
4793 <template name="page"/>
4794
4795 <text style="text_l">
4796 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004797 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004798 </text>
4799
4800 <text style="text_m">
4801 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4802 <text>%tw_fm_text1%</text>
4803 </text>
4804
4805 <template name="console"/>
4806
4807 <template name="progress_bar"/>
4808
4809 <action>
4810 <conditions>
4811 <condition var1="tw_operation_state" var2="1"/>
4812 <condition var1="tw_operation_status" var2="0"/>
4813 </conditions>
4814 <actions>
4815 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004816 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004817 <action function="page">action_complete</action>
4818 </actions>
4819 </action>
4820
4821 <action>
4822 <conditions>
4823 <condition var1="tw_operation_state" var2="1"/>
4824 <condition var1="tw_operation_status" op="!=" var2="0"/>
4825 </conditions>
4826 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004827 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004828 <action function="page">action_complete</action>
4829 </actions>
4830 </action>
4831
4832 <action>
4833 <condition var1="tw_include_text3" var2="0"/>
4834 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4835 </action>
4836
4837 <action>
4838 <condition var1="tw_include_text3" var2="1"/>
4839 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4840 </action>
4841 </page>
4842
4843 <page name="decrypt">
4844 <template name="page"/>
4845
4846 <action>
4847 <condition var1="tw_crypto_pwtype" var2="2"/>
4848 <action function="page">decrypt_pattern</action>
4849 </action>
4850
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04004851 <action>
4852 <condition var1="tw_crypto_pwtype" var2="3"/>
4853 <action function="page">decrypt_pin</action>
4854 </action>
4855
z31s1g28f0a922015-11-07 18:50:22 +01004856 <text style="text_l">
4857 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004858 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004859 </text>
4860
4861 <text style="text_m">
4862 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004863 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004864 </text>
4865
4866 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004867 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004868 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004869 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004870 </text>
4871
Noah Jacobson81d638d2019-04-28 00:10:07 -04004872 <text style="text_m_accent">
4873 <condition var1="tw_is_fbe" var2="1"/>
4874 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4875 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4876 </text>
4877
z31s1g28f0a922015-11-07 18:50:22 +01004878 <input>
4879 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4880 <text>%tw_crypto_display%</text>
4881 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4882 <restrict minlen="1" maxlen="254"/>
4883 <action function="page">trydecrypt</action>
4884 </input>
4885
4886 <fill color="%accent_color%">
4887 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
4888 </fill>
4889
4890 <fill color="%text_fail_color%">
4891 <condition var1="tw_password_fail" var2="1"/>
4892 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
4893 </fill>
4894
4895 <text style="text_m_fail">
4896 <condition var1="tw_password_fail" var2="1"/>
4897 <placement x="%col1_x_left%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004898 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004899 </text>
4900
4901 <button style="main_button_half_width_low">
4902 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004903 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05004904 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004905 </button>
4906
z31s1g608d7ff2016-01-18 19:47:25 +01004907 <button style="main_button_half_width_low">
4908 <placement x="%indent_right%" y="%row6_y%" placement="1"/>
4909 <text>{@sel_lang_btn=Select Language}</text>
4910 <action function="overlay">select_language</action>
4911 </button>
4912
z31s1g28f0a922015-11-07 18:50:22 +01004913 <template name="keyboardtemplate"/>
4914 </page>
4915
4916 <page name="decrypt_pattern">
4917 <template name="page"/>
4918
4919 <text style="text_l">
4920 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004921 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004922 </text>
4923
4924 <text style="text_m">
4925 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004926 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004927 </text>
4928
4929 <text style="text_m_accent">
Aleksa Saraib25a1832015-12-31 17:36:00 +01004930 <placement x="%col2_x_left%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004931 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004932 </text>
4933
Aleksa Saraib25a1832015-12-31 17:36:00 +01004934 <text style="text_m_fail">
4935 <condition var1="tw_password_fail" var2="1"/>
4936 <placement x="%col2_x_left%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004937 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004938 </text>
4939
z31s1g28f0a922015-11-07 18:50:22 +01004940 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004941 <placement x="%pattern_x%" y="%row4a_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004942 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4943 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4944 <data name="tw_crypto_password"/>
4945 <action function="page">trydecrypt</action>
4946 </patternpassword>
4947
Aleksa Saraib25a1832015-12-31 17:36:00 +01004948 <button style="main_button_half_width_low">
4949 <placement x="%col_button_right%" y="%row1a_y%"/>
4950 <text>3x3</text>
4951 <action function="set">tw_gui_pattern_grid_size=3</action>
4952 </button>
4953
4954 <button style="main_button_half_width_low">
4955 <placement x="%col_button_right%" y="%row4a_y%"/>
4956 <text>4x4</text>
4957 <action function="set">tw_gui_pattern_grid_size=4</action>
4958 </button>
4959
4960 <button style="main_button_half_width_low">
4961 <placement x="%col_button_right%" y="%row7a_y%"/>
4962 <text>5x5</text>
4963 <action function="set">tw_gui_pattern_grid_size=5</action>
4964 </button>
4965
4966 <button style="main_button_half_width_low">
4967 <placement x="%col_button_right%" y="%row10a_y%"/>
4968 <text>6x6</text>
4969 <action function="set">tw_gui_pattern_grid_size=6</action>
4970 </button>
4971
z31s1g28f0a922015-11-07 18:50:22 +01004972 <button style="main_button_half_width">
z31s1g608d7ff2016-01-18 19:47:25 +01004973 <placement x="%col1_x_right%" y="%row15a_y%"/>
4974 <text>{@sel_lang_btn=Select Language}</text>
4975 <action function="overlay">select_language</action>
4976 </button>
4977
4978 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004979 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004980 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05004981 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004982 </button>
4983 </page>
4984
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04004985 <page name="decrypt_pin">
4986 <template name="page"/>
4987
4988 <text style="text_l">
4989 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4990 <text>{@mount_hdr=Mount}</text>
4991 </text>
4992
4993 <text style="text_m">
4994 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4995 <text>{@decrypt_data_hdr=Decrypt Data}</text>
4996 </text>
4997
4998 <text style="text_m_accent">
4999 <condition var1="tw_is_fbe" op="!=" var2="1"/>
5000 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5001 <text>{@decrypt_data_enter_pass=Enter PIN:}</text>
5002 </text>
5003
5004 <text style="text_m_accent">
5005 <condition var1="tw_is_fbe" var2="1"/>
5006 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5007 <text>{@decrypt_data_enter_pass_fbe=Enter PIN for User [%tw_crypto_user_id%]}</text>
5008 </text>
5009
5010 <input>
5011 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
5012 <text>%tw_crypto_display%</text>
5013 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
5014 <restrict minlen="1" maxlen="254"/>
5015 <action function="page">trydecrypt</action>
5016 </input>
5017
5018 <fill color="%accent_color%">
5019 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
5020 </fill>
5021
5022 <fill color="%text_fail_color%">
5023 <condition var1="tw_password_fail" var2="1"/>
5024 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
5025 </fill>
5026
5027 <text style="text_m_fail">
5028 <condition var1="tw_password_fail" var2="1"/>
5029 <placement x="%col1_x_left%" y="%row5_y%"/>
5030 <text>{@decrypt_data_failed=PIN failed, please try again!}</text>
5031 </text>
5032
5033 <button style="main_button_half_width_low">
5034 <placement x="%indent%" y="%row6_y%"/>
5035 <text>{@cancel_btn=Cancel}</text>
5036 <action function="page">canceldecrypt</action>
5037 </button>
5038
5039 <button style="main_button_half_width_low">
5040 <placement x="%indent_right%" y="%row6_y%" placement="1"/>
5041 <text>{@sel_lang_btn=Select Language}</text>
5042 <action function="overlay">select_language</action>
5043 </button>
5044
5045 <template name="keyboardnum"/>
5046 </page>
5047
z31s1g28f0a922015-11-07 18:50:22 +01005048 <page name="trydecrypt">
5049 <template name="page"/>
5050
5051 <text style="text_l">
5052 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005053 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005054 </text>
5055
5056 <text style="text_m">
5057 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005058 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005059 </text>
5060
5061 <template name="console"/>
5062
5063 <template name="progress_bar"/>
5064
5065 <action>
5066 <action function="decrypt"/>
5067 </action>
5068
5069 <action>
5070 <conditions>
5071 <condition var1="tw_operation_state" var2="1"/>
5072 <condition var1="tw_operation_status" op="!=" var2="0"/>
5073 </conditions>
5074 <actions>
5075 <action function="set">tw_password_fail=1</action>
5076 <action function="page">decrypt</action>
5077 </actions>
5078 </action>
5079
5080 <action>
5081 <conditions>
5082 <condition var1="tw_operation_state" var2="1"/>
5083 <condition var1="tw_operation_status" op="=" var2="0"/>
5084 </conditions>
5085 <actions>
5086 <action function="set">tw_page_done=1</action>
5087 <action function="page">main</action>
5088 </actions>
5089 </action>
5090 </page>
5091
Captain Throwback89b56a12021-02-10 18:25:07 -05005092 <page name="canceldecrypt">
5093 <template name="page"/>
5094
5095 <text style="text_l">
5096 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5097 <text>{@cancel_btn=Cancel}</text>
5098 </text>
5099
5100 <text style="text_m">
5101 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5102 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
5103 </text>
5104
5105 <template name="console"/>
5106
5107 <template name="progress_bar"/>
5108
5109 <action>
5110 <action function="refreshsizes"/>
5111 </action>
5112
5113 <action>
5114 <conditions>
5115 <condition var1="tw_operation_state" var2="1"/>
5116 </conditions>
5117 <actions>
5118 <action function="set">tw_page_done=1</action>
5119 <action function="page">main</action>
5120 </actions>
5121 </action>
5122 </page>
5123
z31s1g28f0a922015-11-07 18:50:22 +01005124 <page name="terminalcommand">
5125 <template name="page"/>
5126
5127 <fill color="%background_color%">
5128 <placement x="0" y="%status_height%" w="%screen_width%" h="%header_height%"/>
5129 </fill>
5130
z31s1g56189522016-01-13 19:12:40 +01005131 <terminal>
5132 <condition var1="tw_hide_kb" var2="0"/>
5133 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%terminal_s_height%"/>
5134 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005135
z31s1g56189522016-01-13 19:12:40 +01005136 <terminal>
5137 <condition var1="tw_hide_kb" var2="1"/>
5138 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%terminal_l_height%"/>
5139 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005140
z31s1g56189522016-01-13 19:12:40 +01005141 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005142
z31s1g56189522016-01-13 19:12:40 +01005143 <object type="fill" color="#000000">
5144 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
5145 </object>
z31s1g28f0a922015-11-07 18:50:22 +01005146
z31s1g608d7ff2016-01-18 19:47:25 +01005147 <button>
z31s1g56189522016-01-13 19:12:40 +01005148 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5149 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5150 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5151 <image resource="back" />
5152 <condition var1="tw_busy" var2="0" />
5153 <actions>
5154 <action function="set">tw_hide_kb=0</action>
5155 <action function="page">advanced</action>
5156 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005157 </button>
z31s1g56189522016-01-13 19:12:40 +01005158
z31s1g608d7ff2016-01-18 19:47:25 +01005159 <button>
z31s1g56189522016-01-13 19:12:40 +01005160 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5161 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5162 <condition var1="tw_hide_kb" op="=" var2="0" />
5163 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5164 <image resource="kb_hide" />
5165 <condition var1="tw_busy" var2="0" />
5166 <actions>
5167 <action function="set">tw_hide_kb=1</action>
5168 <action function="page">terminalcommand</action>
5169 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005170 </button>
z31s1g56189522016-01-13 19:12:40 +01005171
z31s1g608d7ff2016-01-18 19:47:25 +01005172 <button>
z31s1g56189522016-01-13 19:12:40 +01005173 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5174 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5175 <condition var1="tw_hide_kb" op="=" var2="1" />
5176 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5177 <image resource="kb_show" />
5178 <condition var1="tw_busy" var2="0" />
5179 <actions>
5180 <action function="set">tw_hide_kb=0</action>
5181 <action function="page">terminalcommand</action>
5182 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005183 </button>
z31s1g56189522016-01-13 19:12:40 +01005184
z31s1g608d7ff2016-01-18 19:47:25 +01005185 <button>
z31s1g56189522016-01-13 19:12:40 +01005186 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5187 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5188 <image resource="home" />
5189 <condition var1="tw_busy" var2="0" />
5190 <actions>
5191 <action function="set">tw_hide_kb=0</action>
5192 <action function="key">home</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005193 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005194 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005195 </button>
z31s1g56189522016-01-13 19:12:40 +01005196
z31s1g608d7ff2016-01-18 19:47:25 +01005197 <button>
z31s1g56189522016-01-13 19:12:40 +01005198 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5199 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5200 <condition var1="tw_hide_kb" op="=" var2="0" />
5201 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5202 <image resource="kb_hide" />
5203 <condition var1="tw_busy" var2="0" />
5204 <actions>
5205 <action function="set">tw_hide_kb=1</action>
5206 <action function="page">terminalcommand</action>
5207 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005208 </button>
z31s1g56189522016-01-13 19:12:40 +01005209
z31s1g608d7ff2016-01-18 19:47:25 +01005210 <button>
z31s1g56189522016-01-13 19:12:40 +01005211 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5212 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5213 <condition var1="tw_hide_kb" op="=" var2="1" />
5214 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5215 <image resource="kb_show" />
5216 <condition var1="tw_busy" var2="0" />
5217 <actions>
5218 <action function="set">tw_hide_kb=0</action>
5219 <action function="page">terminalcommand</action>
5220 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005221 </button>
z31s1g56189522016-01-13 19:12:40 +01005222
z31s1g608d7ff2016-01-18 19:47:25 +01005223 <button>
z31s1g56189522016-01-13 19:12:40 +01005224 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5225 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5226 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5227 <image resource="back" />
5228 <condition var1="tw_busy" var2="0" />
5229 <actions>
5230 <action function="set">tw_hide_kb=0</action>
5231 <action function="page">advanced</action>
5232 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005233 </button>
z31s1g56189522016-01-13 19:12:40 +01005234
z31s1g608d7ff2016-01-18 19:47:25 +01005235 <button>
z31s1g56189522016-01-13 19:12:40 +01005236 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5237 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5238 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5239 <image resource="back" />
5240 <condition var1="tw_busy" var2="0" />
5241 <actions>
5242 <action function="set">tw_hide_kb=0</action>
5243 <action function="page">advanced</action>
5244 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005245 </button>
z31s1g56189522016-01-13 19:12:40 +01005246
z31s1g608d7ff2016-01-18 19:47:25 +01005247 <button>
z31s1g56189522016-01-13 19:12:40 +01005248 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5249 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5250 <condition var1="tw_hide_kb" op="=" var2="0" />
5251 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5252 <image resource="kb_hide" />
5253 <condition var1="tw_busy" var2="0" />
5254 <actions>
5255 <action function="set">tw_hide_kb=1</action>
5256 <action function="page">terminalcommand</action>
5257 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005258 </button>
z31s1g56189522016-01-13 19:12:40 +01005259
z31s1g608d7ff2016-01-18 19:47:25 +01005260 <button>
z31s1g56189522016-01-13 19:12:40 +01005261 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5262 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5263 <condition var1="tw_hide_kb" op="=" var2="1" />
5264 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5265 <image resource="kb_show" />
5266 <condition var1="tw_busy" var2="0" />
5267 <actions>
5268 <action function="set">tw_hide_kb=0</action>
5269 <action function="page">terminalcommand</action>
5270 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005271 </button>
z31s1g56189522016-01-13 19:12:40 +01005272
z31s1g608d7ff2016-01-18 19:47:25 +01005273 <button>
z31s1g56189522016-01-13 19:12:40 +01005274 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5275 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5276 <image resource="home" />
5277 <condition var1="tw_busy" var2="0" />
5278 <actions>
5279 <action function="set">tw_hide_kb=0</action>
5280 <action function="key">home</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005281 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005282 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005283 </button>
z31s1g56189522016-01-13 19:12:40 +01005284
z31s1g608d7ff2016-01-18 19:47:25 +01005285 <button>
z31s1g56189522016-01-13 19:12:40 +01005286 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5287 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5288 <condition var1="tw_hide_kb" op="=" var2="0" />
5289 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5290 <image resource="kb_hide" />
5291 <condition var1="tw_busy" var2="0" />
5292 <actions>
5293 <action function="set">tw_hide_kb=1</action>
5294 <action function="page">terminalcommand</action>
5295 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005296 </button>
z31s1g56189522016-01-13 19:12:40 +01005297
z31s1g608d7ff2016-01-18 19:47:25 +01005298 <button>
z31s1g56189522016-01-13 19:12:40 +01005299 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5300 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5301 <condition var1="tw_hide_kb" op="=" var2="1" />
5302 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5303 <image resource="kb_show" />
5304 <condition var1="tw_busy" var2="0" />
5305 <actions>
5306 <action function="set">tw_hide_kb=0</action>
5307 <action function="page">terminalcommand</action>
5308 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005309 </button>
z31s1g56189522016-01-13 19:12:40 +01005310
z31s1g608d7ff2016-01-18 19:47:25 +01005311 <button>
z31s1g56189522016-01-13 19:12:40 +01005312 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5313 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5314 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5315 <image resource="back" />
5316 <condition var1="tw_busy" var2="0" />
5317 <actions>
5318 <action function="set">tw_hide_kb=0</action>
5319 <action function="page">advanced</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005320 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005321 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005322 </button>
z31s1g56189522016-01-13 19:12:40 +01005323
z31s1g608d7ff2016-01-18 19:47:25 +01005324 <button>
z31s1g56189522016-01-13 19:12:40 +01005325 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5326 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5327 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5328 <image resource="back" />
5329 <condition var1="tw_busy" var2="0" />
5330 <actions>
5331 <action function="set">tw_hide_kb=0</action>
5332 <action function="page">advanced</action>
5333 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005334 </button>
z31s1g56189522016-01-13 19:12:40 +01005335
z31s1g608d7ff2016-01-18 19:47:25 +01005336 <button>
z31s1g56189522016-01-13 19:12:40 +01005337 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5338 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5339 <condition var1="tw_hide_kb" op="=" var2="0" />
5340 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5341 <image resource="kb_hide" />
5342 <condition var1="tw_busy" var2="0" />
5343 <actions>
5344 <action function="set">tw_hide_kb=1</action>
5345 <action function="page">terminalcommand</action>
5346 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005347 </button>
z31s1g56189522016-01-13 19:12:40 +01005348
z31s1g608d7ff2016-01-18 19:47:25 +01005349 <button>
z31s1g56189522016-01-13 19:12:40 +01005350 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5351 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5352 <condition var1="tw_hide_kb" op="=" var2="1" />
5353 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5354 <image resource="kb_show" />
5355 <condition var1="tw_busy" var2="0" />
5356 <actions>
5357 <action function="set">tw_hide_kb=0</action>
5358 <action function="page">terminalcommand</action>
5359 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005360 </button>
z31s1g56189522016-01-13 19:12:40 +01005361
z31s1g608d7ff2016-01-18 19:47:25 +01005362 <button>
z31s1g56189522016-01-13 19:12:40 +01005363 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5364 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5365 <image resource="home" />
5366 <condition var1="tw_busy" var2="0" />
5367 <actions>
5368 <action function="set">tw_hide_kb=0</action>
5369 <action function="key">home</action>
5370 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005371 </button>
z31s1g56189522016-01-13 19:12:40 +01005372
z31s1g608d7ff2016-01-18 19:47:25 +01005373 <button>
z31s1g56189522016-01-13 19:12:40 +01005374 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5375 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5376 <condition var1="tw_hide_kb" op="=" var2="0" />
5377 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5378 <image resource="kb_hide" />
5379 <condition var1="tw_busy" var2="0" />
5380 <actions>
5381 <action function="set">tw_hide_kb=1</action>
5382 <action function="page">terminalcommand</action>
5383 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005384 </button>
z31s1g56189522016-01-13 19:12:40 +01005385
z31s1g608d7ff2016-01-18 19:47:25 +01005386 <button>
z31s1g56189522016-01-13 19:12:40 +01005387 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5388 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5389 <condition var1="tw_hide_kb" op="=" var2="1" />
5390 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5391 <image resource="kb_show" />
5392 <condition var1="tw_busy" var2="0" />
5393 <actions>
5394 <action function="set">tw_hide_kb=0</action>
5395 <action function="page">terminalcommand</action>
5396 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005397 </button>
z31s1g56189522016-01-13 19:12:40 +01005398
z31s1g608d7ff2016-01-18 19:47:25 +01005399 <button>
z31s1g56189522016-01-13 19:12:40 +01005400 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5401 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5402 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5403 <image resource="back" />
5404 <condition var1="tw_busy" var2="0" />
5405 <actions>
5406 <action function="set">tw_hide_kb=0</action>
5407 <action function="page">advanced</action>
5408 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005409 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005410
5411 <action>
5412 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005413 <actions>
5414 <action function="page">main</action>
5415 <action function="set">tw_hide_kb=0</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005416 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005417 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005418 </action>
5419
5420 <action>
5421 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005422 <actions>
5423 <action function="page">advanced</action>
5424 <action function="set">tw_hide_kb=0</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005425 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005426 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005427 </action>
z31s1g56189522016-01-13 19:12:40 +01005428
5429 <object type="action">
5430 <touch key="power+voldown" />
5431 <action function="screenshot" />
5432 </object>
z31s1g28f0a922015-11-07 18:50:22 +01005433 </page>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005434
bigbiffdf8436b2020-08-30 16:22:34 -04005435 <page name="fastboot">
5436 <template name="page"/>
5437
5438 <text style="text_l">
5439 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5440 <text>{@fastboot_button=Fastboot}</text>
5441 </text>
5442
5443 <template name="console"/>
5444
5445 <template name="progress_bar"/>
5446
5447 <button style="main_button_half_width">
5448 <condition var1="tw_enable_fastboot" op="=" var2="1" />
bigbiff7138a0f2020-10-24 19:52:25 -04005449 <placement x="%col1_x_left%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005450 <text>{@enable_adb=Enable ADB}</text>
5451 <actions>
5452 <action function="enableadb"/>
5453 <action function="set">tw_enable_adb=1</action>
5454 <action function="set">tw_enable_fastboot=0</action>
5455 </actions>
5456 </button>
5457
5458 <button style="main_button_half_width">
5459 <condition var1="tw_enable_adb" op="=" var2="1" />
bigbiff7138a0f2020-10-24 19:52:25 -04005460 <placement x="%col1_x_left%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005461 <text>{@enable_fastboot=Enable Fastboot}</text>
5462 <actions>
5463 <action function="enablefastboot"/>
5464 <action function="set">tw_enable_fastboot=1</action>
5465 <action function="set">tw_enable_adb=0</action>
5466 </actions>
5467 </button>
5468
5469 <button style="main_button_half_width">
bigbiff7138a0f2020-10-24 19:52:25 -04005470 <placement x="%col2_x_right%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005471 <text>{@reboot_btn=Reboot}</text>
5472 <action function="page">fastbootreboot</action>
5473 </button>
5474 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005475
5476 <page name="sideload">
5477 <template name="page"/>
5478
5479 <text style="text_l">
5480 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005481 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005482 </text>
5483
5484 <text style="text_m">
5485 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005486 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005487 </text>
5488
5489 <checkbox>
5490 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005491 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005492 <data variable="tw_wipe_dalvik"/>
5493 </checkbox>
5494
5495 <checkbox>
5496 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005497 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005498 <data variable="tw_wipe_cache"/>
5499 </checkbox>
5500
5501 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05005502 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005503 <actions>
5504 <action function="set">tw_back=advanced</action>
5505 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005506 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5507 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5508 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005509 <action function="set">tw_has_cancel=1</action>
5510 <action function="set">tw_show_reboot=1</action>
5511 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5512 <action function="page">action_page</action>
5513 </actions>
5514 </slider>
5515
5516 <action>
5517 <touch key="home"/>
5518 <action function="page">main</action>
5519 </action>
5520
5521 <action>
5522 <touch key="back"/>
5523 <action function="page">advanced</action>
5524 </action>
5525 </page>
5526
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005527 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005528 <template name="page"/>
5529
5530 <text style="text_l">
5531 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005532 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005533 </text>
5534
5535 <text style="text_m">
5536 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005537 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005538 </text>
5539
5540 <text style="text_m_accent">
5541 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005542 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005543 </text>
5544
z31s1g28f0a922015-11-07 18:50:22 +01005545 <text style="text_m_fail">
5546 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005547 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005548 </text>
5549
5550 <text style="text_m_fail">
5551 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005552 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005553 </text>
5554
5555 <slider style="slider_centered">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005556 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005557 <actions>
5558 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005559 <action function="set">tw_action=fixcontexts</action>
5560 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5561 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005562 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005563 <action function="set">tw_show_reboot=1</action>
5564 <action function="page">action_page</action>
5565 </actions>
5566 </slider>
5567
5568 <action>
5569 <touch key="home"/>
5570 <action function="page">main</action>
5571 </action>
5572
5573 <action>
5574 <touch key="back"/>
5575 <action function="page">advanced</action>
5576 </action>
5577 </page>
5578
z31s1g28f0a922015-11-07 18:50:22 +01005579 <page name="slideout">
5580 <fill color="%background_color%">
5581 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5582 </fill>
5583
5584 <console>
5585 <placement x="%col1_x_left%" y="%slideout_y%" w="%content_width%" h="%slideout_height%"/>
5586 </console>
5587
5588 <button>
5589 <fill color="%transparent%"/>
5590 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5591 <action function="overlay"/>
5592 </button>
5593
5594 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005595 <touch key="power"/>
5596 <action function="togglebacklight"/>
5597 </action>
5598
5599 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005600 <touch key="power+voldown"/>
5601 <action function="screenshot"/>
5602 </action>
5603 </page>
5604
5605 <page name="select_storage">
5606 <fill color="%semi_transparent%">
5607 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5608 </fill>
5609
5610 <fill color="%background_color%">
5611 <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/>
5612 </fill>
5613
5614 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005615 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005616 <data name="tw_storage_path"/>
5617 <listtype name="storage"/>
5618 </partitionlist>
5619
5620 <button style="button_third_width">
5621 <placement x="%dialog_button_x%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005622 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005623 <actions>
5624 <action function="set">tw_clear_destination=%tw_back%</action>
5625 <action function="overlay"/>
5626 <action function="page">clear_vars</action>
5627 </actions>
5628 </button>
5629
5630 <fill color="#000000">
5631 <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/>
5632 </fill>
5633
5634 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005635 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5636 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5637 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5638 <image resource="back" />
5639 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005640 <actions>
5641 <action function="overlay"/>
5642 <action function="key">%tw_back%</action>
5643 </actions>
5644 </button>
5645
5646 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005647 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5648 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5649 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5650 <image resource="console" />
5651 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005652 <action function="overlay">slideout</action>
5653 </button>
5654
5655 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005656 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5657 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5658 <image resource="home" />
5659 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005660 <actions>
5661 <action function="overlay"/>
5662 <action function="key">home</action>
5663 </actions>
5664 </button>
5665
5666 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005667 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5668 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5669 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5670 <image resource="console" />
5671 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005672 <action function="overlay">slideout</action>
5673 </button>
5674
5675 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005676 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5677 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5678 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5679 <image resource="back" />
5680 <condition var1="tw_busy" var2="0" />
5681 <actions>
5682 <action function="overlay"/>
5683 <action function="key">%tw_back%</action>
5684 </actions>
5685 </button>
5686
5687 <button>
5688 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5689 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5690 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5691 <image resource="back" />
5692 <condition var1="tw_busy" var2="0" />
5693 <actions>
5694 <action function="overlay"/>
5695 <action function="key">%tw_back%</action>
5696 </actions>
5697 </button>
5698
5699 <button>
5700 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5701 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5702 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5703 <image resource="console" />
5704 <condition var1="tw_busy" var2="0" />
5705 <action function="overlay">slideout</action>
5706 </button>
5707
5708 <button>
5709 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5710 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5711 <image resource="home" />
5712 <condition var1="tw_busy" var2="0" />
5713 <actions>
5714 <action function="overlay"/>
5715 <action function="key">home</action>
5716 </actions>
5717 </button>
5718
5719 <button>
5720 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5721 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5722 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5723 <image resource="console" />
5724 <condition var1="tw_busy" var2="0" />
5725 <action function="overlay">slideout</action>
5726 </button>
5727
5728 <button>
5729 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5730 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5731 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5732 <image resource="back" />
5733 <condition var1="tw_busy" var2="0" />
5734 <actions>
5735 <action function="overlay"/>
5736 <action function="key">%tw_back%</action>
5737 </actions>
5738 </button>
5739
5740 <button>
5741 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5742 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5743 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5744 <image resource="back" />
5745 <condition var1="tw_busy" var2="0" />
5746 <actions>
5747 <action function="overlay"/>
5748 <action function="key">%tw_back%</action>
5749 </actions>
5750 </button>
5751
5752 <button>
5753 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5754 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5755 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5756 <image resource="console" />
5757 <condition var1="tw_busy" var2="0" />
5758 <action function="overlay">slideout</action>
5759 </button>
5760
5761 <button>
5762 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5763 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5764 <image resource="home" />
5765 <condition var1="tw_busy" var2="0" />
5766 <actions>
5767 <action function="overlay"/>
5768 <action function="key">home</action>
5769 </actions>
5770 </button>
5771
5772 <button>
5773 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5774 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5775 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5776 <image resource="console" />
5777 <condition var1="tw_busy" var2="0" />
5778 <action function="overlay">slideout</action>
5779 </button>
5780
5781 <button>
5782 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5783 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5784 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5785 <image resource="back" />
5786 <condition var1="tw_busy" var2="0" />
5787 <actions>
5788 <action function="overlay"/>
5789 <action function="key">%tw_back%</action>
5790 </actions>
5791 </button>
5792
5793 <action>
5794 <touch key="power+voldown"/>
5795 <action function="screenshot"/>
5796 </action>
5797 </page>
5798
5799 <page name="select_language">
5800 <fill color="%semi_transparent%">
5801 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5802 </fill>
5803
5804 <fill color="%background_color%">
5805 <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/>
5806 </fill>
5807
5808 <listbox>
5809 <placement x="%dialog_content_x%" y="%row4_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5810 <text>{@select_language=Select Language:}</text>
5811 <icon selected="radio_true" unselected="radio_false" />
5812 <data name="tw_language" />
5813 </listbox>
5814
5815 <button style="button_third_width">
5816 <placement x="%dialog_button_x%" y="%row13_y%"/>
5817 <text>{@ok_btn=OK}</text>
5818 <actions>
5819 <action function="overlay"/>
5820 <action function="setlanguage"></action>
5821 </actions>
5822 </button>
5823
5824 <fill color="#000000">
5825 <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/>
5826 </fill>
5827
5828 <button>
5829 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5830 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5831 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5832 <image resource="back" />
5833 <condition var1="tw_busy" var2="0" />
5834 <actions>
5835 <action function="overlay"/>
5836 <action function="key">%tw_back%</action>
5837 </actions>
5838 </button>
5839
5840 <button>
5841 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5842 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5843 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5844 <image resource="console" />
5845 <condition var1="tw_busy" var2="0" />
5846 <action function="overlay">slideout</action>
5847 </button>
5848
5849 <button>
5850 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5851 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5852 <image resource="home" />
5853 <condition var1="tw_busy" var2="0" />
5854 <actions>
5855 <action function="overlay"/>
5856 <action function="key">home</action>
5857 </actions>
5858 </button>
5859
5860 <button>
5861 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5862 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5863 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5864 <image resource="console" />
5865 <condition var1="tw_busy" var2="0" />
5866 <action function="overlay">slideout</action>
5867 </button>
5868
5869 <button>
5870 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5871 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5872 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5873 <image resource="back" />
5874 <condition var1="tw_busy" var2="0" />
5875 <actions>
5876 <action function="overlay"/>
5877 <action function="key">%tw_back%</action>
5878 </actions>
5879 </button>
5880
5881 <button>
5882 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5883 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5884 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5885 <image resource="back" />
5886 <condition var1="tw_busy" var2="0" />
5887 <actions>
5888 <action function="overlay"/>
5889 <action function="key">%tw_back%</action>
5890 </actions>
5891 </button>
5892
5893 <button>
5894 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5895 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5896 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5897 <image resource="console" />
5898 <condition var1="tw_busy" var2="0" />
5899 <action function="overlay">slideout</action>
5900 </button>
5901
5902 <button>
5903 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5904 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5905 <image resource="home" />
5906 <condition var1="tw_busy" var2="0" />
5907 <actions>
5908 <action function="overlay"/>
5909 <action function="key">home</action>
5910 </actions>
5911 </button>
5912
5913 <button>
5914 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5915 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5916 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5917 <image resource="console" />
5918 <condition var1="tw_busy" var2="0" />
5919 <action function="overlay">slideout</action>
5920 </button>
5921
5922 <button>
5923 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5924 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5925 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5926 <image resource="back" />
5927 <condition var1="tw_busy" var2="0" />
5928 <actions>
5929 <action function="overlay"/>
5930 <action function="key">%tw_back%</action>
5931 </actions>
5932 </button>
5933
5934 <button>
5935 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5936 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5937 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5938 <image resource="back" />
5939 <condition var1="tw_busy" var2="0" />
5940 <actions>
5941 <action function="overlay"/>
5942 <action function="key">%tw_back%</action>
5943 </actions>
5944 </button>
5945
5946 <button>
5947 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5948 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5949 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5950 <image resource="console" />
5951 <condition var1="tw_busy" var2="0" />
5952 <action function="overlay">slideout</action>
5953 </button>
5954
5955 <button>
5956 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5957 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5958 <image resource="home" />
5959 <condition var1="tw_busy" var2="0" />
5960 <actions>
5961 <action function="overlay"/>
5962 <action function="key">home</action>
5963 </actions>
5964 </button>
5965
5966 <button>
5967 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5968 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5969 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5970 <image resource="console" />
5971 <condition var1="tw_busy" var2="0" />
5972 <action function="overlay">slideout</action>
5973 </button>
5974
5975 <button>
5976 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5977 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5978 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5979 <image resource="back" />
5980 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005981 <actions>
5982 <action function="overlay"/>
5983 <action function="key">%tw_back%</action>
5984 </actions>
5985 </button>
5986
5987 <action>
5988 <touch key="power+voldown"/>
5989 <action function="screenshot"/>
5990 </action>
5991 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005992
5993 <page name="decrypt_users">
5994 <template name="page"/>
5995
5996 <text style="text_l">
5997 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5998 <text>{@decrypt_users=Decrypt Users}</text>
5999 </text>
6000
6001 <text style="text_m_accent">
6002 <placement x="%center_x%" y="%row2_y%" placement="5"/>
6003 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
6004 </text>
6005
6006 <listbox>
6007 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
6008 <text>{@select_user=Select User}</text>
6009 <icon selected="radio_true" unselected="radio_false" />
6010 <data name="tw_crypto_user_id" />
6011 </listbox>
6012
6013 <button style="main_button_half_width">
6014 <placement x="%col2_x_right%" y="%row15a_y%"/>
6015 <text>{@decrypt_users=Decrypt Users}</text>
6016 <action function="set">tw_crypto_password=</action>
6017 <action function="set">tw_password_fail=0</action>
6018 <action function="page">decrypt</action>
6019 </button>
6020
6021 <action>
6022 <touch key="home"/>
6023 <action function="page">main</action>
6024 </action>
6025
6026 <action>
6027 <touch key="back"/>
6028 <action function="page">advanced</action>
6029 </action>
6030 </page>
epicXa721f952021-01-04 13:01:31 +05306031
6032 <page name="changeTwrpFolder">
6033 <template name="page"/>
6034
6035 <text style="text_l">
6036 <placement x="%col1_x_header%" y="%row3_header_y%"/>
6037 <text>{@advanced_hdr=Advanced}</text>
6038 </text>
6039
6040 <text style="text_m">
6041 <placement x="%col1_x_header%" y="%row4_header_y%"/>
6042 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
6043 </text>
6044
6045 <text style="text_m_accent">
6046 <placement x="%col1_x_left%" y="%row2_y%"/>
6047 <text>{@name=Name:}</text>
6048 </text>
6049
6050 <input>
6051 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
6052 <text>%tw_custom_folder%</text>
6053 <data name="tw_custom_folder"/>
6054 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
6055 <actions>
6056 <action function="set">tw_back=changeTwrpFolder</action>
6057 <action function="set">tw_action=applycustomtwrpfolder</action>
6058 <action function="set">tw_action_param=%tw_custom_folder%</action>
6059 <action function="set">tw_text1={@confirm_action=Confirm}</action>
6060 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
6061 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
6062 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
6063 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
6064 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
6065 <action function="set">tw_existpage=changeTwrpFolder</action>
6066 <action function="set">tw_notexistpage=confirm_action</action>
6067 <action function="page">filecheck</action>
6068 </actions>
6069 </input>
6070
6071 <fill color="%accent_color%">
6072 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
6073 </fill>
6074
6075 <fill color="%text_fail_color%">
6076 <condition var1="tw_fileexists" var2="1"/>
6077 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
6078 </fill>
6079
6080 <text style="text_m_fail">
6081 <condition var1="tw_fileexists" var2="1"/>
6082 <placement x="%col1_x_left%" y="%row4_y%"/>
6083 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
6084 </text>
6085
6086 <button style="main_button_half_width_low">
6087 <placement x="%indent%" y="%row5_y%"/>
6088 <text>{@cancel_btn=Cancel}</text>
6089 <action function="page">advanced</action>
6090 </button>
6091
6092 <button style="main_button_half_width_low">
6093 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
6094 <placement x="%date_button_x%" y="%row5_y%"/>
6095 <text>{@restore_defaults_btn=Restore Defaults}</text>
6096 <actions>
6097 <action function="set">tw_back=changeTwrpFolder</action>
6098 <action function="set">tw_action=applycustomtwrpfolder</action>
6099 <action function="set">tw_action_param=TWRP</action>
6100 <action function="set">tw_text1={@confirm_action=Confirm}</action>
6101 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
6102 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
6103 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
6104 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
6105 <action function="set">tw_filecheck=/sdcard/TWRP</action>
6106 <action function="set">tw_existpage=changeTwrpFolder</action>
6107 <action function="set">tw_notexistpage=confirm_action</action>
6108 <action function="page">filecheck</action>
6109 </actions>
6110 </button>
6111
6112 <template name="keyboardtemplate"/>
6113
6114 <action>
6115 <touch key="home"/>
6116 <actions>
6117 <action function="page">main</action>
6118 </actions>
6119 </action>
6120
6121 <action>
6122 <touch key="back"/>
6123 <actions>
6124 <action function="page">advanced</action>
6125 </actions>
6126 </action>
6127 </page>
bigbiff8f5fad32021-11-03 20:39:02 -04006128
6129 <page name="restore_pin">
6130 <template name="page"/>
6131
6132 <text style="text_m_accent">
6133 <condition var1="tw_crypto_pwtype" var2="1"/>
6134 <placement x="%col1_x_header%" y="%row3_header_y%"/>
6135 <text>{@restore_with_pin1=PIN/Password is enabled}</text>
6136 </text>
6137
6138 <text style="text_m_accent">
6139 <condition var1="tw_crypto_pwtype" var2="1"/>
6140 <placement x="%col1_x_header%" y="%row4_header_y%"/>
6141 <text>{@restore_with_pin2=PIN/Password should be disabled before restore}</text>
6142 </text>
6143 <text style="text_l">
6144 <condition var1="tw_crypto_pwtype" var2="1"/>
6145 <placement x="%center_x%" y="%row2_y%" placement="5"/>
6146 <text>{@restore_pin=Restore While PIN/Password Enabled?}</text>
6147 </text>
6148
6149 <text style="text_m_accent">
6150 <condition var1="tw_crypto_pwtype" var2="2"/>
6151 <placement x="%col1_x_header%" y="%row3_header_y%"/>
6152 <text>{@restore_with_pattern1=Pattern is enabled}</text>
6153 </text>
6154
6155 <text style="text_m_accent">
6156 <condition var1="tw_crypto_pwtype" var2="2"/>
6157 <placement x="%col1_x_header%" y="%row4_header_y%"/>
6158 <text>{@restore_with_pattern2=Pattern should be disabled before restore}</text>
6159 </text>
6160
6161 <text style="text_l">
6162 <condition var1="tw_crypto_pwtype" var2="2"/>
6163 <placement x="%center_x%" y="%row2_y%" placement="5"/>
6164 <text>{@restore_pattern=Restore While Pattern Enabled?}</text>
6165 </text>
6166
6167 <slider>
6168 <text>{@continue_restore_encrypted=Continue Restore?}</text>
6169 <actions>
6170 <action function="page">restore_force</action>
6171 </actions>
6172 </slider>
6173
6174 <action>
6175 <touch key="home"/>
6176 <action function="page">main</action>
6177 </action>
6178
6179 <action>
6180 <touch key="back"/>
6181 <actions>
6182 <action function="page">main</action>
6183 </actions>
6184 </action>
6185 </page>
z31s1g28f0a922015-11-07 18:50:22 +01006186 </pages>
6187</recovery>