blob: 189d2b3b3f1fb03d1bcd9b96be7f2820fa912b15 [file] [log] [blame]
z31s1g28f0a922015-11-07 18:50:22 +01001<?xml version="1.0"?>
2<recovery>
3 <styles>
4 <style name="text_l">
5 <font resource="font_l" color="%text_color%"/>
6 </style>
7
8 <style name="text_m">
9 <font resource="font_m" color="%text_color%"/>
10 </style>
11
12 <style name="text_m_accent">
13 <font resource="font_m" color="%accent_color%"/>
14 </style>
15
16 <style name="text_m_fail">
17 <font resource="font_m" color="%text_fail_color%"/>
18 </style>
19
20 <style name="text_s">
21 <font resource="font_s" color="%text_color%"/>
22 </style>
23
24 <style name="input">
25 <background color="%background_color%"/>
26 <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/>
27 <font resource="font_m" color="%text_color%"/>
28 </style>
29
30 <style name="checkbox">
31 <font resource="font_m" color="%text_color%"/>
32 <image checked="checkbox_true" unchecked="checkbox_false"/>
33 </style>
34
35 <style name="main_button">
36 <highlight color="%highlight_color%"/>
37 <font resource="font_l" color="%text_button_color%"/>
38 <image resource="main_button"/>
39 </style>
40
41 <style name="main_button_half_height">
42 <highlight color="%highlight_color%"/>
43 <font resource="font_m" color="%text_button_color%"/>
44 <image resource="main_button_half_height"/>
45 </style>
46
47 <style name="main_button_half_height_full_width">
48 <highlight color="%highlight_color%"/>
49 <font resource="font_m" color="%text_button_color%"/>
50 <image resource="main_button_half_height_full_width"/>
51 </style>
52
53 <style name="button_third_width">
54 <highlight color="%highlight_color%"/>
55 <font resource="font_m" color="%text_button_color%"/>
56 <image resource="tab_3"/>
57 </style>
58
59 <style name="button_quarter_width">
60 <highlight color="%highlight_color%"/>
61 <font resource="font_m" color="%text_button_color%"/>
62 <image resource="tab_4"/>
63 </style>
64
65 <style name="fab">
66 <highlight color="%highlight_color%"/>
67 <placement x="%indent_right%" y="%row21a_y%" placement="1"/>
68 <font resource="font_m" color="%button_text_color%"/>
69 </style>
70
71 <style name="tab">
72 <highlight color="%highlight_color%"/>
z31s1g56a7a992016-01-23 17:06:40 +010073 <fill color="%transparent%"/>
z31s1g28f0a922015-11-07 18:50:22 +010074 <font resource="font_s" color="%text_button_color%"/>
75 </style>
76
77 <style name="console">
78 <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
79 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
80 <font resource="fixed"/>
81 </style>
82
z31s1g56189522016-01-13 19:12:40 +010083 <style name="terminal">
84 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
85 <background color="%background_color%"/>
86 <font resource="fixed" spacing="3" color="%text_color%"/>
87 </style>
88
z31s1g28f0a922015-11-07 18:50:22 +010089 <style name="fileselector">
90 <highlight color="%fileselector_highlight_color%"/>
91 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
92 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
93 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
94 <sort name="tw_gui_sort_order"/>
95 <icon folder="folder" file="file"/>
96 <background color="%background_color%"/>
97 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
98 </style>
99
100 <style name="listbox">
101 <highlight color="%fileselector_highlight_color%"/>
102 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
103 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
104 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
105 <icon selected="radio_true" unselected="radio_false"/>
106 <background color="%background_color%"/>
107 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
108 </style>
109
110 <style name="scrolllist">
111 <background color="%background_color%"/>
112 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/>
nkk711a230e42017-08-07 00:28:19 +0300113 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
z31s1g28f0a922015-11-07 18:50:22 +0100114 </style>
115
116 <style name="partitionlist">
117 <highlight color="%fileselector_highlight_color%"/>
118 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
119 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
120 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
121 <icon selected="checkbox_true" unselected="checkbox_false"/>
122 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
123 <background color="%background_color%"/>
124 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
125 </style>
126
127 <style name="partitionlist_storage">
128 <highlight color="%fileselector_highlight_color%"/>
129 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
130 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
131 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
132 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
133 <icon selected="radio_true" unselected="radio_false"/>
134 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
135 <background color="%background_color%"/>
136 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
137 </style>
138
Ethan Yonker64e0a652018-07-25 09:52:17 -0500139 <style name="advanced_listbox">
140 <highlight color="%fileselector_highlight_color%"/>
141 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
142 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
143 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
144 <icon selected="handle" unselected="handle"/>
145 <background color="%background_color%"/>
146 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
147 </style>
148
epicX9597b842021-03-20 21:58:17 +0530149 <style name="options_listbox">
150 <highlight color="%fileselector_highlight_color%"/>
151 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
152 <separator color="%background_color%" height="%fileselector_separatorheight%"/>
153 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
154 <background color="%background_color%"/>
155 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
156 </style>
157
z31s1g28f0a922015-11-07 18:50:22 +0100158 <style name="slider">
159 <placement x="%center_x%" y="%row23_y%"/>
160 <font resource="font_s" color="%text_color%"/>
161 <resource base="slider" used="slider_used" touch="slider_touch"/>
162 </style>
163
164 <style name="slidervalue">
165 <resource handle="handle"/>
166 <font resource="font_m" color="%text_color%"/>
167 <colors line="%fileselector_linecolor%"/>
168 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
169 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100170
171 <style name="patternpassword">
172 <size name="tw_gui_pattern_grid_size" default="3"/>
173 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100174 </styles>
175
176 <pages>
177 <page name="main">
178 <action>
179 <actions>
180 <action function="set">tw_clear_destination=main2</action>
181 <action function="page">clear_vars</action>
182 </actions>
183 </action>
184 </page>
185
186 <page name="main2">
187 <template name="page"/>
188
189 <text style="text_l">
190 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500191 <text>{@twrp_header=Team Win Recovery Project}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100192 </text>
193
194 <text style="text_m">
195 <condition var1="tw_no_cpu_temp" var2="0"/>
196 <placement x="%col1_x_header%" y="%row4_header_y%"/>
197 <text>%tw_version%</text>
198 </text>
199
200 <button style="main_button">
201 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500202 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100203 <actions>
204 <action function="queueclear"/>
205 <action function="set">tw_selectimage=0</action>
206 <action function="page">install</action>
207 </actions>
208 </button>
209
210 <button style="main_button">
211 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500212 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100213 <action function="page">wipe</action>
214 </button>
215
216 <button style="main_button">
217 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500218 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100219 <action function="page">backup</action>
220 </button>
221
222 <button style="main_button">
223 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500224 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100225 <action function="page">restore</action>
226 </button>
227
228 <button style="main_button">
229 <placement x="%indent%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500230 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100231 <action function="page">mount</action>
232 </button>
233
234 <button style="main_button">
235 <placement x="%center_x%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500236 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100237 <action function="page">settings</action>
238 </button>
239
240 <button style="main_button">
241 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500242 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100243 <action function="page">advanced</action>
244 </button>
245
246 <button style="main_button">
247 <placement x="%center_x%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500248 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100249 <action function="page">reboot</action>
250 </button>
251 </page>
252
253 <page name="install">
254 <template name="page"/>
255
256 <text style="text_l">
257 <condition var1="tw_selectimage" var2="0"/>
258 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500259 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100260 </text>
261
262 <text style="text_l">
263 <condition var1="tw_selectimage" var2="1"/>
264 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500265 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100266 </text>
267
268 <text style="text_m">
269 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500270 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100271 </text>
272
273 <template name="sort_options"/>
274
275 <fileselector>
276 <condition var1="tw_selectimage" var2="0"/>
277 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
278 <text>%tw_zip_location%</text>
mauronofrio6d3bf892019-10-26 19:47:55 +0200279 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="1" files="1"/>
Ian Macdonalde7c34e52021-01-23 18:52:28 +0100280 <prfxfilter prfx="Magisk-;Magisk.apk;app-release.apk;app-debug.apk" folders="1" files="1"/>
z31s1g28f0a922015-11-07 18:50:22 +0100281 <path name="tw_zip_location" default="/sdcard"/>
282 <data name="tw_filename"/>
283 <selection name="tw_file"/>
284 </fileselector>
285
286 <fileselector>
287 <condition var1="tw_selectimage" var2="1"/>
288 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
289 <text>%tw_zip_location%</text>
290 <filter extn=".img" folders="1" files="1"/>
291 <path name="tw_zip_location" default="/sdcard"/>
292 <data name="tw_filename"/>
293 <selection name="tw_file"/>
294 </fileselector>
295
296 <button style="main_button_half_height">
297 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500298 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100299 <actions>
300 <action function="set">tw_back=install</action>
301 <action function="overlay">select_storage</action>
302 </actions>
303 </button>
304
305 <button style="main_button_half_height">
306 <condition var1="tw_selectimage" var2="0"/>
307 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500308 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100309 <actions>
310 <action function="set">tw_selectimage=1</action>
311 <action function="page">install</action>
312 </actions>
313 </button>
314
315 <button style="main_button_half_height">
316 <condition var1="tw_selectimage" var2="1"/>
317 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500318 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100319 <actions>
320 <action function="set">tw_selectimage=0</action>
321 <action function="page">install</action>
322 </actions>
323 </button>
324
325 <action>
326 <conditions>
327 <condition var1="tw_selectimage" var2="0"/>
328 <condition var1="tw_filename" op="modified"/>
329 </conditions>
330 <actions>
331 <action function="queuezip"/>
332 <action function="page">flash_confirm</action>
333 </actions>
334 </action>
335
336 <action>
337 <conditions>
338 <condition var1="tw_selectimage" var2="1"/>
339 <condition var1="tw_filename" op="modified"/>
340 </conditions>
epicX8f52c0a2021-02-24 23:12:08 +0530341 <actions>
342 <action function="set">tw_is_slot_part=0</action>
343 <action function="page">flashimage_confirm</action>
344 </actions>
z31s1g28f0a922015-11-07 18:50:22 +0100345 </action>
346
347 <action>
348 <touch key="back"/>
349 <action function="page">main</action>
350 </action>
351
352 <action>
353 <touch key="home"/>
354 <action function="page">main</action>
355 </action>
356 </page>
357
358 <page name="flash_confirm">
359 <template name="page"/>
360
361 <text style="text_l">
362 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500363 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100364 </text>
365
366 <text style="text_m">
367 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500368 <text>{@zip_queue_count=%tw_zip_queue_count% of max of 10 Files queued}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100369 </text>
370
371 <text style="text_m_accent">
372 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500373 <text>{@zip_warn1=This operation may install incompatible}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100374 </text>
375
376 <text style="text_m_accent">
377 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500378 <text>{@zip_warn2=software and render your device unusable.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100379 </text>
380
381 <text style="text_m">
382 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500383 <text>{@zip_back_cancel=Press back to cancel adding this zip.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100384 </text>
385
386 <text style="text_m_accent">
387 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500388 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100389 </text>
390
391 <text style="text_m">
392 <placement x="%indent%" y="%row8_y%"/>
393 <text>%tw_zip_location%</text>
394 </text>
395
396 <text style="text_m_accent">
397 <placement x="%indent%" y="%row9a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500398 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100399 </text>
400
401 <text style="text_m">
402 <placement x="%indent%" y="%row10a_y%"/>
403 <text>%tw_file%</text>
404 </text>
405
epicX9597b842021-03-20 21:58:17 +0530406 <listbox style="options_listbox">
407 <placement x="%indent%" y="%row12_y%" w="%content_width%" h="%listbox_options_height%"/>
408 <icon selected="checkbox_true" unselected="checkbox_false"/>
409 <listitem name="{@zip_sig_chk=Zip signature verification}">
410 <data variable="tw_signed_zip_verify"/>
411 </listitem>
412 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
413 <data variable="tw_skip_digest_check_zip"/>
414 </listitem>
nebrassyac29e692021-05-20 13:03:30 +0200415 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
416 <conditions>
417 <condition var1="tw_has_boot_slots" var2="1"/>
418 <condition var1="tw_has_repack_tools" var2="1"/>
419 </conditions>
420 <data variable="tw_auto_reflashtwrp"/>
421 </listitem>
epicX9597b842021-03-20 21:58:17 +0530422 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
423 <data variable="tw_install_reboot"/>
424 </listitem>
425 <listitem name="{@inject_twrp_chk=Inject TWRP after install}">
426 <condition var1="tw_has_injecttwrp" var2="1"/>
427 <data variable="tw_inject_after_zip"/>
428 </listitem>
429 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +0100430
431 <button style="main_button_half_height">
432 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500433 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100434 <action function="page">install</action>
435 </button>
436
437 <button style="main_button_half_height">
438 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500439 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100440 <actions>
441 <action function="queueclear"/>
442 <action function="page">install</action>
443 </actions>
444 </button>
445
446 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500447 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100448 <action function="flash">flash_zip</action>
449 </slider>
450
451 <action>
452 <touch key="back"/>
453 <actions>
454 <action function="cancelzip"/>
455 <action function="page">install</action>
456 </actions>
457 </action>
458
459 <action>
460 <touch key="home"/>
461 <action function="page">main</action>
462 </action>
463 </page>
464
465 <page name="flash_zip">
466 <template name="page"/>
467
468 <text style="text_l">
469 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500470 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100471 </text>
472
473 <text style="text_m">
474 <placement x="%col1_x_header%" y="%row4_header_y%"/>
475 <text>%tw_file%</text>
476 </text>
477
478 <template name="console"/>
479
480 <template name="progress_bar"/>
481
482 <action>
483 <condition var1="tw_operation_state" var2="1"/>
484 <action function="page">flash_done</action>
485 </action>
486 </page>
487
488 <page name="flash_done">
489 <template name="page"/>
490
491 <text style="text_l">
492 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500493 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100494 </text>
495
496 <text style="text_m_fail">
497 <condition var1="tw_operation_status" op="!=" var2="0"/>
498 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500499 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100500 </text>
501
502 <text style="text_m">
503 <condition var1="tw_operation_status" var2="0"/>
504 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500505 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100506 </text>
507
508 <template name="console"/>
509
510 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500511 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100512 <placement x="%indent%" y="%row21a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500513 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100514 <actions>
515 <action function="set">tw_back=flash_done</action>
516 <action function="set">tw_action=wipe</action>
517 <action function="set">tw_action_param=/cache</action>
518 <action function="set">tw_has_action2=1</action>
519 <action function="set">tw_action2=wipe</action>
520 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500521 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
522 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
523 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
524 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100525 <action function="page">confirm_action</action>
526 </actions>
527 </button>
528
529 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500530 <condition var1="tw_ab_device" var2="1"/>
531 <placement x="%indent%" y="%row21a_y%"/>
532 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
533 <actions>
534 <action function="set">tw_back=flash_done</action>
535 <action function="set">tw_action=wipe</action>
536 <action function="set">tw_action_param=dalvik</action>
537 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
538 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
539 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
540 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
541 <action function="page">confirm_action</action>
542 </actions>
543 </button>
544
545 <button style="main_button_half_height">
Chaosmaster7b66bf52020-02-07 20:33:43 +0100546 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100547 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500548 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100549 <actions>
550 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500551 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100552 </actions>
553 </button>
554
Chaosmaster7b66bf52020-02-07 20:33:43 +0100555 <button style="main_button_half_height">
556 <condition var1="tw_ab_device" var2="1"/>
557 <placement x="%center_x%" y="%row21a_y%"/>
558 <text>{@reboot_btn=Reboot}</text>
559 <actions>
560 <action function="set">tw_back=main2</action>
561 <action function="page">reboot</action>
562 </actions>
563 </button>
564
z31s1g28f0a922015-11-07 18:50:22 +0100565 <action>
566 <touch key="back"/>
567 <actions>
568 <action function="set">tw_clear_destination=install</action>
569 <action function="page">clear_vars</action>
570 </actions>
571 </action>
572
573 <action>
574 <touch key="home"/>
575 <actions>
576 <action function="set">tw_clear_destination=main2</action>
577 <action function="page">clear_vars</action>
578 </actions>
579 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500580
581 <action>
582 <conditions>
583 <condition var1="tw_install_reboot" var2="1"/>
584 <condition var1="tw_operation_status" var2="0"/>
585 <condition var1="tw_reboot_system" var2="1"/>
586 </conditions>
587 <actions>
588 <action function="set">tw_sleep=%tw_sleep_total%</action>
589 <action function="page">flash_sleep_and_reboot</action>
590 </actions>
591 </action>
592 </page>
593
594 <page name="flash_sleep_and_reboot">
595 <template name="page"/>
596
597 <text style="text_l">
598 <placement x="%col1_x_header%" y="%row3_header_y%"/>
599 <text>{@install_zip_hdr=Install Zip}</text>
600 </text>
601
602 <text style="text_m">
603 <placement x="%col1_x_header%" y="%row4_header_y%"/>
604 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
605 </text>
606
607 <template name="console"/>
608
609 <template name="progress_bar"/>
610
611 <button style="main_button_half_height">
612 <condition var1="tw_sleep" op="&gt;" var2="0"/>
613 <placement x="%center_x%" y="%row21a_y%"/>
614 <text>{@cancel_btn=Cancel}</text>
615 <actions>
616 <action function="set">tw_install_reboot=0</action>
617 <action function="page">flash_done</action>
618 </actions>
619 </button>
620
621 <action>
622 <conditions>
623 <condition var1="tw_sleep" var2="tw_sleep_total"/>
624 <condition var1="tw_install_reboot" var2="1"/>
625 </conditions>
626 <action function="sleepcounter">%tw_sleep_total%</action>
627 </action>
628
629 <action>
630 <conditions>
631 <condition var1="tw_sleep" var2="0"/>
632 <condition var1="tw_install_reboot" var2="1"/>
633 </conditions>
634 <actions>
635 <action function="sleep">50000</action>
636 <action function="set">tw_back=main2</action>
637 <action function="page">reboot_system_routine</action>
638 </actions>
639 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100640 </page>
641
642 <page name="flashimage_confirm">
643 <template name="page"/>
644
645 <text style="text_l">
646 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500647 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100648 </text>
649
650 <text style="text_m">
651 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500652 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100653 </text>
654
655 <text style="text_m_accent">
656 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500657 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100658 </text>
659
660 <text style="text_m">
661 <placement x="%indent%" y="%row3_y%"/>
662 <text>%tw_zip_location%</text>
663 </text>
664
665 <text style="text_m_accent">
666 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500667 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100668 </text>
669
670 <text style="text_m">
671 <placement x="%indent%" y="%row5a_y%"/>
672 <text>%tw_file%</text>
673 </text>
674
675 <partitionlist>
676 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%partitionlist_flashimage_height%"/>
677 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500678 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100679 <data name="tw_flash_partition"/>
680 <listtype name="flashimg"/>
681 </partitionlist>
682
epicX8f52c0a2021-02-24 23:12:08 +0530683 <button style="checkbox">
684 <conditions>
685 <condition var1="tw_is_slot_part" op="=" var2="1"/>
686 <condition var1="tw_flash_both_slots" op="=" var2="0"/>
687 <condition var1="tw_has_boot_slots" var2="1"/>
688 </conditions>
689 <placement x="%indent%" y="%row19a_y%" textplacement="6"/>
690 <text>{@flash_ab_both_slots=Flash to both slots}</text>
691 <image resource="checkbox_false"/>
692 <action function="set">tw_flash_both_slots=1</action>
693 </button>
694
695 <button style="checkbox">
696 <conditions>
697 <condition var1="tw_is_slot_part" op="=" var2="1"/>
698 <condition var1="tw_flash_both_slots" op="=" var2="1"/>
699 <condition var1="tw_has_boot_slots" var2="1"/>
700 </conditions>
701 <placement x="%indent%" y="%row19a_y%" textplacement="6"/>
702 <text>{@flash_ab_both_slots=Flash to both slots}</text>
703 <image resource="checkbox_true"/>
704 <action function="set">tw_flash_both_slots=0</action>
705 </button>
706
z31s1g28f0a922015-11-07 18:50:22 +0100707 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500708 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100709 <actions>
710 <action function="set">tw_back=flashimage_confirm</action>
711 <action function="set">tw_action=flashimage</action>
712 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500713 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100714 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500715 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100716 <action function="page">action_page</action>
717 </actions>
718 <action function="flashimage"/>
719 </slider>
720
721 <action>
722 <touch key="back"/>
723 <actions>
724 <action function="set">tw_clear_destination=install</action>
725 <action function="page">clear_vars</action>
726 </actions>
727 </action>
728
729 <action>
730 <touch key="home"/>
731 <actions>
732 <action function="set">tw_clear_destination=main2</action>
733 <action function="page">clear_vars</action>
734 </actions>
735 </action>
736 </page>
737
738 <page name="clear_vars">
739 <action>
740 <action function="set">tw_operation_state=0</action>
741 <action function="set">tw_text1=</action>
742 <action function="set">tw_text2=</action>
743 <action function="set">tw_text3=</action>
744 <action function="set">tw_text4=</action>
745 <action function="set">tw_action_text1=</action>
746 <action function="set">tw_action_text2=</action>
747 <action function="set">tw_action_param=</action>
748 <action function="set">tw_has_action2=0</action>
749 <action function="set">tw_action2=</action>
750 <action function="set">tw_action2_param=</action>
751 <action function="set">tw_has_cancel=0</action>
752 <action function="set">tw_cancel_action=</action>
753 <action function="set">tw_cancel_param=</action>
754 <action function="set">tw_show_exclamation=0</action>
755 <action function="set">tw_show_reboot=0</action>
Noah Jacobson81d638d2019-04-28 00:10:07 -0400756 <action function="set">tw_crypto_user_id=</action>
757 <action function="set">tw_multiuser_warning_accepted=</action>
758 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100759 <action function="page">%tw_clear_destination%</action>
760 </action>
761 </page>
762
Matt Mower908dd252016-05-25 02:26:50 -0500763 <page name="reboot_system_routine">
764 <action>
765 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500766 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500767 <action function="set">tw_has_action2=0</action>
768 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
769 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
770 <action function="set">tw_text3=</action>
771 <action function="set">tw_text4=</action>
772 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
773 <action function="set">tw_action_text2=</action>
774 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
775 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
776 <action function="page">rebootcheck</action>
777 </action>
778 </page>
779
z31s1g28f0a922015-11-07 18:50:22 +0100780 <page name="confirm_action">
781 <template name="page"/>
782
783 <text style="text_l">
784 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500785 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100786 </text>
787
788 <text style="text_m">
789 <placement x="%col1_x_header%" y="%row4_header_y%"/>
790 <text/>
791 </text>
792
793 <text style="text_m_accent">
794 <placement x="%center_x%" y="%row2_y%" placement="5"/>
795 <text>%tw_text1%</text>
796 </text>
797
798 <text style="text_m_accent">
799 <placement x="%center_x%" y="%row3_y%" placement="5"/>
800 <text>%tw_text2%</text>
801 </text>
802
803 <text style="text_m">
804 <placement x="%center_x%" y="%row4_y%" placement="5"/>
805 <text>%tw_text3%</text>
806 </text>
807
808 <text style="text_m">
809 <placement x="%center_x%" y="%row5_y%" placement="5"/>
810 <text>%tw_text4%</text>
811 </text>
812
813 <text style="text_m">
814 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500815 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100816 </text>
817
818 <slider>
819 <text>%tw_slider_text%</text>
820 <action function="page">action_page</action>
821 </slider>
822
823 <action>
824 <touch key="back"/>
825 <actions>
826 <action function="set">tw_clear_destination=%tw_back%</action>
827 <action function="page">clear_vars</action>
828 </actions>
829 </action>
830
831 <action>
832 <touch key="home"/>
833 <action function="page">main</action>
834 </action>
835 </page>
836
837 <page name="action_page">
838 <template name="page"/>
839
840 <text style="text_l">
841 <placement x="%col1_x_header%" y="%row3_header_y%"/>
842 <text>%tw_action_text1%</text>
843 </text>
844
845 <text style="text_m">
846 <placement x="%col1_x_header%" y="%row4_header_y%"/>
847 <text>%tw_action_text2%</text>
848 </text>
849
850 <template name="console"/>
851
852 <template name="progress_bar"/>
853
854 <button style="main_button_half_height">
855 <condition var1="tw_has_cancel" var2="1"/>
856 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500857 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100858 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
859 </button>
860
861 <action>
862 <condition var1="tw_operation_state" var2="1"/>
863 <actions>
864 <action function="page">action_complete</action>
865 </actions>
866 </action>
867
868 <action>
869 <condition var1="tw_has_action2" var2="0"/>
870 <actions>
871 <action function="%tw_action%">%tw_action_param%</action>
872 </actions>
873 </action>
874
875 <action>
876 <condition var1="tw_has_action2" var2="1"/>
877 <actions>
878 <action function="%tw_action%">%tw_action_param%</action>
879 <action function="%tw_action2%">%tw_action2_param%</action>
880 </actions>
881 </action>
882 </page>
883
884 <page name="singleaction_page">
885 <template name="page"/>
886
887 <text style="text_l">
888 <placement x="%col1_x_header%" y="%row3_header_y%"/>
889 <text>%tw_action_text1%</text>
890 </text>
891
892 <text style="text_m">
893 <placement x="%col1_x_header%" y="%row4_header_y%"/>
894 <text>%tw_action_text2%</text>
895 </text>
896
897 <template name="console"/>
898
899 <template name="progress_bar"/>
900
901 <action>
902 <condition var1="tw_operation_state" var2="1"/>
903 <actions>
904 <action function="set">tw_page_done=1</action>
905 </actions>
906 </action>
907
908 <action>
909 <condition var1="tw_has_action2" var2="0"/>
910 <actions>
911 <action function="%tw_action%">%tw_action_param%</action>
912 </actions>
913 </action>
914
915 <action>
916 <condition var1="tw_has_action2" var2="1"/>
917 <actions>
918 <action function="%tw_action%">%tw_action_param%</action>
919 <action function="%tw_action2%">%tw_action2_param%</action>
920 </actions>
921 </action>
922 </page>
923
924 <page name="action_complete">
925 <template name="page"/>
926
927 <text style="text_l">
928 <placement x="%col1_x_header%" y="%row3_header_y%"/>
929 <text>%tw_complete_text1%</text>
930 </text>
931
932 <text style="text_m_fail">
933 <condition var1="tw_operation_status" op="!=" var2="0"/>
934 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500935 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100936 </text>
937
938 <text style="text_m">
939 <condition var1="tw_operation_status" var2="0"/>
940 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500941 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100942 </text>
943
944 <template name="console"/>
945
946 <button style="main_button_half_height">
947 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500948 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100949 <actions>
950 <action function="set">tw_clear_destination=%tw_back%</action>
951 <action function="page">clear_vars</action>
952 </actions>
953 </button>
954
955 <button style="main_button_half_height">
956 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500957 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100958 <actions>
959 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500960 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100961 </actions>
962 </button>
963
964 <action>
965 <touch key="home"/>
966 <actions>
967 <action function="set">tw_clear_destination=main2</action>
968 <action function="page">clear_vars</action>
969 </actions>
970 </action>
971
972 <action>
973 <touch key="back"/>
974 <actions>
975 <action function="set">tw_clear_destination=%tw_back%</action>
976 <action function="page">clear_vars</action>
977 </actions>
978 </action>
979 </page>
980
981 <page name="filecheck">
982 <action>
983 <action function="fileexists">%tw_filecheck%</action>
984 </action>
985
986 <action>
987 <conditions>
988 <condition var1="tw_operation_state" var2="1"/>
989 <condition var1="tw_operation_status" var2="0"/>
990 </conditions>
991 <actions>
992 <action function="set">tw_fileexists=1</action>
993 <action function="page">%tw_existpage%</action>
994 </actions>
995 </action>
996
997 <action>
998 <conditions>
999 <condition var1="tw_operation_state" var2="1"/>
1000 <condition var1="tw_operation_status" var2="1"/>
1001 </conditions>
1002 <actions>
1003 <action function="set">tw_fileexists=0</action>
1004 <action function="page">%tw_notexistpage%</action>
1005 </actions>
1006 </action>
1007 </page>
1008
1009 <page name="rebootcheck">
1010 <action>
1011 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06001012 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +01001013 </action>
1014
1015 <action>
1016 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1017 <action function="page">confirm_action</action>
1018 </action>
1019 </page>
1020
1021 <page name="wipe">
1022 <template name="page"/>
1023
1024 <text style="text_l">
1025 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001026 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001027 </text>
1028
1029 <text style="text_m">
1030 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001031 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001032 </text>
1033
1034 <text style="text_m_accent">
1035 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001036 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001037 </text>
1038
1039 <text style="text_m_accent">
bigbiffadc599e2020-05-28 19:36:30 +00001040 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04001041 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1042 </text>
1043
1044 <text style="text_m_accent">
1045 <condition var1="tw_has_data_media" var2="1"/>
1046 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001047 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001048 </text>
1049
1050 <text style="text_m_accent">
1051 <conditions>
1052 <condition var1="tw_has_android_secure" var2="1"/>
1053 <condition var1="fileexists" var2="/and-sec"/>
1054 </conditions>
1055 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001056 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001057 </text>
1058
1059 <text style="text_m_accent">
1060 <condition var1="tw_has_sdext_partition" var2="1"/>
1061 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001062 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001063 </text>
1064
1065 <text style="text_m">
1066 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001067 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001068 </text>
1069
1070 <text style="text_m">
1071 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001072 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001073 </text>
1074
1075 <text style="text_m">
1076 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001077 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001078 </text>
1079
1080 <button style="main_button_half_height">
1081 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001082 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001083 <actions>
1084 <action function="set">partitionlisterror=0</action>
1085 <action function="page">advancedwipe</action>
1086 </actions>
1087 </button>
1088
1089 <button style="main_button_half_height">
1090 <condition var1="tw_has_data_media" var2="1"/>
1091 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001092 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001093 <action function="page">formatdata</action>
1094 </button>
1095
1096 <button style="main_button_half_height">
1097 <conditions>
1098 <condition var1="tw_is_encrypted" var2="1"/>
1099 <condition var1="tw_has_data_media" var2="0"/>
1100 </conditions>
1101 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001102 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001103 <actions>
1104 <action function="set">tw_back=wipe</action>
1105 <action function="set">tw_action=wipe</action>
1106 <action function="set">tw_action_param=DATAMEDIA</action>
1107 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001108 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001109 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001110 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1111 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1112 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001113 <action function="page">confirm_action</action>
1114 </actions>
1115 </button>
1116
1117 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001118 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001119 <actions>
1120 <action function="set">tw_back=wipe</action>
1121 <action function="set">tw_action=wipe</action>
1122 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001123 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1124 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001125 <action function="page">action_page</action>
1126 </actions>
1127 </slider>
1128
1129 <action>
1130 <touch key="back"/>
1131 <action function="page">main</action>
1132 </action>
1133
1134 <action>
1135 <touch key="home"/>
1136 <action function="page">main</action>
1137 </action>
1138 </page>
1139
1140 <page name="advancedwipe">
1141 <template name="page"/>
1142
1143 <action>
1144 <action function="set">tw_wipe_list=</action>
1145 </action>
1146
1147 <text style="text_l">
1148 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001149 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001150 </text>
1151
1152 <text style="text_m">
1153 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001154 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001155 </text>
1156
1157 <partitionlist>
1158 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001159 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001160 <data name="tw_wipe_list"/>
1161 <listtype name="wipe"/>
1162 </partitionlist>
1163
1164 <text style="text_m_fail">
1165 <condition var1="partitionlisterror" var2="1"/>
1166 <placement x="%center_x%" y="%row17_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001167 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001168 </text>
1169
1170 <button style="main_button_half_height_full_width">
1171 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001172 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001173 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001174 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001175 <action function="page">checkpartitionlist</action>
1176 </actions>
1177 </button>
1178
1179 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001180 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001181 <actions>
1182 <action function="set">tw_back=advancedwipe</action>
1183 <action function="set">tw_action=wipe</action>
1184 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001185 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1186 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1187 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001188 <action function="page">action_page</action>
1189 </actions>
1190 </slider>
1191
1192 <action>
1193 <touch key="home"/>
1194 <action function="page">main</action>
1195 </action>
1196
1197 <action>
1198 <touch key="back"/>
1199 <action function="page">wipe</action>
1200 </action>
1201 </page>
1202
1203 <page name="formatdata">
1204 <template name="page"/>
1205
1206 <text style="text_l">
1207 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001208 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001209 </text>
1210
1211 <text style="text_m">
1212 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001213 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001214 </text>
1215
1216 <text style="text_m_fail">
1217 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001218 <text>{@format_data_ptr1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001219 </text>
1220
1221 <text style="text_m_fail">
1222 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001223 <text>{@format_data_ptr2=backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001224 </text>
1225
1226 <text style="text_m_fail">
1227 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001228 <text>{@format_data_ptr3=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001229 </text>
1230
Ethan Yonker66a19492015-12-10 10:19:45 -06001231 <text style="text_m_fail">
1232 <condition var1="tw_has_adopted_storage" var2="1"/>
1233 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1234 <text>{@format_data_adopted=Including Adopted Storage}</text>
1235 </text>
1236
z31s1g28f0a922015-11-07 18:50:22 +01001237 <text style="text_m">
1238 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001239 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001240 </text>
1241
1242 <text style="text_m">
1243 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001244 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001245 </text>
1246
1247 <input>
1248 <placement x="%indent%" y="%row10_y%" w="%content_width%" h="%input_height%"/>
1249 <text>%tw_confirm_formatdata%</text>
1250 <data name="tw_confirm_formatdata"/>
1251 <restrict minlen="3" maxlen="3" allow="yes"/>
1252 <action function="page">formatdata_confirm</action>
1253 </input>
1254
1255 <fill color="%accent_color%">
1256 <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width"/>
1257 </fill>
1258
1259 <template name="keyboardtemplate"/>
1260
1261 <action>
1262 <touch key="home"/>
1263 <action function="page">main</action>
1264 </action>
1265
1266 <action>
1267 <touch key="back"/>
1268 <action function="page">wipe</action>
1269 </action>
1270 </page>
1271
1272 <page name="formatdata_confirm">
1273 <action>
1274 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1275 <actions>
1276 <action function="set">tw_back=formatdata</action>
1277 <action function="set">tw_action=wipe</action>
1278 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001279 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1280 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001281 <action function="page">action_page</action>
1282 </actions>
1283 </action>
1284
1285 <action>
1286 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1287 <action function="page">formatdata</action>
1288 </action>
1289 </page>
1290
1291 <page name="checkpartitionlist">
1292 <action>
1293 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1294 <actions>
1295 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001296 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001297 <action function="page">partitionoptions</action>
1298 </actions>
1299 </action>
1300
1301 <action>
1302 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1303 <actions>
1304 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001305 <action function="page">advancedwipe</action>
1306 </actions>
1307 </action>
1308 </page>
1309
1310 <page name="partitionoptions">
1311 <template name="page"/>
1312
1313 <text style="text_l">
1314 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001315 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001316 </text>
1317
1318 <text style="text_m">
1319 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001320 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001321 </text>
1322
1323 <text style="text_m_accent">
1324 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001325 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001326 </text>
1327
1328 <text style="text_m_accent">
1329 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001330 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001331 </text>
1332
1333 <text style="text_m">
1334 <condition var1="tw_partition_is_present" var2="1"/>
1335 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001336 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001337 </text>
1338
1339 <text style="text_m">
1340 <condition var1="tw_partition_is_present" var2="0"/>
1341 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001342 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001343 </text>
1344
1345 <text style="text_m">
1346 <condition var1="tw_partition_removable" var2="1"/>
1347 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001348 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001349 </text>
1350
1351 <text style="text_m">
1352 <condition var1="tw_partition_removable" var2="0"/>
1353 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001354 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001355 </text>
1356
1357 <text style="text_m">
1358 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001359 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001360 </text>
1361
1362 <text style="text_m">
1363 <placement x="%center_x%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001364 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001365 </text>
1366
1367 <text style="text_m">
1368 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001369 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001370 </text>
1371
1372 <text style="text_m">
1373 <placement x="%center_x%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001374 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001375 </text>
1376
1377 <button style="main_button_half_height">
1378 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1379 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001380 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001381 <actions>
1382 <action function="set">tw_back=partitionoptions</action>
1383 <action function="set">tw_action=resize</action>
1384 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1385 <action function="set">tw_has_action2=1</action>
1386 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001387 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001388 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001389 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001390 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1391 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1392 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001393 <action function="page">confirm_action</action>
1394 </actions>
1395 </button>
1396
1397 <button style="main_button_half_height">
1398 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1399 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001400 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001401 <actions>
1402 <action function="set">tw_back=partitionoptions</action>
1403 <action function="set">tw_action=repair</action>
1404 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1405 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001406 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001407 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001408 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1409 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1410 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001411 <action function="page">confirm_action</action>
1412 </actions>
1413 </button>
1414
1415 <button style="main_button_half_height">
1416 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001417 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001418 <action function="page">selectfilesystem</action>
1419 </button>
1420
1421 <action>
1422 <touch key="home"/>
1423 <action function="page">main</action>
1424 </action>
1425
1426 <action>
1427 <touch key="back"/>
1428 <action function="page">advancedwipe</action>
1429 </action>
1430 </page>
1431
1432 <page name="refreshfilesystem">
1433 <action>
1434 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1435 <actions>
1436 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001437 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001438 <action function="page">selectfilesystem</action>
1439 </actions>
1440 </action>
1441
1442 <action>
1443 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1444 <actions>
1445 <action function="set">partitionlisterror=1</action>
1446 <action function="set">tw_wipe_list=</action>
1447 <action function="page">advancedwipe</action>
1448 </actions>
1449 </action>
1450 </page>
1451
1452 <page name="selectfilesystem">
1453 <template name="page"/>
1454
1455 <text style="text_l">
1456 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001457 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001458 </text>
1459
1460 <text style="text_m">
1461 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001462 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001463 </text>
1464
1465 <text style="text_m_accent">
1466 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001467 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001468 </text>
1469
1470 <text style="text_m_accent">
1471 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001472 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001473 </text>
1474
1475 <text style="text_m_fail">
1476 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001477 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001478 </text>
1479
1480 <text style="text_m_fail">
1481 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001482 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001483 </text>
1484
1485 <button style="main_button_half_height">
1486 <condition var1="tw_partition_ext" op="=" var2="1"/>
1487 <placement x="%indent%" y="%row15a_y%"/>
1488 <text>EXT2</text>
1489 <actions>
1490 <action function="set">tw_back=refreshfilesystem</action>
1491 <action function="set">tw_action=changefilesystem</action>
1492 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1493 <action function="set">tw_action_new_file_system=ext2</action>
1494 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001495 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1496 <action function="set">tw_text2=EXT2</action>
1497 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1498 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1499 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001500 <action function="page">confirm_action</action>
1501 </actions>
1502 </button>
1503
1504 <button style="main_button_half_height">
1505 <condition var1="tw_partition_ext" op="=" var2="1"/>
1506 <placement x="%indent%" y="%row18a_y%"/>
1507 <text>EXT3</text>
1508 <actions>
1509 <action function="set">tw_back=refreshfilesystem</action>
1510 <action function="set">tw_action=changefilesystem</action>
1511 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1512 <action function="set">tw_action_new_file_system=ext3</action>
1513 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001514 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1515 <action function="set">tw_text2=EXT3</action>
1516 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1517 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1518 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001519 <action function="page">confirm_action</action>
1520 </actions>
1521 </button>
1522
1523 <button style="main_button_half_height">
1524 <condition var1="tw_partition_ext" op="=" var2="1"/>
1525 <placement x="%indent%" y="%row21a_y%"/>
1526 <text>EXT4</text>
1527 <actions>
1528 <action function="set">tw_back=refreshfilesystem</action>
1529 <action function="set">tw_action=changefilesystem</action>
1530 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1531 <action function="set">tw_action_new_file_system=ext4</action>
1532 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001533 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1534 <action function="set">tw_text2=EXT4</action>
1535 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1536 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1537 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001538 <action function="page">confirm_action</action>
1539 </actions>
1540 </button>
1541
1542 <button style="main_button_half_height">
1543 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1544 <placement x="%center_x%" y="%row15a_y%"/>
1545 <text>FAT</text>
1546 <actions>
1547 <action function="set">tw_back=refreshfilesystem</action>
1548 <action function="set">tw_action=changefilesystem</action>
1549 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1550 <action function="set">tw_action_new_file_system=vfat</action>
1551 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001552 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1553 <action function="set">tw_text2=FAT</action>
1554 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1555 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1556 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001557 <action function="page">confirm_action</action>
1558 </actions>
1559 </button>
1560
1561 <button style="main_button_half_height">
1562 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1563 <placement x="%center_x%" y="%row18a_y%"/>
1564 <text>exFAT</text>
1565 <actions>
1566 <action function="set">tw_back=refreshfilesystem</action>
1567 <action function="set">tw_action=changefilesystem</action>
1568 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1569 <action function="set">tw_action_new_file_system=exfat</action>
1570 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001571 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1572 <action function="set">tw_text2=exFAT</action>
1573 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1574 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1575 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001576 <action function="page">confirm_action</action>
1577 </actions>
1578 </button>
1579
1580 <button style="main_button_half_height">
1581 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1582 <placement x="%center_x%" y="%row21a_y%"/>
1583 <text>F2FS</text>
1584 <actions>
1585 <action function="set">tw_back=refreshfilesystem</action>
1586 <action function="set">tw_action=changefilesystem</action>
1587 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1588 <action function="set">tw_action_new_file_system=f2fs</action>
1589 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001590 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1591 <action function="set">tw_text2=F2FS</action>
1592 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1593 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1594 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001595 <action function="page">confirm_action</action>
1596 </actions>
1597 </button>
1598
1599 <action>
1600 <touch key="home"/>
1601 <action function="page">main</action>
1602 </action>
1603
1604 <action>
1605 <touch key="back"/>
1606 <action function="page">partitionoptions</action>
1607 </action>
1608 </page>
1609
1610 <page name="backup">
1611 <template name="page"/>
1612
Noah Jacobson81d638d2019-04-28 00:10:07 -04001613 <action>
1614 <conditions>
1615 <condition var1="tw_is_fbe" var2="1"/>
1616 <condition var1="tw_all_users_decrypted" var2="0"/>
1617 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1618 </conditions>
1619 <actions>
1620 <action function="set">tw_multiuser_warning_destination=backup</action>
1621 <action function="page">multiuser_warning</action>
1622 </actions>
1623 </action>
1624
z31s1g28f0a922015-11-07 18:50:22 +01001625 <text style="text_l">
1626 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001627 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001628 </text>
1629
1630 <text style="text_m">
1631 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001632 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001633 </text>
1634
1635 <template name="tabs_backup"/>
1636
1637 <fill color="%text_color%">
1638 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1639 </fill>
1640
1641 <button style="tab">
1642 <conditions>
1643 <condition var1="tw_include_encrypted_backup" var2="1"/>
1644 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001645 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001646 </conditions>
1647 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001648 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001649 <font resource="font_s" color="%text_color%"/>
1650 <actions>
1651 <action function="set">tw_password_not_match=0</action>
1652 <action function="page">backupencryption</action>
1653 </actions>
1654 </button>
1655
1656 <button style="tab">
1657 <conditions>
1658 <condition var1="tw_include_encrypted_backup" var2="1"/>
1659 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001660 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001661 </conditions>
1662 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001663 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001664 <font resource="font_s" color="%text_success_color%"/>
1665 <actions>
1666 <action function="set">tw_password_not_match=0</action>
1667 <action function="page">backupencryption</action>
1668 </actions>
1669 </button>
1670
1671 <text style="text_m_accent">
1672 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001673 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001674 </text>
1675
1676 <text style="text_m">
1677 <placement x="%indent%" y="%row4a_y%"/>
1678 <text>%tw_backup_name%</text>
1679 </text>
1680
1681 <fill color="%fileselector_linecolor%">
1682 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width"/>
1683 </fill>
1684
1685 <button>
bigbiffce8f83c2015-12-12 18:30:21 -05001686 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001687 <placement x="indent" y="%row3a_y%" w="%content_width%" h="%navbar_height%"/>
1688 <fill color="%transparent%"/>
1689 <actions>
1690 <action function="set">tw_fileexists=0</action>
1691 <action function="page">backupname1</action>
1692 </actions>
1693 </button>
1694
1695 <partitionlist>
1696 <placement x="%indent%" y="%row6_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001697 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001698 <data name="tw_backup_list"/>
1699 <listtype name="backup"/>
1700 </partitionlist>
1701
1702 <button style="main_button_half_height">
bigbiffce8f83c2015-12-12 18:30:21 -05001703 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001704 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001705 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001706 <actions>
1707 <action function="set">tw_back=backup</action>
1708 <action function="overlay">select_storage</action>
1709 </actions>
1710 </button>
1711
1712 <button style="main_button_half_height">
1713 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001714 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001715 <actions>
1716 <action function="refreshsizes"/>
1717 <action function="page">backup</action>
1718 </actions>
1719 </button>
1720
1721 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001722 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001723 <action function="page">backup_run</action>
1724 </slider>
1725
1726 <action>
1727 <touch key="home"/>
1728 <action function="page">main</action>
1729 </action>
1730
1731 <action>
1732 <touch key="back"/>
1733 <action function="page">main</action>
1734 </action>
1735 </page>
1736
Noah Jacobson81d638d2019-04-28 00:10:07 -04001737 <page name="multiuser_warning">
1738 <template name="page"/>
1739
1740 <text style="text_l">
1741 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1742 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
1743 </text>
1744
1745 <text style="text_m_fail">
1746 <placement x="%center_x%" y="%row7_y%" placement="5"/>
1747 <text>{@multiuser_warning1=Not all users decrypted!}</text>
1748 </text>
1749
1750 <text style="text_m_fail">
1751 <placement x="%center_x%" y="%row8_y%" placement="5"/>
1752 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
1753 </text>
1754
1755 <button style="main_button_half_height_full_width">
1756 <placement x="%indent%" y="%row18a_y%"/>
1757 <text>{@decrypt_users=Decrypt Users}</text>
1758 <action function="page">decrypt_users</action>
1759 </button>
1760
1761 <slider>>
1762 <text>{@multiuser_warning_accept=Continue Anyway}</text>
1763 <actions>
1764 <action function="set">tw_multiuser_warning_accepted=1</action>
1765 <action function="page">%tw_multiuser_warning_destination%</action>
1766 </actions>
1767 </slider>
1768
1769 <action>
1770 <touch key="home"/>
1771 <action function="page">main</action>
1772 </action>
1773
1774 <action>
1775 <touch key="back"/>
1776 <action function="page">main</action>
1777 </action>
1778 </page>
1779
z31s1g28f0a922015-11-07 18:50:22 +01001780 <page name="backup_options">
1781 <template name="page"/>
1782
1783 <text style="text_l">
1784 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001785 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001786 </text>
1787
1788 <text style="text_m">
1789 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001790 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001791 </text>
1792
1793 <template name="tabs_backup"/>
1794
1795 <fill color="%text_color%">
1796 <placement x="%tab3_col2_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1797 </fill>
1798
1799 <button style="tab">
1800 <conditions>
1801 <condition var1="tw_include_encrypted_backup" var2="1"/>
1802 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001803 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001804 </conditions>
1805 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001806 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001807 <font resource="font_s" color="%text_color%"/>
1808 <actions>
1809 <action function="set">tw_password_not_match=0</action>
1810 <action function="page">backupencryption</action>
1811 </actions>
1812 </button>
1813
1814 <button style="tab">
1815 <conditions>
1816 <condition var1="tw_include_encrypted_backup" var2="1"/>
1817 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001818 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001819 </conditions>
1820 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001821 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001822 <font resource="font_s" color="%text_success_color%"/>
1823 <actions>
1824 <action function="set">tw_password_not_match=0</action>
1825 <action function="page">backupencryption</action>
1826 </actions>
1827 </button>
1828
1829 <checkbox>
1830 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001831 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001832 <data variable="tw_use_compression"/>
1833 </checkbox>
1834
1835 <checkbox>
1836 <placement x="%indent%" y="%row5_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001837 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1838 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001839 </checkbox>
1840
1841 <checkbox>
1842 <placement x="%indent%" y="%row6a_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001843 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001844 <data variable="tw_disable_free_space"/>
1845 </checkbox>
1846
Ethan Yonker1b190162016-12-05 15:25:19 -06001847 <text style="text_m">
1848 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01001849 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06001850 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
1851 </text>
1852
1853 <button style="main_button">
1854 <condition var1="tw_has_boot_slots" var2="1"/>
1855 <placement x="%indent%" y="%row19_y%"/>
1856 <text>{@boot_slot_a=Slot A}</text>
1857 <actions>
1858 <action function="set">tw_back=backup_options</action>
1859 <action function="set">tw_action=setbootslot</action>
1860 <action function="set">tw_action_param=A</action>
1861 <action function="set">tw_has_action2=0</action>
1862 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1863 <action function="set">tw_action_text2=</action>
1864 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1865 <action function="page">action_page</action>
1866 </actions>
1867 </button>
1868
1869 <button style="main_button">
1870 <condition var1="tw_has_boot_slots" var2="1"/>
1871 <placement x="%center_x%" y="%row19_y%"/>
1872 <text>{@boot_slot_b=Slot B}</text>
1873 <actions>
1874 <action function="set">tw_back=backup_options</action>
1875 <action function="set">tw_action=setbootslot</action>
1876 <action function="set">tw_action_param=B</action>
1877 <action function="set">tw_has_action2=0</action>
1878 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1879 <action function="set">tw_action_text2=</action>
1880 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1881 <action function="page">action_page</action>
1882 </actions>
1883 </button>
1884
z31s1g28f0a922015-11-07 18:50:22 +01001885 <action>
1886 <touch key="home"/>
1887 <action function="page">main</action>
1888 </action>
1889
1890 <action>
1891 <touch key="back"/>
1892 <action function="page">backup</action>
1893 </action>
1894 </page>
1895
1896 <page name="backupname1">
1897 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001898 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001899 <action function="generatebackupname"/>
1900 </action>
1901
1902 <action>
1903 <action function="page">backupname2</action>
1904 </action>
1905 </page>
1906
1907 <page name="backupname2">
1908 <template name="page"/>
1909
1910 <text style="text_l">
1911 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001912 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001913 </text>
1914
1915 <text style="text_m">
1916 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001917 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001918 </text>
1919
1920 <template name="tabs_backup"/>
1921
1922 <fill color="%text_color%">
1923 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1924 </fill>
1925
1926 <button style="tab">
1927 <conditions>
1928 <condition var1="tw_include_encrypted_backup" var2="1"/>
1929 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001930 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001931 </conditions>
1932 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001933 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001934 <font resource="font_s" color="%text_color%"/>
1935 <actions>
1936 <action function="set">tw_password_not_match=0</action>
1937 <action function="page">backupencryption</action>
1938 </actions>
1939 </button>
1940
1941 <button style="tab">
1942 <conditions>
1943 <condition var1="tw_include_encrypted_backup" var2="1"/>
1944 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001945 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001946 </conditions>
1947 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001948 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001949 <font resource="font_s" color="%text_success_color%"/>
1950 <actions>
1951 <action function="set">tw_password_not_match=0</action>
1952 <action function="page">backupencryption</action>
1953 </actions>
1954 </button>
1955
1956 <text style="text_m_accent">
1957 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001958 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001959 </text>
1960
1961 <input>
1962 <placement x="%indent%" y="%row4_input_y%" w="%content_width%" h="%input_height%"/>
1963 <text>%tw_backup_name%</text>
1964 <data name="tw_backup_name"/>
1965 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1966 <actions>
1967 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1968 <action function="set">tw_existpage=backupname2</action>
1969 <action function="set">tw_notexistpage=backup</action>
1970 <action function="page">filecheck</action>
1971 </actions>
1972 </input>
1973
1974 <fill color="%accent_color%">
1975 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1976 </fill>
1977
1978 <fill color="%text_fail_color%">
1979 <condition var1="tw_fileexists" var2="1"/>
1980 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1981 </fill>
1982
1983 <text style="text_m_fail">
1984 <condition var1="tw_fileexists" var2="1"/>
1985 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001986 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001987 </text>
1988
1989 <button style="main_button_half_height">
1990 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001991 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001992 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001993 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001994 <action function="page">backup</action>
1995 </actions>
1996 </button>
1997
1998 <button style="main_button_half_height">
1999 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002000 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002001 <action function="appenddatetobackupname"/>
2002 </button>
2003
2004 <template name="keyboardtemplate"/>
2005
2006 <action>
2007 <touch key="home"/>
2008 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002009 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002010 <action function="page">main</action>
2011 </actions>
2012 </action>
2013
2014 <action>
2015 <touch key="back"/>
2016 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002017 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002018 <action function="page">backup</action>
2019 </actions>
2020 </action>
2021 </page>
2022
2023 <page name="backupencryption">
2024 <template name="page"/>
2025
2026 <text style="text_l">
2027 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002028 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002029 </text>
2030
2031 <text style="text_m">
2032 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002033 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002034 </text>
2035
2036 <template name="tabs_backup"/>
2037
2038 <button style="tab">
2039 <conditions>
2040 <condition var1="tw_include_encrypted_backup" var2="1"/>
2041 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002042 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002043 </conditions>
2044 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002045 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002046 <font resource="font_s" color="%text_color%"/>
2047 <actions>
2048 <action function="set">tw_password_not_match=0</action>
2049 <action function="page">backupencryption</action>
2050 </actions>
2051 </button>
2052
2053 <button style="tab">
2054 <conditions>
2055 <condition var1="tw_include_encrypted_backup" var2="1"/>
2056 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002057 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002058 </conditions>
2059 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002060 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002061 <font resource="font_s" color="%text_success_color%"/>
2062 <actions>
2063 <action function="set">tw_password_not_match=0</action>
2064 <action function="page">backupencryption</action>
2065 </actions>
2066 </button>
2067
2068 <fill color="%text_color%">
2069 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2070 </fill>
2071
2072 <text style="text_m_accent">
2073 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002074 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002075 </text>
2076
2077 <text style="text_m">
2078 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002079 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002080 </text>
2081
2082 <input>
2083 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2084 <text>%tw_backup_encrypt_display%</text>
2085 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2086 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2087 <action function="page">backupencryption2</action>
2088 </input>
2089
2090 <fill color="%accent_color%">
2091 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2092 </fill>
2093
2094 <fill color="%text_fail_color%">
2095 <condition var1="tw_password_not_match" var2="1"/>
2096 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2097 </fill>
2098
2099 <text style="text_m_fail">
2100 <condition var1="tw_password_not_match" var2="1"/>
2101 <placement x="%indent%" y="%row8a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002102 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002103 </text>
2104
2105 <button style="main_button_half_height">
2106 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002107 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002108 <actions>
2109 <action function="set">tw_encrypt_backup=0</action>
2110 <action function="set">tw_backup_password=</action>
2111 <action function="set">tw_backup_password2=</action>
2112 <action function="set">tw_backup_encrypt_display=</action>
2113 <action function="set">tw_backup_encrypt_display2=</action>
2114 <action function="page">backup</action>
2115 </actions>
2116 </button>
2117
2118 <template name="keyboardtemplate"/>
2119
2120 <action>
2121 <touch key="home"/>
2122 <action function="page">main</action>
2123 </action>
2124
2125 <action>
2126 <touch key="back"/>
2127 <action function="page">backup</action>
2128 </action>
2129 </page>
2130
2131 <page name="backupencryption2">
2132 <template name="page"/>
2133
2134 <text style="text_l">
2135 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002136 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002137 </text>
2138
2139 <text style="text_m">
2140 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002141 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002142 </text>
2143
2144 <template name="tabs_backup"/>
2145
2146 <button style="tab">
2147 <conditions>
2148 <condition var1="tw_include_encrypted_backup" var2="1"/>
2149 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002150 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002151 </conditions>
2152 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002153 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002154 <font resource="font_s" color="%text_color%"/>
2155 <actions>
2156 <action function="set">tw_password_not_match=0</action>
2157 <action function="page">backupencryption</action>
2158 </actions>
2159 </button>
2160
2161 <button style="tab">
2162 <conditions>
2163 <condition var1="tw_include_encrypted_backup" var2="1"/>
2164 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002165 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002166 </conditions>
2167 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002168 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002169 <font resource="font_s" color="%text_success_color%"/>
2170 <actions>
2171 <action function="set">tw_password_not_match=0</action>
2172 <action function="page">backupencryption</action>
2173 </actions>
2174 </button>
2175
2176 <fill color="%text_color%">
2177 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2178 </fill>
2179
2180 <text style="text_m_accent">
2181 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002182 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002183 </text>
2184
2185 <text style="text_m">
2186 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002187 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002188 </text>
2189
2190 <input>
2191 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2192 <text>%tw_backup_encrypt_display2%</text>
2193 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2194 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2195 <action function="page">checkbackuppassword</action>
2196 </input>
2197
2198 <fill color="%accent_color%">
2199 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2200 </fill>
2201
2202 <button style="main_button_half_height">
2203 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002204 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002205 <actions>
2206 <action function="set">tw_encrypt_backup=0</action>
2207 <action function="set">tw_backup_password=</action>
2208 <action function="set">tw_backup_password2=</action>
2209 <action function="set">tw_backup_encrypt_display=</action>
2210 <action function="set">tw_backup_encrypt_display2=</action>
2211 <action function="page">backup</action>
2212 </actions>
2213 </button>
2214
2215 <template name="keyboardtemplate"/>
2216
2217 <action>
2218 <touch key="home"/>
2219 <action function="page">main</action>
2220 </action>
2221
2222 <action>
2223 <touch key="back"/>
2224 <action function="page">backup</action>
2225 </action>
2226 </page>
2227
2228 <page name="checkbackuppassword">
2229 <action>
2230 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2231 <actions>
2232 <action function="set">tw_encrypt_backup=1</action>
2233 <action function="page">backup</action>
2234 </actions>
2235 </action>
2236
2237 <action>
2238 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2239 <actions>
2240 <action function="set">tw_encrypt_backup=0</action>
2241 <action function="set">tw_password_not_match=1</action>
2242 <action function="set">tw_backup_password=</action>
2243 <action function="set">tw_backup_password2=</action>
2244 <action function="set">tw_backup_encrypt_display=</action>
2245 <action function="set">tw_backup_encrypt_display2=</action>
2246 <action function="page">backupencryption</action>
2247 </actions>
2248 </action>
2249 </page>
2250
2251 <page name="backup_run">
2252 <template name="page"/>
2253
2254 <text style="text_l">
2255 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2256 <text>%tw_operation%</text>
2257 </text>
2258
2259 <text style="text_m">
2260 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2261 <text>%tw_partition% Partition</text>
2262 </text>
2263
2264 <template name="console"/>
2265
2266 <template name="progress_bar"/>
2267
2268 <text style="text_m_accent">
2269 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002270 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002271 </text>
2272
2273 <text style="text_m">
2274 <placement x="%indent%" y="%row20_y%"/>
2275 <text>%tw_file_progress%</text>
2276 </text>
2277
2278 <text style="text_m">
2279 <placement x="%indent%" y="%row21_y%"/>
2280 <text>%tw_size_progress%</text>
2281 </text>
2282
2283 <button style="main_button_half_height">
2284 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002285 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002286 <action function="cancelbackup"/>
2287 </button>
2288
2289 <action>
2290 <action function="nandroid">backup</action>
2291 </action>
2292
2293 <action>
2294 <condition var1="tw_operation_state" var2="1"/>
2295 <condition var1="tw_cancel_backup" var2="0"/>
2296 <actions>
2297 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002298 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002299 <action function="set">tw_show_reboot=1</action>
2300 <action function="page">action_complete</action>
2301 </actions>
2302 </action>
2303
2304 <action>
2305 <condition var1="tw_operation_state" var2="1"/>
2306 <condition var1="tw_cancel_backup" var2="1"/>
2307 <actions>
2308 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002309 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002310 <action function="set">tw_show_reboot=1</action>
2311 <action function="page">action_complete</action>
2312 </actions>
2313 </action>
2314 </page>
2315
2316 <page name="restore">
2317 <template name="page"/>
2318
Noah Jacobson81d638d2019-04-28 00:10:07 -04002319 <action>
2320 <conditions>
2321 <condition var1="tw_is_fbe" var2="1"/>
2322 <condition var1="tw_all_users_decrypted" var2="0"/>
2323 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2324 </conditions>
2325 <actions>
2326 <action function="set">tw_multiuser_warning_destination=restore</action>
2327 <action function="page">multiuser_warning</action>
2328 </actions>
2329 </action>
2330
z31s1g28f0a922015-11-07 18:50:22 +01002331 <text style="text_l">
2332 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002333 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002334 </text>
2335
2336 <text style="text_m">
2337 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002338 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002339 </text>
2340
2341 <template name="sort_options"/>
2342
2343 <fileselector>
2344 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002345 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002346 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002347 <path name="tw_backups_folder"/>
2348 <data name="tw_restore" default=""/>
2349 <selection name="tw_restore_name"/>
2350 </fileselector>
2351
2352 <button style="main_button_half_height">
2353 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002354 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002355 <actions>
2356 <action function="set">tw_back=restore</action>
2357 <action function="overlay">select_storage</action>
2358 </actions>
2359 </button>
2360
2361 <action>
2362 <condition var1="tw_restore" op="modified"/>
2363 <actions>
2364 <action function="readBackup"/>
2365 <action function="page">restore_read</action>
2366 </actions>
2367 </action>
2368
2369 <action>
2370 <touch key="home"/>
2371 <action function="page">main</action>
2372 </action>
2373
2374 <action>
2375 <touch key="back"/>
2376 <action function="page">main</action>
2377 </action>
2378 </page>
2379
2380 <page name="restore_read">
2381 <action>
2382 <condition var1="tw_restore_encrypted" var2="1"/>
2383 <actions>
2384 <action function="set">tw_password_fail=0</action>
2385 <action function="page">restore_decrypt</action>
2386 </actions>
2387 </action>
2388
2389 <action>
2390 <condition var1="tw_restore_encrypted" var2="0"/>
2391 <actions>
2392 <action function="page">restore_select</action>
2393 </actions>
2394 </action>
2395 </page>
2396
2397 <page name="restore_decrypt">
2398 <template name="page"/>
2399
2400 <text style="text_l">
2401 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002402 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002403 </text>
2404
2405 <text style="text_m">
2406 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002407 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002408 </text>
2409
2410 <text style="text_m_accent">
2411 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002412 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002413 </text>
2414
2415 <input>
2416 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2417 <text>%tw_restore_display%</text>
2418 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2419 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2420 <action function="page">try_restore_decrypt</action>
2421 </input>
2422
2423 <fill color="%accent_color%">
2424 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2425 </fill>
2426
2427 <fill color="%text_fail_color%">
2428 <condition var1="tw_password_fail" var2="1"/>
2429 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2430 </fill>
2431
2432 <text style="text_m_fail">
2433 <condition var1="tw_password_fail" var2="1"/>
2434 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002435 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002436 </text>
2437
2438 <button style="main_button_half_height">
2439 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002440 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002441 <actions>
2442 <action function="set">tw_page_done=1</action>
2443 <action function="page">restore</action>
2444 </actions>
2445 </button>
2446
2447 <button style="main_button_half_height">
2448 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002449 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002450 <actions>
2451 <action function="set">tw_back=restore</action>
2452 <action function="set">tw_action=cmd</action>
2453 <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 -05002454 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2455 <action function="set">tw_text2=%tw_restore_name%</action>
2456 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2457 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2458 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2459 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002460 <action function="page">confirm_action</action>
2461 </actions>
2462 </button>
2463
2464 <template name="keyboardtemplate"/>
2465
2466 <action>
2467 <touch key="home"/>
2468 <action function="page">main</action>
2469 </action>
2470
2471 <action>
2472 <touch key="back"/>
2473 <action function="page">restore</action>
2474 </action>
2475 </page>
2476
2477 <page name="try_restore_decrypt">
2478 <template name="page"/>
2479
2480 <text style="text_l">
2481 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002482 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002483 </text>
2484
2485 <text style="text_m">
2486 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002487 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002488 </text>
2489
2490 <template name="console"/>
2491
2492 <template name="progress_bar"/>
2493
2494 <action>
2495 <action function="decrypt_backup"/>
2496 </action>
2497
2498 <action>
2499 <conditions>
2500 <condition var1="tw_operation_state" var2="1"/>
2501 <condition var1="tw_operation_status" op="!=" var2="0"/>
2502 </conditions>
2503 <actions>
2504 <action function="set">tw_password_fail=1</action>
2505 <action function="page">restore_decrypt</action>
2506 </actions>
2507 </action>
2508
2509 <action>
2510 <conditions>
2511 <condition var1="tw_operation_state" var2="1"/>
2512 <condition var1="tw_operation_status" op="=" var2="0"/>
2513 </conditions>
2514 <actions>
2515 <action function="set">tw_page_done=1</action>
2516 <action function="page">restore_select</action>
2517 </actions>
2518 </action>
2519 </page>
2520
2521 <page name="restore_select">
2522 <template name="page"/>
2523
2524 <text style="text_l">
2525 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002526 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002527 </text>
2528
2529 <text style="text_m">
2530 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002531 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002532 </text>
2533
2534 <text style="text_m_accent">
2535 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002536 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002537 </text>
2538
2539 <text style="text_m">
2540 <placement x="%indent%" y="%row3_y%"/>
2541 <text>%tw_restore_name%</text>
2542 </text>
2543
2544 <fill color="%fileselector_linecolor%">
2545 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width"/>
2546 </fill>
2547
2548 <button>
2549 <placement x="indent" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2550 <fill color="%transparent%"/>
2551 <actions>
2552 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2553 <action function="set">tw_fileexists=0</action>
2554 <action function="page">renamebackup</action>
2555 </actions>
2556 </button>
2557
2558 <partitionlist>
2559 <placement x="%indent%" y="%row4a_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002560 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002561 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2562 <listtype name="restore"/>
2563 </partitionlist>
2564
2565 <checkbox>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002566 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002567 <placement x="%indent%" y="%row17_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002568 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2569 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002570 </checkbox>
2571
2572 <button style="main_button_half_height">
2573 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002574 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002575 <actions>
2576 <action function="set">tw_back=restore</action>
2577 <action function="set">tw_action=cmd</action>
2578 <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 -05002579 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002580 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002581 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2582 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2583 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2584 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002585 <action function="page">confirm_action</action>
2586 </actions>
2587 </button>
2588
2589 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002590 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002591 <action function="page">restore_run</action>
2592 </slider>
2593
2594 <action>
2595 <touch key="home"/>
2596 <action function="page">main</action>
2597 </action>
2598
2599 <action>
2600 <touch key="back"/>
2601 <action function="page">restore</action>
2602 </action>
2603 </page>
2604
2605 <page name="renamebackup">
2606 <template name="page"/>
2607
2608 <text style="text_l">
2609 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002610 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002611 </text>
2612
2613 <text style="text_m">
2614 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002615 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002616 </text>
2617
2618 <text style="text_m_accent">
2619 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002620 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002621 </text>
2622
2623 <input>
2624 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2625 <text>%tw_backup_rename%</text>
2626 <data name="tw_backup_rename"/>
2627 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2628 <actions>
2629 <action function="set">tw_back=restore</action>
2630 <action function="set">tw_action=cmd</action>
2631 <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 -05002632 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2633 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2634 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2635 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2636 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002637 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2638 <action function="set">tw_existpage=renamebackup</action>
2639 <action function="set">tw_notexistpage=confirm_action</action>
2640 <action function="page">filecheck</action>
2641 </actions>
2642 </input>
2643
2644 <fill color="%accent_color%">
2645 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2646 </fill>
2647
2648 <fill color="%text_fail_color%">
2649 <condition var1="tw_fileexists" var2="1"/>
2650 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2651 </fill>
2652
2653 <text style="text_m_fail">
2654 <condition var1="tw_fileexists" var2="1"/>
2655 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002656 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002657 </text>
2658
2659 <button style="main_button_half_height">
2660 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002661 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002662 <action function="page">restore_select</action>
2663 </button>
2664
2665 <template name="keyboardtemplate"/>
2666
2667 <action>
2668 <touch key="home"/>
2669 <action function="page">main</action>
2670 </action>
2671
2672 <action>
2673 <touch key="back"/>
2674 <action function="page">restore_select</action>
2675 </action>
2676 </page>
2677
2678 <page name="restore_run">
2679 <template name="page"/>
2680
2681 <text style="text_l">
2682 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002683 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002684 </text>
2685
2686 <text style="text_m">
2687 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2688 <text>%tw_operation% %tw_partition%</text>
2689 </text>
2690
2691 <template name="console"/>
2692
2693 <template name="progress_bar"/>
2694
2695 <text style="text_m_accent">
2696 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002697 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002698 </text>
2699
2700 <text style="text_m">
2701 <placement x="%indent%" y="%row20_y%"/>
2702 <text>%tw_size_progress%</text>
2703 </text>
2704
2705 <action>
2706 <condition var1="tw_operation_state" var2="1"/>
2707 <actions>
2708 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002709 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002710 <action function="set">tw_show_reboot=1</action>
2711 <action function="page">action_complete</action>
2712 </actions>
2713 </action>
2714
2715 <action>
2716 <action function="nandroid">restore</action>
2717 </action>
2718 </page>
2719
2720 <page name="mount">
2721 <template name="page"/>
2722
2723 <text style="text_l">
2724 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002725 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002726 </text>
2727
2728 <text style="text_m">
2729 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002730 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002731 </text>
2732
2733 <partitionlist>
2734 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002735 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002736 <listtype name="mount"/>
2737 </partitionlist>
2738
2739 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002740 <conditions>
bigbiffb640d972021-10-12 19:08:10 -04002741 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
bigbiffee7b7ff2020-03-23 15:08:27 -04002742 <condition var1="tw_is_super" op="=" var2="0"/>
2743 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002744 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002745 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002746 <image resource="checkbox_false"/>
2747 <action function="mountsystemtoggle">1</action>
2748 </button>
2749
2750 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002751 <conditions>
2752 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2753 <condition var1="tw_is_super" op="=" var2="0"/>
2754 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002755 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002756 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002757 <image resource="checkbox_true"/>
2758 <actions>
2759 <action function="set">tw_lifetime_writes=2</action>
2760 <action function="page">system_readonly_check</action>
2761 </actions>
2762 </button>
2763
2764 <button style="main_button_half_height">
2765 <condition var1="tw_has_usb_storage" var2="1"/>
2766 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002767 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002768 <action function="page">usb_mount</action>
2769 </button>
2770
2771 <button style="main_button_half_height">
2772 <conditions>
2773 <condition var1="tw_is_encrypted" var2="1"/>
2774 <condition var1="tw_is_decrypted" var2="0"/>
2775 </conditions>
2776 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002777 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04002778 <action function="set">tw_crypto_user_id=0</action>
2779 <action function="set">tw_crypto_password=</action>
2780 <action function="set">tw_password_fail=0</action>
2781 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002782 <action function="page">decrypt</action>
2783 </button>
2784
2785 <button style="main_button_half_height">
2786 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002787 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002788 <actions>
2789 <action function="set">tw_back=mount</action>
2790 <action function="overlay">select_storage</action>
2791 </actions>
2792 </button>
2793
2794 <button style="main_button_half_height">
2795 <conditions>
2796 <condition var1="tw_has_mtp" var2="1"/>
2797 <condition var1="tw_mtp_enabled" var2="0"/>
2798 </conditions>
2799 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002800 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002801 <action function="startmtp"/>
2802 </button>
2803
2804 <button style="main_button_half_height">
2805 <conditions>
2806 <condition var1="tw_has_mtp" var2="1"/>
2807 <condition var1="tw_mtp_enabled" var2="1"/>
2808 </conditions>
2809 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002810 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002811 <action function="stopmtp"/>
2812 </button>
2813
2814 <action>
2815 <touch key="home"/>
2816 <action function="page">main</action>
2817 </action>
2818
2819 <action>
2820 <touch key="back"/>
2821 <action function="page">main</action>
2822 </action>
2823 </page>
2824
2825 <page name="usb_mount">
2826 <template name="page"/>
2827
2828 <text style="text_l">
2829 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002830 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002831 </text>
2832
2833 <text style="text_m">
2834 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002835 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002836 </text>
2837
2838 <text style="text_m_accent">
2839 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002840 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002841 </text>
2842
2843 <text style="text_m">
2844 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002845 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002846 </text>
2847
2848 <text style="text_m">
2849 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002850 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002851 </text>
2852
2853 <button style="main_button_half_height">
2854 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002855 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002856 <action function="page">usb_umount</action>
2857 </button>
2858
2859 <action>
2860 <action function="mount">usb</action>
2861 <action function="set">tw_busy=1</action>
2862 </action>
2863 </page>
2864
2865 <page name="usb_umount">
2866 <action>
2867 <action function="unmount">usb</action>
2868 </action>
2869
2870 <action>
2871 <action function="page">mount</action>
2872 <action function="set">tw_busy=0</action>
2873 </action>
2874 </page>
2875
2876 <page name="system_readonly_check">
2877 <action>
2878 <action function="checkpartitionlifetimewrites">/system</action>
2879 </action>
2880
2881 <action>
2882 <condition var1="tw_lifetime_writes" var2="1"/>
2883 <actions>
2884 <action function="mountsystemtoggle">0</action>
2885 <action function="page">mount</action>
2886 </actions>
2887 </action>
2888
2889 <action>
2890 <condition var1="tw_lifetime_writes" var2="0"/>
2891 <actions>
2892 <action function="set">tw_back=mount</action>
2893 <action function="page">system_readonly</action>
2894 </actions>
2895 </action>
2896 </page>
2897
bigbiffdf8436b2020-08-30 16:22:34 -04002898 <page name="fastbootreboot">
2899 <template name="page"/>
2900
2901 <text style="text_l">
2902 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2903 <text>{@reboot_hdr=Reboot}</text>
2904 </text>
2905
2906 <listbox style="advanced_listbox">
2907 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
2908
2909 <listitem name="{@rb_system_btn=System}">
2910 <condition var1="tw_reboot_system" var2="1"/>
2911 <actions>
2912 <action function="set">tw_back=fastbootreboot</action>
2913 <action function="set">tw_action=reboot</action>
2914 <action function="set">tw_action_param=system</action>
2915 <action function="set">tw_reboot_param=system</action>
2916 <action function="set">tw_has_action2=0</action>
2917 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2918 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2919 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2920 <action function="page">confirm_action</action>
2921 </actions>
2922 </listitem>
2923
2924 <listitem name="{@rb_poweroff_btn=Power Off}">
2925 <condition var1="tw_reboot_poweroff" var2="1"/>
2926 <actions>
2927 <action function="set">tw_back=fastbootreboot</action>
2928 <action function="set">tw_action=reboot</action>
2929 <action function="set">tw_action_param=poweroff</action>
2930 <action function="set">tw_reboot_param=poweroff</action>
2931 <action function="set">tw_has_action2=0</action>
2932 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2933 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2934 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2935 <action function="page">confirm_action</action>
2936 </actions>
2937 </listitem>
2938
2939 <listitem name="{@rb_recovery_btn=Recovery}">
2940 <condition var1="tw_reboot_recovery" var2="1"/>
2941 <actions>
2942 <action function="set">tw_back=fastbootreboot</action>
2943 <action function="set">tw_action=reboot</action>
2944 <action function="set">tw_action_param=recovery</action>
2945 <action function="set">tw_reboot_param=recovery</action>
2946 <action function="set">tw_has_action2=0</action>
2947 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2948 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2949 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2950 <action function="page">confirm_action</action>
2951 </actions>
2952 </listitem>
2953
2954 <listitem name="{@rb_bootloader_btn=Bootloader}">
2955 <condition var1="tw_reboot_bootloader" var2="1"/>
2956 <actions>
2957 <action function="set">tw_back=fastbootreboot</action>
2958 <action function="set">tw_action=reboot</action>
2959 <action function="set">tw_action_param=bootloader</action>
2960 <action function="set">tw_reboot_param=bootloader</action>
2961 <action function="set">tw_has_action2=0</action>
2962 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2963 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2964 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2965 <action function="page">confirm_action</action>
2966 </actions>
2967 </listitem>
2968
2969 <listitem name="{@rb_download_btn=Download}">
2970 <condition var1="tw_download_mode" var2="1"/>
2971 <actions>
2972 <action function="set">tw_back=fastbootreboot</action>
2973 <action function="set">tw_action=reboot</action>
2974 <action function="set">tw_action_param=download</action>
2975 <action function="set">tw_reboot_param=download</action>
2976 <action function="set">tw_has_action2=0</action>
2977 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2978 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2979 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2980 <action function="page">confirm_action</action>
2981 </actions>
2982 </listitem>
2983
2984 <listitem name="{@fastboot_button=Fastboot}">
2985 <condition var1="tw_fastboot_mode" var2="1"/>
2986 <actions>
2987 <action function="set">tw_back=fastbootreboot</action>
2988 <action function="set">tw_action=reboot</action>
2989 <action function="set">tw_action_param=fastboot</action>
2990 <action function="set">tw_reboot_param=fastboot</action>
2991 <action function="set">tw_has_action2=0</action>
2992 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2993 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2994 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2995 <action function="page">confirm_action</action>
2996 </actions>
2997 </listitem>
2998
2999 <listitem name="{@rb_edl_btn=Edl}">
3000 <condition var1="tw_edl_mode" var2="1"/>
3001 <actions>
3002 <action function="set">tw_back=fastbootreboot</action>
3003 <action function="set">tw_action=reboot</action>
3004 <action function="set">tw_action_param=edl</action>
3005 <action function="set">tw_reboot_param=edl</action>
3006 <action function="set">tw_has_action2=0</action>
3007 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3008 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3009 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3010 <action function="page">confirm_action</action>
3011 </actions>
3012 </listitem>
3013 </listbox>
3014
3015 <action>
3016 <touch key="home"/>
3017 <action function="page">fastboot</action>
3018 </action>
3019
3020 <action>
3021 <touch key="back"/>
3022 <action function="page">fastboot</action>
3023 </action>
3024 </page>
3025
z31s1g28f0a922015-11-07 18:50:22 +01003026 <page name="reboot">
Ethan Yonker8581ab32020-12-17 14:51:50 -06003027 <action>
3028 <action function="checkforapp"></action>
3029 <action function="page">reboot2</action>
3030 </action>
3031 </page>
3032
3033 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01003034 <template name="page"/>
3035
3036 <text style="text_l">
3037 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003038 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003039 </text>
3040
bigbiffdf8436b2020-08-30 16:22:34 -04003041 <listbox style="advanced_listbox">
3042 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003043
bigbiffdf8436b2020-08-30 16:22:34 -04003044 <listitem name="{@rb_system_btn=System}">
3045 <condition var1="tw_reboot_system" var2="1"/>
3046 <actions>
3047 <action function="set">tw_back=reboot</action>
3048 <action function="page">reboot_system_routine</action>
3049 </actions>
3050 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003051
bigbiffdf8436b2020-08-30 16:22:34 -04003052 <listitem name="{@rb_poweroff_btn=Power Off}">
3053 <condition var1="tw_reboot_poweroff" var2="1"/>
3054 <actions>
3055 <action function="set">tw_back=reboot</action>
3056 <action function="set">tw_action=reboot</action>
3057 <action function="set">tw_action_param=poweroff</action>
3058 <action function="set">tw_reboot_param=poweroff</action>
3059 <action function="set">tw_has_action2=0</action>
3060 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3061 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
3062 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3063 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3064 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
3065 <action function="page">rebootcheck</action>
3066 </actions>
3067 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003068
bigbiffdf8436b2020-08-30 16:22:34 -04003069 <listitem name="{@rb_recovery_btn=Recovery}">
3070 <condition var1="tw_reboot_recovery" var2="1"/>
3071 <actions>
3072 <action function="set">tw_back=reboot</action>
3073 <action function="set">tw_action=reboot</action>
3074 <action function="set">tw_action_param=recovery</action>
3075 <action function="set">tw_reboot_param=recovery</action>
3076 <action function="set">tw_has_action2=0</action>
3077 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3078 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3079 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3080 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3081 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3082 <action function="page">rebootcheck</action>
3083 </actions>
3084 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003085
bigbiffdf8436b2020-08-30 16:22:34 -04003086 <listitem name="{@rb_bootloader_btn=Bootloader}">
3087 <condition var1="tw_reboot_bootloader" var2="1"/>
3088 <actions>
3089 <action function="set">tw_back=reboot</action>
3090 <action function="set">tw_action=reboot</action>
3091 <action function="set">tw_action_param=bootloader</action>
3092 <action function="set">tw_reboot_param=bootloader</action>
3093 <action function="set">tw_has_action2=0</action>
3094 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3095 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3096 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3097 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3098 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3099 <action function="page">rebootcheck</action>
3100 </actions>
3101 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003102
bigbiffdf8436b2020-08-30 16:22:34 -04003103 <listitem name="{@rb_download_btn=Download}">
3104 <condition var1="tw_download_mode" var2="1"/>
3105 <actions>
3106 <action function="set">tw_back=reboot</action>
3107 <action function="set">tw_action=reboot</action>
3108 <action function="set">tw_action_param=download</action>
3109 <action function="set">tw_reboot_param=download</action>
3110 <action function="set">tw_has_action2=0</action>
3111 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3112 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3113 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3114 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3115 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3116 <action function="page">rebootcheck</action>
3117 </actions>
3118 </listitem>
3119
3120 <listitem name="{@fastboot_button=Fastboot}">
3121 <condition var1="tw_fastboot_mode" var2="1"/>
3122 <actions>
3123 <action function="set">tw_back=reboot</action>
3124 <action function="set">tw_action=reboot</action>
3125 <action function="set">tw_action_param=fastboot</action>
3126 <action function="set">tw_reboot_param=fastboot</action>
3127 <action function="set">tw_has_action2=0</action>
3128 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3129 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3130 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3131 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3132 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3133 <action function="page">rebootcheck</action>
3134 </actions>
3135 </listitem>
3136
3137 <listitem name="{@rb_edl_btn=Edl}">
3138 <condition var1="tw_edl_mode" var2="1"/>
3139 <actions>
3140 <action function="set">tw_back=reboot</action>
3141 <action function="set">tw_action=reboot</action>
3142 <action function="set">tw_action_param=edl</action>
3143 <action function="set">tw_reboot_param=edl</action>
3144 <action function="set">tw_has_action2=0</action>
3145 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3146 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3147 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3148 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3149 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3150 <action function="page">rebootcheck</action>
3151 </actions>
Captain Throwback52978932021-09-05 15:11:07 -04003152 </listitem>
bigbiffdf8436b2020-08-30 16:22:34 -04003153 </listbox>
mauronofrioe9a49ef2018-10-03 13:38:16 +02003154
Ethan Yonker1b190162016-12-05 15:25:19 -06003155 <text style="text_m">
3156 <condition var1="tw_has_boot_slots" var2="1"/>
bigbiffdf8436b2020-08-30 16:22:34 -04003157 <placement x="%center_x%" y="%row15_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06003158 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
3159 </text>
3160
bigbiffdf8436b2020-08-30 16:22:34 -04003161 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06003162 <condition var1="tw_has_boot_slots" var2="1"/>
3163 <placement x="%indent%" y="%row19_y%"/>
3164 <text>{@boot_slot_a=Slot A}</text>
3165 <actions>
3166 <action function="set">tw_back=reboot</action>
3167 <action function="set">tw_action=setbootslot</action>
3168 <action function="set">tw_action_param=A</action>
3169 <action function="set">tw_has_action2=0</action>
3170 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3171 <action function="set">tw_action_text2=</action>
3172 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3173 <action function="page">action_page</action>
3174 </actions>
3175 </button>
3176
bigbiffdf8436b2020-08-30 16:22:34 -04003177 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06003178 <condition var1="tw_has_boot_slots" var2="1"/>
3179 <placement x="%center_x%" y="%row19_y%"/>
3180 <text>{@boot_slot_b=Slot B}</text>
3181 <actions>
3182 <action function="set">tw_back=reboot</action>
3183 <action function="set">tw_action=setbootslot</action>
3184 <action function="set">tw_action_param=B</action>
3185 <action function="set">tw_has_action2=0</action>
3186 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3187 <action function="set">tw_action_text2=</action>
3188 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3189 <action function="page">action_page</action>
3190 </actions>
3191 </button>
3192
Ethan Yonker8581ab32020-12-17 14:51:50 -06003193 <button style="main_button_half_height">
3194 <condition var1="tw_app_install_status" var2="1"/>
3195 <placement x="%indent%" y="%row22_y%"/>
3196 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
3197 <actions>
3198 <action function="set">tw_back=reboot</action>
3199 <action function="set">tw_appinstall_title={@reboot_hdr=Reboot}</action>
3200 <action function="page">installapp</action>
3201 </actions>
3202 </button>
3203
z31s1g28f0a922015-11-07 18:50:22 +01003204 <action>
3205 <touch key="home"/>
3206 <action function="page">main</action>
3207 </action>
3208
3209 <action>
3210 <touch key="back"/>
3211 <action function="page">main</action>
3212 </action>
3213 </page>
3214
Ethan Yonker8581ab32020-12-17 14:51:50 -06003215 <page name="installapp">
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003216 <template name="page"/>
3217
3218 <text style="text_l">
3219 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003220 <text>%tw_appinstall_title%</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003221 </text>
3222
3223 <text style="text_m">
3224 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003225 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003226 </text>
3227
3228 <text style="text_m_accent">
3229 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3230 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3231 </text>
3232
3233 <text style="text_m_accent">
3234 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3235 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3236 </text>
3237
3238 <checkbox>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003239 <condition var1="tw_mount_system_ro" var2="0"/>
3240 <placement x="%indent%" y="%row7_y%"/>
3241 <text>{@reboot_install_app_system=Install as a System App}</text>
3242 <data variable="tw_app_install_system"/>
3243 </checkbox>
3244
3245 <button style="main_button_half_height">
3246 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003247 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003248 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003249 </button>
3250
3251 <slider>
3252 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3253 <actions>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003254 <action function="set">tw_action=installapp</action>
3255 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3256 <action function="set">tw_action_text2=</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003257 <action function="set">tw_complete_text1={@successful=Successful}</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003258 <action function="page">action_page</action>
3259 </actions>
3260 </slider>
3261
3262 <action>
3263 <touch key="home"/>
3264 <actions>
3265 <action function="set">tw_app_install_status=0</action>
3266 <action function="page">main</action>
3267 </actions>
3268 </action>
3269
3270 <action>
3271 <touch key="back"/>
3272 <actions>
3273 <action function="set">tw_app_install_status=0</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003274 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003275 </actions>
3276 </action>
3277 </page>
3278
z31s1g28f0a922015-11-07 18:50:22 +01003279 <page name="system_readonly">
3280 <template name="page"/>
3281
3282 <text style="text_l">
3283 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003284 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003285 </text>
3286
3287 <text style="text_m_accent">
3288 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003289 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003290 </text>
3291
3292 <text style="text_m">
3293 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003294 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003295 </text>
3296
3297 <text style="text_m">
3298 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003299 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003300 </text>
3301
3302 <text style="text_m">
3303 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003304 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003305 </text>
3306
3307 <text style="text_m">
3308 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003309 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003310 </text>
3311
3312 <text style="text_m_fail">
3313 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003314 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003315 </text>
3316
3317 <text style="text_m_fail">
3318 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003319 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003320 </text>
3321
3322 <checkbox>
3323 <condition var1="tw_is_encrypted" var2="0"/>
3324 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003325 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003326 <data variable="tw_never_show_system_ro_page"/>
3327 </checkbox>
3328
3329 <button style="main_button_half_height">
3330 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003331 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003332 <actions>
3333 <action function="mountsystemtoggle">1</action>
3334 <action function="set">tw_page_done=1</action>
3335 <action function="page">%tw_back%</action>
3336 </actions>
3337 </button>
3338
z31s1g608d7ff2016-01-18 19:47:25 +01003339 <button style="main_button_half_height">
3340 <placement x="%center_x%" y="%row18a_y%"/>
3341 <text>{@sel_lang_btn=Select Language}</text>
3342 <action function="overlay">select_language</action>
3343 </button>
3344
z31s1g28f0a922015-11-07 18:50:22 +01003345 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003346 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003347 <actions>
3348 <action function="mountsystemtoggle">0</action>
3349 <action function="set">tw_page_done=1</action>
3350 <action function="page">%tw_back%</action>
3351 </actions>
3352 </slider>
3353 </page>
3354
3355 <page name="settings">
3356 <template name="page"/>
3357
3358 <text style="text_l">
3359 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003360 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003361 </text>
3362
3363 <text style="text_m">
3364 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003365 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003366 </text>
3367
3368 <template name="tabs_settings"/>
3369
3370 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003371 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003372 </fill>
3373
3374 <listbox style="scrolllist">
3375 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3376 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003377 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003378 <data variable="tw_signed_zip_verify"/>
3379 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003380 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3381 <data variable="tw_install_reboot"/>
3382 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003383 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003384 <data variable="tw_rm_rf"/>
3385 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003386 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3387 <data variable="tw_disable_free_space"/>
3388 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003389 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3390 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003391 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003392 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3393 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003394 </listitem>
epicX9597b842021-03-20 21:58:17 +05303395 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
3396 <data variable="tw_skip_digest_check_zip"/>
3397 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003398 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003399 <data variable="tw_military_time"/>
3400 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003401 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003402 <data variable="tw_samsung_navbar"/>
3403 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003404 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003405 <data variable="tw_simulate_actions"/>
3406 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003407 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003408 <condition var1="tw_simulate_actions" var2="1"/>
3409 <data variable="tw_simulate_fail"/>
3410 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003411 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3412 <condition var1="tw_no_sha2" var2="0"/>
3413 <data variable="tw_use_sha2"/>
3414 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003415 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3416 <data variable="tw_unmount_system"/>
3417 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003418 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
3419 <conditions>
3420 <condition var1="tw_has_boot_slots" var2="1"/>
3421 <condition var1="tw_has_repack_tools" var2="1"/>
3422 </conditions>
3423 <data variable="tw_auto_reflashtwrp"/>
3424 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003425 </listbox>
3426
3427 <button style="main_button_half_height">
3428 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003429 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003430 <actions>
3431 <action function="set">tw_samsung_navbar=0</action>
3432 <action function="set">tw_tab_icons=0</action>
3433 <action function="restoredefaultsettings"/>
3434 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003435 </button>
3436
3437 <action>
3438 <touch key="home"/>
3439 <action function="page">main</action>
3440 </action>
3441
3442 <action>
3443 <touch key="back"/>
3444 <action function="page">main</action>
3445 </action>
3446 </page>
3447
3448 <page name="settings_timezone">
3449 <template name="page"/>
3450
3451 <text style="text_l">
3452 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003453 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003454 </text>
3455
3456 <text style="text_m">
3457 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003458 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003459 </text>
3460
3461 <template name="tabs_settings"/>
3462
3463 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003464 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003465 </fill>
3466
3467 <listbox>
3468 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003469 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003470 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003471 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3472 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3473 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3474 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3475 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3476 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3477 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3478 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3479 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3480 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3481 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3482 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3483 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3484 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3485 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3486 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3487 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3488 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3489 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3490 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3491 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3492 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3493 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3494 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003495 </listbox>
3496
3497 <text style="text_m_accent">
3498 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003499 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003500 </text>
3501
3502 <button style="button_quarter_width">
3503 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003504 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003505 <action function="set">tw_time_zone_guioffset=0</action>
3506 </button>
3507
3508 <button style="button_quarter_width">
3509 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003510 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003511 <action function="set">tw_time_zone_guioffset=15</action>
3512 </button>
3513
3514 <button style="button_quarter_width">
3515 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003516 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003517 <action function="set">tw_time_zone_guioffset=30</action>
3518 </button>
3519
3520 <button style="button_quarter_width">
3521 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003522 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003523 <action function="set">tw_time_zone_guioffset=45</action>
3524 </button>
3525
3526 <checkbox>
3527 <placement x="%indent%" y="%row18a_y%"/>
3528 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003529 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003530 <data variable="tw_time_zone_guidst"/>
3531 <image checked="checkbox_true" unchecked="checkbox_false"/>
3532 </checkbox>
3533
3534 <text color="%text_color%">
3535 <font resource="font_m"/>
3536 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003537 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003538 </text>
3539
3540 <button>
3541 <highlight color="%highlight_color%"/>
3542 <placement x="%center_x%" y="%row21a_y%"/>
3543 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003544 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003545 <image resource="main_button_half_height"/>
3546 <action function="setguitimezone"/>
3547 </button>
3548
3549 <action>
3550 <touch key="home"/>
3551 <action function="page">main</action>
3552 </action>
3553
3554 <action>
3555 <touch key="back"/>
3556 <action function="page">main</action>
3557 </action>
3558 </page>
3559
3560 <page name="settings_screen">
3561 <template name="page"/>
3562
3563 <text style="text_l">
3564 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003565 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003566 </text>
3567
3568 <text style="text_m">
3569 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003570 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003571 </text>
3572
3573 <template name="tabs_settings"/>
3574
3575 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003576 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003577 </fill>
3578
3579 <button>
3580 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3581 <font resource="font_m" color="%text_color%"/>
3582 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3583 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003584 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003585 <image resource="checkbox_false"/>
3586 <action function="set">tw_screen_timeout_secs=60</action>
3587 </button>
3588
3589 <button>
3590 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3591 <font resource="font_m" color="%text_color%"/>
3592 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3593 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003594 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003595 <image resource="checkbox_true"/>
3596 <action function="set">tw_screen_timeout_secs=0</action>
3597 </button>
3598
3599 <slidervalue>
3600 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3601 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3602 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003603 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003604 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3605 </slidervalue>
3606
3607 <slidervalue>
3608 <condition var1="tw_has_brightnesss_file" var2="1"/>
3609 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003610 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003611 <data variable="tw_brightness_pct" min="10" max="100"/>
3612 <actions>
3613 <action function="set">tw_brightness=%tw_brightness_max%</action>
3614 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3615 <action function="compute">tw_brightness/100</action>
3616 <action function="setbrightness">%tw_brightness%</action>
3617 </actions>
3618 </slidervalue>
3619
3620 <action>
3621 <touch key="home"/>
3622 <action function="page">main</action>
3623 </action>
3624
3625 <action>
3626 <touch key="back"/>
3627 <action function="page">main</action>
3628 </action>
3629 </page>
3630
3631 <page name="settings_vibration">
3632 <template name="page"/>
3633
3634 <text style="text_l">
3635 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003636 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003637 </text>
3638
3639 <text style="text_m">
3640 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003641 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003642 </text>
3643
3644 <template name="tabs_settings"/>
3645
3646 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003647 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003648 </fill>
3649
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003650 <text style="text_m">
3651 <condition var1="tw_disable_haptics" var2="1"/>
3652 <placement x="%indent%" y="%row4_y%"/>
3653 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3654 </text>
3655
z31s1g28f0a922015-11-07 18:50:22 +01003656 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003657 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003658 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003659 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003660 <data variable="tw_button_vibrate" min="0" max="300"/>
3661 </slidervalue>
3662
3663 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003664 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003665 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003666 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003667 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3668 </slidervalue>
3669
3670 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003671 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003672 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003673 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003674 <data variable="tw_action_vibrate" min="0" max="500"/>
3675 </slidervalue>
3676
3677 <action>
3678 <touch key="home"/>
3679 <action function="page">main</action>
3680 </action>
3681
3682 <action>
3683 <touch key="back"/>
3684 <action function="page">main</action>
3685 </action>
3686 </page>
3687
Ethan Yonker74db1572015-10-28 12:44:49 -05003688 <page name="settings_language">
3689 <template name="page"/>
3690
3691 <text style="text_l">
3692 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3693 <text>{@settings_hdr=Settings}</text>
3694 </text>
3695
3696 <text style="text_m">
3697 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3698 <text>{@language_hdr=Language - %tw_language_display%}</text>
3699 </text>
3700
3701 <template name="tabs_settings"/>
3702
3703 <fill color="%text_color%">
3704 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3705 </fill>
3706
3707 <listbox>
3708 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3709 <text>{@select_language=Select Language:}</text>
3710 <icon selected="radio_true" unselected="radio_false" />
3711 <data name="tw_language" />
3712 </listbox>
3713
3714 <button style="main_button_half_height">
3715 <placement x="%center_x%" y="%row21a_y%"/>
3716 <text>{@set_language_btn=Set Language}</text>
3717 <action function="setlanguage"></action>
3718 </button>
3719
3720 <action>
3721 <touch key="home" />
3722 <action function="page">main</action>
3723 </action>
3724
3725 <action>
3726 <touch key="back" />
3727 <action function="page">settings</action>
3728 </action>
3729 </page>
3730
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003731 <page name="copylog">
3732 <template name="page"/>
3733
3734 <text style="text_l">
3735 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3736 <text>{@copying_log=Copy Logs to SD Card}</text>
3737 </text>
3738
3739 <checkbox>
Captain Throwback52978932021-09-05 15:11:07 -04003740 <condition var1="tw_logcat_exists" var2="1"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003741 <placement x="%indent%" y="%row4_y%"/>
Captain Throwback52978932021-09-05 15:11:07 -04003742 <text>{@include_logcat=Include Logcat}</text>
3743 <data variable="tw_include_logcat" value="1"/>
3744 </checkbox>
3745
3746 <checkbox>
3747 <placement x="%indent%" y="%row6_y%"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003748 <text>{@include_kernel_log=Include Kernel Log}</text>
3749 <data variable="tw_include_kernel_log" value="1"/>
3750 </checkbox>
3751
3752 <slider>
3753 <text>{@copying_log=Copy Logs to SD Card}</text>
3754 <actions>
3755 <action function="set">tw_back=advanced</action>
3756 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003757 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3758 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003759 <action function="page">action_page</action>
3760 </actions>
3761 </slider>
3762
3763 <action>
3764 <touch key="home"/>
3765 <action function="page">main</action>
3766 </action>
3767
3768 <action>
3769 <touch key="back"/>
3770 <actions>
3771 <action function="page">advanced</action>
3772 </actions>
3773 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003774 </page>
3775
z31s1g28f0a922015-11-07 18:50:22 +01003776 <page name="advanced">
3777 <template name="page"/>
3778
3779 <text style="text_l">
3780 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003781 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003782 </text>
3783
3784 <button style="main_button">
3785 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003786 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003787 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003788 </button>
3789
3790 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003791 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003792 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003793 <text>{@adb_sideload_btn=ADB Sideload}</text>
3794 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003795 </button>
3796
3797 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003798 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003799 <text>{@terminal_btn=Terminal}</text>
3800 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003801 </button>
3802
3803 <button style="main_button">
3804 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003805 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003806 <action function="page">filemanagerlist</action>
3807 </button>
3808
Ethan Yonker64e0a652018-07-25 09:52:17 -05003809 <listbox style="advanced_listbox">
3810 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
Ian Macdonaldef7768e2021-03-01 21:31:07 +01003811 <listitem name="{@change_twrp_folder_btn=Change TWRP folder}">
epicXa721f952021-01-04 13:01:31 +05303812 <condition var1="tw_is_encrypted" var2="0"/>
3813 <action function="page">changeTwrpFolder</action>
3814 </listitem>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003815 <listitem name="{@decrypt_users=Decrypt Users}">
3816 <conditions>
3817 <condition var1="tw_is_fbe" var2="1"/>
3818 <condition var1="tw_all_users_decrypted" var2="0"/>
3819 </conditions>
3820 <actions>
3821 <action function="set">tw_crypto_user_id=</action>
3822 <action function="page">decrypt_users</action>
3823 </actions>
3824 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003825 <listitem name="{@reload_theme_btn=Reload Theme}">
3826 <action function="reload"/>
3827 </listitem>
3828 <listitem name="{@part_sd_btn=Partition SD Card}">
3829 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3830 <actions>
3831 <action function="set">partitionlisterror=0</action>
3832 <action function="page">partsdcardsel</action>
3833 </actions>
3834 </listitem>
3835 <listitem name="{@fix_context_btn=Fix Contexts}">
3836 <condition var1="tw_has_data_media" var2="1"/>
3837 <action function="page">fixcontexts</action>
3838 </listitem>
3839 <listitem name="{@dumlock_btn=HTC Dumlock}">
3840 <condition var1="tw_show_dumlock" var2="1"/>
3841 <action function="page">htcdumlock</action>
3842 </listitem>
3843 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3844 <condition var1="tw_has_injecttwrp" var2="1"/>
3845 <actions>
3846 <action function="set">tw_back=advanced</action>
3847 <action function="set">tw_action=reinjecttwrp</action>
3848 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3849 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3850 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3851 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3852 <action function="page">confirm_action</action>
3853 </actions>
3854 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003855 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3856 <conditions>
3857 <condition var1="tw_has_boot_slots" var2="1"/>
3858 <condition var1="tw_has_repack_tools" var2="1"/>
3859 </conditions>
3860 <actions>
3861 <action function="set">tw_repack_kernel=0</action>
3862 <action function="page">repackselect</action>
3863 </actions>
3864 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003865 <listitem name="{@reflash_twrp=Flash Current TWRP}">
3866 <conditions>
3867 <condition var1="tw_has_boot_slots" var2="1"/>
3868 <condition var1="tw_has_repack_tools" var2="1"/>
3869 </conditions>
3870 <actions>
3871 <action function="set">tw_repack_kernel=0</action>
3872 <action function="set">tw_back=advanced</action>
3873 <action function="set">tw_action=reflashtwrp</action>
3874 <action function="set">tw_text1={@reflash_twrp_confirm=Flash Current TWRP?}</action>
3875 <action function="set">tw_action_text1={@reflashing_twrp=Flashing TWRP...}</action>
3876 <action function="set">tw_complete_text1={@reflash_twrp_complete=Done Flashing TWRP}</action>
3877 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3878 <action function="page">confirm_action</action>
3879 </actions>
3880 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003881 <listitem name="{@install_kernel=Install Kernel}">
3882 <conditions>
3883 <condition var1="tw_has_boot_slots" var2="1"/>
3884 <condition var1="tw_has_repack_tools" var2="1"/>
3885 </conditions>
3886 <actions>
3887 <action function="set">tw_repack_kernel=1</action>
3888 <action function="page">repackselect</action>
3889 </actions>
3890 </listitem>
3891 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3892 <conditions>
3893 <condition var1="tw_has_boot_slots" var2="1"/>
3894 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwbackbc2cfa32021-09-16 10:04:26 -04003895 <condition var1="tw_uses_initramfs" var2="1"/>
Ethan Yonker53796e72019-01-11 22:49:52 -06003896 </conditions>
3897 <actions>
3898 <action function="set">tw_back=advanced</action>
3899 <action function="set">tw_action=fixabrecoverybootloop</action>
3900 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3901 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3902 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3903 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3904 <action function="page">confirm_action</action>
3905 </actions>
3906 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003907 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3908 <condition var1="tw_app_install_status" var2="1"/>
3909 <actions>
3910 <action function="set">tw_back=advanced</action>
3911 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3912 <action function="page">installapp</action>
3913 </actions>
3914 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003915 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3916 <condition var1="tw_app_installed_in_system" var2="1"/>
3917 <actions>
3918 <action function="set">tw_back=advanced</action>
3919 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3920 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3921 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3922 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3923 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3924 <action function="page">confirm_action</action>
3925 </actions>
3926 </listitem>
bigbiffcfa875c2021-06-20 16:20:27 -04003927 <listitem name="{@unmap_super_devices=Unmap Super Devices}">
bigbiffab76bd72021-10-11 10:17:48 -04003928 <condition var1="tw_virtual_ab.enabled" op="=" var2="1"/>
bigbiffcfa875c2021-06-20 16:20:27 -04003929 <actions>
3930 <action function="set">tw_back=advanced</action>
3931 <action function="set">tw_action=unmapsuperdevices</action>
3932 <action function="set">tw_text1={@unmap_super_devices_confirm=Unmap all Super Devices?}</action>
3933 <action function="set">tw_action_text1={@unmapping_super_devices=Unmapping Super Devices...}</action>
3934 <action function="set">tw_complete_text1={@unmap_super_devices_complete=Unmapped all Super Devices}</action>
3935 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3936 <action function="page">confirm_action</action>
3937 </actions>
3938 </listitem>
bigbiffd21252f2021-09-18 15:56:32 -04003939 <listitem name="{@merges_snapshots=Merge Snapshots}">
bigbiffab76bd72021-10-11 10:17:48 -04003940 <condition var1="tw_virtual_ab.enabled" op="=" var2="1"/>
bigbiffd21252f2021-09-18 15:56:32 -04003941 <actions>
3942 <action function="set">tw_back=advanced</action>
3943 <action function="set">tw_action=mergesnapshots</action>
3944 <action function="set">tw_text1={@merge_snapshots_confirm=Merge Snapshots?}</action>
3945 <action function="set">tw_action_text1={@merging_snapshots=Merging Snapshots...}</action>
3946 <action function="set">tw_complete_text1={@merging_snapshots_complete=Merged Snapshots}</action>
3947 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3948 <action function="page">confirm_action</action>
3949 </actions>
3950 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003951 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003952
3953 <action>
3954 <touch key="home"/>
3955 <action function="page">main</action>
3956 </action>
3957
3958 <action>
3959 <touch key="back"/>
3960 <action function="page">main</action>
3961 </action>
3962 </page>
3963
Ethan Yonker483e9f42016-01-11 22:21:18 -06003964 <page name="partsdcardsel">
3965 <template name="page"/>
3966
3967 <text style="text_l">
3968 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3969 <text>{@advanced_hdr=Advanced}</text>
3970 </text>
3971
3972 <text style="text_m">
3973 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3974 <text>{@part_sd_hdr=Partition SD Card}</text>
3975 </text>
3976
z31s1g782e1c92016-01-30 16:50:09 +01003977 <partitionlist>
3978 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003979 <text>{@sel_storage_list=Select Storage}</text>
3980 <data name="tw_storage_path"/>
3981 <listtype name="storage"/>
3982 </partitionlist>
3983
3984 <text style="text_m_fail">
3985 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01003986 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003987 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3988 </text>
3989
z31s1g782e1c92016-01-30 16:50:09 +01003990 <button style="main_button_half_height">
3991 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003992 <text>{@ok_btn=OK}</text>
3993 <actions>
3994 <action function="getpartitiondetails">tw_storage_path</action>
3995 <action function="page">partsdcardcheck</action>
3996 </actions>
3997 </button>
3998
3999 <action>
4000 <touch key="home"/>
4001 <action function="page">main</action>
4002 </action>
4003
4004 <action>
4005 <touch key="back"/>
4006 <action function="page">advanced</action>
4007 </action>
4008 </page>
4009
4010 <page name="partsdcardcheck">
4011 <action>
4012 <condition var1="tw_partition_removable" op="=" var2="1"/>
4013 <actions>
4014 <action function="set">partitionlisterror=0</action>
4015 <action function="page">partsdcard</action>
4016 </actions>
4017 </action>
4018
4019 <action>
4020 <condition var1="tw_partition_removable" op="!=" var2="1"/>
4021 <actions>
4022 <action function="set">partitionlisterror=1</action>
4023 <action function="page">partsdcardsel</action>
4024 </actions>
4025 </action>
4026 </page>
4027
z31s1g28f0a922015-11-07 18:50:22 +01004028 <page name="partsdcard">
4029 <template name="page"/>
4030
4031 <text style="text_l">
4032 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004033 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004034 </text>
4035
4036 <text style="text_m">
4037 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004038 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004039 </text>
4040
4041 <text style="text_m_fail">
4042 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004043 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004044 </text>
4045
4046 <text style="text_m_fail">
4047 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004048 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004049 </text>
4050
4051 <text style="text_m_accent">
4052 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004053 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004054 </text>
4055
4056 <text style="text_m">
4057 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4058 <text>%tw_sdext_size%</text>
4059 </text>
4060
4061 <button style="button_quarter_width">
4062 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004063 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004064 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004065 </button>
4066
4067 <button style="button_quarter_width">
4068 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004069 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004070 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004071 </button>
4072
4073 <text style="text_m_accent">
4074 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004075 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004076 </text>
4077
4078 <text style="text_m">
4079 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
4080 <text>%tw_swap_size%</text>
4081 </text>
4082
4083 <button style="button_quarter_width">
4084 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004085 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004086 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004087 </button>
4088
4089 <button style="button_quarter_width">
4090 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004091 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004092 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004093 </button>
4094
4095 <text style="text_m_accent">
4096 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004097 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004098 </text>
4099
4100 <text style="text_m">
4101 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
4102 <text>%tw_sdpart_file_system%</text>
4103 </text>
4104
4105 <button style="button_quarter_width">
4106 <placement x="%indent%" y="%row14_y%"/>
4107 <text>EXT3</text>
4108 <action function="set">tw_sdpart_file_system=ext3</action>
4109 </button>
4110
4111 <button style="button_quarter_width">
4112 <placement x="%btn4_col4_x%" y="%row14_y%"/>
4113 <text>EXT4</text>
4114 <action function="set">tw_sdpart_file_system=ext4</action>
4115 </button>
4116
4117 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004118 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004119 <action function="page">partsdcardaction</action>
4120 <actions>
4121 <action function="set">tw_back=partsdcard</action>
4122 <action function="set">tw_action=partitionsd</action>
4123 <action function="set">tw_has_action2=1</action>
4124 <action function="set">tw_action2=set</action>
4125 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004126 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4127 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4128 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004129 <action function="page">action_page</action>
4130 </actions>
4131 </slider>
4132
4133 <action>
4134 <touch key="home"/>
4135 <action function="page">main</action>
4136 </action>
4137
4138 <action>
4139 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004140 <actions>
4141 <action function="set">partitionlisterror=0</action>
4142 <action function="page">partsdcardsel</action>
4143 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004144 </action>
4145 </page>
4146
4147 <page name="htcdumlock">
4148 <template name="page"/>
4149
4150 <text style="text_l">
4151 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004152 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004153 </text>
4154
4155 <text style="text_m">
4156 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004157 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004158 </text>
4159
4160 <button style="main_button_half_height_full_width">
4161 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004162 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004163 <actions>
4164 <action function="set">tw_back=htcdumlock</action>
4165 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004166 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4167 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4168 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4169 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004170 <action function="page">confirm_action</action>
4171 </actions>
4172 </button>
4173
4174 <button style="main_button_half_height_full_width">
4175 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004176 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004177 <actions>
4178 <action function="set">tw_back=htcdumlock</action>
4179 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004180 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4181 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4182 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4183 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004184 <action function="page">confirm_action</action>
4185 </actions>
4186 </button>
4187
4188 <button style="main_button_half_height_full_width">
4189 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004190 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004191 <actions>
4192 <action function="set">tw_back=htcdumlock</action>
4193 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004194 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
4195 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4196 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4197 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004198 <action function="page">confirm_action</action>
4199 </actions>
4200 </button>
4201
4202 <action>
4203 <touch key="home"/>
4204 <action function="page">main</action>
4205 </action>
4206
4207 <action>
4208 <touch key="back"/>
4209 <action function="page">advanced</action>
4210 </action>
4211 </page>
4212
Ethan Yonker53796e72019-01-11 22:49:52 -06004213 <page name="repackselect">
4214 <template name="page"/>
4215
4216 <text style="text_l">
4217 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4218 <text>{@repack_image_hdr=Select Image}</text>
4219 </text>
4220
4221 <text style="text_m">
4222 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4223 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
4224 </text>
4225
4226 <template name="sort_options"/>
4227
4228 <fileselector>
4229 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
4230 <text>%tw_zip_location%</text>
4231 <filter extn=".img" folders="1" files="1"/>
4232 <path name="tw_zip_location" default="/sdcard"/>
4233 <data name="tw_filename"/>
4234 <selection name="tw_file"/>
4235 </fileselector>
4236
4237 <button style="main_button_half_height">
4238 <placement x="%indent%" y="%row21a_y%"/>
4239 <text>{@select_storage_btn=Select Storage}</text>
4240 <actions>
4241 <action function="set">tw_back=repackselect</action>
4242 <action function="overlay">select_storage</action>
4243 </actions>
4244 </button>
4245
4246 <action>
4247 <conditions>
4248 <condition var1="tw_filename" op="modified"/>
4249 </conditions>
4250 <action function="page">repackconfirm</action>
4251 </action>
4252
4253 <action>
4254 <touch key="back"/>
4255 <action function="page">advanced</action>
4256 </action>
4257
4258 <action>
4259 <touch key="home"/>
4260 <action function="page">main</action>
4261 </action>
4262 </page>
4263
4264 <page name="repackconfirm">
4265 <template name="page"/>
4266
4267 <text style="text_l">
4268 <condition var1="tw_repack_kernel" var2="1"/>
4269 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4270 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4271 </text>
4272
4273 <text style="text_l">
4274 <condition var1="tw_repack_kernel" var2="0"/>
4275 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4276 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4277 </text>
4278
4279 <text style="text_m">
4280 <condition var1="tw_repack_kernel" var2="1"/>
4281 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4282 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4283 </text>
4284
4285 <text style="text_m">
4286 <condition var1="tw_repack_kernel" var2="0"/>
4287 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4288 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4289 </text>
4290
4291 <text style="text_m_accent">
4292 <placement x="%indent%" y="%row2_y%"/>
4293 <text>{@folder=Folder:}</text>
4294 </text>
4295
4296 <text style="text_m">
4297 <placement x="%indent%" y="%row3_y%"/>
4298 <text>%tw_zip_location%</text>
4299 </text>
4300
4301 <text style="text_m_accent">
4302 <placement x="%indent%" y="%row4_y%"/>
4303 <text>{@file=File:}</text>
4304 </text>
4305
4306 <text style="text_m">
4307 <placement x="%indent%" y="%row5_y%"/>
4308 <text>%tw_file%</text>
4309 </text>
4310
4311 <checkbox>
4312 <placement x="%indent%" y="%row7_y%"/>
4313 <text>{@repack_backup_first=Back up existing image first}</text>
4314 <data variable="tw_repack_backup_first"/>
4315 </checkbox>
4316
4317 <button style="main_button_half_height">
4318 <placement x="%indent%" y="%row16_y%"/>
4319 <text>{@install_cancel=Do not Install}</text>
4320 <action function="page">repackselect</action>
4321 </button>
4322
4323 <slider>
4324 <text>{@swipe_to_install=Swipe to Install}</text>
4325 <actions>
4326 <action function="set">tw_back=advanced</action>
4327 <action function="set">tw_action=repackimage</action>
4328 <action function="set">tw_action_param=/boot</action>
4329 <action function="set">tw_action_text1={@installing=Installing...}</action>
4330 <action function="set">tw_action_text2=</action>
4331 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4332 <action function="page">action_page</action>
4333 </actions>
4334 </slider>
4335
4336 <action>
4337 <touch key="back"/>
4338 <action function="page">repackselect</action>
4339 </action>
4340
4341 <action>
4342 <touch key="home"/>
4343 <action function="page">main</action>
4344 </action>
4345 </page>
4346
z31s1g28f0a922015-11-07 18:50:22 +01004347 <page name="lock">
4348 <background color="%semi_transparent%"/>
4349
4350 <image>
4351 <image resource="unlock_icon"/>
4352 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4353 </image>
4354
4355 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004356 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004357 <action function="overlay"/>
4358 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004359
4360 <action>
4361 <touch key="power"/>
4362 <action function="togglebacklight"/>
4363 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004364 </page>
4365
4366 <page name="filemanagerlist">
4367 <template name="page"/>
4368
4369 <text style="text_l">
4370 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004371 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004372 </text>
4373
4374 <text style="text_m">
4375 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004376 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004377 </text>
4378
4379 <template name="sort_options"/>
4380
4381 <fileselector>
4382 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4383 <text>%tw_file_location1%</text>
4384 <filter folders="1" files="1"/>
4385 <path name="tw_file_location1" default="/"/>
4386 <data name="tw_filename1"/>
4387 <selection name="tw_selection1"/>
4388 </fileselector>
4389
4390 <button style="fab">
4391 <image resource="fab_selectfolder"/>
4392 <actions>
4393 <action function="set">tw_filename1=tw_file_location1</action>
4394 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004395 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004396 <action function="page">filemanageroptions</action>
4397 </actions>
4398 </button>
4399
4400 <action>
4401 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004402 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004403 <action function="set">tw_fm_isfolder=0</action>
4404 </actions>
4405 </action>
4406
4407 <action>
4408 <touch key="home"/>
4409 <action function="page">main</action>
4410 </action>
4411
4412 <action>
4413 <touch key="back"/>
4414 <action function="page">advanced</action>
4415 </action>
4416
4417 <action>
4418 <condition var1="tw_filename1" op="modified"/>
4419 <action function="page">filemanageroptions</action>
4420 </action>
4421 </page>
4422
4423 <page name="filemanageroptions">
4424 <template name="page"/>
4425
4426 <text style="text_l">
4427 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004428 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004429 </text>
4430
4431 <text style="text_m">
4432 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004433 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004434 </text>
4435
4436 <text style="text_m_accent">
4437 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004438 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004439 </text>
4440
4441 <text style="text_m">
4442 <placement x="%indent%" y="%row3_y%"/>
4443 <text>%tw_filename1%</text>
4444 </text>
4445
4446 <button style="main_button_half_height">
Captain Throwback16dd81b2021-02-12 19:32:36 -05004447 <conditions>
4448 <condition var1="tw_include_nano" var2="1"/>
4449 <condition var1="tw_fm_isfolder" var2="0"/>
4450 </conditions>
4451 <placement x="%indent%" y="%row12a_y%"/>
4452 <text>{@fm_edit_file=Edit File}</text>
4453 <actions>
4454 <action function="editfile">nano "%tw_filename1%"</action>
4455 <action function="page">terminalcommand</action>
4456 </actions>
4457 </button>
4458
4459 <button style="main_button_half_height">
Mohd Faraz77bbeb02020-08-12 12:29:42 +00004460 <condition var1="tw_fm_isfolder" var2="1"/>
4461 <placement x="%center_x%" y="%row12a_y%"/>
4462 <text>{@fm_open_terminal_btn=Open Terminal Here}</text>
4463 <action function="changeterminal">%tw_filename1%</action>
4464 </button>
4465
4466 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01004467 <condition var1="tw_fm_isfolder" var2="0"/>
4468 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004469 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004470 <actions>
4471 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004472 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004473 <action function="page">choosedestinationfolder</action>
4474 </actions>
4475 </button>
4476
4477 <button style="main_button_half_height">
4478 <condition var1="tw_fm_isfolder" var2="1"/>
4479 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004480 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004481 <actions>
4482 <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 -05004483 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004484 <action function="page">choosedestinationfolder</action>
4485 </actions>
4486 </button>
4487
4488 <button style="main_button_half_height">
4489 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004490 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004491 <actions>
4492 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004493 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004494 <action function="page">choosedestinationfolder</action>
4495 </actions>
4496 </button>
4497
4498 <button style="main_button_half_height">
4499 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004500 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004501 <actions>
4502 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004503 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004504 <action function="set">tw_fm_text2=</action>
4505 <action function="set">tw_fm_text3=</action>
4506 <action function="set">tw_include_text3=0</action>
4507 <action function="set">tw_back=filemanageroptions</action>
4508 <action function="page">filemanagerconfirm</action>
4509 </actions>
4510 </button>
4511
4512 <button style="main_button_half_height">
4513 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004514 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004515 <actions>
4516 <action function="set">tw_filemanager_rename=0000</action>
4517 <action function="set">tw_fm_text2=</action>
4518 <action function="set">tw_fm_text3=</action>
4519 <action function="set">tw_include_text3=0</action>
4520 <action function="set">tw_back=filemanageroptions</action>
4521 <action function="page">filemanagerchmod</action>
4522 </actions>
4523 </button>
4524
4525 <button style="main_button_half_height">
4526 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004527 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004528 <actions>
4529 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004530 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004531 <action function="set">tw_fm_text2=</action>
4532 <action function="set">tw_fm_text3=</action>
4533 <action function="set">tw_include_text3=0</action>
4534 <action function="set">tw_back=filemanageroptions</action>
4535 <action function="page">filemanagerconfirm</action>
4536 </actions>
4537 </button>
4538
4539 <button style="main_button_half_height">
4540 <condition var1="tw_fm_isfolder" var2="0"/>
4541 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004542 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004543 <actions>
4544 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004545 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004546 <action function="set">tw_filemanager_command=mv</action>
4547 <action function="page">filemanagerrenamefile</action>
4548 </actions>
4549 </button>
4550
4551 <button style="main_button_half_height">
4552 <condition var1="tw_fm_isfolder" var2="1"/>
4553 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004554 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004555 <actions>
4556 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004557 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004558 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4559 <action function="page">filemanagerrenamefolder</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">filemanagerlist</action>
4571 </action>
4572 </page>
4573
4574 <page name="choosedestinationfolder">
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_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004585 </text>
4586
4587 <template name="sort_options"/>
4588
4589 <fileselector>
4590 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4591 <text>%tw_file_location2%</text>
4592 <filter folders="1" files="0"/>
4593 <path name="tw_file_location2" default="/"/>
4594 <data name="tw_filename2"/>
4595 <selection name="tw_selection2"/>
4596 </fileselector>
4597
4598 <button style="fab">
4599 <image resource="fab_selectfolder"/>
4600 <actions>
4601 <action function="set">tw_fm_text2=to</action>
4602 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4603 <action function="set">tw_include_text3=1</action>
4604 <action function="set">tw_back=filemanageroptions</action>
4605 <action function="page">filemanagerconfirm</action>
4606 </actions>
4607 </button>
4608
4609 <action>
4610 <touch key="home"/>
4611 <action function="page">main</action>
4612 </action>
4613
4614 <action>
4615 <touch key="back"/>
4616 <action function="page">filemanageroptions</action>
4617 </action>
4618 </page>
4619
4620 <page name="filemanagerrenamefile">
4621 <template name="page"/>
4622
4623 <text style="text_l">
4624 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004625 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004626 </text>
4627
4628 <text style="text_m">
4629 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004630 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004631 </text>
4632
4633 <text style="text_m_accent">
4634 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004635 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004636 </text>
4637
4638 <input>
4639 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4640 <text>%tw_filemanager_rename%</text>
4641 <data name="tw_filemanager_rename"/>
4642 <restrict minlen="1" maxlen="128"/>
4643 <actions>
4644 <action function="set">tw_fm_text2=to</action>
4645 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4646 <action function="set">tw_include_text3=1</action>
4647 <action function="set">tw_back=filemanageroptions</action>
4648 <action function="page">filemanagerconfirm</action>
4649 </actions>
4650 </input>
4651
4652 <fill color="%accent_color%">
4653 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4654 </fill>
4655
4656 <button style="main_button_half_height">
4657 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004658 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004659 <action function="page">filemanageroptions</action>
4660 </button>
4661
4662 <template name="keyboardtemplate"/>
4663
4664 <action>
4665 <touch key="home"/>
4666 <action function="page">main</action>
4667 </action>
4668
4669 <action>
4670 <touch key="back"/>
4671 <action function="page">filemanageroptions</action>
4672 </action>
4673 </page>
4674
4675 <page name="filemanagerrenamefolder">
4676 <template name="page"/>
4677
4678 <text style="text_l">
4679 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004680 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004681 </text>
4682
4683 <text style="text_m">
4684 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004685 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004686 </text>
4687
4688 <text style="text_m_accent">
4689 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004690 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004691 </text>
4692
4693 <input>
4694 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4695 <text>%tw_filemanager_rename%</text>
4696 <data name="tw_filemanager_rename"/>
4697 <restrict minlen="1" maxlen="128"/>
4698 <actions>
4699 <action function="set">tw_fm_text2=to</action>
4700 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4701 <action function="set">tw_include_text3=1</action>
4702 <action function="set">tw_back=filemanageroptions</action>
4703 <action function="page">filemanagerconfirm</action>
4704 </actions>
4705 </input>
4706
4707 <fill color="%accent_color%">
4708 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4709 </fill>
4710
4711 <button style="main_button_half_height">
4712 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004713 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004714 <action function="page">filemanageroptions</action>
4715 </button>
4716
4717 <template name="keyboardtemplate"/>
4718
4719 <action>
4720 <touch key="home"/>
4721 <action function="page">main</action>
4722 </action>
4723
4724 <action>
4725 <touch key="back"/>
4726 <action function="page">filemanageroptions</action>
4727 </action>
4728 </page>
4729
4730 <page name="filemanagerchmod">
4731 <template name="page"/>
4732
4733 <text style="text_l">
4734 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004735 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004736 </text>
4737
4738 <text style="text_m">
4739 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004740 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004741 </text>
4742
4743 <text style="text_m_accent">
4744 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004745 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004746 </text>
4747
4748 <input>
4749 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4750 <text>%tw_filemanager_rename%</text>
4751 <data name="tw_filemanager_rename"/>
4752 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4753 <actions>
4754 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4755 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4756 <action function="set">tw_back=filemanageroptions</action>
4757 <action function="page">filemanagerconfirm</action>
4758 </actions>
4759 </input>
4760
4761 <fill color="%accent_color%">
4762 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4763 </fill>
4764
4765 <button style="main_button_half_height">
4766 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004767 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004768 <action function="page">filemanageroptions</action>
4769 </button>
4770
4771 <template name="keyboardtemplate"/>
4772
4773 <action>
4774 <touch key="home"/>
4775 <action function="page">main</action>
4776 </action>
4777
4778 <action>
4779 <touch key="back"/>
4780 <action function="page">filemanageroptions</action>
4781 </action>
4782 </page>
4783
4784 <page name="filemanagerconfirm">
4785 <template name="page"/>
4786
4787 <text style="text_l">
4788 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004789 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004790 </text>
4791
4792 <text style="text_m">
4793 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004794 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004795 </text>
4796
4797 <text style="text_m_accent">
4798 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4799 <text>%tw_fm_text1%</text>
4800 </text>
4801
4802 <text style="text_m">
4803 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4804 <text>%tw_filename1%</text>
4805 </text>
4806
4807 <text style="text_m_accent">
4808 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4809 <text>%tw_fm_text2%</text>
4810 </text>
4811
4812 <text style="text_m">
4813 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4814 <text>%tw_fm_text3%</text>
4815 </text>
4816
4817 <text style="text_m">
4818 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004819 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004820 </text>
4821
4822 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004823 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004824 <action function="page">filemanageraction</action>
4825 </slider>
4826
4827 <action>
4828 <touch key="back"/>
4829 <action function="page">%tw_back%</action>
4830 </action>
4831
4832 <action>
4833 <touch key="home"/>
4834 <action function="page">main</action>
4835 </action>
4836 </page>
4837
4838 <page name="filemanageraction">
4839 <template name="page"/>
4840
4841 <text style="text_l">
4842 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004843 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004844 </text>
4845
4846 <text style="text_m">
4847 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4848 <text>%tw_fm_text1%</text>
4849 </text>
4850
4851 <template name="console"/>
4852
4853 <template name="progress_bar"/>
4854
4855 <action>
4856 <conditions>
4857 <condition var1="tw_operation_state" var2="1"/>
4858 <condition var1="tw_operation_status" var2="0"/>
4859 </conditions>
4860 <actions>
4861 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004862 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004863 <action function="page">action_complete</action>
4864 </actions>
4865 </action>
4866
4867 <action>
4868 <conditions>
4869 <condition var1="tw_operation_state" var2="1"/>
4870 <condition var1="tw_operation_status" op="!=" var2="0"/>
4871 </conditions>
4872 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004873 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004874 <action function="page">action_complete</action>
4875 </actions>
4876 </action>
4877
4878 <action>
4879 <condition var1="tw_include_text3" var2="0"/>
4880 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4881 </action>
4882
4883 <action>
4884 <condition var1="tw_include_text3" var2="1"/>
4885 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4886 </action>
4887 </page>
4888
4889 <page name="decrypt">
4890 <template name="page"/>
4891
4892 <action>
4893 <condition var1="tw_crypto_pwtype" var2="2"/>
4894 <action function="page">decrypt_pattern</action>
4895 </action>
4896
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04004897 <action>
4898 <condition var1="tw_crypto_pwtype" var2="3"/>
4899 <action function="page">decrypt_pin</action>
4900 </action>
4901
z31s1g28f0a922015-11-07 18:50:22 +01004902 <text style="text_l">
4903 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004904 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004905 </text>
4906
4907 <text style="text_m">
4908 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004909 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004910 </text>
4911
4912 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004913 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004914 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004915 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004916 </text>
4917
Noah Jacobson81d638d2019-04-28 00:10:07 -04004918 <text style="text_m_accent">
4919 <condition var1="tw_is_fbe" var2="1"/>
4920 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4921 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4922 </text>
4923
z31s1g28f0a922015-11-07 18:50:22 +01004924 <input>
4925 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4926 <text>%tw_crypto_display%</text>
4927 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4928 <restrict minlen="1" maxlen="254"/>
4929 <action function="page">trydecrypt</action>
4930 </input>
4931
4932 <fill color="%accent_color%">
4933 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4934 </fill>
4935
4936 <fill color="%text_fail_color%">
4937 <condition var1="tw_password_fail" var2="1"/>
4938 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4939 </fill>
4940
4941 <text style="text_m_fail">
4942 <condition var1="tw_password_fail" var2="1"/>
4943 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004944 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004945 </text>
4946
4947 <button style="main_button_half_height">
4948 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004949 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05004950 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004951 </button>
4952
z31s1g608d7ff2016-01-18 19:47:25 +01004953 <button style="main_button_half_height">
4954 <placement x="%center_x%" y="%row10_y%"/>
4955 <text>{@sel_lang_btn=Select Language}</text>
4956 <action function="overlay">select_language</action>
4957 </button>
4958
z31s1g28f0a922015-11-07 18:50:22 +01004959 <template name="keyboardtemplate"/>
4960 </page>
4961
4962 <page name="decrypt_pattern">
4963 <template name="page"/>
4964
4965 <text style="text_l">
4966 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004967 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004968 </text>
4969
4970 <text style="text_m">
4971 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004972 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004973 </text>
4974
4975 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004976 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004977 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004978 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004979 </text>
4980
Noah Jacobson81d638d2019-04-28 00:10:07 -04004981 <text style="text_m_accent">
4982 <condition var1="tw_is_fbe" var2="1"/>
4983 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4984 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
4985 </text>
4986
Aleksa Saraib25a1832015-12-31 17:36:00 +01004987 <text style="text_m_fail">
4988 <condition var1="tw_password_fail" var2="1"/>
4989 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004990 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004991 </text>
4992
z31s1g28f0a922015-11-07 18:50:22 +01004993 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004994 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004995 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4996 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4997 <data name="tw_crypto_password"/>
4998 <action function="page">trydecrypt</action>
4999 </patternpassword>
5000
Aleksa Saraib25a1832015-12-31 17:36:00 +01005001 <button style="button_quarter_width">
5002 <placement x="%indent%" y="%row19a_y%"/>
5003 <text>3x3</text>
5004 <action function="set">tw_gui_pattern_grid_size=3</action>
5005 </button>
5006
5007 <button style="button_quarter_width">
5008 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
5009 <text>4x4</text>
5010 <action function="set">tw_gui_pattern_grid_size=4</action>
5011 </button>
5012
5013 <button style="button_quarter_width">
5014 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
5015 <text>5x5</text>
5016 <action function="set">tw_gui_pattern_grid_size=5</action>
5017 </button>
5018
5019 <button style="button_quarter_width">
5020 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
5021 <text>6x6</text>
5022 <action function="set">tw_gui_pattern_grid_size=6</action>
5023 </button>
5024
z31s1g28f0a922015-11-07 18:50:22 +01005025 <button style="main_button_half_height">
5026 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005027 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05005028 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01005029 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01005030
5031 <button style="main_button_half_height">
5032 <placement x="%center_x%" y="%row21a_y%"/>
5033 <text>{@sel_lang_btn=Select Language}</text>
5034 <action function="overlay">select_language</action>
5035 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005036 </page>
5037
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04005038 <page name="decrypt_pin">
5039 <template name="page"/>
5040
5041 <text style="text_l">
5042 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5043 <text>{@mount_hdr=Mount}</text>
5044 </text>
5045
5046 <text style="text_m">
5047 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5048 <text>{@decrypt_data_hdr=Decrypt Data}</text>
5049 </text>
5050
5051 <text style="text_m_accent">
5052 <condition var1="tw_is_fbe" op="!=" var2="1"/>
5053 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5054 <text>{@decrypt_data_enter_pass=Enter PIN:}</text>
5055 </text>
5056
5057 <text style="text_m_accent">
5058 <condition var1="tw_is_fbe" var2="1"/>
5059 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5060 <text>{@decrypt_data_enter_pass_fbe=Enter PIN for User [%tw_crypto_user_id%]}</text>
5061 </text>
5062
5063 <input>
5064 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
5065 <text>%tw_crypto_display%</text>
5066 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
5067 <restrict minlen="1" maxlen="254"/>
5068 <action function="page">trydecrypt</action>
5069 </input>
5070
5071 <fill color="%accent_color%">
5072 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
5073 </fill>
5074
5075 <fill color="%text_fail_color%">
5076 <condition var1="tw_password_fail" var2="1"/>
5077 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
5078 </fill>
5079
5080 <text style="text_m_fail">
5081 <condition var1="tw_password_fail" var2="1"/>
5082 <placement x="%indent%" y="%row5_y%"/>
5083 <text>{@decrypt_data_failed=PIN failed, please try again!}</text>
5084 </text>
5085
5086 <button style="main_button_half_height">
5087 <placement x="%indent%" y="%row10_y%"/>
5088 <text>{@cancel_btn=Cancel}</text>
5089 <action function="page">canceldecrypt</action>
5090 </button>
5091
5092 <button style="main_button_half_height">
5093 <placement x="%center_x%" y="%row10_y%"/>
5094 <text>{@sel_lang_btn=Select Language}</text>
5095 <action function="overlay">select_language</action>
5096 </button>
5097
5098 <template name="keyboardnum"/>
5099 </page>
5100
z31s1g28f0a922015-11-07 18:50:22 +01005101 <page name="trydecrypt">
5102 <template name="page"/>
5103
5104 <text style="text_l">
5105 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005106 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005107 </text>
5108
5109 <text style="text_m">
5110 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005111 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005112 </text>
5113
5114 <template name="console"/>
5115
5116 <template name="progress_bar"/>
5117
5118 <action>
5119 <action function="decrypt"/>
5120 </action>
5121
5122 <action>
5123 <conditions>
5124 <condition var1="tw_operation_state" var2="1"/>
5125 <condition var1="tw_operation_status" op="!=" var2="0"/>
5126 </conditions>
5127 <actions>
5128 <action function="set">tw_password_fail=1</action>
5129 <action function="page">decrypt</action>
5130 </actions>
5131 </action>
5132
5133 <action>
5134 <conditions>
5135 <condition var1="tw_operation_state" var2="1"/>
5136 <condition var1="tw_operation_status" op="=" var2="0"/>
5137 </conditions>
5138 <actions>
5139 <action function="set">tw_page_done=1</action>
5140 <action function="page">main</action>
5141 </actions>
5142 </action>
5143 </page>
5144
Captain Throwback89b56a12021-02-10 18:25:07 -05005145 <page name="canceldecrypt">
5146 <template name="page"/>
5147
5148 <text style="text_l">
5149 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5150 <text>{@cancel_btn=Cancel}</text>
5151 </text>
5152
5153 <text style="text_m">
5154 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5155 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
5156 </text>
5157
5158 <template name="console"/>
5159
5160 <template name="progress_bar"/>
5161
5162 <action>
5163 <action function="refreshsizes"/>
5164 </action>
5165
5166 <action>
5167 <conditions>
5168 <condition var1="tw_operation_state" var2="1"/>
5169 </conditions>
5170 <actions>
5171 <action function="set">tw_page_done=1</action>
5172 <action function="page">main</action>
5173 </actions>
5174 </action>
5175 </page>
5176
z31s1g28f0a922015-11-07 18:50:22 +01005177 <page name="terminalcommand">
5178 <template name="page"/>
5179
z31s1g56189522016-01-13 19:12:40 +01005180 <fill color="%background_color%">
5181 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005182 </fill>
5183
z31s1g56189522016-01-13 19:12:40 +01005184 <terminal>
5185 <condition var1="tw_hide_kb" var2="0"/>
5186 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
5187 </terminal>
5188
5189 <terminal>
5190 <condition var1="tw_hide_kb" var2="1"/>
5191 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
5192 </terminal>
5193
5194 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005195
5196 <template name="keyboardtemplate"/>
5197
z31s1g608d7ff2016-01-18 19:47:25 +01005198 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01005199 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01005200 </fill>
z31s1g56189522016-01-13 19:12:40 +01005201
z31s1g608d7ff2016-01-18 19:47:25 +01005202 <button>
z31s1g56189522016-01-13 19:12:40 +01005203 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5204 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5205 <image resource="back" />
5206 <condition var1="tw_busy" var2="0" />
5207 <actions>
5208 <action function="set">tw_hide_kb=0</action>
5209 <action function="key">back</action>
5210 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005211 </button>
z31s1g56189522016-01-13 19:12:40 +01005212
z31s1g608d7ff2016-01-18 19:47:25 +01005213 <button>
z31s1g56189522016-01-13 19:12:40 +01005214 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5215 <condition var1="tw_hide_kb" op="=" var2="0" />
5216 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5217 <image resource="kb_hide" />
5218 <condition var1="tw_busy" var2="0" />
5219 <actions>
5220 <action function="set">tw_hide_kb=1</action>
5221 <action function="page">terminalcommand</action>
5222 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005223 </button>
z31s1g56189522016-01-13 19:12:40 +01005224
z31s1g608d7ff2016-01-18 19:47:25 +01005225 <button>
z31s1g56189522016-01-13 19:12:40 +01005226 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5227 <condition var1="tw_hide_kb" op="=" var2="1" />
5228 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5229 <image resource="kb_show" />
5230 <condition var1="tw_busy" var2="0" />
5231 <actions>
5232 <action function="set">tw_hide_kb=0</action>
5233 <action function="page">terminalcommand</action>
5234 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005235 </button>
z31s1g56189522016-01-13 19:12:40 +01005236
z31s1g608d7ff2016-01-18 19:47:25 +01005237 <button>
z31s1g56189522016-01-13 19:12:40 +01005238 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5239 <image resource="home" />
5240 <condition var1="tw_busy" var2="0" />
5241 <actions>
5242 <action function="set">tw_hide_kb=0</action>
5243 <action function="key">home</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005244 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005245 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005246 </button>
z31s1g56189522016-01-13 19:12:40 +01005247
z31s1g608d7ff2016-01-18 19:47:25 +01005248 <button>
z31s1g56189522016-01-13 19:12:40 +01005249 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5250 <condition var1="tw_hide_kb" op="=" var2="0" />
5251 <placement x="%console_button_x%" 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_samsung_navbar" op="!=" var2="1" />
5262 <condition var1="tw_hide_kb" op="=" var2="1" />
5263 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5264 <image resource="kb_show" />
5265 <condition var1="tw_busy" var2="0" />
5266 <actions>
5267 <action function="set">tw_hide_kb=0</action>
5268 <action function="page">terminalcommand</action>
5269 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005270 </button>
z31s1g56189522016-01-13 19:12:40 +01005271
z31s1g608d7ff2016-01-18 19:47:25 +01005272 <button>
z31s1g56189522016-01-13 19:12:40 +01005273 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5274 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5275 <image resource="back" />
5276 <condition var1="tw_busy" var2="0" />
5277 <actions>
5278 <action function="set">tw_hide_kb=0</action>
5279 <action function="key">back</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005280 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005281 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005282 </button>
z31s1g56189522016-01-13 19:12:40 +01005283
z31s1g28f0a922015-11-07 18:50:22 +01005284 <action>
5285 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005286 <actions>
5287 <action function="set">tw_hide_kb=0</action>
5288 <action function="page">main</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005289 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005290 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005291 </action>
5292
5293 <action>
5294 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005295 <actions>
5296 <action function="set">tw_hide_kb=0</action>
5297 <action function="page">advanced</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005298 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005299 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005300 </action>
z31s1g56189522016-01-13 19:12:40 +01005301
z31s1g608d7ff2016-01-18 19:47:25 +01005302 <action>
z31s1g56189522016-01-13 19:12:40 +01005303 <touch key="power+voldown" />
5304 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01005305 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005306 </page>
5307
bigbiffdf8436b2020-08-30 16:22:34 -04005308 <page name="fastboot">
5309 <template name="page"/>
5310
5311 <text style="text_l">
5312 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5313 <text>{@fastboot_button=Fastboot}</text>
5314 </text>
5315
5316 <template name="console"/>
5317
5318 <template name="progress_bar"/>
5319
5320 <button style="main_button_half_height">
5321 <condition var1="tw_enable_fastboot" op="=" var2="1" />
5322 <placement x="%indent%" y="%row21a_y%"/>
5323 <text>{@enable_adb=Enable ADB}</text>
5324 <actions>
5325 <action function="enableadb"/>
5326 <action function="set">tw_enable_adb=1</action>
5327 <action function="set">tw_enable_fastboot=0</action>
5328 </actions>
5329 </button>
5330
5331 <button style="main_button_half_height">
5332 <condition var1="tw_enable_adb" op="=" var2="1" />
5333 <placement x="%indent%" y="%row21a_y%"/>
5334 <text>{@enable_fastboot=Enable Fastboot}</text>
5335 <actions>
5336 <action function="enablefastboot"/>
5337 <action function="set">tw_enable_fastboot=1</action>
5338 <action function="set">tw_enable_adb=0</action>
5339 </actions>
5340 </button>
5341
5342 <button style="main_button_half_height">
5343 <placement x="%center_x%" y="%row21a_y%"/>
5344 <text>{@reboot_btn=Reboot}</text>
5345 <action function="page">fastbootreboot</action>
5346 </button>
5347 </page>
5348
z31s1g28f0a922015-11-07 18:50:22 +01005349 <page name="sideload">
5350 <template name="page"/>
5351
5352 <text style="text_l">
5353 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005354 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005355 </text>
5356
5357 <text style="text_m">
5358 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005359 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005360 </text>
5361
5362 <checkbox>
5363 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005364 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005365 <data variable="tw_wipe_dalvik"/>
5366 </checkbox>
5367
5368 <checkbox>
5369 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005370 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005371 <data variable="tw_wipe_cache"/>
5372 </checkbox>
5373
5374 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005375 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005376 <actions>
5377 <action function="set">tw_back=advanced</action>
5378 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005379 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5380 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5381 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005382 <action function="set">tw_has_cancel=1</action>
5383 <action function="set">tw_show_reboot=1</action>
5384 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5385 <action function="page">action_page</action>
5386 </actions>
5387 </slider>
5388
5389 <action>
5390 <touch key="home"/>
5391 <action function="page">main</action>
5392 </action>
5393
5394 <action>
5395 <touch key="back"/>
5396 <action function="page">advanced</action>
5397 </action>
5398 </page>
5399
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005400 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005401 <template name="page"/>
5402
5403 <text style="text_l">
5404 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005405 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005406 </text>
5407
5408 <text style="text_m">
5409 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005410 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005411 </text>
5412
5413 <text style="text_m_accent">
5414 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005415 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005416 </text>
5417
z31s1g28f0a922015-11-07 18:50:22 +01005418 <text style="text_m_fail">
5419 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005420 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005421 </text>
5422
5423 <text style="text_m_fail">
5424 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005425 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005426 </text>
5427
5428 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005429 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005430 <actions>
5431 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005432 <action function="set">tw_action=fixcontexts</action>
5433 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5434 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005435 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005436 <action function="set">tw_show_reboot=1</action>
5437 <action function="page">action_page</action>
5438 </actions>
5439 </slider>
5440
5441 <action>
5442 <touch key="home"/>
5443 <action function="page">main</action>
5444 </action>
5445
5446 <action>
5447 <touch key="back"/>
5448 <action function="page">advanced</action>
5449 </action>
5450 </page>
5451
z31s1g28f0a922015-11-07 18:50:22 +01005452 <page name="slideout">
5453 <fill color="%background_color%">
5454 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5455 </fill>
5456
5457 <console>
5458 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
5459 </console>
5460
5461 <button>
5462 <fill color="%transparent%"/>
5463 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5464 <action function="overlay"/>
5465 </button>
5466
5467 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005468 <touch key="power"/>
5469 <action function="togglebacklight"/>
5470 </action>
5471
5472 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005473 <touch key="power+voldown"/>
5474 <action function="screenshot"/>
5475 </action>
5476 </page>
5477
5478 <page name="select_storage">
5479 <fill color="%semi_transparent%">
5480 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5481 </fill>
5482
5483 <fill color="%background_color%">
5484 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5485 </fill>
5486
5487 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005488 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005489 <data name="tw_storage_path"/>
5490 <listtype name="storage"/>
5491 </partitionlist>
5492
5493 <button style="button_third_width">
5494 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005495 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005496 <actions>
5497 <action function="set">tw_clear_destination=%tw_back%</action>
5498 <action function="overlay"/>
5499 <action function="page">clear_vars</action>
5500 </actions>
5501 </button>
5502
5503 <fill color="#000000">
5504 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5505 </fill>
5506
5507 <button>
5508 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5509 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5510 <image resource="back"/>
5511 <condition var1="tw_busy" var2="0"/>
5512 <actions>
5513 <action function="overlay"/>
5514 <action function="key">%tw_back%</action>
5515 </actions>
5516 </button>
5517
5518 <button>
5519 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5520 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5521 <image resource="console"/>
5522 <condition var1="tw_busy" var2="0"/>
5523 <action function="overlay">slideout</action>
5524 </button>
5525
5526 <button>
5527 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5528 <image resource="home"/>
5529 <condition var1="tw_busy" var2="0"/>
5530 <actions>
5531 <action function="overlay"/>
5532 <action function="key">home</action>
5533 </actions>
5534 </button>
5535
5536 <button>
5537 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5538 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5539 <image resource="console"/>
5540 <condition var1="tw_busy" var2="0"/>
5541 <action function="overlay">slideout</action>
5542 </button>
5543
5544 <button>
5545 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5546 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5547 <image resource="back"/>
5548 <condition var1="tw_busy" var2="0"/>
5549 <actions>
5550 <action function="overlay"/>
5551 <action function="key">%tw_back%</action>
5552 </actions>
5553 </button>
5554
5555 <action>
5556 <touch key="power+voldown"/>
5557 <action function="screenshot"/>
5558 </action>
5559 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005560
5561 <page name="select_language">
5562 <fill color="%semi_transparent%">
5563 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5564 </fill>
5565
5566 <fill color="%background_color%">
5567 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5568 </fill>
5569
5570 <listbox>
5571 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5572 <text>{@select_language=Select Language:}</text>
5573 <icon selected="radio_true" unselected="radio_false" />
5574 <data name="tw_language" />
5575 </listbox>
5576
5577 <button style="button_third_width">
5578 <placement x="%dialog_button_x%" y="%row14_y%"/>
5579 <text>{@ok_btn=OK}</text>
5580 <actions>
5581 <action function="overlay"/>
5582 <action function="setlanguage"></action>
5583 </actions>
5584 </button>
5585
5586 <fill color="#000000">
5587 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5588 </fill>
5589
5590 <button>
5591 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5592 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5593 <image resource="back"/>
5594 <condition var1="tw_busy" var2="0"/>
5595 <actions>
5596 <action function="overlay"/>
5597 <action function="key">%tw_back%</action>
5598 </actions>
5599 </button>
5600
5601 <button>
5602 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5603 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5604 <image resource="console"/>
5605 <condition var1="tw_busy" var2="0"/>
5606 <action function="overlay">slideout</action>
5607 </button>
5608
5609 <button>
5610 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5611 <image resource="home"/>
5612 <condition var1="tw_busy" var2="0"/>
5613 <actions>
5614 <action function="overlay"/>
5615 <action function="key">home</action>
5616 </actions>
5617 </button>
5618
5619 <button>
5620 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5621 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5622 <image resource="console"/>
5623 <condition var1="tw_busy" var2="0"/>
5624 <action function="overlay">slideout</action>
5625 </button>
5626
5627 <button>
5628 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5629 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5630 <image resource="back"/>
5631 <condition var1="tw_busy" var2="0"/>
5632 <actions>
5633 <action function="overlay"/>
5634 <action function="key">%tw_back%</action>
5635 </actions>
5636 </button>
5637
5638 <action>
5639 <touch key="power+voldown"/>
5640 <action function="screenshot"/>
5641 </action>
5642 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005643
5644 <page name="decrypt_users">
5645 <template name="page"/>
5646
5647 <text style="text_l">
5648 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5649 <text>{@decrypt_users=Decrypt Users}</text>
5650 </text>
5651
5652 <text style="text_m_accent">
5653 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5654 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5655 </text>
5656
5657 <listbox>
5658 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_advanced_height%"/>
5659 <text>{@select_user=Select User}</text>
5660 <icon selected="radio_true" unselected="radio_false" />
5661 <data name="tw_crypto_user_id" />
5662 </listbox>
5663
5664 <button style="main_button_half_height">
5665 <placement x="%center_x%" y="%row21a_y%"/>
5666 <text>{@decrypt_users=Decrypt Users}</text>
5667 <action function="set">tw_crypto_password=</action>
5668 <action function="set">tw_password_fail=0</action>
5669 <action function="page">decrypt</action>
5670 </button>
5671
5672 <action>
5673 <touch key="home"/>
5674 <action function="page">main</action>
5675 </action>
5676
5677 <action>
5678 <touch key="back"/>
5679 <action function="page">advanced</action>
5680 </action>
5681 </page>
epicXa721f952021-01-04 13:01:31 +05305682
5683 <page name="changeTwrpFolder">
5684 <template name="page"/>
5685
5686 <text style="text_l">
5687 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5688 <text>{@advanced_hdr=Advanced}</text>
5689 </text>
5690
5691 <text style="text_m">
5692 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5693 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
5694 </text>
5695
5696 <text style="text_m_accent">
5697 <placement x="%indent%" y="%row2_y%"/>
5698 <text>{@name=Name:}</text>
5699 </text>
5700
5701 <input>
5702 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
5703 <text>%tw_custom_folder%</text>
5704 <data name="tw_custom_folder"/>
5705 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
5706 <actions>
5707 <action function="set">tw_back=changeTwrpFolder</action>
5708 <action function="set">tw_action=applycustomtwrpfolder</action>
5709 <action function="set">tw_action_param=%tw_custom_folder%</action>
5710 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5711 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5712 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5713 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
5714 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5715 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
5716 <action function="set">tw_existpage=changeTwrpFolder</action>
5717 <action function="set">tw_notexistpage=confirm_action</action>
5718 <action function="page">filecheck</action>
5719 </actions>
5720 </input>
5721
5722 <fill color="%accent_color%">
5723 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5724 </fill>
5725
5726 <fill color="%text_fail_color%">
5727 <condition var1="tw_fileexists" var2="1"/>
5728 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5729 </fill>
5730
5731 <text style="text_m_fail">
5732 <condition var1="tw_fileexists" var2="1"/>
5733 <placement x="%indent%" y="%row4a_y%"/>
5734 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
5735 </text>
5736
5737 <button style="main_button_half_height">
5738 <placement x="%indent%" y="%row10_y%"/>
5739 <text>{@cancel_btn=Cancel}</text>
5740 <actions>
5741 <action function="page">advanced</action>
5742 </actions>
5743 </button>
5744
5745 <button style="main_button_half_height">
5746 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
5747 <placement x="%center_x%" y="%row10_y%"/>
5748 <text>{@restore_defaults_btn=Restore Defaults}</text>
5749 <actions>
5750 <action function="set">tw_back=changeTwrpFolder</action>
5751 <action function="set">tw_action=applycustomtwrpfolder</action>
5752 <action function="set">tw_action_param=TWRP</action>
5753 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5754 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5755 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5756 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
5757 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5758 <action function="set">tw_filecheck=/sdcard/TWRP</action>
5759 <action function="set">tw_existpage=changeTwrpFolder</action>
5760 <action function="set">tw_notexistpage=confirm_action</action>
5761 <action function="page">filecheck</action>
5762 </actions>
5763 </button>
5764
5765 <template name="keyboardtemplate"/>
5766
5767 <action>
5768 <touch key="home"/>
5769 <actions>
5770 <action function="page">main</action>
5771 </actions>
5772 </action>
5773
5774 <action>
5775 <touch key="back"/>
5776 <actions>
5777 <action function="page">advanced</action>
5778 </actions>
5779 </action>
5780 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005781 </pages>
5782</recovery>