blob: 99eeef6cb138e8f96928670f946de057e0554e5d [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"/>
Captain Throwback1f5d4ca2023-01-11 13:46:30 -0500419 <condition var1="tw_no_flash_current_twrp" var2="0"/>
nebrassyac29e692021-05-20 13:03:30 +0200420 </conditions>
421 <data variable="tw_auto_reflashtwrp"/>
422 </listitem>
epicX9597b842021-03-20 21:58:17 +0530423 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
424 <data variable="tw_install_reboot"/>
425 </listitem>
426 <listitem name="{@inject_twrp_chk=Inject TWRP after install}">
427 <condition var1="tw_has_injecttwrp" var2="1"/>
428 <data variable="tw_inject_after_zip"/>
429 </listitem>
430 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +0100431
432 <button style="main_button_half_height">
433 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500434 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100435 <action function="page">install</action>
436 </button>
437
438 <button style="main_button_half_height">
439 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500440 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100441 <actions>
442 <action function="queueclear"/>
443 <action function="page">install</action>
444 </actions>
445 </button>
446
447 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500448 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100449 <action function="flash">flash_zip</action>
450 </slider>
451
452 <action>
453 <touch key="back"/>
454 <actions>
455 <action function="cancelzip"/>
456 <action function="page">install</action>
457 </actions>
458 </action>
459
460 <action>
461 <touch key="home"/>
462 <action function="page">main</action>
463 </action>
464 </page>
465
466 <page name="flash_zip">
467 <template name="page"/>
468
469 <text style="text_l">
470 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500471 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100472 </text>
473
474 <text style="text_m">
475 <placement x="%col1_x_header%" y="%row4_header_y%"/>
476 <text>%tw_file%</text>
477 </text>
478
479 <template name="console"/>
480
481 <template name="progress_bar"/>
482
483 <action>
484 <condition var1="tw_operation_state" var2="1"/>
485 <action function="page">flash_done</action>
486 </action>
487 </page>
488
489 <page name="flash_done">
490 <template name="page"/>
491
492 <text style="text_l">
493 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500494 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100495 </text>
496
497 <text style="text_m_fail">
498 <condition var1="tw_operation_status" op="!=" var2="0"/>
499 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500500 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100501 </text>
502
503 <text style="text_m">
504 <condition var1="tw_operation_status" var2="0"/>
505 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500506 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100507 </text>
508
509 <template name="console"/>
510
511 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500512 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100513 <placement x="%indent%" y="%row21a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500514 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100515 <actions>
516 <action function="set">tw_back=flash_done</action>
517 <action function="set">tw_action=wipe</action>
518 <action function="set">tw_action_param=/cache</action>
519 <action function="set">tw_has_action2=1</action>
520 <action function="set">tw_action2=wipe</action>
521 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500522 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
523 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
524 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
525 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100526 <action function="page">confirm_action</action>
527 </actions>
528 </button>
529
530 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500531 <condition var1="tw_ab_device" var2="1"/>
532 <placement x="%indent%" y="%row21a_y%"/>
533 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
534 <actions>
535 <action function="set">tw_back=flash_done</action>
536 <action function="set">tw_action=wipe</action>
537 <action function="set">tw_action_param=dalvik</action>
538 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
539 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
540 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
541 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
542 <action function="page">confirm_action</action>
543 </actions>
544 </button>
545
546 <button style="main_button_half_height">
Chaosmaster7b66bf52020-02-07 20:33:43 +0100547 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100548 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500549 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100550 <actions>
551 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500552 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100553 </actions>
554 </button>
555
Chaosmaster7b66bf52020-02-07 20:33:43 +0100556 <button style="main_button_half_height">
557 <condition var1="tw_ab_device" var2="1"/>
558 <placement x="%center_x%" y="%row21a_y%"/>
559 <text>{@reboot_btn=Reboot}</text>
560 <actions>
561 <action function="set">tw_back=main2</action>
562 <action function="page">reboot</action>
563 </actions>
564 </button>
565
z31s1g28f0a922015-11-07 18:50:22 +0100566 <action>
567 <touch key="back"/>
568 <actions>
569 <action function="set">tw_clear_destination=install</action>
570 <action function="page">clear_vars</action>
571 </actions>
572 </action>
573
574 <action>
575 <touch key="home"/>
576 <actions>
577 <action function="set">tw_clear_destination=main2</action>
578 <action function="page">clear_vars</action>
579 </actions>
580 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500581
582 <action>
583 <conditions>
584 <condition var1="tw_install_reboot" var2="1"/>
585 <condition var1="tw_operation_status" var2="0"/>
586 <condition var1="tw_reboot_system" var2="1"/>
587 </conditions>
588 <actions>
589 <action function="set">tw_sleep=%tw_sleep_total%</action>
590 <action function="page">flash_sleep_and_reboot</action>
591 </actions>
592 </action>
593 </page>
594
595 <page name="flash_sleep_and_reboot">
596 <template name="page"/>
597
598 <text style="text_l">
599 <placement x="%col1_x_header%" y="%row3_header_y%"/>
600 <text>{@install_zip_hdr=Install Zip}</text>
601 </text>
602
603 <text style="text_m">
604 <placement x="%col1_x_header%" y="%row4_header_y%"/>
605 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
606 </text>
607
608 <template name="console"/>
609
610 <template name="progress_bar"/>
611
612 <button style="main_button_half_height">
613 <condition var1="tw_sleep" op="&gt;" var2="0"/>
614 <placement x="%center_x%" y="%row21a_y%"/>
615 <text>{@cancel_btn=Cancel}</text>
616 <actions>
617 <action function="set">tw_install_reboot=0</action>
618 <action function="page">flash_done</action>
619 </actions>
620 </button>
621
622 <action>
623 <conditions>
624 <condition var1="tw_sleep" var2="tw_sleep_total"/>
625 <condition var1="tw_install_reboot" var2="1"/>
626 </conditions>
627 <action function="sleepcounter">%tw_sleep_total%</action>
628 </action>
629
630 <action>
631 <conditions>
632 <condition var1="tw_sleep" var2="0"/>
633 <condition var1="tw_install_reboot" var2="1"/>
634 </conditions>
635 <actions>
636 <action function="sleep">50000</action>
637 <action function="set">tw_back=main2</action>
638 <action function="page">reboot_system_routine</action>
639 </actions>
640 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100641 </page>
642
643 <page name="flashimage_confirm">
644 <template name="page"/>
645
646 <text style="text_l">
647 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500648 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100649 </text>
650
651 <text style="text_m">
652 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500653 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100654 </text>
655
656 <text style="text_m_accent">
657 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500658 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100659 </text>
660
661 <text style="text_m">
662 <placement x="%indent%" y="%row3_y%"/>
663 <text>%tw_zip_location%</text>
664 </text>
665
666 <text style="text_m_accent">
667 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500668 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100669 </text>
670
671 <text style="text_m">
672 <placement x="%indent%" y="%row5a_y%"/>
673 <text>%tw_file%</text>
674 </text>
675
676 <partitionlist>
677 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%partitionlist_flashimage_height%"/>
678 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500679 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100680 <data name="tw_flash_partition"/>
681 <listtype name="flashimg"/>
682 </partitionlist>
683
epicX8f52c0a2021-02-24 23:12:08 +0530684 <button style="checkbox">
685 <conditions>
686 <condition var1="tw_is_slot_part" op="=" var2="1"/>
687 <condition var1="tw_flash_both_slots" op="=" var2="0"/>
688 <condition var1="tw_has_boot_slots" var2="1"/>
689 </conditions>
690 <placement x="%indent%" y="%row19a_y%" textplacement="6"/>
691 <text>{@flash_ab_both_slots=Flash to both slots}</text>
692 <image resource="checkbox_false"/>
693 <action function="set">tw_flash_both_slots=1</action>
694 </button>
695
696 <button style="checkbox">
697 <conditions>
698 <condition var1="tw_is_slot_part" op="=" var2="1"/>
699 <condition var1="tw_flash_both_slots" op="=" var2="1"/>
700 <condition var1="tw_has_boot_slots" var2="1"/>
701 </conditions>
702 <placement x="%indent%" y="%row19a_y%" textplacement="6"/>
703 <text>{@flash_ab_both_slots=Flash to both slots}</text>
704 <image resource="checkbox_true"/>
705 <action function="set">tw_flash_both_slots=0</action>
706 </button>
707
z31s1g28f0a922015-11-07 18:50:22 +0100708 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500709 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100710 <actions>
711 <action function="set">tw_back=flashimage_confirm</action>
712 <action function="set">tw_action=flashimage</action>
713 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500714 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100715 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500716 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100717 <action function="page">action_page</action>
718 </actions>
719 <action function="flashimage"/>
720 </slider>
721
722 <action>
723 <touch key="back"/>
724 <actions>
725 <action function="set">tw_clear_destination=install</action>
726 <action function="page">clear_vars</action>
727 </actions>
728 </action>
729
730 <action>
731 <touch key="home"/>
732 <actions>
733 <action function="set">tw_clear_destination=main2</action>
734 <action function="page">clear_vars</action>
735 </actions>
736 </action>
737 </page>
738
739 <page name="clear_vars">
740 <action>
741 <action function="set">tw_operation_state=0</action>
742 <action function="set">tw_text1=</action>
743 <action function="set">tw_text2=</action>
744 <action function="set">tw_text3=</action>
745 <action function="set">tw_text4=</action>
746 <action function="set">tw_action_text1=</action>
747 <action function="set">tw_action_text2=</action>
748 <action function="set">tw_action_param=</action>
749 <action function="set">tw_has_action2=0</action>
750 <action function="set">tw_action2=</action>
751 <action function="set">tw_action2_param=</action>
752 <action function="set">tw_has_cancel=0</action>
753 <action function="set">tw_cancel_action=</action>
754 <action function="set">tw_cancel_param=</action>
755 <action function="set">tw_show_exclamation=0</action>
756 <action function="set">tw_show_reboot=0</action>
Noah Jacobson81d638d2019-04-28 00:10:07 -0400757 <action function="set">tw_crypto_user_id=</action>
758 <action function="set">tw_multiuser_warning_accepted=</action>
759 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100760 <action function="page">%tw_clear_destination%</action>
761 </action>
762 </page>
763
Matt Mower908dd252016-05-25 02:26:50 -0500764 <page name="reboot_system_routine">
765 <action>
766 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500767 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500768 <action function="set">tw_has_action2=0</action>
769 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
770 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
771 <action function="set">tw_text3=</action>
772 <action function="set">tw_text4=</action>
773 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
774 <action function="set">tw_action_text2=</action>
775 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
776 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
777 <action function="page">rebootcheck</action>
778 </action>
779 </page>
780
z31s1g28f0a922015-11-07 18:50:22 +0100781 <page name="confirm_action">
782 <template name="page"/>
783
784 <text style="text_l">
785 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500786 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100787 </text>
788
789 <text style="text_m">
790 <placement x="%col1_x_header%" y="%row4_header_y%"/>
791 <text/>
792 </text>
793
794 <text style="text_m_accent">
795 <placement x="%center_x%" y="%row2_y%" placement="5"/>
796 <text>%tw_text1%</text>
797 </text>
798
799 <text style="text_m_accent">
800 <placement x="%center_x%" y="%row3_y%" placement="5"/>
801 <text>%tw_text2%</text>
802 </text>
803
804 <text style="text_m">
805 <placement x="%center_x%" y="%row4_y%" placement="5"/>
806 <text>%tw_text3%</text>
807 </text>
808
809 <text style="text_m">
810 <placement x="%center_x%" y="%row5_y%" placement="5"/>
811 <text>%tw_text4%</text>
812 </text>
813
814 <text style="text_m">
815 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500816 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100817 </text>
818
819 <slider>
820 <text>%tw_slider_text%</text>
821 <action function="page">action_page</action>
822 </slider>
823
824 <action>
825 <touch key="back"/>
826 <actions>
827 <action function="set">tw_clear_destination=%tw_back%</action>
828 <action function="page">clear_vars</action>
829 </actions>
830 </action>
831
832 <action>
833 <touch key="home"/>
834 <action function="page">main</action>
835 </action>
836 </page>
837
838 <page name="action_page">
839 <template name="page"/>
840
841 <text style="text_l">
842 <placement x="%col1_x_header%" y="%row3_header_y%"/>
843 <text>%tw_action_text1%</text>
844 </text>
845
846 <text style="text_m">
847 <placement x="%col1_x_header%" y="%row4_header_y%"/>
848 <text>%tw_action_text2%</text>
849 </text>
850
851 <template name="console"/>
852
853 <template name="progress_bar"/>
854
855 <button style="main_button_half_height">
856 <condition var1="tw_has_cancel" var2="1"/>
857 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500858 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100859 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
860 </button>
861
862 <action>
863 <condition var1="tw_operation_state" var2="1"/>
864 <actions>
865 <action function="page">action_complete</action>
866 </actions>
867 </action>
868
869 <action>
870 <condition var1="tw_has_action2" var2="0"/>
871 <actions>
872 <action function="%tw_action%">%tw_action_param%</action>
873 </actions>
874 </action>
875
876 <action>
877 <condition var1="tw_has_action2" var2="1"/>
878 <actions>
879 <action function="%tw_action%">%tw_action_param%</action>
880 <action function="%tw_action2%">%tw_action2_param%</action>
881 </actions>
882 </action>
883 </page>
884
885 <page name="singleaction_page">
886 <template name="page"/>
887
888 <text style="text_l">
889 <placement x="%col1_x_header%" y="%row3_header_y%"/>
890 <text>%tw_action_text1%</text>
891 </text>
892
893 <text style="text_m">
894 <placement x="%col1_x_header%" y="%row4_header_y%"/>
895 <text>%tw_action_text2%</text>
896 </text>
897
898 <template name="console"/>
899
900 <template name="progress_bar"/>
901
902 <action>
903 <condition var1="tw_operation_state" var2="1"/>
904 <actions>
905 <action function="set">tw_page_done=1</action>
906 </actions>
907 </action>
908
909 <action>
910 <condition var1="tw_has_action2" var2="0"/>
911 <actions>
912 <action function="%tw_action%">%tw_action_param%</action>
913 </actions>
914 </action>
915
916 <action>
917 <condition var1="tw_has_action2" var2="1"/>
918 <actions>
919 <action function="%tw_action%">%tw_action_param%</action>
920 <action function="%tw_action2%">%tw_action2_param%</action>
921 </actions>
922 </action>
923 </page>
924
925 <page name="action_complete">
926 <template name="page"/>
927
928 <text style="text_l">
929 <placement x="%col1_x_header%" y="%row3_header_y%"/>
930 <text>%tw_complete_text1%</text>
931 </text>
932
933 <text style="text_m_fail">
934 <condition var1="tw_operation_status" op="!=" var2="0"/>
935 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500936 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100937 </text>
938
939 <text style="text_m">
940 <condition var1="tw_operation_status" var2="0"/>
941 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500942 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100943 </text>
944
945 <template name="console"/>
946
947 <button style="main_button_half_height">
948 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500949 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100950 <actions>
951 <action function="set">tw_clear_destination=%tw_back%</action>
952 <action function="page">clear_vars</action>
953 </actions>
954 </button>
955
956 <button style="main_button_half_height">
957 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500958 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100959 <actions>
960 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500961 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100962 </actions>
963 </button>
964
965 <action>
966 <touch key="home"/>
967 <actions>
968 <action function="set">tw_clear_destination=main2</action>
969 <action function="page">clear_vars</action>
970 </actions>
971 </action>
972
973 <action>
974 <touch key="back"/>
975 <actions>
976 <action function="set">tw_clear_destination=%tw_back%</action>
977 <action function="page">clear_vars</action>
978 </actions>
979 </action>
980 </page>
981
982 <page name="filecheck">
983 <action>
984 <action function="fileexists">%tw_filecheck%</action>
985 </action>
986
987 <action>
988 <conditions>
989 <condition var1="tw_operation_state" var2="1"/>
990 <condition var1="tw_operation_status" var2="0"/>
991 </conditions>
992 <actions>
993 <action function="set">tw_fileexists=1</action>
994 <action function="page">%tw_existpage%</action>
995 </actions>
996 </action>
997
998 <action>
999 <conditions>
1000 <condition var1="tw_operation_state" var2="1"/>
1001 <condition var1="tw_operation_status" var2="1"/>
1002 </conditions>
1003 <actions>
1004 <action function="set">tw_fileexists=0</action>
1005 <action function="page">%tw_notexistpage%</action>
1006 </actions>
1007 </action>
1008 </page>
1009
1010 <page name="rebootcheck">
1011 <action>
1012 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06001013 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +01001014 </action>
1015
1016 <action>
1017 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1018 <action function="page">confirm_action</action>
1019 </action>
1020 </page>
1021
1022 <page name="wipe">
1023 <template name="page"/>
1024
1025 <text style="text_l">
1026 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001027 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001028 </text>
1029
1030 <text style="text_m">
1031 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001032 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001033 </text>
1034
1035 <text style="text_m_accent">
1036 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001037 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001038 </text>
1039
1040 <text style="text_m_accent">
bigbiffadc599e2020-05-28 19:36:30 +00001041 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04001042 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1043 </text>
1044
1045 <text style="text_m_accent">
1046 <condition var1="tw_has_data_media" var2="1"/>
1047 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001048 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001049 </text>
1050
1051 <text style="text_m_accent">
1052 <conditions>
1053 <condition var1="tw_has_android_secure" var2="1"/>
1054 <condition var1="fileexists" var2="/and-sec"/>
1055 </conditions>
1056 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001057 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001058 </text>
1059
1060 <text style="text_m_accent">
1061 <condition var1="tw_has_sdext_partition" var2="1"/>
1062 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001063 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001064 </text>
1065
1066 <text style="text_m">
1067 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001068 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001069 </text>
1070
1071 <text style="text_m">
1072 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001073 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001074 </text>
1075
1076 <text style="text_m">
1077 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001078 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001079 </text>
1080
1081 <button style="main_button_half_height">
1082 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001083 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001084 <actions>
1085 <action function="set">partitionlisterror=0</action>
1086 <action function="page">advancedwipe</action>
1087 </actions>
1088 </button>
1089
1090 <button style="main_button_half_height">
1091 <condition var1="tw_has_data_media" var2="1"/>
1092 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001093 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001094 <action function="page">formatdata</action>
1095 </button>
1096
1097 <button style="main_button_half_height">
1098 <conditions>
1099 <condition var1="tw_is_encrypted" var2="1"/>
1100 <condition var1="tw_has_data_media" var2="0"/>
1101 </conditions>
1102 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001103 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001104 <actions>
1105 <action function="set">tw_back=wipe</action>
1106 <action function="set">tw_action=wipe</action>
1107 <action function="set">tw_action_param=DATAMEDIA</action>
1108 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001109 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001110 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001111 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1112 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1113 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001114 <action function="page">confirm_action</action>
1115 </actions>
1116 </button>
1117
1118 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001119 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001120 <actions>
1121 <action function="set">tw_back=wipe</action>
1122 <action function="set">tw_action=wipe</action>
1123 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001124 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1125 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001126 <action function="page">action_page</action>
1127 </actions>
1128 </slider>
1129
1130 <action>
1131 <touch key="back"/>
1132 <action function="page">main</action>
1133 </action>
1134
1135 <action>
1136 <touch key="home"/>
1137 <action function="page">main</action>
1138 </action>
1139 </page>
1140
1141 <page name="advancedwipe">
1142 <template name="page"/>
1143
1144 <action>
1145 <action function="set">tw_wipe_list=</action>
1146 </action>
1147
1148 <text style="text_l">
1149 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001150 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001151 </text>
1152
1153 <text style="text_m">
1154 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001155 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001156 </text>
1157
1158 <partitionlist>
1159 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001160 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001161 <data name="tw_wipe_list"/>
1162 <listtype name="wipe"/>
1163 </partitionlist>
1164
1165 <text style="text_m_fail">
1166 <condition var1="partitionlisterror" var2="1"/>
1167 <placement x="%center_x%" y="%row17_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001168 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001169 </text>
1170
1171 <button style="main_button_half_height_full_width">
1172 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001173 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001174 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001175 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001176 <action function="page">checkpartitionlist</action>
1177 </actions>
1178 </button>
1179
1180 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001181 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001182 <actions>
1183 <action function="set">tw_back=advancedwipe</action>
1184 <action function="set">tw_action=wipe</action>
1185 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001186 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1187 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1188 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001189 <action function="page">action_page</action>
1190 </actions>
1191 </slider>
1192
1193 <action>
1194 <touch key="home"/>
1195 <action function="page">main</action>
1196 </action>
1197
1198 <action>
1199 <touch key="back"/>
1200 <action function="page">wipe</action>
1201 </action>
1202 </page>
1203
1204 <page name="formatdata">
1205 <template name="page"/>
1206
1207 <text style="text_l">
1208 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001209 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001210 </text>
1211
1212 <text style="text_m">
1213 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001214 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001215 </text>
1216
1217 <text style="text_m_fail">
1218 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001219 <text>{@format_data_ptr1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001220 </text>
1221
1222 <text style="text_m_fail">
1223 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001224 <text>{@format_data_ptr2=backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001225 </text>
1226
1227 <text style="text_m_fail">
1228 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001229 <text>{@format_data_ptr3=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001230 </text>
1231
Ethan Yonker66a19492015-12-10 10:19:45 -06001232 <text style="text_m_fail">
1233 <condition var1="tw_has_adopted_storage" var2="1"/>
1234 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1235 <text>{@format_data_adopted=Including Adopted Storage}</text>
1236 </text>
1237
z31s1g28f0a922015-11-07 18:50:22 +01001238 <text style="text_m">
1239 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001240 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001241 </text>
1242
1243 <text style="text_m">
1244 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001245 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001246 </text>
1247
1248 <input>
1249 <placement x="%indent%" y="%row10_y%" w="%content_width%" h="%input_height%"/>
1250 <text>%tw_confirm_formatdata%</text>
1251 <data name="tw_confirm_formatdata"/>
1252 <restrict minlen="3" maxlen="3" allow="yes"/>
1253 <action function="page">formatdata_confirm</action>
1254 </input>
1255
1256 <fill color="%accent_color%">
1257 <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width"/>
1258 </fill>
1259
1260 <template name="keyboardtemplate"/>
1261
1262 <action>
1263 <touch key="home"/>
1264 <action function="page">main</action>
1265 </action>
1266
1267 <action>
1268 <touch key="back"/>
1269 <action function="page">wipe</action>
1270 </action>
1271 </page>
1272
1273 <page name="formatdata_confirm">
1274 <action>
1275 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1276 <actions>
1277 <action function="set">tw_back=formatdata</action>
1278 <action function="set">tw_action=wipe</action>
1279 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001280 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1281 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001282 <action function="page">action_page</action>
1283 </actions>
1284 </action>
1285
1286 <action>
1287 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1288 <action function="page">formatdata</action>
1289 </action>
1290 </page>
1291
1292 <page name="checkpartitionlist">
1293 <action>
1294 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1295 <actions>
1296 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001297 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001298 <action function="page">partitionoptions</action>
1299 </actions>
1300 </action>
1301
1302 <action>
1303 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1304 <actions>
1305 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001306 <action function="page">advancedwipe</action>
1307 </actions>
1308 </action>
1309 </page>
1310
1311 <page name="partitionoptions">
1312 <template name="page"/>
1313
1314 <text style="text_l">
1315 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001316 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001317 </text>
1318
1319 <text style="text_m">
1320 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001321 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001322 </text>
1323
1324 <text style="text_m_accent">
1325 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001326 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001327 </text>
1328
1329 <text style="text_m_accent">
1330 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001331 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001332 </text>
1333
1334 <text style="text_m">
1335 <condition var1="tw_partition_is_present" var2="1"/>
1336 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001337 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001338 </text>
1339
1340 <text style="text_m">
1341 <condition var1="tw_partition_is_present" var2="0"/>
1342 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001343 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001344 </text>
1345
1346 <text style="text_m">
1347 <condition var1="tw_partition_removable" var2="1"/>
1348 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001349 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001350 </text>
1351
1352 <text style="text_m">
1353 <condition var1="tw_partition_removable" var2="0"/>
1354 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001355 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001356 </text>
1357
1358 <text style="text_m">
1359 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001360 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001361 </text>
1362
1363 <text style="text_m">
1364 <placement x="%center_x%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001365 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001366 </text>
1367
1368 <text style="text_m">
1369 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001370 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001371 </text>
1372
1373 <text style="text_m">
1374 <placement x="%center_x%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001375 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001376 </text>
1377
1378 <button style="main_button_half_height">
1379 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1380 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001381 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001382 <actions>
1383 <action function="set">tw_back=partitionoptions</action>
1384 <action function="set">tw_action=resize</action>
1385 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1386 <action function="set">tw_has_action2=1</action>
1387 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001388 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001389 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001390 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001391 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1392 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1393 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001394 <action function="page">confirm_action</action>
1395 </actions>
1396 </button>
1397
1398 <button style="main_button_half_height">
1399 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1400 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001401 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001402 <actions>
1403 <action function="set">tw_back=partitionoptions</action>
1404 <action function="set">tw_action=repair</action>
1405 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1406 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001407 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001408 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001409 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1410 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1411 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001412 <action function="page">confirm_action</action>
1413 </actions>
1414 </button>
1415
1416 <button style="main_button_half_height">
1417 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001418 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001419 <action function="page">selectfilesystem</action>
1420 </button>
1421
1422 <action>
1423 <touch key="home"/>
1424 <action function="page">main</action>
1425 </action>
1426
1427 <action>
1428 <touch key="back"/>
1429 <action function="page">advancedwipe</action>
1430 </action>
1431 </page>
1432
1433 <page name="refreshfilesystem">
1434 <action>
1435 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1436 <actions>
1437 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001438 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001439 <action function="page">selectfilesystem</action>
1440 </actions>
1441 </action>
1442
1443 <action>
1444 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1445 <actions>
1446 <action function="set">partitionlisterror=1</action>
1447 <action function="set">tw_wipe_list=</action>
1448 <action function="page">advancedwipe</action>
1449 </actions>
1450 </action>
1451 </page>
1452
1453 <page name="selectfilesystem">
1454 <template name="page"/>
1455
1456 <text style="text_l">
1457 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001458 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001459 </text>
1460
1461 <text style="text_m">
1462 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001463 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001464 </text>
1465
1466 <text style="text_m_accent">
1467 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001468 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001469 </text>
1470
1471 <text style="text_m_accent">
1472 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001473 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001474 </text>
1475
1476 <text style="text_m_fail">
1477 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001478 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001479 </text>
1480
1481 <text style="text_m_fail">
1482 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001483 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001484 </text>
1485
1486 <button style="main_button_half_height">
1487 <condition var1="tw_partition_ext" op="=" var2="1"/>
1488 <placement x="%indent%" y="%row15a_y%"/>
1489 <text>EXT2</text>
1490 <actions>
1491 <action function="set">tw_back=refreshfilesystem</action>
1492 <action function="set">tw_action=changefilesystem</action>
1493 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1494 <action function="set">tw_action_new_file_system=ext2</action>
1495 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001496 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1497 <action function="set">tw_text2=EXT2</action>
1498 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1499 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1500 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001501 <action function="page">confirm_action</action>
1502 </actions>
1503 </button>
1504
1505 <button style="main_button_half_height">
1506 <condition var1="tw_partition_ext" op="=" var2="1"/>
1507 <placement x="%indent%" y="%row18a_y%"/>
1508 <text>EXT3</text>
1509 <actions>
1510 <action function="set">tw_back=refreshfilesystem</action>
1511 <action function="set">tw_action=changefilesystem</action>
1512 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1513 <action function="set">tw_action_new_file_system=ext3</action>
1514 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001515 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1516 <action function="set">tw_text2=EXT3</action>
1517 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1518 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1519 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001520 <action function="page">confirm_action</action>
1521 </actions>
1522 </button>
1523
1524 <button style="main_button_half_height">
1525 <condition var1="tw_partition_ext" op="=" var2="1"/>
1526 <placement x="%indent%" y="%row21a_y%"/>
1527 <text>EXT4</text>
1528 <actions>
1529 <action function="set">tw_back=refreshfilesystem</action>
1530 <action function="set">tw_action=changefilesystem</action>
1531 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1532 <action function="set">tw_action_new_file_system=ext4</action>
1533 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001534 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1535 <action function="set">tw_text2=EXT4</action>
1536 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1537 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1538 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001539 <action function="page">confirm_action</action>
1540 </actions>
1541 </button>
1542
1543 <button style="main_button_half_height">
1544 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1545 <placement x="%center_x%" y="%row15a_y%"/>
1546 <text>FAT</text>
1547 <actions>
1548 <action function="set">tw_back=refreshfilesystem</action>
1549 <action function="set">tw_action=changefilesystem</action>
1550 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1551 <action function="set">tw_action_new_file_system=vfat</action>
1552 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001553 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1554 <action function="set">tw_text2=FAT</action>
1555 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1556 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1557 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001558 <action function="page">confirm_action</action>
1559 </actions>
1560 </button>
1561
1562 <button style="main_button_half_height">
1563 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1564 <placement x="%center_x%" y="%row18a_y%"/>
1565 <text>exFAT</text>
1566 <actions>
1567 <action function="set">tw_back=refreshfilesystem</action>
1568 <action function="set">tw_action=changefilesystem</action>
1569 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1570 <action function="set">tw_action_new_file_system=exfat</action>
1571 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001572 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1573 <action function="set">tw_text2=exFAT</action>
1574 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1575 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1576 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001577 <action function="page">confirm_action</action>
1578 </actions>
1579 </button>
1580
1581 <button style="main_button_half_height">
1582 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1583 <placement x="%center_x%" y="%row21a_y%"/>
1584 <text>F2FS</text>
1585 <actions>
1586 <action function="set">tw_back=refreshfilesystem</action>
1587 <action function="set">tw_action=changefilesystem</action>
1588 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1589 <action function="set">tw_action_new_file_system=f2fs</action>
1590 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001591 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1592 <action function="set">tw_text2=F2FS</action>
1593 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1594 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1595 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001596 <action function="page">confirm_action</action>
1597 </actions>
1598 </button>
1599
1600 <action>
1601 <touch key="home"/>
1602 <action function="page">main</action>
1603 </action>
1604
1605 <action>
1606 <touch key="back"/>
1607 <action function="page">partitionoptions</action>
1608 </action>
1609 </page>
1610
1611 <page name="backup">
1612 <template name="page"/>
1613
Noah Jacobson81d638d2019-04-28 00:10:07 -04001614 <action>
1615 <conditions>
1616 <condition var1="tw_is_fbe" var2="1"/>
1617 <condition var1="tw_all_users_decrypted" var2="0"/>
1618 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1619 </conditions>
1620 <actions>
1621 <action function="set">tw_multiuser_warning_destination=backup</action>
1622 <action function="page">multiuser_warning</action>
1623 </actions>
1624 </action>
1625
z31s1g28f0a922015-11-07 18:50:22 +01001626 <text style="text_l">
1627 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001628 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001629 </text>
1630
1631 <text style="text_m">
1632 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001633 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001634 </text>
1635
1636 <template name="tabs_backup"/>
1637
1638 <fill color="%text_color%">
1639 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1640 </fill>
1641
1642 <button style="tab">
1643 <conditions>
1644 <condition var1="tw_include_encrypted_backup" var2="1"/>
1645 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001646 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001647 </conditions>
1648 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001649 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001650 <font resource="font_s" color="%text_color%"/>
1651 <actions>
1652 <action function="set">tw_password_not_match=0</action>
1653 <action function="page">backupencryption</action>
1654 </actions>
1655 </button>
1656
1657 <button style="tab">
1658 <conditions>
1659 <condition var1="tw_include_encrypted_backup" var2="1"/>
1660 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001661 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001662 </conditions>
1663 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001664 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001665 <font resource="font_s" color="%text_success_color%"/>
1666 <actions>
1667 <action function="set">tw_password_not_match=0</action>
1668 <action function="page">backupencryption</action>
1669 </actions>
1670 </button>
1671
1672 <text style="text_m_accent">
1673 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001674 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001675 </text>
1676
1677 <text style="text_m">
1678 <placement x="%indent%" y="%row4a_y%"/>
1679 <text>%tw_backup_name%</text>
1680 </text>
1681
1682 <fill color="%fileselector_linecolor%">
1683 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width"/>
1684 </fill>
1685
1686 <button>
bigbiffce8f83c2015-12-12 18:30:21 -05001687 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001688 <placement x="indent" y="%row3a_y%" w="%content_width%" h="%navbar_height%"/>
1689 <fill color="%transparent%"/>
1690 <actions>
1691 <action function="set">tw_fileexists=0</action>
1692 <action function="page">backupname1</action>
1693 </actions>
1694 </button>
1695
1696 <partitionlist>
1697 <placement x="%indent%" y="%row6_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001698 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001699 <data name="tw_backup_list"/>
1700 <listtype name="backup"/>
1701 </partitionlist>
1702
1703 <button style="main_button_half_height">
bigbiffce8f83c2015-12-12 18:30:21 -05001704 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001705 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001706 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001707 <actions>
1708 <action function="set">tw_back=backup</action>
1709 <action function="overlay">select_storage</action>
1710 </actions>
1711 </button>
1712
1713 <button style="main_button_half_height">
1714 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001715 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001716 <actions>
1717 <action function="refreshsizes"/>
1718 <action function="page">backup</action>
1719 </actions>
1720 </button>
1721
1722 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001723 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001724 <action function="page">backup_run</action>
1725 </slider>
1726
1727 <action>
1728 <touch key="home"/>
1729 <action function="page">main</action>
1730 </action>
1731
1732 <action>
1733 <touch key="back"/>
1734 <action function="page">main</action>
1735 </action>
1736 </page>
1737
Noah Jacobson81d638d2019-04-28 00:10:07 -04001738 <page name="multiuser_warning">
1739 <template name="page"/>
1740
1741 <text style="text_l">
1742 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1743 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
1744 </text>
1745
1746 <text style="text_m_fail">
1747 <placement x="%center_x%" y="%row7_y%" placement="5"/>
1748 <text>{@multiuser_warning1=Not all users decrypted!}</text>
1749 </text>
1750
1751 <text style="text_m_fail">
1752 <placement x="%center_x%" y="%row8_y%" placement="5"/>
1753 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
1754 </text>
1755
1756 <button style="main_button_half_height_full_width">
1757 <placement x="%indent%" y="%row18a_y%"/>
1758 <text>{@decrypt_users=Decrypt Users}</text>
1759 <action function="page">decrypt_users</action>
1760 </button>
1761
1762 <slider>>
1763 <text>{@multiuser_warning_accept=Continue Anyway}</text>
1764 <actions>
1765 <action function="set">tw_multiuser_warning_accepted=1</action>
1766 <action function="page">%tw_multiuser_warning_destination%</action>
1767 </actions>
1768 </slider>
1769
1770 <action>
1771 <touch key="home"/>
1772 <action function="page">main</action>
1773 </action>
1774
1775 <action>
1776 <touch key="back"/>
1777 <action function="page">main</action>
1778 </action>
1779 </page>
1780
z31s1g28f0a922015-11-07 18:50:22 +01001781 <page name="backup_options">
1782 <template name="page"/>
1783
1784 <text style="text_l">
1785 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001786 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001787 </text>
1788
1789 <text style="text_m">
1790 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001791 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001792 </text>
1793
1794 <template name="tabs_backup"/>
1795
1796 <fill color="%text_color%">
1797 <placement x="%tab3_col2_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1798 </fill>
1799
1800 <button style="tab">
1801 <conditions>
1802 <condition var1="tw_include_encrypted_backup" var2="1"/>
1803 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001804 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001805 </conditions>
1806 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001807 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001808 <font resource="font_s" color="%text_color%"/>
1809 <actions>
1810 <action function="set">tw_password_not_match=0</action>
1811 <action function="page">backupencryption</action>
1812 </actions>
1813 </button>
1814
1815 <button style="tab">
1816 <conditions>
1817 <condition var1="tw_include_encrypted_backup" var2="1"/>
1818 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001819 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001820 </conditions>
1821 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001822 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001823 <font resource="font_s" color="%text_success_color%"/>
1824 <actions>
1825 <action function="set">tw_password_not_match=0</action>
1826 <action function="page">backupencryption</action>
1827 </actions>
1828 </button>
1829
1830 <checkbox>
1831 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001832 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001833 <data variable="tw_use_compression"/>
1834 </checkbox>
1835
1836 <checkbox>
1837 <placement x="%indent%" y="%row5_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001838 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1839 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001840 </checkbox>
1841
1842 <checkbox>
1843 <placement x="%indent%" y="%row6a_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001844 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001845 <data variable="tw_disable_free_space"/>
1846 </checkbox>
1847
Ethan Yonker1b190162016-12-05 15:25:19 -06001848 <text style="text_m">
1849 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01001850 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06001851 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
1852 </text>
1853
1854 <button style="main_button">
1855 <condition var1="tw_has_boot_slots" var2="1"/>
1856 <placement x="%indent%" y="%row19_y%"/>
1857 <text>{@boot_slot_a=Slot A}</text>
1858 <actions>
1859 <action function="set">tw_back=backup_options</action>
1860 <action function="set">tw_action=setbootslot</action>
1861 <action function="set">tw_action_param=A</action>
1862 <action function="set">tw_has_action2=0</action>
1863 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1864 <action function="set">tw_action_text2=</action>
1865 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1866 <action function="page">action_page</action>
1867 </actions>
1868 </button>
1869
1870 <button style="main_button">
1871 <condition var1="tw_has_boot_slots" var2="1"/>
1872 <placement x="%center_x%" y="%row19_y%"/>
1873 <text>{@boot_slot_b=Slot B}</text>
1874 <actions>
1875 <action function="set">tw_back=backup_options</action>
1876 <action function="set">tw_action=setbootslot</action>
1877 <action function="set">tw_action_param=B</action>
1878 <action function="set">tw_has_action2=0</action>
1879 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1880 <action function="set">tw_action_text2=</action>
1881 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1882 <action function="page">action_page</action>
1883 </actions>
1884 </button>
1885
z31s1g28f0a922015-11-07 18:50:22 +01001886 <action>
1887 <touch key="home"/>
1888 <action function="page">main</action>
1889 </action>
1890
1891 <action>
1892 <touch key="back"/>
1893 <action function="page">backup</action>
1894 </action>
1895 </page>
1896
1897 <page name="backupname1">
1898 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001899 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001900 <action function="generatebackupname"/>
1901 </action>
1902
1903 <action>
1904 <action function="page">backupname2</action>
1905 </action>
1906 </page>
1907
1908 <page name="backupname2">
1909 <template name="page"/>
1910
1911 <text style="text_l">
1912 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001913 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001914 </text>
1915
1916 <text style="text_m">
1917 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001918 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001919 </text>
1920
1921 <template name="tabs_backup"/>
1922
1923 <fill color="%text_color%">
1924 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1925 </fill>
1926
1927 <button style="tab">
1928 <conditions>
1929 <condition var1="tw_include_encrypted_backup" var2="1"/>
1930 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001931 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001932 </conditions>
1933 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001934 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001935 <font resource="font_s" color="%text_color%"/>
1936 <actions>
1937 <action function="set">tw_password_not_match=0</action>
1938 <action function="page">backupencryption</action>
1939 </actions>
1940 </button>
1941
1942 <button style="tab">
1943 <conditions>
1944 <condition var1="tw_include_encrypted_backup" var2="1"/>
1945 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001946 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001947 </conditions>
1948 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001949 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001950 <font resource="font_s" color="%text_success_color%"/>
1951 <actions>
1952 <action function="set">tw_password_not_match=0</action>
1953 <action function="page">backupencryption</action>
1954 </actions>
1955 </button>
1956
1957 <text style="text_m_accent">
1958 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001959 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001960 </text>
1961
1962 <input>
1963 <placement x="%indent%" y="%row4_input_y%" w="%content_width%" h="%input_height%"/>
1964 <text>%tw_backup_name%</text>
1965 <data name="tw_backup_name"/>
1966 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1967 <actions>
1968 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1969 <action function="set">tw_existpage=backupname2</action>
1970 <action function="set">tw_notexistpage=backup</action>
1971 <action function="page">filecheck</action>
1972 </actions>
1973 </input>
1974
1975 <fill color="%accent_color%">
1976 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1977 </fill>
1978
1979 <fill color="%text_fail_color%">
1980 <condition var1="tw_fileexists" var2="1"/>
1981 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1982 </fill>
1983
1984 <text style="text_m_fail">
1985 <condition var1="tw_fileexists" var2="1"/>
1986 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001987 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001988 </text>
1989
1990 <button style="main_button_half_height">
1991 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001992 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001993 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001994 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001995 <action function="page">backup</action>
1996 </actions>
1997 </button>
1998
1999 <button style="main_button_half_height">
2000 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002001 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002002 <action function="appenddatetobackupname"/>
2003 </button>
2004
2005 <template name="keyboardtemplate"/>
2006
2007 <action>
2008 <touch key="home"/>
2009 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002010 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002011 <action function="page">main</action>
2012 </actions>
2013 </action>
2014
2015 <action>
2016 <touch key="back"/>
2017 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002018 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002019 <action function="page">backup</action>
2020 </actions>
2021 </action>
2022 </page>
2023
2024 <page name="backupencryption">
2025 <template name="page"/>
2026
2027 <text style="text_l">
2028 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002029 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002030 </text>
2031
2032 <text style="text_m">
2033 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002034 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002035 </text>
2036
2037 <template name="tabs_backup"/>
2038
2039 <button style="tab">
2040 <conditions>
2041 <condition var1="tw_include_encrypted_backup" var2="1"/>
2042 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002043 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002044 </conditions>
2045 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002046 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002047 <font resource="font_s" color="%text_color%"/>
2048 <actions>
2049 <action function="set">tw_password_not_match=0</action>
2050 <action function="page">backupencryption</action>
2051 </actions>
2052 </button>
2053
2054 <button style="tab">
2055 <conditions>
2056 <condition var1="tw_include_encrypted_backup" var2="1"/>
2057 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002058 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002059 </conditions>
2060 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002061 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002062 <font resource="font_s" color="%text_success_color%"/>
2063 <actions>
2064 <action function="set">tw_password_not_match=0</action>
2065 <action function="page">backupencryption</action>
2066 </actions>
2067 </button>
2068
2069 <fill color="%text_color%">
2070 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2071 </fill>
2072
2073 <text style="text_m_accent">
2074 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002075 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002076 </text>
2077
2078 <text style="text_m">
2079 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002080 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002081 </text>
2082
2083 <input>
2084 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2085 <text>%tw_backup_encrypt_display%</text>
2086 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2087 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2088 <action function="page">backupencryption2</action>
2089 </input>
2090
2091 <fill color="%accent_color%">
2092 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2093 </fill>
2094
2095 <fill color="%text_fail_color%">
2096 <condition var1="tw_password_not_match" var2="1"/>
2097 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2098 </fill>
2099
2100 <text style="text_m_fail">
2101 <condition var1="tw_password_not_match" var2="1"/>
2102 <placement x="%indent%" y="%row8a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002103 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002104 </text>
2105
2106 <button style="main_button_half_height">
2107 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002108 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002109 <actions>
2110 <action function="set">tw_encrypt_backup=0</action>
2111 <action function="set">tw_backup_password=</action>
2112 <action function="set">tw_backup_password2=</action>
2113 <action function="set">tw_backup_encrypt_display=</action>
2114 <action function="set">tw_backup_encrypt_display2=</action>
2115 <action function="page">backup</action>
2116 </actions>
2117 </button>
2118
2119 <template name="keyboardtemplate"/>
2120
2121 <action>
2122 <touch key="home"/>
2123 <action function="page">main</action>
2124 </action>
2125
2126 <action>
2127 <touch key="back"/>
2128 <action function="page">backup</action>
2129 </action>
2130 </page>
2131
2132 <page name="backupencryption2">
2133 <template name="page"/>
2134
2135 <text style="text_l">
2136 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002137 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002138 </text>
2139
2140 <text style="text_m">
2141 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002142 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002143 </text>
2144
2145 <template name="tabs_backup"/>
2146
2147 <button style="tab">
2148 <conditions>
2149 <condition var1="tw_include_encrypted_backup" var2="1"/>
2150 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002151 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002152 </conditions>
2153 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002154 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002155 <font resource="font_s" color="%text_color%"/>
2156 <actions>
2157 <action function="set">tw_password_not_match=0</action>
2158 <action function="page">backupencryption</action>
2159 </actions>
2160 </button>
2161
2162 <button style="tab">
2163 <conditions>
2164 <condition var1="tw_include_encrypted_backup" var2="1"/>
2165 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002166 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002167 </conditions>
2168 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002169 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002170 <font resource="font_s" color="%text_success_color%"/>
2171 <actions>
2172 <action function="set">tw_password_not_match=0</action>
2173 <action function="page">backupencryption</action>
2174 </actions>
2175 </button>
2176
2177 <fill color="%text_color%">
2178 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2179 </fill>
2180
2181 <text style="text_m_accent">
2182 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002183 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002184 </text>
2185
2186 <text style="text_m">
2187 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002188 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002189 </text>
2190
2191 <input>
2192 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2193 <text>%tw_backup_encrypt_display2%</text>
2194 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2195 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2196 <action function="page">checkbackuppassword</action>
2197 </input>
2198
2199 <fill color="%accent_color%">
2200 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2201 </fill>
2202
2203 <button style="main_button_half_height">
2204 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002205 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002206 <actions>
2207 <action function="set">tw_encrypt_backup=0</action>
2208 <action function="set">tw_backup_password=</action>
2209 <action function="set">tw_backup_password2=</action>
2210 <action function="set">tw_backup_encrypt_display=</action>
2211 <action function="set">tw_backup_encrypt_display2=</action>
2212 <action function="page">backup</action>
2213 </actions>
2214 </button>
2215
2216 <template name="keyboardtemplate"/>
2217
2218 <action>
2219 <touch key="home"/>
2220 <action function="page">main</action>
2221 </action>
2222
2223 <action>
2224 <touch key="back"/>
2225 <action function="page">backup</action>
2226 </action>
2227 </page>
2228
2229 <page name="checkbackuppassword">
2230 <action>
2231 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2232 <actions>
2233 <action function="set">tw_encrypt_backup=1</action>
2234 <action function="page">backup</action>
2235 </actions>
2236 </action>
2237
2238 <action>
2239 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2240 <actions>
2241 <action function="set">tw_encrypt_backup=0</action>
2242 <action function="set">tw_password_not_match=1</action>
2243 <action function="set">tw_backup_password=</action>
2244 <action function="set">tw_backup_password2=</action>
2245 <action function="set">tw_backup_encrypt_display=</action>
2246 <action function="set">tw_backup_encrypt_display2=</action>
2247 <action function="page">backupencryption</action>
2248 </actions>
2249 </action>
2250 </page>
2251
2252 <page name="backup_run">
2253 <template name="page"/>
2254
2255 <text style="text_l">
2256 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2257 <text>%tw_operation%</text>
2258 </text>
2259
2260 <text style="text_m">
2261 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2262 <text>%tw_partition% Partition</text>
2263 </text>
2264
2265 <template name="console"/>
2266
2267 <template name="progress_bar"/>
2268
2269 <text style="text_m_accent">
2270 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002271 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002272 </text>
2273
2274 <text style="text_m">
2275 <placement x="%indent%" y="%row20_y%"/>
2276 <text>%tw_file_progress%</text>
2277 </text>
2278
2279 <text style="text_m">
2280 <placement x="%indent%" y="%row21_y%"/>
2281 <text>%tw_size_progress%</text>
2282 </text>
2283
2284 <button style="main_button_half_height">
2285 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002286 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002287 <action function="cancelbackup"/>
2288 </button>
2289
2290 <action>
2291 <action function="nandroid">backup</action>
2292 </action>
2293
2294 <action>
2295 <condition var1="tw_operation_state" var2="1"/>
2296 <condition var1="tw_cancel_backup" var2="0"/>
2297 <actions>
2298 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002299 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002300 <action function="set">tw_show_reboot=1</action>
2301 <action function="page">action_complete</action>
2302 </actions>
2303 </action>
2304
2305 <action>
2306 <condition var1="tw_operation_state" var2="1"/>
2307 <condition var1="tw_cancel_backup" var2="1"/>
2308 <actions>
2309 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002310 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002311 <action function="set">tw_show_reboot=1</action>
2312 <action function="page">action_complete</action>
2313 </actions>
2314 </action>
2315 </page>
2316
2317 <page name="restore">
2318 <template name="page"/>
2319
Noah Jacobson81d638d2019-04-28 00:10:07 -04002320 <action>
2321 <conditions>
2322 <condition var1="tw_is_fbe" var2="1"/>
2323 <condition var1="tw_all_users_decrypted" var2="0"/>
2324 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2325 </conditions>
2326 <actions>
2327 <action function="set">tw_multiuser_warning_destination=restore</action>
2328 <action function="page">multiuser_warning</action>
2329 </actions>
2330 </action>
2331
z31s1g28f0a922015-11-07 18:50:22 +01002332 <text style="text_l">
2333 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002334 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002335 </text>
2336
2337 <text style="text_m">
2338 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002339 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002340 </text>
2341
2342 <template name="sort_options"/>
2343
2344 <fileselector>
2345 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002346 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002347 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002348 <path name="tw_backups_folder"/>
2349 <data name="tw_restore" default=""/>
2350 <selection name="tw_restore_name"/>
2351 </fileselector>
2352
2353 <button style="main_button_half_height">
2354 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002355 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002356 <actions>
2357 <action function="set">tw_back=restore</action>
2358 <action function="overlay">select_storage</action>
2359 </actions>
2360 </button>
2361
2362 <action>
bigbiff8f5fad32021-11-03 20:39:02 -04002363 <condition var1="tw_crypto_pwtype" op="!=" var2="0"/>
2364 <actions>
2365 <action function="page">restore_keymaster</action>
2366 </actions>
2367 </action>
2368
2369 <action>
2370 <condition var1="tw_restore" op="modified"/>
2371 <actions>
2372 <action function="readBackup"/>
2373 <action function="page">restore_read</action>
2374 </actions>
2375 </action>
2376
2377 <action>
2378 <touch key="home"/>
2379 <action function="page">main</action>
2380 </action>
2381
2382 <action>
2383 <touch key="back"/>
2384 <action function="page">main</action>
2385 </action>
2386 </page>
2387
2388
2389 <page name="restore_force">
2390 <template name="page"/>
2391
2392 <action>
2393 <conditions>
2394 <condition var1="tw_is_fbe" var2="1"/>
2395 <condition var1="tw_all_users_decrypted" var2="0"/>
2396 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2397 </conditions>
2398 <actions>
sekaiacg750c6aa2021-12-06 12:27:46 +08002399 <action function="set">tw_multiuser_warning_destination=restore_force</action>
bigbiff8f5fad32021-11-03 20:39:02 -04002400 <action function="page">multiuser_warning</action>
2401 </actions>
2402 </action>
2403
2404 <text style="text_l">
2405 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2406 <text>{@restore_hdr=Restore}</text>
2407 </text>
2408
2409 <text style="text_m">
2410 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2411 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
2412 </text>
2413
2414 <template name="sort_options"/>
2415
2416 <fileselector>
2417 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
2418 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
2419 <filter folders="1" files="1" nav="0" extn=".ab"/>
2420 <path name="tw_backups_folder"/>
2421 <data name="tw_restore" default=""/>
2422 <selection name="tw_restore_name"/>
2423 </fileselector>
2424
2425 <button style="main_button_half_height">
2426 <placement x="%indent%" y="%row21a_y%"/>
2427 <text>{@select_storage_btn=Select Storage}</text>
2428 <actions>
2429 <action function="set">tw_back=restore</action>
2430 <action function="overlay">select_storage</action>
2431 </actions>
2432 </button>
2433
2434 <action>
z31s1g28f0a922015-11-07 18:50:22 +01002435 <condition var1="tw_restore" op="modified"/>
2436 <actions>
2437 <action function="readBackup"/>
2438 <action function="page">restore_read</action>
2439 </actions>
2440 </action>
2441
2442 <action>
2443 <touch key="home"/>
2444 <action function="page">main</action>
2445 </action>
2446
2447 <action>
2448 <touch key="back"/>
2449 <action function="page">main</action>
2450 </action>
2451 </page>
2452
2453 <page name="restore_read">
2454 <action>
2455 <condition var1="tw_restore_encrypted" var2="1"/>
2456 <actions>
2457 <action function="set">tw_password_fail=0</action>
2458 <action function="page">restore_decrypt</action>
2459 </actions>
2460 </action>
2461
2462 <action>
2463 <condition var1="tw_restore_encrypted" var2="0"/>
2464 <actions>
2465 <action function="page">restore_select</action>
2466 </actions>
2467 </action>
2468 </page>
2469
2470 <page name="restore_decrypt">
2471 <template name="page"/>
2472
2473 <text style="text_l">
2474 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002475 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002476 </text>
2477
2478 <text style="text_m">
2479 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002480 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002481 </text>
2482
2483 <text style="text_m_accent">
2484 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002485 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002486 </text>
2487
2488 <input>
2489 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2490 <text>%tw_restore_display%</text>
2491 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2492 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2493 <action function="page">try_restore_decrypt</action>
2494 </input>
2495
2496 <fill color="%accent_color%">
2497 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2498 </fill>
2499
2500 <fill color="%text_fail_color%">
2501 <condition var1="tw_password_fail" var2="1"/>
2502 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2503 </fill>
2504
2505 <text style="text_m_fail">
2506 <condition var1="tw_password_fail" var2="1"/>
2507 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002508 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002509 </text>
2510
2511 <button style="main_button_half_height">
2512 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002513 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002514 <actions>
2515 <action function="set">tw_page_done=1</action>
2516 <action function="page">restore</action>
2517 </actions>
2518 </button>
2519
2520 <button style="main_button_half_height">
2521 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002522 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002523 <actions>
2524 <action function="set">tw_back=restore</action>
2525 <action function="set">tw_action=cmd</action>
2526 <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 -05002527 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2528 <action function="set">tw_text2=%tw_restore_name%</action>
2529 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2530 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2531 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2532 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002533 <action function="page">confirm_action</action>
2534 </actions>
2535 </button>
2536
2537 <template name="keyboardtemplate"/>
2538
2539 <action>
2540 <touch key="home"/>
2541 <action function="page">main</action>
2542 </action>
2543
2544 <action>
2545 <touch key="back"/>
2546 <action function="page">restore</action>
2547 </action>
2548 </page>
2549
2550 <page name="try_restore_decrypt">
2551 <template name="page"/>
2552
2553 <text style="text_l">
2554 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002555 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002556 </text>
2557
2558 <text style="text_m">
2559 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002560 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002561 </text>
2562
2563 <template name="console"/>
2564
2565 <template name="progress_bar"/>
2566
2567 <action>
2568 <action function="decrypt_backup"/>
2569 </action>
2570
2571 <action>
2572 <conditions>
2573 <condition var1="tw_operation_state" var2="1"/>
2574 <condition var1="tw_operation_status" op="!=" var2="0"/>
2575 </conditions>
2576 <actions>
2577 <action function="set">tw_password_fail=1</action>
2578 <action function="page">restore_decrypt</action>
2579 </actions>
2580 </action>
2581
2582 <action>
2583 <conditions>
2584 <condition var1="tw_operation_state" var2="1"/>
2585 <condition var1="tw_operation_status" op="=" var2="0"/>
2586 </conditions>
2587 <actions>
2588 <action function="set">tw_page_done=1</action>
2589 <action function="page">restore_select</action>
2590 </actions>
2591 </action>
2592 </page>
2593
2594 <page name="restore_select">
2595 <template name="page"/>
2596
2597 <text style="text_l">
2598 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002599 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002600 </text>
2601
2602 <text style="text_m">
2603 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002604 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002605 </text>
2606
2607 <text style="text_m_accent">
2608 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002609 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002610 </text>
2611
2612 <text style="text_m">
2613 <placement x="%indent%" y="%row3_y%"/>
2614 <text>%tw_restore_name%</text>
2615 </text>
2616
2617 <fill color="%fileselector_linecolor%">
2618 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width"/>
2619 </fill>
2620
2621 <button>
2622 <placement x="indent" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2623 <fill color="%transparent%"/>
2624 <actions>
2625 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2626 <action function="set">tw_fileexists=0</action>
2627 <action function="page">renamebackup</action>
2628 </actions>
2629 </button>
2630
2631 <partitionlist>
2632 <placement x="%indent%" y="%row4a_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002633 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002634 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2635 <listtype name="restore"/>
2636 </partitionlist>
2637
2638 <checkbox>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002639 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002640 <placement x="%indent%" y="%row17_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002641 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2642 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002643 </checkbox>
2644
2645 <button style="main_button_half_height">
2646 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002647 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002648 <actions>
2649 <action function="set">tw_back=restore</action>
2650 <action function="set">tw_action=cmd</action>
2651 <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 -05002652 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002653 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002654 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2655 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2656 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2657 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002658 <action function="page">confirm_action</action>
2659 </actions>
2660 </button>
2661
2662 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002663 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002664 <action function="page">restore_run</action>
2665 </slider>
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</action>
2675 </action>
2676 </page>
2677
2678 <page name="renamebackup">
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%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002688 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002689 </text>
2690
2691 <text style="text_m_accent">
2692 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002693 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002694 </text>
2695
2696 <input>
2697 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2698 <text>%tw_backup_rename%</text>
2699 <data name="tw_backup_rename"/>
2700 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2701 <actions>
2702 <action function="set">tw_back=restore</action>
2703 <action function="set">tw_action=cmd</action>
2704 <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 -05002705 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2706 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2707 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2708 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2709 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002710 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2711 <action function="set">tw_existpage=renamebackup</action>
2712 <action function="set">tw_notexistpage=confirm_action</action>
2713 <action function="page">filecheck</action>
2714 </actions>
2715 </input>
2716
2717 <fill color="%accent_color%">
2718 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2719 </fill>
2720
2721 <fill color="%text_fail_color%">
2722 <condition var1="tw_fileexists" var2="1"/>
2723 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2724 </fill>
2725
2726 <text style="text_m_fail">
2727 <condition var1="tw_fileexists" var2="1"/>
2728 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002729 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002730 </text>
2731
2732 <button style="main_button_half_height">
2733 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002734 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002735 <action function="page">restore_select</action>
2736 </button>
2737
2738 <template name="keyboardtemplate"/>
2739
2740 <action>
2741 <touch key="home"/>
2742 <action function="page">main</action>
2743 </action>
2744
2745 <action>
2746 <touch key="back"/>
2747 <action function="page">restore_select</action>
2748 </action>
2749 </page>
2750
2751 <page name="restore_run">
2752 <template name="page"/>
2753
2754 <text style="text_l">
2755 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002756 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002757 </text>
2758
2759 <text style="text_m">
2760 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2761 <text>%tw_operation% %tw_partition%</text>
2762 </text>
2763
2764 <template name="console"/>
2765
2766 <template name="progress_bar"/>
2767
2768 <text style="text_m_accent">
2769 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002770 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002771 </text>
2772
2773 <text style="text_m">
2774 <placement x="%indent%" y="%row20_y%"/>
2775 <text>%tw_size_progress%</text>
2776 </text>
2777
2778 <action>
2779 <condition var1="tw_operation_state" var2="1"/>
2780 <actions>
2781 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002782 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002783 <action function="set">tw_show_reboot=1</action>
2784 <action function="page">action_complete</action>
2785 </actions>
2786 </action>
2787
2788 <action>
2789 <action function="nandroid">restore</action>
2790 </action>
2791 </page>
2792
2793 <page name="mount">
2794 <template name="page"/>
2795
2796 <text style="text_l">
2797 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002798 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002799 </text>
2800
2801 <text style="text_m">
2802 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002803 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002804 </text>
2805
2806 <partitionlist>
2807 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002808 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002809 <listtype name="mount"/>
2810 </partitionlist>
2811
2812 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002813 <conditions>
bigbiffb640d972021-10-12 19:08:10 -04002814 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
bigbiffee7b7ff2020-03-23 15:08:27 -04002815 <condition var1="tw_is_super" op="=" var2="0"/>
2816 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002817 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002818 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002819 <image resource="checkbox_false"/>
2820 <action function="mountsystemtoggle">1</action>
2821 </button>
2822
2823 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002824 <conditions>
2825 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2826 <condition var1="tw_is_super" op="=" var2="0"/>
2827 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002828 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002829 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002830 <image resource="checkbox_true"/>
2831 <actions>
2832 <action function="set">tw_lifetime_writes=2</action>
2833 <action function="page">system_readonly_check</action>
2834 </actions>
2835 </button>
2836
2837 <button style="main_button_half_height">
2838 <condition var1="tw_has_usb_storage" var2="1"/>
2839 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002840 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002841 <action function="page">usb_mount</action>
2842 </button>
2843
2844 <button style="main_button_half_height">
2845 <conditions>
2846 <condition var1="tw_is_encrypted" var2="1"/>
2847 <condition var1="tw_is_decrypted" var2="0"/>
2848 </conditions>
2849 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002850 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04002851 <action function="set">tw_crypto_user_id=0</action>
2852 <action function="set">tw_crypto_password=</action>
2853 <action function="set">tw_password_fail=0</action>
2854 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002855 <action function="page">decrypt</action>
2856 </button>
2857
2858 <button style="main_button_half_height">
2859 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002860 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002861 <actions>
2862 <action function="set">tw_back=mount</action>
2863 <action function="overlay">select_storage</action>
2864 </actions>
2865 </button>
2866
2867 <button style="main_button_half_height">
2868 <conditions>
2869 <condition var1="tw_has_mtp" var2="1"/>
2870 <condition var1="tw_mtp_enabled" var2="0"/>
2871 </conditions>
2872 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002873 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002874 <action function="startmtp"/>
2875 </button>
2876
2877 <button style="main_button_half_height">
2878 <conditions>
2879 <condition var1="tw_has_mtp" var2="1"/>
2880 <condition var1="tw_mtp_enabled" var2="1"/>
2881 </conditions>
2882 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002883 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002884 <action function="stopmtp"/>
2885 </button>
2886
2887 <action>
2888 <touch key="home"/>
2889 <action function="page">main</action>
2890 </action>
2891
2892 <action>
2893 <touch key="back"/>
2894 <action function="page">main</action>
2895 </action>
2896 </page>
2897
2898 <page name="usb_mount">
2899 <template name="page"/>
2900
2901 <text style="text_l">
2902 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002903 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002904 </text>
2905
2906 <text style="text_m">
2907 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002908 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002909 </text>
2910
2911 <text style="text_m_accent">
2912 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002913 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002914 </text>
2915
2916 <text style="text_m">
2917 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002918 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002919 </text>
2920
2921 <text style="text_m">
2922 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002923 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002924 </text>
2925
2926 <button style="main_button_half_height">
2927 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002928 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002929 <action function="page">usb_umount</action>
2930 </button>
2931
2932 <action>
2933 <action function="mount">usb</action>
2934 <action function="set">tw_busy=1</action>
2935 </action>
2936 </page>
2937
2938 <page name="usb_umount">
2939 <action>
2940 <action function="unmount">usb</action>
2941 </action>
2942
2943 <action>
2944 <action function="page">mount</action>
2945 <action function="set">tw_busy=0</action>
2946 </action>
2947 </page>
2948
2949 <page name="system_readonly_check">
2950 <action>
2951 <action function="checkpartitionlifetimewrites">/system</action>
2952 </action>
2953
2954 <action>
2955 <condition var1="tw_lifetime_writes" var2="1"/>
2956 <actions>
2957 <action function="mountsystemtoggle">0</action>
2958 <action function="page">mount</action>
2959 </actions>
2960 </action>
2961
2962 <action>
2963 <condition var1="tw_lifetime_writes" var2="0"/>
2964 <actions>
2965 <action function="set">tw_back=mount</action>
2966 <action function="page">system_readonly</action>
2967 </actions>
2968 </action>
2969 </page>
2970
bigbiffdf8436b2020-08-30 16:22:34 -04002971 <page name="fastbootreboot">
2972 <template name="page"/>
2973
2974 <text style="text_l">
2975 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2976 <text>{@reboot_hdr=Reboot}</text>
2977 </text>
2978
2979 <listbox style="advanced_listbox">
2980 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
2981
2982 <listitem name="{@rb_system_btn=System}">
2983 <condition var1="tw_reboot_system" var2="1"/>
2984 <actions>
2985 <action function="set">tw_back=fastbootreboot</action>
2986 <action function="set">tw_action=reboot</action>
2987 <action function="set">tw_action_param=system</action>
2988 <action function="set">tw_reboot_param=system</action>
2989 <action function="set">tw_has_action2=0</action>
2990 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2991 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2992 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2993 <action function="page">confirm_action</action>
2994 </actions>
2995 </listitem>
2996
2997 <listitem name="{@rb_poweroff_btn=Power Off}">
2998 <condition var1="tw_reboot_poweroff" var2="1"/>
2999 <actions>
3000 <action function="set">tw_back=fastbootreboot</action>
3001 <action function="set">tw_action=reboot</action>
3002 <action function="set">tw_action_param=poweroff</action>
3003 <action function="set">tw_reboot_param=poweroff</action>
3004 <action function="set">tw_has_action2=0</action>
3005 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3006 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3007 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
3008 <action function="page">confirm_action</action>
3009 </actions>
3010 </listitem>
3011
3012 <listitem name="{@rb_recovery_btn=Recovery}">
3013 <condition var1="tw_reboot_recovery" var2="1"/>
3014 <actions>
3015 <action function="set">tw_back=fastbootreboot</action>
3016 <action function="set">tw_action=reboot</action>
3017 <action function="set">tw_action_param=recovery</action>
3018 <action function="set">tw_reboot_param=recovery</action>
3019 <action function="set">tw_has_action2=0</action>
3020 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3021 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3022 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3023 <action function="page">confirm_action</action>
3024 </actions>
3025 </listitem>
3026
3027 <listitem name="{@rb_bootloader_btn=Bootloader}">
3028 <condition var1="tw_reboot_bootloader" var2="1"/>
3029 <actions>
3030 <action function="set">tw_back=fastbootreboot</action>
3031 <action function="set">tw_action=reboot</action>
3032 <action function="set">tw_action_param=bootloader</action>
3033 <action function="set">tw_reboot_param=bootloader</action>
3034 <action function="set">tw_has_action2=0</action>
3035 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3036 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3037 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3038 <action function="page">confirm_action</action>
3039 </actions>
3040 </listitem>
3041
3042 <listitem name="{@rb_download_btn=Download}">
3043 <condition var1="tw_download_mode" var2="1"/>
3044 <actions>
3045 <action function="set">tw_back=fastbootreboot</action>
3046 <action function="set">tw_action=reboot</action>
3047 <action function="set">tw_action_param=download</action>
3048 <action function="set">tw_reboot_param=download</action>
3049 <action function="set">tw_has_action2=0</action>
3050 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3051 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3052 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3053 <action function="page">confirm_action</action>
3054 </actions>
3055 </listitem>
3056
3057 <listitem name="{@fastboot_button=Fastboot}">
3058 <condition var1="tw_fastboot_mode" var2="1"/>
3059 <actions>
3060 <action function="set">tw_back=fastbootreboot</action>
3061 <action function="set">tw_action=reboot</action>
3062 <action function="set">tw_action_param=fastboot</action>
3063 <action function="set">tw_reboot_param=fastboot</action>
3064 <action function="set">tw_has_action2=0</action>
3065 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3066 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3067 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3068 <action function="page">confirm_action</action>
3069 </actions>
3070 </listitem>
3071
Aseem Athaledd81b9a2021-11-08 13:12:30 +05303072 <listitem name="{@rb_edl_btn=EDL}">
bigbiffdf8436b2020-08-30 16:22:34 -04003073 <condition var1="tw_edl_mode" var2="1"/>
3074 <actions>
3075 <action function="set">tw_back=fastbootreboot</action>
3076 <action function="set">tw_action=reboot</action>
3077 <action function="set">tw_action_param=edl</action>
3078 <action function="set">tw_reboot_param=edl</action>
3079 <action function="set">tw_has_action2=0</action>
3080 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3081 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3082 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3083 <action function="page">confirm_action</action>
3084 </actions>
3085 </listitem>
3086 </listbox>
3087
3088 <action>
3089 <touch key="home"/>
3090 <action function="page">fastboot</action>
3091 </action>
3092
3093 <action>
3094 <touch key="back"/>
3095 <action function="page">fastboot</action>
3096 </action>
3097 </page>
3098
z31s1g28f0a922015-11-07 18:50:22 +01003099 <page name="reboot">
3100 <template name="page"/>
3101
3102 <text style="text_l">
3103 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003104 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003105 </text>
3106
bigbiffdf8436b2020-08-30 16:22:34 -04003107 <listbox style="advanced_listbox">
3108 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003109
bigbiffdf8436b2020-08-30 16:22:34 -04003110 <listitem name="{@rb_system_btn=System}">
3111 <condition var1="tw_reboot_system" var2="1"/>
3112 <actions>
3113 <action function="set">tw_back=reboot</action>
3114 <action function="page">reboot_system_routine</action>
3115 </actions>
3116 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003117
bigbiffdf8436b2020-08-30 16:22:34 -04003118 <listitem name="{@rb_poweroff_btn=Power Off}">
3119 <condition var1="tw_reboot_poweroff" var2="1"/>
3120 <actions>
3121 <action function="set">tw_back=reboot</action>
3122 <action function="set">tw_action=reboot</action>
3123 <action function="set">tw_action_param=poweroff</action>
3124 <action function="set">tw_reboot_param=poweroff</action>
3125 <action function="set">tw_has_action2=0</action>
3126 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3127 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
3128 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3129 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3130 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
3131 <action function="page">rebootcheck</action>
3132 </actions>
3133 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003134
bigbiffdf8436b2020-08-30 16:22:34 -04003135 <listitem name="{@rb_recovery_btn=Recovery}">
3136 <condition var1="tw_reboot_recovery" var2="1"/>
3137 <actions>
3138 <action function="set">tw_back=reboot</action>
3139 <action function="set">tw_action=reboot</action>
3140 <action function="set">tw_action_param=recovery</action>
3141 <action function="set">tw_reboot_param=recovery</action>
3142 <action function="set">tw_has_action2=0</action>
3143 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3144 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3145 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3146 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3147 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3148 <action function="page">rebootcheck</action>
3149 </actions>
3150 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003151
bigbiffdf8436b2020-08-30 16:22:34 -04003152 <listitem name="{@rb_bootloader_btn=Bootloader}">
3153 <condition var1="tw_reboot_bootloader" var2="1"/>
3154 <actions>
3155 <action function="set">tw_back=reboot</action>
3156 <action function="set">tw_action=reboot</action>
3157 <action function="set">tw_action_param=bootloader</action>
3158 <action function="set">tw_reboot_param=bootloader</action>
3159 <action function="set">tw_has_action2=0</action>
3160 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3161 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3162 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3163 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3164 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3165 <action function="page">rebootcheck</action>
3166 </actions>
3167 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003168
bigbiffdf8436b2020-08-30 16:22:34 -04003169 <listitem name="{@rb_download_btn=Download}">
3170 <condition var1="tw_download_mode" var2="1"/>
3171 <actions>
3172 <action function="set">tw_back=reboot</action>
3173 <action function="set">tw_action=reboot</action>
3174 <action function="set">tw_action_param=download</action>
3175 <action function="set">tw_reboot_param=download</action>
3176 <action function="set">tw_has_action2=0</action>
3177 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3178 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3179 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3180 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3181 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3182 <action function="page">rebootcheck</action>
3183 </actions>
3184 </listitem>
3185
3186 <listitem name="{@fastboot_button=Fastboot}">
3187 <condition var1="tw_fastboot_mode" var2="1"/>
3188 <actions>
3189 <action function="set">tw_back=reboot</action>
3190 <action function="set">tw_action=reboot</action>
3191 <action function="set">tw_action_param=fastboot</action>
3192 <action function="set">tw_reboot_param=fastboot</action>
3193 <action function="set">tw_has_action2=0</action>
3194 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3195 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3196 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3197 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3198 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3199 <action function="page">rebootcheck</action>
3200 </actions>
3201 </listitem>
3202
Aseem Athaledd81b9a2021-11-08 13:12:30 +05303203 <listitem name="{@rb_edl_btn=EDL}">
bigbiffdf8436b2020-08-30 16:22:34 -04003204 <condition var1="tw_edl_mode" var2="1"/>
3205 <actions>
3206 <action function="set">tw_back=reboot</action>
3207 <action function="set">tw_action=reboot</action>
3208 <action function="set">tw_action_param=edl</action>
3209 <action function="set">tw_reboot_param=edl</action>
3210 <action function="set">tw_has_action2=0</action>
3211 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3212 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3213 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3214 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3215 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3216 <action function="page">rebootcheck</action>
3217 </actions>
Captain Throwback52978932021-09-05 15:11:07 -04003218 </listitem>
bigbiffdf8436b2020-08-30 16:22:34 -04003219 </listbox>
mauronofrioe9a49ef2018-10-03 13:38:16 +02003220
Ethan Yonker1b190162016-12-05 15:25:19 -06003221 <text style="text_m">
3222 <condition var1="tw_has_boot_slots" var2="1"/>
LinkBoi0055763ca2021-11-16 10:06:28 +02003223 <placement x="%center_x%" y="%row17_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06003224 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
3225 </text>
3226
LinkBoi0055763ca2021-11-16 10:06:28 +02003227 <button style="main_button">
Ethan Yonker1b190162016-12-05 15:25:19 -06003228 <condition var1="tw_has_boot_slots" var2="1"/>
3229 <placement x="%indent%" y="%row19_y%"/>
3230 <text>{@boot_slot_a=Slot A}</text>
3231 <actions>
3232 <action function="set">tw_back=reboot</action>
3233 <action function="set">tw_action=setbootslot</action>
3234 <action function="set">tw_action_param=A</action>
3235 <action function="set">tw_has_action2=0</action>
3236 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3237 <action function="set">tw_action_text2=</action>
3238 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3239 <action function="page">action_page</action>
3240 </actions>
3241 </button>
3242
LinkBoi0055763ca2021-11-16 10:06:28 +02003243 <button style="main_button">
Ethan Yonker1b190162016-12-05 15:25:19 -06003244 <condition var1="tw_has_boot_slots" var2="1"/>
3245 <placement x="%center_x%" y="%row19_y%"/>
3246 <text>{@boot_slot_b=Slot B}</text>
3247 <actions>
3248 <action function="set">tw_back=reboot</action>
3249 <action function="set">tw_action=setbootslot</action>
3250 <action function="set">tw_action_param=B</action>
3251 <action function="set">tw_has_action2=0</action>
3252 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3253 <action function="set">tw_action_text2=</action>
3254 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3255 <action function="page">action_page</action>
3256 </actions>
3257 </button>
3258
z31s1g28f0a922015-11-07 18:50:22 +01003259 <action>
3260 <touch key="home"/>
3261 <action function="page">main</action>
3262 </action>
3263
3264 <action>
3265 <touch key="back"/>
3266 <action function="page">main</action>
3267 </action>
3268 </page>
3269
Ethan Yonker8581ab32020-12-17 14:51:50 -06003270 <page name="installapp">
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003271 <template name="page"/>
3272
3273 <text style="text_l">
3274 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003275 <text>%tw_appinstall_title%</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003276 </text>
3277
3278 <text style="text_m">
3279 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003280 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003281 </text>
3282
3283 <text style="text_m_accent">
3284 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3285 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3286 </text>
3287
3288 <text style="text_m_accent">
3289 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3290 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3291 </text>
3292
3293 <checkbox>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003294 <condition var1="tw_mount_system_ro" var2="0"/>
3295 <placement x="%indent%" y="%row7_y%"/>
3296 <text>{@reboot_install_app_system=Install as a System App}</text>
3297 <data variable="tw_app_install_system"/>
3298 </checkbox>
3299
3300 <button style="main_button_half_height">
3301 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003302 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003303 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003304 </button>
3305
3306 <slider>
3307 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3308 <actions>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003309 <action function="set">tw_action=installapp</action>
3310 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3311 <action function="set">tw_action_text2=</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003312 <action function="set">tw_complete_text1={@successful=Successful}</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003313 <action function="page">action_page</action>
3314 </actions>
3315 </slider>
3316
3317 <action>
3318 <touch key="home"/>
3319 <actions>
3320 <action function="set">tw_app_install_status=0</action>
3321 <action function="page">main</action>
3322 </actions>
3323 </action>
3324
3325 <action>
3326 <touch key="back"/>
3327 <actions>
3328 <action function="set">tw_app_install_status=0</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003329 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003330 </actions>
3331 </action>
3332 </page>
3333
z31s1g28f0a922015-11-07 18:50:22 +01003334 <page name="system_readonly">
3335 <template name="page"/>
3336
3337 <text style="text_l">
3338 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003339 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003340 </text>
3341
3342 <text style="text_m_accent">
3343 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003344 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003345 </text>
3346
3347 <text style="text_m">
3348 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003349 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003350 </text>
3351
3352 <text style="text_m">
3353 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003354 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003355 </text>
3356
3357 <text style="text_m">
3358 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003359 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003360 </text>
3361
3362 <text style="text_m">
3363 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003364 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003365 </text>
3366
3367 <text style="text_m_fail">
3368 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003369 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003370 </text>
3371
3372 <text style="text_m_fail">
3373 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003374 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003375 </text>
3376
3377 <checkbox>
3378 <condition var1="tw_is_encrypted" var2="0"/>
3379 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003380 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003381 <data variable="tw_never_show_system_ro_page"/>
3382 </checkbox>
3383
3384 <button style="main_button_half_height">
3385 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003386 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003387 <actions>
3388 <action function="mountsystemtoggle">1</action>
3389 <action function="set">tw_page_done=1</action>
3390 <action function="page">%tw_back%</action>
3391 </actions>
3392 </button>
3393
z31s1g608d7ff2016-01-18 19:47:25 +01003394 <button style="main_button_half_height">
3395 <placement x="%center_x%" y="%row18a_y%"/>
3396 <text>{@sel_lang_btn=Select Language}</text>
3397 <action function="overlay">select_language</action>
3398 </button>
3399
z31s1g28f0a922015-11-07 18:50:22 +01003400 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003401 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003402 <actions>
3403 <action function="mountsystemtoggle">0</action>
3404 <action function="set">tw_page_done=1</action>
3405 <action function="page">%tw_back%</action>
3406 </actions>
3407 </slider>
3408 </page>
3409
3410 <page name="settings">
3411 <template name="page"/>
3412
3413 <text style="text_l">
3414 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003415 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003416 </text>
3417
3418 <text style="text_m">
3419 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003420 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003421 </text>
3422
3423 <template name="tabs_settings"/>
3424
3425 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003426 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003427 </fill>
3428
3429 <listbox style="scrolllist">
3430 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3431 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003432 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003433 <data variable="tw_signed_zip_verify"/>
3434 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003435 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3436 <data variable="tw_install_reboot"/>
3437 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003438 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003439 <data variable="tw_rm_rf"/>
3440 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003441 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3442 <data variable="tw_disable_free_space"/>
3443 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003444 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3445 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003446 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003447 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3448 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003449 </listitem>
epicX9597b842021-03-20 21:58:17 +05303450 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
3451 <data variable="tw_skip_digest_check_zip"/>
3452 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003453 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003454 <data variable="tw_military_time"/>
3455 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003456 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003457 <data variable="tw_samsung_navbar"/>
3458 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003459 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003460 <data variable="tw_simulate_actions"/>
3461 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003462 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003463 <condition var1="tw_simulate_actions" var2="1"/>
3464 <data variable="tw_simulate_fail"/>
3465 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003466 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3467 <condition var1="tw_no_sha2" var2="0"/>
3468 <data variable="tw_use_sha2"/>
3469 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003470 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3471 <data variable="tw_unmount_system"/>
3472 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003473 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
3474 <conditions>
3475 <condition var1="tw_has_boot_slots" var2="1"/>
3476 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwback1f5d4ca2023-01-11 13:46:30 -05003477 <condition var1="tw_no_flash_current_twrp" var2="0"/>
nebrassyac29e692021-05-20 13:03:30 +02003478 </conditions>
3479 <data variable="tw_auto_reflashtwrp"/>
3480 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003481 </listbox>
3482
3483 <button style="main_button_half_height">
3484 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003485 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003486 <actions>
3487 <action function="set">tw_samsung_navbar=0</action>
3488 <action function="set">tw_tab_icons=0</action>
3489 <action function="restoredefaultsettings"/>
3490 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003491 </button>
3492
3493 <action>
3494 <touch key="home"/>
3495 <action function="page">main</action>
3496 </action>
3497
3498 <action>
3499 <touch key="back"/>
3500 <action function="page">main</action>
3501 </action>
3502 </page>
3503
3504 <page name="settings_timezone">
3505 <template name="page"/>
3506
3507 <text style="text_l">
3508 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003509 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003510 </text>
3511
3512 <text style="text_m">
3513 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003514 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003515 </text>
3516
3517 <template name="tabs_settings"/>
3518
3519 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003520 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003521 </fill>
3522
3523 <listbox>
3524 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003525 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003526 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003527 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3528 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3529 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3530 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3531 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3532 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3533 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3534 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3535 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3536 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3537 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3538 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3539 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3540 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3541 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3542 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3543 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3544 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3545 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3546 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3547 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3548 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3549 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3550 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003551 </listbox>
3552
3553 <text style="text_m_accent">
3554 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003555 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003556 </text>
3557
3558 <button style="button_quarter_width">
3559 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003560 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003561 <action function="set">tw_time_zone_guioffset=0</action>
3562 </button>
3563
3564 <button style="button_quarter_width">
3565 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003566 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003567 <action function="set">tw_time_zone_guioffset=15</action>
3568 </button>
3569
3570 <button style="button_quarter_width">
3571 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003572 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003573 <action function="set">tw_time_zone_guioffset=30</action>
3574 </button>
3575
3576 <button style="button_quarter_width">
3577 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003578 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003579 <action function="set">tw_time_zone_guioffset=45</action>
3580 </button>
3581
3582 <checkbox>
3583 <placement x="%indent%" y="%row18a_y%"/>
3584 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003585 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003586 <data variable="tw_time_zone_guidst"/>
3587 <image checked="checkbox_true" unchecked="checkbox_false"/>
3588 </checkbox>
3589
3590 <text color="%text_color%">
3591 <font resource="font_m"/>
3592 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003593 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003594 </text>
3595
3596 <button>
3597 <highlight color="%highlight_color%"/>
3598 <placement x="%center_x%" y="%row21a_y%"/>
3599 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003600 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003601 <image resource="main_button_half_height"/>
3602 <action function="setguitimezone"/>
3603 </button>
3604
3605 <action>
3606 <touch key="home"/>
3607 <action function="page">main</action>
3608 </action>
3609
3610 <action>
3611 <touch key="back"/>
3612 <action function="page">main</action>
3613 </action>
3614 </page>
3615
3616 <page name="settings_screen">
3617 <template name="page"/>
3618
3619 <text style="text_l">
3620 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003621 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003622 </text>
3623
3624 <text style="text_m">
3625 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003626 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003627 </text>
3628
3629 <template name="tabs_settings"/>
3630
3631 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003632 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003633 </fill>
3634
3635 <button>
3636 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3637 <font resource="font_m" color="%text_color%"/>
3638 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3639 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003640 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003641 <image resource="checkbox_false"/>
3642 <action function="set">tw_screen_timeout_secs=60</action>
3643 </button>
3644
3645 <button>
3646 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3647 <font resource="font_m" color="%text_color%"/>
3648 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3649 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003650 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003651 <image resource="checkbox_true"/>
3652 <action function="set">tw_screen_timeout_secs=0</action>
3653 </button>
3654
3655 <slidervalue>
3656 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3657 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3658 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003659 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003660 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3661 </slidervalue>
3662
3663 <slidervalue>
3664 <condition var1="tw_has_brightnesss_file" var2="1"/>
3665 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003666 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003667 <data variable="tw_brightness_pct" min="10" max="100"/>
3668 <actions>
3669 <action function="set">tw_brightness=%tw_brightness_max%</action>
3670 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3671 <action function="compute">tw_brightness/100</action>
3672 <action function="setbrightness">%tw_brightness%</action>
3673 </actions>
3674 </slidervalue>
3675
3676 <action>
3677 <touch key="home"/>
3678 <action function="page">main</action>
3679 </action>
3680
3681 <action>
3682 <touch key="back"/>
3683 <action function="page">main</action>
3684 </action>
3685 </page>
3686
3687 <page name="settings_vibration">
3688 <template name="page"/>
3689
3690 <text style="text_l">
3691 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003692 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003693 </text>
3694
3695 <text style="text_m">
3696 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003697 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003698 </text>
3699
3700 <template name="tabs_settings"/>
3701
3702 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003703 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003704 </fill>
3705
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003706 <text style="text_m">
3707 <condition var1="tw_disable_haptics" var2="1"/>
3708 <placement x="%indent%" y="%row4_y%"/>
3709 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3710 </text>
3711
z31s1g28f0a922015-11-07 18:50:22 +01003712 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003713 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003714 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003715 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003716 <data variable="tw_button_vibrate" min="0" max="300"/>
3717 </slidervalue>
3718
3719 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003720 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003721 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003722 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003723 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3724 </slidervalue>
3725
3726 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003727 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003728 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003729 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003730 <data variable="tw_action_vibrate" min="0" max="500"/>
3731 </slidervalue>
3732
3733 <action>
3734 <touch key="home"/>
3735 <action function="page">main</action>
3736 </action>
3737
3738 <action>
3739 <touch key="back"/>
3740 <action function="page">main</action>
3741 </action>
3742 </page>
3743
Ethan Yonker74db1572015-10-28 12:44:49 -05003744 <page name="settings_language">
3745 <template name="page"/>
3746
3747 <text style="text_l">
3748 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3749 <text>{@settings_hdr=Settings}</text>
3750 </text>
3751
3752 <text style="text_m">
3753 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3754 <text>{@language_hdr=Language - %tw_language_display%}</text>
3755 </text>
3756
3757 <template name="tabs_settings"/>
3758
3759 <fill color="%text_color%">
3760 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3761 </fill>
3762
3763 <listbox>
3764 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3765 <text>{@select_language=Select Language:}</text>
3766 <icon selected="radio_true" unselected="radio_false" />
3767 <data name="tw_language" />
3768 </listbox>
3769
3770 <button style="main_button_half_height">
3771 <placement x="%center_x%" y="%row21a_y%"/>
3772 <text>{@set_language_btn=Set Language}</text>
3773 <action function="setlanguage"></action>
3774 </button>
3775
3776 <action>
3777 <touch key="home" />
3778 <action function="page">main</action>
3779 </action>
3780
3781 <action>
3782 <touch key="back" />
3783 <action function="page">settings</action>
3784 </action>
3785 </page>
3786
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003787 <page name="copylog">
3788 <template name="page"/>
3789
3790 <text style="text_l">
3791 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3792 <text>{@copying_log=Copy Logs to SD Card}</text>
3793 </text>
3794
3795 <checkbox>
Captain Throwback52978932021-09-05 15:11:07 -04003796 <condition var1="tw_logcat_exists" var2="1"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003797 <placement x="%indent%" y="%row4_y%"/>
Captain Throwback52978932021-09-05 15:11:07 -04003798 <text>{@include_logcat=Include Logcat}</text>
3799 <data variable="tw_include_logcat" value="1"/>
3800 </checkbox>
3801
3802 <checkbox>
3803 <placement x="%indent%" y="%row6_y%"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003804 <text>{@include_kernel_log=Include Kernel Log}</text>
3805 <data variable="tw_include_kernel_log" value="1"/>
3806 </checkbox>
3807
3808 <slider>
3809 <text>{@copying_log=Copy Logs to SD Card}</text>
3810 <actions>
3811 <action function="set">tw_back=advanced</action>
3812 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003813 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3814 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003815 <action function="page">action_page</action>
3816 </actions>
3817 </slider>
3818
3819 <action>
3820 <touch key="home"/>
3821 <action function="page">main</action>
3822 </action>
3823
3824 <action>
3825 <touch key="back"/>
3826 <actions>
3827 <action function="page">advanced</action>
3828 </actions>
3829 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003830 </page>
3831
z31s1g28f0a922015-11-07 18:50:22 +01003832 <page name="advanced">
3833 <template name="page"/>
3834
3835 <text style="text_l">
3836 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003837 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003838 </text>
3839
3840 <button style="main_button">
3841 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003842 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003843 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003844 </button>
3845
3846 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003847 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003848 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003849 <text>{@adb_sideload_btn=ADB Sideload}</text>
3850 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003851 </button>
3852
3853 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003854 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003855 <text>{@terminal_btn=Terminal}</text>
3856 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003857 </button>
3858
3859 <button style="main_button">
3860 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003861 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003862 <action function="page">filemanagerlist</action>
3863 </button>
3864
Ethan Yonker64e0a652018-07-25 09:52:17 -05003865 <listbox style="advanced_listbox">
3866 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
Ian Macdonaldef7768e2021-03-01 21:31:07 +01003867 <listitem name="{@change_twrp_folder_btn=Change TWRP folder}">
nebrassya9e4c462021-12-20 20:09:40 +01003868 <condition var1="tw_is_decrypted" var2="1"/>
epicXa721f952021-01-04 13:01:31 +05303869 <action function="page">changeTwrpFolder</action>
3870 </listitem>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003871 <listitem name="{@decrypt_users=Decrypt Users}">
3872 <conditions>
3873 <condition var1="tw_is_fbe" var2="1"/>
3874 <condition var1="tw_all_users_decrypted" var2="0"/>
3875 </conditions>
3876 <actions>
3877 <action function="set">tw_crypto_user_id=</action>
3878 <action function="page">decrypt_users</action>
3879 </actions>
3880 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003881 <listitem name="{@reload_theme_btn=Reload Theme}">
3882 <action function="reload"/>
3883 </listitem>
3884 <listitem name="{@part_sd_btn=Partition SD Card}">
3885 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3886 <actions>
3887 <action function="set">partitionlisterror=0</action>
3888 <action function="page">partsdcardsel</action>
3889 </actions>
3890 </listitem>
3891 <listitem name="{@fix_context_btn=Fix Contexts}">
3892 <condition var1="tw_has_data_media" var2="1"/>
3893 <action function="page">fixcontexts</action>
3894 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003895 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3896 <condition var1="tw_has_injecttwrp" var2="1"/>
3897 <actions>
3898 <action function="set">tw_back=advanced</action>
3899 <action function="set">tw_action=reinjecttwrp</action>
3900 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3901 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3902 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection 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 Yonker53796e72019-01-11 22:49:52 -06003907 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3908 <conditions>
3909 <condition var1="tw_has_boot_slots" var2="1"/>
3910 <condition var1="tw_has_repack_tools" var2="1"/>
3911 </conditions>
3912 <actions>
3913 <action function="set">tw_repack_kernel=0</action>
3914 <action function="page">repackselect</action>
3915 </actions>
3916 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003917 <listitem name="{@reflash_twrp=Flash Current TWRP}">
3918 <conditions>
3919 <condition var1="tw_has_boot_slots" var2="1"/>
3920 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwback1f5d4ca2023-01-11 13:46:30 -05003921 <condition var1="tw_no_flash_current_twrp" var2="0"/>
nebrassyac29e692021-05-20 13:03:30 +02003922 </conditions>
3923 <actions>
3924 <action function="set">tw_repack_kernel=0</action>
3925 <action function="set">tw_back=advanced</action>
3926 <action function="set">tw_action=reflashtwrp</action>
3927 <action function="set">tw_text1={@reflash_twrp_confirm=Flash Current TWRP?}</action>
3928 <action function="set">tw_action_text1={@reflashing_twrp=Flashing TWRP...}</action>
3929 <action function="set">tw_complete_text1={@reflash_twrp_complete=Done Flashing TWRP}</action>
3930 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3931 <action function="page">confirm_action</action>
3932 </actions>
3933 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003934 <listitem name="{@install_kernel=Install Kernel}">
3935 <conditions>
3936 <condition var1="tw_has_boot_slots" var2="1"/>
3937 <condition var1="tw_has_repack_tools" var2="1"/>
3938 </conditions>
3939 <actions>
3940 <action function="set">tw_repack_kernel=1</action>
3941 <action function="page">repackselect</action>
3942 </actions>
3943 </listitem>
3944 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3945 <conditions>
3946 <condition var1="tw_has_boot_slots" var2="1"/>
3947 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwbackbc2cfa32021-09-16 10:04:26 -04003948 <condition var1="tw_uses_initramfs" var2="1"/>
Ethan Yonker53796e72019-01-11 22:49:52 -06003949 </conditions>
3950 <actions>
3951 <action function="set">tw_back=advanced</action>
3952 <action function="set">tw_action=fixabrecoverybootloop</action>
3953 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3954 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3955 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3956 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3957 <action function="page">confirm_action</action>
3958 </actions>
3959 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003960 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3961 <condition var1="tw_app_install_status" var2="1"/>
3962 <actions>
3963 <action function="set">tw_back=advanced</action>
3964 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3965 <action function="page">installapp</action>
3966 </actions>
3967 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003968 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3969 <condition var1="tw_app_installed_in_system" var2="1"/>
3970 <actions>
3971 <action function="set">tw_back=advanced</action>
3972 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3973 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3974 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3975 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3976 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3977 <action function="page">confirm_action</action>
3978 </actions>
3979 </listitem>
bigbiffcfa875c2021-06-20 16:20:27 -04003980 <listitem name="{@unmap_super_devices=Unmap Super Devices}">
me-cafebabe2136fc52022-07-20 06:42:18 +08003981 <condition var1="tw_is_super" op="=" var2="1"/>
bigbiffcfa875c2021-06-20 16:20:27 -04003982 <actions>
3983 <action function="set">tw_back=advanced</action>
3984 <action function="set">tw_action=unmapsuperdevices</action>
3985 <action function="set">tw_text1={@unmap_super_devices_confirm=Unmap all Super Devices?}</action>
3986 <action function="set">tw_action_text1={@unmapping_super_devices=Unmapping Super Devices...}</action>
3987 <action function="set">tw_complete_text1={@unmap_super_devices_complete=Unmapped all Super Devices}</action>
3988 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3989 <action function="page">confirm_action</action>
3990 </actions>
3991 </listitem>
bigbiffd21252f2021-09-18 15:56:32 -04003992 <listitem name="{@merges_snapshots=Merge Snapshots}">
bigbiffab76bd72021-10-11 10:17:48 -04003993 <condition var1="tw_virtual_ab.enabled" op="=" var2="1"/>
bigbiffd21252f2021-09-18 15:56:32 -04003994 <actions>
3995 <action function="set">tw_back=advanced</action>
3996 <action function="set">tw_action=mergesnapshots</action>
3997 <action function="set">tw_text1={@merge_snapshots_confirm=Merge Snapshots?}</action>
3998 <action function="set">tw_action_text1={@merging_snapshots=Merging Snapshots...}</action>
3999 <action function="set">tw_complete_text1={@merging_snapshots_complete=Merged Snapshots}</action>
4000 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4001 <action function="page">confirm_action</action>
4002 </actions>
4003 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004004 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01004005
4006 <action>
4007 <touch key="home"/>
4008 <action function="page">main</action>
4009 </action>
4010
4011 <action>
4012 <touch key="back"/>
4013 <action function="page">main</action>
4014 </action>
4015 </page>
4016
Ethan Yonker483e9f42016-01-11 22:21:18 -06004017 <page name="partsdcardsel">
4018 <template name="page"/>
4019
4020 <text style="text_l">
4021 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4022 <text>{@advanced_hdr=Advanced}</text>
4023 </text>
4024
4025 <text style="text_m">
4026 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4027 <text>{@part_sd_hdr=Partition SD Card}</text>
4028 </text>
4029
z31s1g782e1c92016-01-30 16:50:09 +01004030 <partitionlist>
4031 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004032 <text>{@sel_storage_list=Select Storage}</text>
4033 <data name="tw_storage_path"/>
4034 <listtype name="storage"/>
4035 </partitionlist>
4036
4037 <text style="text_m_fail">
4038 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01004039 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004040 <text>{@invalid_partsd_sel=You must select a removable device}</text>
4041 </text>
4042
z31s1g782e1c92016-01-30 16:50:09 +01004043 <button style="main_button_half_height">
4044 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004045 <text>{@ok_btn=OK}</text>
4046 <actions>
4047 <action function="getpartitiondetails">tw_storage_path</action>
4048 <action function="page">partsdcardcheck</action>
4049 </actions>
4050 </button>
4051
4052 <action>
4053 <touch key="home"/>
4054 <action function="page">main</action>
4055 </action>
4056
4057 <action>
4058 <touch key="back"/>
4059 <action function="page">advanced</action>
4060 </action>
4061 </page>
4062
4063 <page name="partsdcardcheck">
4064 <action>
4065 <condition var1="tw_partition_removable" op="=" var2="1"/>
4066 <actions>
4067 <action function="set">partitionlisterror=0</action>
4068 <action function="page">partsdcard</action>
4069 </actions>
4070 </action>
4071
4072 <action>
4073 <condition var1="tw_partition_removable" op="!=" var2="1"/>
4074 <actions>
4075 <action function="set">partitionlisterror=1</action>
4076 <action function="page">partsdcardsel</action>
4077 </actions>
4078 </action>
4079 </page>
4080
z31s1g28f0a922015-11-07 18:50:22 +01004081 <page name="partsdcard">
4082 <template name="page"/>
4083
4084 <text style="text_l">
4085 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004086 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004087 </text>
4088
4089 <text style="text_m">
4090 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004091 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004092 </text>
4093
4094 <text style="text_m_fail">
4095 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004096 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004097 </text>
4098
4099 <text style="text_m_fail">
4100 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004101 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004102 </text>
4103
4104 <text style="text_m_accent">
4105 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004106 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004107 </text>
4108
4109 <text style="text_m">
4110 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4111 <text>%tw_sdext_size%</text>
4112 </text>
4113
4114 <button style="button_quarter_width">
4115 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004116 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004117 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004118 </button>
4119
4120 <button style="button_quarter_width">
4121 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004122 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004123 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004124 </button>
4125
4126 <text style="text_m_accent">
4127 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004128 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004129 </text>
4130
4131 <text style="text_m">
4132 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
4133 <text>%tw_swap_size%</text>
4134 </text>
4135
4136 <button style="button_quarter_width">
4137 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004138 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004139 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004140 </button>
4141
4142 <button style="button_quarter_width">
4143 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004144 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004145 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004146 </button>
4147
4148 <text style="text_m_accent">
4149 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004150 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004151 </text>
4152
4153 <text style="text_m">
4154 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
4155 <text>%tw_sdpart_file_system%</text>
4156 </text>
4157
4158 <button style="button_quarter_width">
4159 <placement x="%indent%" y="%row14_y%"/>
4160 <text>EXT3</text>
4161 <action function="set">tw_sdpart_file_system=ext3</action>
4162 </button>
4163
4164 <button style="button_quarter_width">
4165 <placement x="%btn4_col4_x%" y="%row14_y%"/>
4166 <text>EXT4</text>
4167 <action function="set">tw_sdpart_file_system=ext4</action>
4168 </button>
4169
4170 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004171 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004172 <action function="page">partsdcardaction</action>
4173 <actions>
4174 <action function="set">tw_back=partsdcard</action>
4175 <action function="set">tw_action=partitionsd</action>
4176 <action function="set">tw_has_action2=1</action>
4177 <action function="set">tw_action2=set</action>
4178 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004179 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4180 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4181 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004182 <action function="page">action_page</action>
4183 </actions>
4184 </slider>
4185
4186 <action>
4187 <touch key="home"/>
4188 <action function="page">main</action>
4189 </action>
4190
4191 <action>
4192 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004193 <actions>
4194 <action function="set">partitionlisterror=0</action>
4195 <action function="page">partsdcardsel</action>
4196 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004197 </action>
4198 </page>
4199
Ethan Yonker53796e72019-01-11 22:49:52 -06004200 <page name="repackselect">
4201 <template name="page"/>
4202
4203 <text style="text_l">
4204 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4205 <text>{@repack_image_hdr=Select Image}</text>
4206 </text>
4207
4208 <text style="text_m">
4209 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4210 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
4211 </text>
4212
4213 <template name="sort_options"/>
4214
4215 <fileselector>
4216 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
4217 <text>%tw_zip_location%</text>
4218 <filter extn=".img" folders="1" files="1"/>
4219 <path name="tw_zip_location" default="/sdcard"/>
4220 <data name="tw_filename"/>
4221 <selection name="tw_file"/>
4222 </fileselector>
4223
4224 <button style="main_button_half_height">
4225 <placement x="%indent%" y="%row21a_y%"/>
4226 <text>{@select_storage_btn=Select Storage}</text>
4227 <actions>
4228 <action function="set">tw_back=repackselect</action>
4229 <action function="overlay">select_storage</action>
4230 </actions>
4231 </button>
4232
4233 <action>
4234 <conditions>
4235 <condition var1="tw_filename" op="modified"/>
4236 </conditions>
4237 <action function="page">repackconfirm</action>
4238 </action>
4239
4240 <action>
4241 <touch key="back"/>
4242 <action function="page">advanced</action>
4243 </action>
4244
4245 <action>
4246 <touch key="home"/>
4247 <action function="page">main</action>
4248 </action>
4249 </page>
4250
4251 <page name="repackconfirm">
4252 <template name="page"/>
4253
4254 <text style="text_l">
4255 <condition var1="tw_repack_kernel" var2="1"/>
4256 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4257 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4258 </text>
4259
4260 <text style="text_l">
4261 <condition var1="tw_repack_kernel" var2="0"/>
4262 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4263 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4264 </text>
4265
4266 <text style="text_m">
4267 <condition var1="tw_repack_kernel" var2="1"/>
4268 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4269 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4270 </text>
4271
4272 <text style="text_m">
4273 <condition var1="tw_repack_kernel" var2="0"/>
4274 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4275 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4276 </text>
4277
4278 <text style="text_m_accent">
4279 <placement x="%indent%" y="%row2_y%"/>
4280 <text>{@folder=Folder:}</text>
4281 </text>
4282
4283 <text style="text_m">
4284 <placement x="%indent%" y="%row3_y%"/>
4285 <text>%tw_zip_location%</text>
4286 </text>
4287
4288 <text style="text_m_accent">
4289 <placement x="%indent%" y="%row4_y%"/>
4290 <text>{@file=File:}</text>
4291 </text>
4292
4293 <text style="text_m">
4294 <placement x="%indent%" y="%row5_y%"/>
4295 <text>%tw_file%</text>
4296 </text>
4297
4298 <checkbox>
4299 <placement x="%indent%" y="%row7_y%"/>
4300 <text>{@repack_backup_first=Back up existing image first}</text>
4301 <data variable="tw_repack_backup_first"/>
4302 </checkbox>
4303
4304 <button style="main_button_half_height">
4305 <placement x="%indent%" y="%row16_y%"/>
4306 <text>{@install_cancel=Do not Install}</text>
4307 <action function="page">repackselect</action>
4308 </button>
4309
4310 <slider>
4311 <text>{@swipe_to_install=Swipe to Install}</text>
4312 <actions>
4313 <action function="set">tw_back=advanced</action>
4314 <action function="set">tw_action=repackimage</action>
4315 <action function="set">tw_action_param=/boot</action>
4316 <action function="set">tw_action_text1={@installing=Installing...}</action>
4317 <action function="set">tw_action_text2=</action>
4318 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4319 <action function="page">action_page</action>
4320 </actions>
4321 </slider>
4322
4323 <action>
4324 <touch key="back"/>
4325 <action function="page">repackselect</action>
4326 </action>
4327
4328 <action>
4329 <touch key="home"/>
4330 <action function="page">main</action>
4331 </action>
4332 </page>
4333
z31s1g28f0a922015-11-07 18:50:22 +01004334 <page name="lock">
4335 <background color="%semi_transparent%"/>
4336
4337 <image>
4338 <image resource="unlock_icon"/>
4339 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4340 </image>
4341
4342 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004343 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004344 <action function="overlay"/>
4345 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004346
4347 <action>
4348 <touch key="power"/>
4349 <action function="togglebacklight"/>
4350 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004351 </page>
4352
4353 <page name="filemanagerlist">
4354 <template name="page"/>
4355
4356 <text style="text_l">
4357 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004358 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004359 </text>
4360
4361 <text style="text_m">
4362 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004363 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004364 </text>
4365
4366 <template name="sort_options"/>
4367
4368 <fileselector>
4369 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4370 <text>%tw_file_location1%</text>
4371 <filter folders="1" files="1"/>
4372 <path name="tw_file_location1" default="/"/>
4373 <data name="tw_filename1"/>
4374 <selection name="tw_selection1"/>
4375 </fileselector>
4376
4377 <button style="fab">
4378 <image resource="fab_selectfolder"/>
4379 <actions>
4380 <action function="set">tw_filename1=tw_file_location1</action>
4381 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004382 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004383 <action function="page">filemanageroptions</action>
4384 </actions>
4385 </button>
4386
4387 <action>
4388 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004389 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004390 <action function="set">tw_fm_isfolder=0</action>
4391 </actions>
4392 </action>
4393
4394 <action>
4395 <touch key="home"/>
4396 <action function="page">main</action>
4397 </action>
4398
4399 <action>
4400 <touch key="back"/>
4401 <action function="page">advanced</action>
4402 </action>
4403
4404 <action>
4405 <condition var1="tw_filename1" op="modified"/>
4406 <action function="page">filemanageroptions</action>
4407 </action>
4408 </page>
4409
4410 <page name="filemanageroptions">
4411 <template name="page"/>
4412
4413 <text style="text_l">
4414 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004415 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004416 </text>
4417
4418 <text style="text_m">
4419 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004420 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004421 </text>
4422
4423 <text style="text_m_accent">
4424 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004425 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004426 </text>
4427
4428 <text style="text_m">
4429 <placement x="%indent%" y="%row3_y%"/>
4430 <text>%tw_filename1%</text>
4431 </text>
4432
4433 <button style="main_button_half_height">
Captain Throwback16dd81b2021-02-12 19:32:36 -05004434 <conditions>
4435 <condition var1="tw_include_nano" var2="1"/>
4436 <condition var1="tw_fm_isfolder" var2="0"/>
4437 </conditions>
4438 <placement x="%indent%" y="%row12a_y%"/>
4439 <text>{@fm_edit_file=Edit File}</text>
4440 <actions>
4441 <action function="editfile">nano "%tw_filename1%"</action>
4442 <action function="page">terminalcommand</action>
4443 </actions>
4444 </button>
4445
4446 <button style="main_button_half_height">
Mohd Faraz77bbeb02020-08-12 12:29:42 +00004447 <condition var1="tw_fm_isfolder" var2="1"/>
4448 <placement x="%center_x%" y="%row12a_y%"/>
4449 <text>{@fm_open_terminal_btn=Open Terminal Here}</text>
4450 <action function="changeterminal">%tw_filename1%</action>
4451 </button>
4452
4453 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01004454 <condition var1="tw_fm_isfolder" var2="0"/>
4455 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004456 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004457 <actions>
4458 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004459 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004460 <action function="page">choosedestinationfolder</action>
4461 </actions>
4462 </button>
4463
4464 <button style="main_button_half_height">
4465 <condition var1="tw_fm_isfolder" var2="1"/>
4466 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004467 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004468 <actions>
4469 <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 -05004470 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004471 <action function="page">choosedestinationfolder</action>
4472 </actions>
4473 </button>
4474
4475 <button style="main_button_half_height">
4476 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004477 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004478 <actions>
4479 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004480 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004481 <action function="page">choosedestinationfolder</action>
4482 </actions>
4483 </button>
4484
4485 <button style="main_button_half_height">
4486 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004487 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004488 <actions>
4489 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004490 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004491 <action function="set">tw_fm_text2=</action>
4492 <action function="set">tw_fm_text3=</action>
4493 <action function="set">tw_include_text3=0</action>
4494 <action function="set">tw_back=filemanageroptions</action>
4495 <action function="page">filemanagerconfirm</action>
4496 </actions>
4497 </button>
4498
4499 <button style="main_button_half_height">
4500 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004501 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004502 <actions>
4503 <action function="set">tw_filemanager_rename=0000</action>
4504 <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">filemanagerchmod</action>
4509 </actions>
4510 </button>
4511
4512 <button style="main_button_half_height">
4513 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004514 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004515 <actions>
4516 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004517 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004518 <action function="set">tw_fm_text2=</action>
4519 <action function="set">tw_fm_text3=</action>
4520 <action function="set">tw_include_text3=0</action>
4521 <action function="set">tw_back=filemanageroptions</action>
4522 <action function="page">filemanagerconfirm</action>
4523 </actions>
4524 </button>
4525
4526 <button style="main_button_half_height">
4527 <condition var1="tw_fm_isfolder" var2="0"/>
4528 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004529 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004530 <actions>
4531 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004532 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004533 <action function="set">tw_filemanager_command=mv</action>
4534 <action function="page">filemanagerrenamefile</action>
4535 </actions>
4536 </button>
4537
4538 <button style="main_button_half_height">
4539 <condition var1="tw_fm_isfolder" var2="1"/>
4540 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004541 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004542 <actions>
4543 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004544 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004545 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4546 <action function="page">filemanagerrenamefolder</action>
4547 </actions>
4548 </button>
4549
4550 <action>
4551 <touch key="home"/>
4552 <action function="page">main</action>
4553 </action>
4554
4555 <action>
4556 <touch key="back"/>
4557 <action function="page">filemanagerlist</action>
4558 </action>
4559 </page>
4560
4561 <page name="choosedestinationfolder">
4562 <template name="page"/>
4563
4564 <text style="text_l">
4565 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004566 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004567 </text>
4568
4569 <text style="text_m">
4570 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004571 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004572 </text>
4573
4574 <template name="sort_options"/>
4575
4576 <fileselector>
4577 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4578 <text>%tw_file_location2%</text>
4579 <filter folders="1" files="0"/>
4580 <path name="tw_file_location2" default="/"/>
4581 <data name="tw_filename2"/>
4582 <selection name="tw_selection2"/>
4583 </fileselector>
4584
4585 <button style="fab">
4586 <image resource="fab_selectfolder"/>
4587 <actions>
4588 <action function="set">tw_fm_text2=to</action>
4589 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4590 <action function="set">tw_include_text3=1</action>
4591 <action function="set">tw_back=filemanageroptions</action>
4592 <action function="page">filemanagerconfirm</action>
4593 </actions>
4594 </button>
4595
4596 <action>
4597 <touch key="home"/>
4598 <action function="page">main</action>
4599 </action>
4600
4601 <action>
4602 <touch key="back"/>
4603 <action function="page">filemanageroptions</action>
4604 </action>
4605 </page>
4606
4607 <page name="filemanagerrenamefile">
4608 <template name="page"/>
4609
4610 <text style="text_l">
4611 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004612 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004613 </text>
4614
4615 <text style="text_m">
4616 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004617 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004618 </text>
4619
4620 <text style="text_m_accent">
4621 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004622 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004623 </text>
4624
4625 <input>
4626 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4627 <text>%tw_filemanager_rename%</text>
4628 <data name="tw_filemanager_rename"/>
4629 <restrict minlen="1" maxlen="128"/>
4630 <actions>
4631 <action function="set">tw_fm_text2=to</action>
4632 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4633 <action function="set">tw_include_text3=1</action>
4634 <action function="set">tw_back=filemanageroptions</action>
4635 <action function="page">filemanagerconfirm</action>
4636 </actions>
4637 </input>
4638
4639 <fill color="%accent_color%">
4640 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4641 </fill>
4642
4643 <button style="main_button_half_height">
4644 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004645 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004646 <action function="page">filemanageroptions</action>
4647 </button>
4648
4649 <template name="keyboardtemplate"/>
4650
4651 <action>
4652 <touch key="home"/>
4653 <action function="page">main</action>
4654 </action>
4655
4656 <action>
4657 <touch key="back"/>
4658 <action function="page">filemanageroptions</action>
4659 </action>
4660 </page>
4661
4662 <page name="filemanagerrenamefolder">
4663 <template name="page"/>
4664
4665 <text style="text_l">
4666 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004667 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004668 </text>
4669
4670 <text style="text_m">
4671 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004672 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004673 </text>
4674
4675 <text style="text_m_accent">
4676 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004677 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004678 </text>
4679
4680 <input>
4681 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4682 <text>%tw_filemanager_rename%</text>
4683 <data name="tw_filemanager_rename"/>
4684 <restrict minlen="1" maxlen="128"/>
4685 <actions>
4686 <action function="set">tw_fm_text2=to</action>
4687 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4688 <action function="set">tw_include_text3=1</action>
4689 <action function="set">tw_back=filemanageroptions</action>
4690 <action function="page">filemanagerconfirm</action>
4691 </actions>
4692 </input>
4693
4694 <fill color="%accent_color%">
4695 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4696 </fill>
4697
4698 <button style="main_button_half_height">
4699 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004700 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004701 <action function="page">filemanageroptions</action>
4702 </button>
4703
4704 <template name="keyboardtemplate"/>
4705
4706 <action>
4707 <touch key="home"/>
4708 <action function="page">main</action>
4709 </action>
4710
4711 <action>
4712 <touch key="back"/>
4713 <action function="page">filemanageroptions</action>
4714 </action>
4715 </page>
4716
4717 <page name="filemanagerchmod">
4718 <template name="page"/>
4719
4720 <text style="text_l">
4721 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004722 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004723 </text>
4724
4725 <text style="text_m">
4726 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004727 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004728 </text>
4729
4730 <text style="text_m_accent">
4731 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004732 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004733 </text>
4734
4735 <input>
4736 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4737 <text>%tw_filemanager_rename%</text>
4738 <data name="tw_filemanager_rename"/>
4739 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4740 <actions>
4741 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4742 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4743 <action function="set">tw_back=filemanageroptions</action>
4744 <action function="page">filemanagerconfirm</action>
4745 </actions>
4746 </input>
4747
4748 <fill color="%accent_color%">
4749 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4750 </fill>
4751
4752 <button style="main_button_half_height">
4753 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004754 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004755 <action function="page">filemanageroptions</action>
4756 </button>
4757
4758 <template name="keyboardtemplate"/>
4759
4760 <action>
4761 <touch key="home"/>
4762 <action function="page">main</action>
4763 </action>
4764
4765 <action>
4766 <touch key="back"/>
4767 <action function="page">filemanageroptions</action>
4768 </action>
4769 </page>
4770
4771 <page name="filemanagerconfirm">
4772 <template name="page"/>
4773
4774 <text style="text_l">
4775 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004776 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004777 </text>
4778
4779 <text style="text_m">
4780 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004781 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004782 </text>
4783
4784 <text style="text_m_accent">
4785 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4786 <text>%tw_fm_text1%</text>
4787 </text>
4788
4789 <text style="text_m">
4790 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4791 <text>%tw_filename1%</text>
4792 </text>
4793
4794 <text style="text_m_accent">
4795 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4796 <text>%tw_fm_text2%</text>
4797 </text>
4798
4799 <text style="text_m">
4800 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4801 <text>%tw_fm_text3%</text>
4802 </text>
4803
4804 <text style="text_m">
4805 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004806 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004807 </text>
4808
4809 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004810 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004811 <action function="page">filemanageraction</action>
4812 </slider>
4813
4814 <action>
4815 <touch key="back"/>
4816 <action function="page">%tw_back%</action>
4817 </action>
4818
4819 <action>
4820 <touch key="home"/>
4821 <action function="page">main</action>
4822 </action>
4823 </page>
4824
4825 <page name="filemanageraction">
4826 <template name="page"/>
4827
4828 <text style="text_l">
4829 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004830 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004831 </text>
4832
4833 <text style="text_m">
4834 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4835 <text>%tw_fm_text1%</text>
4836 </text>
4837
4838 <template name="console"/>
4839
4840 <template name="progress_bar"/>
4841
4842 <action>
4843 <conditions>
4844 <condition var1="tw_operation_state" var2="1"/>
4845 <condition var1="tw_operation_status" var2="0"/>
4846 </conditions>
4847 <actions>
4848 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004849 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004850 <action function="page">action_complete</action>
4851 </actions>
4852 </action>
4853
4854 <action>
4855 <conditions>
4856 <condition var1="tw_operation_state" var2="1"/>
4857 <condition var1="tw_operation_status" op="!=" var2="0"/>
4858 </conditions>
4859 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004860 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004861 <action function="page">action_complete</action>
4862 </actions>
4863 </action>
4864
4865 <action>
4866 <condition var1="tw_include_text3" var2="0"/>
4867 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4868 </action>
4869
4870 <action>
4871 <condition var1="tw_include_text3" var2="1"/>
4872 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4873 </action>
4874 </page>
4875
4876 <page name="decrypt">
4877 <template name="page"/>
4878
4879 <action>
4880 <condition var1="tw_crypto_pwtype" var2="2"/>
4881 <action function="page">decrypt_pattern</action>
4882 </action>
4883
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04004884 <action>
4885 <condition var1="tw_crypto_pwtype" var2="3"/>
4886 <action function="page">decrypt_pin</action>
4887 </action>
4888
z31s1g28f0a922015-11-07 18:50:22 +01004889 <text style="text_l">
4890 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004891 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004892 </text>
4893
4894 <text style="text_m">
4895 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004896 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004897 </text>
4898
4899 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004900 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004901 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004902 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004903 </text>
4904
Noah Jacobson81d638d2019-04-28 00:10:07 -04004905 <text style="text_m_accent">
4906 <condition var1="tw_is_fbe" var2="1"/>
4907 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4908 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4909 </text>
4910
z31s1g28f0a922015-11-07 18:50:22 +01004911 <input>
4912 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4913 <text>%tw_crypto_display%</text>
4914 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4915 <restrict minlen="1" maxlen="254"/>
4916 <action function="page">trydecrypt</action>
4917 </input>
4918
4919 <fill color="%accent_color%">
4920 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4921 </fill>
4922
4923 <fill color="%text_fail_color%">
4924 <condition var1="tw_password_fail" var2="1"/>
4925 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4926 </fill>
4927
4928 <text style="text_m_fail">
4929 <condition var1="tw_password_fail" var2="1"/>
4930 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004931 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004932 </text>
4933
4934 <button style="main_button_half_height">
4935 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004936 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05004937 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004938 </button>
4939
z31s1g608d7ff2016-01-18 19:47:25 +01004940 <button style="main_button_half_height">
4941 <placement x="%center_x%" y="%row10_y%"/>
4942 <text>{@sel_lang_btn=Select Language}</text>
4943 <action function="overlay">select_language</action>
4944 </button>
4945
z31s1g28f0a922015-11-07 18:50:22 +01004946 <template name="keyboardtemplate"/>
4947 </page>
4948
4949 <page name="decrypt_pattern">
4950 <template name="page"/>
4951
4952 <text style="text_l">
4953 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004954 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004955 </text>
4956
4957 <text style="text_m">
4958 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004959 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004960 </text>
4961
4962 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004963 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004964 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004965 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004966 </text>
4967
Noah Jacobson81d638d2019-04-28 00:10:07 -04004968 <text style="text_m_accent">
4969 <condition var1="tw_is_fbe" var2="1"/>
4970 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4971 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
4972 </text>
4973
Aleksa Saraib25a1832015-12-31 17:36:00 +01004974 <text style="text_m_fail">
4975 <condition var1="tw_password_fail" var2="1"/>
4976 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004977 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004978 </text>
4979
z31s1g28f0a922015-11-07 18:50:22 +01004980 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004981 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004982 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4983 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4984 <data name="tw_crypto_password"/>
4985 <action function="page">trydecrypt</action>
4986 </patternpassword>
4987
Aleksa Saraib25a1832015-12-31 17:36:00 +01004988 <button style="button_quarter_width">
4989 <placement x="%indent%" y="%row19a_y%"/>
4990 <text>3x3</text>
4991 <action function="set">tw_gui_pattern_grid_size=3</action>
4992 </button>
4993
4994 <button style="button_quarter_width">
4995 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
4996 <text>4x4</text>
4997 <action function="set">tw_gui_pattern_grid_size=4</action>
4998 </button>
4999
5000 <button style="button_quarter_width">
5001 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
5002 <text>5x5</text>
5003 <action function="set">tw_gui_pattern_grid_size=5</action>
5004 </button>
5005
5006 <button style="button_quarter_width">
5007 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
5008 <text>6x6</text>
5009 <action function="set">tw_gui_pattern_grid_size=6</action>
5010 </button>
5011
z31s1g28f0a922015-11-07 18:50:22 +01005012 <button style="main_button_half_height">
5013 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005014 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05005015 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01005016 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01005017
5018 <button style="main_button_half_height">
5019 <placement x="%center_x%" y="%row21a_y%"/>
5020 <text>{@sel_lang_btn=Select Language}</text>
5021 <action function="overlay">select_language</action>
5022 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005023 </page>
5024
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04005025 <page name="decrypt_pin">
5026 <template name="page"/>
5027
5028 <text style="text_l">
5029 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5030 <text>{@mount_hdr=Mount}</text>
5031 </text>
5032
5033 <text style="text_m">
5034 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5035 <text>{@decrypt_data_hdr=Decrypt Data}</text>
5036 </text>
5037
5038 <text style="text_m_accent">
5039 <condition var1="tw_is_fbe" op="!=" var2="1"/>
5040 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5041 <text>{@decrypt_data_enter_pass=Enter PIN:}</text>
5042 </text>
5043
5044 <text style="text_m_accent">
5045 <condition var1="tw_is_fbe" var2="1"/>
5046 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5047 <text>{@decrypt_data_enter_pass_fbe=Enter PIN for User [%tw_crypto_user_id%]}</text>
5048 </text>
5049
5050 <input>
5051 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
5052 <text>%tw_crypto_display%</text>
5053 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
5054 <restrict minlen="1" maxlen="254"/>
5055 <action function="page">trydecrypt</action>
5056 </input>
5057
5058 <fill color="%accent_color%">
5059 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
5060 </fill>
5061
5062 <fill color="%text_fail_color%">
5063 <condition var1="tw_password_fail" var2="1"/>
5064 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
5065 </fill>
5066
5067 <text style="text_m_fail">
5068 <condition var1="tw_password_fail" var2="1"/>
5069 <placement x="%indent%" y="%row5_y%"/>
5070 <text>{@decrypt_data_failed=PIN failed, please try again!}</text>
5071 </text>
5072
5073 <button style="main_button_half_height">
5074 <placement x="%indent%" y="%row10_y%"/>
5075 <text>{@cancel_btn=Cancel}</text>
5076 <action function="page">canceldecrypt</action>
5077 </button>
5078
5079 <button style="main_button_half_height">
5080 <placement x="%center_x%" y="%row10_y%"/>
5081 <text>{@sel_lang_btn=Select Language}</text>
5082 <action function="overlay">select_language</action>
5083 </button>
5084
5085 <template name="keyboardnum"/>
5086 </page>
5087
z31s1g28f0a922015-11-07 18:50:22 +01005088 <page name="trydecrypt">
5089 <template name="page"/>
5090
5091 <text style="text_l">
5092 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005093 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005094 </text>
5095
5096 <text style="text_m">
5097 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005098 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005099 </text>
5100
5101 <template name="console"/>
5102
5103 <template name="progress_bar"/>
5104
5105 <action>
5106 <action function="decrypt"/>
5107 </action>
5108
5109 <action>
5110 <conditions>
5111 <condition var1="tw_operation_state" var2="1"/>
5112 <condition var1="tw_operation_status" op="!=" var2="0"/>
5113 </conditions>
5114 <actions>
5115 <action function="set">tw_password_fail=1</action>
5116 <action function="page">decrypt</action>
5117 </actions>
5118 </action>
5119
5120 <action>
5121 <conditions>
5122 <condition var1="tw_operation_state" var2="1"/>
5123 <condition var1="tw_operation_status" op="=" var2="0"/>
5124 </conditions>
5125 <actions>
5126 <action function="set">tw_page_done=1</action>
5127 <action function="page">main</action>
5128 </actions>
5129 </action>
5130 </page>
5131
Captain Throwback89b56a12021-02-10 18:25:07 -05005132 <page name="canceldecrypt">
5133 <template name="page"/>
5134
5135 <text style="text_l">
5136 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5137 <text>{@cancel_btn=Cancel}</text>
5138 </text>
5139
5140 <text style="text_m">
5141 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5142 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
5143 </text>
5144
5145 <template name="console"/>
5146
5147 <template name="progress_bar"/>
5148
5149 <action>
5150 <action function="refreshsizes"/>
5151 </action>
5152
5153 <action>
5154 <conditions>
5155 <condition var1="tw_operation_state" var2="1"/>
5156 </conditions>
5157 <actions>
5158 <action function="set">tw_page_done=1</action>
5159 <action function="page">main</action>
5160 </actions>
5161 </action>
5162 </page>
5163
z31s1g28f0a922015-11-07 18:50:22 +01005164 <page name="terminalcommand">
5165 <template name="page"/>
5166
z31s1g56189522016-01-13 19:12:40 +01005167 <fill color="%background_color%">
5168 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005169 </fill>
5170
z31s1g56189522016-01-13 19:12:40 +01005171 <terminal>
5172 <condition var1="tw_hide_kb" var2="0"/>
5173 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
5174 </terminal>
5175
5176 <terminal>
5177 <condition var1="tw_hide_kb" var2="1"/>
5178 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
5179 </terminal>
5180
5181 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005182
5183 <template name="keyboardtemplate"/>
5184
z31s1g608d7ff2016-01-18 19:47:25 +01005185 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01005186 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01005187 </fill>
z31s1g56189522016-01-13 19:12:40 +01005188
z31s1g608d7ff2016-01-18 19:47:25 +01005189 <button>
z31s1g56189522016-01-13 19:12:40 +01005190 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5191 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5192 <image resource="back" />
5193 <condition var1="tw_busy" var2="0" />
5194 <actions>
5195 <action function="set">tw_hide_kb=0</action>
5196 <action function="key">back</action>
5197 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005198 </button>
z31s1g56189522016-01-13 19:12:40 +01005199
z31s1g608d7ff2016-01-18 19:47:25 +01005200 <button>
z31s1g56189522016-01-13 19:12:40 +01005201 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5202 <condition var1="tw_hide_kb" op="=" var2="0" />
5203 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5204 <image resource="kb_hide" />
5205 <condition var1="tw_busy" var2="0" />
5206 <actions>
5207 <action function="set">tw_hide_kb=1</action>
5208 <action function="page">terminalcommand</action>
5209 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005210 </button>
z31s1g56189522016-01-13 19:12:40 +01005211
z31s1g608d7ff2016-01-18 19:47:25 +01005212 <button>
z31s1g56189522016-01-13 19:12:40 +01005213 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5214 <condition var1="tw_hide_kb" op="=" var2="1" />
5215 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5216 <image resource="kb_show" />
5217 <condition var1="tw_busy" var2="0" />
5218 <actions>
5219 <action function="set">tw_hide_kb=0</action>
5220 <action function="page">terminalcommand</action>
5221 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005222 </button>
z31s1g56189522016-01-13 19:12:40 +01005223
z31s1g608d7ff2016-01-18 19:47:25 +01005224 <button>
z31s1g56189522016-01-13 19:12:40 +01005225 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5226 <image resource="home" />
5227 <condition var1="tw_busy" var2="0" />
5228 <actions>
5229 <action function="set">tw_hide_kb=0</action>
5230 <action function="key">home</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005231 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005232 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005233 </button>
z31s1g56189522016-01-13 19:12:40 +01005234
z31s1g608d7ff2016-01-18 19:47:25 +01005235 <button>
z31s1g56189522016-01-13 19:12:40 +01005236 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5237 <condition var1="tw_hide_kb" op="=" var2="0" />
5238 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5239 <image resource="kb_hide" />
5240 <condition var1="tw_busy" var2="0" />
5241 <actions>
5242 <action function="set">tw_hide_kb=1</action>
5243 <action function="page">terminalcommand</action>
5244 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005245 </button>
z31s1g56189522016-01-13 19:12:40 +01005246
z31s1g608d7ff2016-01-18 19:47:25 +01005247 <button>
z31s1g56189522016-01-13 19:12:40 +01005248 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5249 <condition var1="tw_hide_kb" op="=" var2="1" />
5250 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5251 <image resource="kb_show" />
5252 <condition var1="tw_busy" var2="0" />
5253 <actions>
5254 <action function="set">tw_hide_kb=0</action>
5255 <action function="page">terminalcommand</action>
5256 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005257 </button>
z31s1g56189522016-01-13 19:12:40 +01005258
z31s1g608d7ff2016-01-18 19:47:25 +01005259 <button>
z31s1g56189522016-01-13 19:12:40 +01005260 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5261 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5262 <image resource="back" />
5263 <condition var1="tw_busy" var2="0" />
5264 <actions>
5265 <action function="set">tw_hide_kb=0</action>
5266 <action function="key">back</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005267 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005268 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005269 </button>
z31s1g56189522016-01-13 19:12:40 +01005270
z31s1g28f0a922015-11-07 18:50:22 +01005271 <action>
5272 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005273 <actions>
5274 <action function="set">tw_hide_kb=0</action>
5275 <action function="page">main</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005276 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005277 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005278 </action>
5279
5280 <action>
5281 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005282 <actions>
5283 <action function="set">tw_hide_kb=0</action>
5284 <action function="page">advanced</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005285 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005286 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005287 </action>
z31s1g56189522016-01-13 19:12:40 +01005288
z31s1g608d7ff2016-01-18 19:47:25 +01005289 <action>
z31s1g56189522016-01-13 19:12:40 +01005290 <touch key="power+voldown" />
5291 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01005292 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005293 </page>
5294
bigbiffdf8436b2020-08-30 16:22:34 -04005295 <page name="fastboot">
5296 <template name="page"/>
5297
5298 <text style="text_l">
5299 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5300 <text>{@fastboot_button=Fastboot}</text>
5301 </text>
5302
5303 <template name="console"/>
5304
5305 <template name="progress_bar"/>
5306
5307 <button style="main_button_half_height">
5308 <condition var1="tw_enable_fastboot" op="=" var2="1" />
5309 <placement x="%indent%" y="%row21a_y%"/>
5310 <text>{@enable_adb=Enable ADB}</text>
5311 <actions>
5312 <action function="enableadb"/>
5313 <action function="set">tw_enable_adb=1</action>
5314 <action function="set">tw_enable_fastboot=0</action>
5315 </actions>
5316 </button>
5317
5318 <button style="main_button_half_height">
5319 <condition var1="tw_enable_adb" op="=" var2="1" />
5320 <placement x="%indent%" y="%row21a_y%"/>
5321 <text>{@enable_fastboot=Enable Fastboot}</text>
5322 <actions>
5323 <action function="enablefastboot"/>
5324 <action function="set">tw_enable_fastboot=1</action>
5325 <action function="set">tw_enable_adb=0</action>
5326 </actions>
5327 </button>
5328
5329 <button style="main_button_half_height">
5330 <placement x="%center_x%" y="%row21a_y%"/>
5331 <text>{@reboot_btn=Reboot}</text>
5332 <action function="page">fastbootreboot</action>
5333 </button>
5334 </page>
5335
z31s1g28f0a922015-11-07 18:50:22 +01005336 <page name="sideload">
5337 <template name="page"/>
5338
5339 <text style="text_l">
5340 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005341 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005342 </text>
5343
5344 <text style="text_m">
5345 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005346 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005347 </text>
5348
5349 <checkbox>
5350 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005351 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005352 <data variable="tw_wipe_dalvik"/>
5353 </checkbox>
5354
5355 <checkbox>
5356 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005357 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005358 <data variable="tw_wipe_cache"/>
5359 </checkbox>
5360
5361 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005362 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005363 <actions>
5364 <action function="set">tw_back=advanced</action>
5365 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005366 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5367 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5368 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005369 <action function="set">tw_has_cancel=1</action>
5370 <action function="set">tw_show_reboot=1</action>
5371 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5372 <action function="page">action_page</action>
5373 </actions>
5374 </slider>
5375
5376 <action>
5377 <touch key="home"/>
5378 <action function="page">main</action>
5379 </action>
5380
5381 <action>
5382 <touch key="back"/>
5383 <action function="page">advanced</action>
5384 </action>
5385 </page>
5386
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005387 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005388 <template name="page"/>
5389
5390 <text style="text_l">
5391 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005392 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005393 </text>
5394
5395 <text style="text_m">
5396 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005397 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005398 </text>
5399
5400 <text style="text_m_accent">
5401 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005402 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005403 </text>
5404
z31s1g28f0a922015-11-07 18:50:22 +01005405 <text style="text_m_fail">
5406 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005407 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005408 </text>
5409
5410 <text style="text_m_fail">
5411 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005412 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005413 </text>
5414
5415 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005416 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005417 <actions>
5418 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005419 <action function="set">tw_action=fixcontexts</action>
5420 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5421 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005422 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005423 <action function="set">tw_show_reboot=1</action>
5424 <action function="page">action_page</action>
5425 </actions>
5426 </slider>
5427
5428 <action>
5429 <touch key="home"/>
5430 <action function="page">main</action>
5431 </action>
5432
5433 <action>
5434 <touch key="back"/>
5435 <action function="page">advanced</action>
5436 </action>
5437 </page>
5438
z31s1g28f0a922015-11-07 18:50:22 +01005439 <page name="slideout">
5440 <fill color="%background_color%">
5441 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5442 </fill>
5443
5444 <console>
5445 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
5446 </console>
5447
5448 <button>
5449 <fill color="%transparent%"/>
5450 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5451 <action function="overlay"/>
5452 </button>
5453
5454 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005455 <touch key="power"/>
5456 <action function="togglebacklight"/>
5457 </action>
5458
5459 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005460 <touch key="power+voldown"/>
5461 <action function="screenshot"/>
5462 </action>
5463 </page>
5464
5465 <page name="select_storage">
5466 <fill color="%semi_transparent%">
5467 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5468 </fill>
5469
5470 <fill color="%background_color%">
5471 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5472 </fill>
5473
5474 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005475 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005476 <data name="tw_storage_path"/>
5477 <listtype name="storage"/>
5478 </partitionlist>
5479
5480 <button style="button_third_width">
5481 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005482 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005483 <actions>
5484 <action function="set">tw_clear_destination=%tw_back%</action>
5485 <action function="overlay"/>
5486 <action function="page">clear_vars</action>
5487 </actions>
5488 </button>
5489
5490 <fill color="#000000">
5491 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5492 </fill>
5493
5494 <button>
5495 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5496 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5497 <image resource="back"/>
5498 <condition var1="tw_busy" var2="0"/>
5499 <actions>
5500 <action function="overlay"/>
5501 <action function="key">%tw_back%</action>
5502 </actions>
5503 </button>
5504
5505 <button>
5506 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5507 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5508 <image resource="console"/>
5509 <condition var1="tw_busy" var2="0"/>
5510 <action function="overlay">slideout</action>
5511 </button>
5512
5513 <button>
5514 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5515 <image resource="home"/>
5516 <condition var1="tw_busy" var2="0"/>
5517 <actions>
5518 <action function="overlay"/>
5519 <action function="key">home</action>
5520 </actions>
5521 </button>
5522
5523 <button>
5524 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5525 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5526 <image resource="console"/>
5527 <condition var1="tw_busy" var2="0"/>
5528 <action function="overlay">slideout</action>
5529 </button>
5530
5531 <button>
5532 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5533 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5534 <image resource="back"/>
5535 <condition var1="tw_busy" var2="0"/>
5536 <actions>
5537 <action function="overlay"/>
5538 <action function="key">%tw_back%</action>
5539 </actions>
5540 </button>
5541
5542 <action>
5543 <touch key="power+voldown"/>
5544 <action function="screenshot"/>
5545 </action>
5546 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005547
5548 <page name="select_language">
5549 <fill color="%semi_transparent%">
5550 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5551 </fill>
5552
5553 <fill color="%background_color%">
5554 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5555 </fill>
5556
5557 <listbox>
5558 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5559 <text>{@select_language=Select Language:}</text>
5560 <icon selected="radio_true" unselected="radio_false" />
5561 <data name="tw_language" />
5562 </listbox>
5563
5564 <button style="button_third_width">
5565 <placement x="%dialog_button_x%" y="%row14_y%"/>
5566 <text>{@ok_btn=OK}</text>
5567 <actions>
5568 <action function="overlay"/>
5569 <action function="setlanguage"></action>
5570 </actions>
5571 </button>
5572
5573 <fill color="#000000">
5574 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5575 </fill>
5576
5577 <button>
5578 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5579 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5580 <image resource="back"/>
5581 <condition var1="tw_busy" var2="0"/>
5582 <actions>
5583 <action function="overlay"/>
5584 <action function="key">%tw_back%</action>
5585 </actions>
5586 </button>
5587
5588 <button>
5589 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5590 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5591 <image resource="console"/>
5592 <condition var1="tw_busy" var2="0"/>
5593 <action function="overlay">slideout</action>
5594 </button>
5595
5596 <button>
5597 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5598 <image resource="home"/>
5599 <condition var1="tw_busy" var2="0"/>
5600 <actions>
5601 <action function="overlay"/>
5602 <action function="key">home</action>
5603 </actions>
5604 </button>
5605
5606 <button>
5607 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5608 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5609 <image resource="console"/>
5610 <condition var1="tw_busy" var2="0"/>
5611 <action function="overlay">slideout</action>
5612 </button>
5613
5614 <button>
5615 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5616 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5617 <image resource="back"/>
5618 <condition var1="tw_busy" var2="0"/>
5619 <actions>
5620 <action function="overlay"/>
5621 <action function="key">%tw_back%</action>
5622 </actions>
5623 </button>
5624
5625 <action>
5626 <touch key="power+voldown"/>
5627 <action function="screenshot"/>
5628 </action>
5629 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005630
5631 <page name="decrypt_users">
5632 <template name="page"/>
5633
5634 <text style="text_l">
5635 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5636 <text>{@decrypt_users=Decrypt Users}</text>
5637 </text>
5638
5639 <text style="text_m_accent">
5640 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5641 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5642 </text>
5643
5644 <listbox>
5645 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_advanced_height%"/>
5646 <text>{@select_user=Select User}</text>
5647 <icon selected="radio_true" unselected="radio_false" />
5648 <data name="tw_crypto_user_id" />
5649 </listbox>
5650
5651 <button style="main_button_half_height">
5652 <placement x="%center_x%" y="%row21a_y%"/>
5653 <text>{@decrypt_users=Decrypt Users}</text>
5654 <action function="set">tw_crypto_password=</action>
5655 <action function="set">tw_password_fail=0</action>
5656 <action function="page">decrypt</action>
5657 </button>
5658
5659 <action>
5660 <touch key="home"/>
5661 <action function="page">main</action>
5662 </action>
5663
5664 <action>
5665 <touch key="back"/>
5666 <action function="page">advanced</action>
5667 </action>
5668 </page>
epicXa721f952021-01-04 13:01:31 +05305669
5670 <page name="changeTwrpFolder">
5671 <template name="page"/>
5672
5673 <text style="text_l">
5674 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5675 <text>{@advanced_hdr=Advanced}</text>
5676 </text>
5677
5678 <text style="text_m">
5679 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5680 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
5681 </text>
5682
5683 <text style="text_m_accent">
5684 <placement x="%indent%" y="%row2_y%"/>
5685 <text>{@name=Name:}</text>
5686 </text>
5687
5688 <input>
5689 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
5690 <text>%tw_custom_folder%</text>
5691 <data name="tw_custom_folder"/>
5692 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
5693 <actions>
5694 <action function="set">tw_back=changeTwrpFolder</action>
5695 <action function="set">tw_action=applycustomtwrpfolder</action>
5696 <action function="set">tw_action_param=%tw_custom_folder%</action>
5697 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5698 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5699 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5700 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
5701 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5702 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
5703 <action function="set">tw_existpage=changeTwrpFolder</action>
5704 <action function="set">tw_notexistpage=confirm_action</action>
5705 <action function="page">filecheck</action>
5706 </actions>
5707 </input>
5708
5709 <fill color="%accent_color%">
5710 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5711 </fill>
5712
5713 <fill color="%text_fail_color%">
5714 <condition var1="tw_fileexists" var2="1"/>
5715 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5716 </fill>
5717
5718 <text style="text_m_fail">
5719 <condition var1="tw_fileexists" var2="1"/>
5720 <placement x="%indent%" y="%row4a_y%"/>
5721 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
5722 </text>
5723
5724 <button style="main_button_half_height">
5725 <placement x="%indent%" y="%row10_y%"/>
5726 <text>{@cancel_btn=Cancel}</text>
5727 <actions>
5728 <action function="page">advanced</action>
5729 </actions>
5730 </button>
5731
5732 <button style="main_button_half_height">
5733 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
5734 <placement x="%center_x%" y="%row10_y%"/>
5735 <text>{@restore_defaults_btn=Restore Defaults}</text>
5736 <actions>
5737 <action function="set">tw_back=changeTwrpFolder</action>
5738 <action function="set">tw_action=applycustomtwrpfolder</action>
5739 <action function="set">tw_action_param=TWRP</action>
5740 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5741 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5742 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5743 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
5744 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5745 <action function="set">tw_filecheck=/sdcard/TWRP</action>
5746 <action function="set">tw_existpage=changeTwrpFolder</action>
5747 <action function="set">tw_notexistpage=confirm_action</action>
5748 <action function="page">filecheck</action>
5749 </actions>
5750 </button>
5751
5752 <template name="keyboardtemplate"/>
5753
5754 <action>
5755 <touch key="home"/>
5756 <actions>
5757 <action function="page">main</action>
5758 </actions>
5759 </action>
5760
5761 <action>
5762 <touch key="back"/>
5763 <actions>
5764 <action function="page">advanced</action>
5765 </actions>
5766 </action>
5767 </page>
bigbiff8f5fad32021-11-03 20:39:02 -04005768
5769 <page name="restore_keymaster">
5770 <template name="page"/>
5771
5772 <text style="text_m_accent">
5773 <condition var1="tw_crypto_pwtype" var2="1"/>
5774 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5775 <text>{@restore_with_pin_password1=PIN/Password is enabled}</text>
5776 </text>
5777
5778 <text style="text_m_accent">
5779 <condition var1="tw_crypto_pwtype" var2="1"/>
5780 <placement x="%center_x%" y="%row3_y%" placement="5"/>
5781 <text>{@restore_with_pin_password2=PIN/Password should be disabled before restore}</text>
5782 </text>
5783 <text style="text_l">
5784 <condition var1="tw_crypto_pwtype" var2="1"/>
5785 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5786 <text>{@restore_pin_password=Restore While PIN/Password Enabled?}</text>
5787 </text>
5788
5789 <text style="text_m_accent">
5790 <condition var1="tw_crypto_pwtype" var2="2"/>
5791 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5792 <text>{@restore_with_pattern1=Pattern is enabled}</text>
5793 </text>
5794
5795 <text style="text_m_accent">
5796 <condition var1="tw_crypto_pwtype" var2="2"/>
5797 <placement x="%center_x%" y="%row3_y%" placement="5"/>
5798 <text>{@restore_with_pattern2=Pattern should be disabled before restore}</text>
5799 </text>
5800
5801 <text style="text_l">
5802 <condition var1="tw_crypto_pwtype" var2="2"/>
5803 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5804 <text>{@restore_pattern=Restore While Pattern Enabled?}</text>
5805 </text>
5806
5807 <text style="text_m_accent">
5808 <condition var1="tw_crypto_pwtype" var2="3"/>
5809 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5810 <text>{@restore_with_pin1=PIN is enabled}</text>
5811 </text>
5812
5813 <text style="text_m_accent">
5814 <condition var1="tw_crypto_pwtype" var2="3"/>
5815 <placement x="%center_x%" y="%row3_y%" placement="5"/>
5816 <text>{@restore_with_pin2=PIN should be disabled before restore}</text>
5817 </text>
5818
5819 <text style="text_l">
5820 <condition var1="tw_crypto_pwtype" var2="3"/>
5821 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5822 <text>{@restore_pin=Restore While PIN Enabled?}</text>
5823 </text>
5824
5825 <slider>
5826 <text>{@continue_restore_encrypted=Continue Restore?}</text>
5827 <actions>
5828 <action function="page">restore_force</action>
5829 </actions>
5830 </slider>
5831
5832 <action>
5833 <touch key="home"/>
5834 <action function="page">main</action>
5835 </action>
5836
5837 <action>
5838 <touch key="back"/>
5839 <actions>
5840 <action function="page">main</action>
5841 </actions>
5842 </action>
5843 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005844 </pages>
5845</recovery>