blob: 31f87950329800c1b3c7ac5281b9cb57010f85ac [file] [log] [blame]
z31s1g28f0a922015-11-07 18:50:22 +01001<?xml version="1.0"?>
2<recovery>
3 <styles>
4 <style name="text_l">
5 <font resource="font_l" color="%text_color%"/>
6 </style>
7
8 <style name="text_m">
9 <font resource="font_m" color="%text_color%"/>
10 </style>
11
12 <style name="text_m_accent">
13 <font resource="font_m" color="%accent_color%"/>
14 </style>
15
16 <style name="text_m_fail">
17 <font resource="font_m" color="%text_fail_color%"/>
18 </style>
19
20 <style name="text_s">
21 <font resource="font_s" color="%text_color%"/>
22 </style>
23
24 <style name="input">
25 <background color="%background_color%"/>
26 <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/>
27 <font resource="font_m" color="%text_color%"/>
28 </style>
29
30 <style name="checkbox">
31 <font resource="font_m" color="%text_color%"/>
32 <image checked="checkbox_true" unchecked="checkbox_false"/>
33 </style>
34
35 <style name="main_button">
36 <highlight color="%highlight_color%"/>
37 <font resource="font_l" color="%text_button_color%"/>
38 <image resource="main_button"/>
39 </style>
40
41 <style name="main_button_half_height">
42 <highlight color="%highlight_color%"/>
43 <font resource="font_m" color="%text_button_color%"/>
44 <image resource="main_button_half_height"/>
45 </style>
46
47 <style name="main_button_half_height_full_width">
48 <highlight color="%highlight_color%"/>
49 <font resource="font_m" color="%text_button_color%"/>
50 <image resource="main_button_half_height_full_width"/>
51 </style>
52
53 <style name="button_third_width">
54 <highlight color="%highlight_color%"/>
55 <font resource="font_m" color="%text_button_color%"/>
56 <image resource="tab_3"/>
57 </style>
58
59 <style name="button_quarter_width">
60 <highlight color="%highlight_color%"/>
61 <font resource="font_m" color="%text_button_color%"/>
62 <image resource="tab_4"/>
63 </style>
64
65 <style name="fab">
66 <highlight color="%highlight_color%"/>
67 <placement x="%indent_right%" y="%row21a_y%" placement="1"/>
68 <font resource="font_m" color="%button_text_color%"/>
69 </style>
70
71 <style name="tab">
72 <highlight color="%highlight_color%"/>
z31s1g56a7a992016-01-23 17:06:40 +010073 <fill color="%transparent%"/>
z31s1g28f0a922015-11-07 18:50:22 +010074 <font resource="font_s" color="%text_button_color%"/>
75 </style>
76
77 <style name="console">
78 <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
79 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
80 <font resource="fixed"/>
81 </style>
82
z31s1g56189522016-01-13 19:12:40 +010083 <style name="terminal">
84 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
85 <background color="%background_color%"/>
86 <font resource="fixed" spacing="3" color="%text_color%"/>
87 </style>
88
z31s1g28f0a922015-11-07 18:50:22 +010089 <style name="fileselector">
90 <highlight color="%fileselector_highlight_color%"/>
91 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
92 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
93 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
94 <sort name="tw_gui_sort_order"/>
95 <icon folder="folder" file="file"/>
96 <background color="%background_color%"/>
97 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
98 </style>
99
100 <style name="listbox">
101 <highlight color="%fileselector_highlight_color%"/>
102 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
103 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
104 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
105 <icon selected="radio_true" unselected="radio_false"/>
106 <background color="%background_color%"/>
107 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
108 </style>
109
110 <style name="scrolllist">
111 <background color="%background_color%"/>
112 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/>
nkk711a230e42017-08-07 00:28:19 +0300113 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
z31s1g28f0a922015-11-07 18:50:22 +0100114 </style>
115
116 <style name="partitionlist">
117 <highlight color="%fileselector_highlight_color%"/>
118 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
119 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
120 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
121 <icon selected="checkbox_true" unselected="checkbox_false"/>
122 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
123 <background color="%background_color%"/>
124 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
125 </style>
126
127 <style name="partitionlist_storage">
128 <highlight color="%fileselector_highlight_color%"/>
129 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
130 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
131 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
132 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
133 <icon selected="radio_true" unselected="radio_false"/>
134 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
135 <background color="%background_color%"/>
136 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
137 </style>
138
Ethan Yonker64e0a652018-07-25 09:52:17 -0500139 <style name="advanced_listbox">
140 <highlight color="%fileselector_highlight_color%"/>
141 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
142 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
143 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
144 <icon selected="handle" unselected="handle"/>
145 <background color="%background_color%"/>
146 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
147 </style>
148
epicX9597b842021-03-20 21:58:17 +0530149 <style name="options_listbox">
150 <highlight color="%fileselector_highlight_color%"/>
151 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
152 <separator color="%background_color%" height="%fileselector_separatorheight%"/>
153 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
154 <background color="%background_color%"/>
155 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
156 </style>
157
z31s1g28f0a922015-11-07 18:50:22 +0100158 <style name="slider">
159 <placement x="%center_x%" y="%row23_y%"/>
160 <font resource="font_s" color="%text_color%"/>
161 <resource base="slider" used="slider_used" touch="slider_touch"/>
162 </style>
163
164 <style name="slidervalue">
165 <resource handle="handle"/>
166 <font resource="font_m" color="%text_color%"/>
167 <colors line="%fileselector_linecolor%"/>
168 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
169 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100170
171 <style name="patternpassword">
172 <size name="tw_gui_pattern_grid_size" default="3"/>
173 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100174 </styles>
175
176 <pages>
177 <page name="main">
178 <action>
179 <actions>
180 <action function="set">tw_clear_destination=main2</action>
181 <action function="page">clear_vars</action>
182 </actions>
183 </action>
184 </page>
185
186 <page name="main2">
187 <template name="page"/>
188
189 <text style="text_l">
190 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500191 <text>{@twrp_header=Team Win Recovery Project}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100192 </text>
193
194 <text style="text_m">
195 <condition var1="tw_no_cpu_temp" var2="0"/>
196 <placement x="%col1_x_header%" y="%row4_header_y%"/>
197 <text>%tw_version%</text>
198 </text>
199
200 <button style="main_button">
201 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500202 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100203 <actions>
204 <action function="queueclear"/>
205 <action function="set">tw_selectimage=0</action>
206 <action function="page">install</action>
207 </actions>
208 </button>
209
210 <button style="main_button">
211 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500212 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100213 <action function="page">wipe</action>
214 </button>
215
216 <button style="main_button">
217 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500218 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100219 <action function="page">backup</action>
220 </button>
221
222 <button style="main_button">
223 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500224 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100225 <action function="page">restore</action>
226 </button>
227
228 <button style="main_button">
229 <placement x="%indent%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500230 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100231 <action function="page">mount</action>
232 </button>
233
234 <button style="main_button">
235 <placement x="%center_x%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500236 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100237 <action function="page">settings</action>
238 </button>
239
240 <button style="main_button">
241 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500242 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100243 <action function="page">advanced</action>
244 </button>
245
246 <button style="main_button">
247 <placement x="%center_x%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500248 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100249 <action function="page">reboot</action>
250 </button>
251 </page>
252
253 <page name="install">
254 <template name="page"/>
255
256 <text style="text_l">
257 <condition var1="tw_selectimage" var2="0"/>
258 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500259 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100260 </text>
261
262 <text style="text_l">
263 <condition var1="tw_selectimage" var2="1"/>
264 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500265 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100266 </text>
267
268 <text style="text_m">
269 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500270 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100271 </text>
272
273 <template name="sort_options"/>
274
275 <fileselector>
276 <condition var1="tw_selectimage" var2="0"/>
277 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
278 <text>%tw_zip_location%</text>
mauronofrio6d3bf892019-10-26 19:47:55 +0200279 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="1" files="1"/>
Ian Macdonalde7c34e52021-01-23 18:52:28 +0100280 <prfxfilter prfx="Magisk-;Magisk.apk;app-release.apk;app-debug.apk" folders="1" files="1"/>
z31s1g28f0a922015-11-07 18:50:22 +0100281 <path name="tw_zip_location" default="/sdcard"/>
282 <data name="tw_filename"/>
283 <selection name="tw_file"/>
284 </fileselector>
285
286 <fileselector>
287 <condition var1="tw_selectimage" var2="1"/>
288 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
289 <text>%tw_zip_location%</text>
290 <filter extn=".img" folders="1" files="1"/>
291 <path name="tw_zip_location" default="/sdcard"/>
292 <data name="tw_filename"/>
293 <selection name="tw_file"/>
294 </fileselector>
295
296 <button style="main_button_half_height">
297 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500298 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100299 <actions>
300 <action function="set">tw_back=install</action>
301 <action function="overlay">select_storage</action>
302 </actions>
303 </button>
304
305 <button style="main_button_half_height">
306 <condition var1="tw_selectimage" var2="0"/>
307 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500308 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100309 <actions>
310 <action function="set">tw_selectimage=1</action>
311 <action function="page">install</action>
312 </actions>
313 </button>
314
315 <button style="main_button_half_height">
316 <condition var1="tw_selectimage" var2="1"/>
317 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500318 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100319 <actions>
320 <action function="set">tw_selectimage=0</action>
321 <action function="page">install</action>
322 </actions>
323 </button>
324
325 <action>
326 <conditions>
327 <condition var1="tw_selectimage" var2="0"/>
328 <condition var1="tw_filename" op="modified"/>
329 </conditions>
330 <actions>
331 <action function="queuezip"/>
332 <action function="page">flash_confirm</action>
333 </actions>
334 </action>
335
336 <action>
337 <conditions>
338 <condition var1="tw_selectimage" var2="1"/>
339 <condition var1="tw_filename" op="modified"/>
340 </conditions>
epicX8f52c0a2021-02-24 23:12:08 +0530341 <actions>
342 <action function="set">tw_is_slot_part=0</action>
343 <action function="page">flashimage_confirm</action>
344 </actions>
z31s1g28f0a922015-11-07 18:50:22 +0100345 </action>
346
347 <action>
348 <touch key="back"/>
349 <action function="page">main</action>
350 </action>
351
352 <action>
353 <touch key="home"/>
354 <action function="page">main</action>
355 </action>
356 </page>
357
358 <page name="flash_confirm">
359 <template name="page"/>
360
361 <text style="text_l">
362 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500363 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100364 </text>
365
366 <text style="text_m">
367 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500368 <text>{@zip_queue_count=%tw_zip_queue_count% of max of 10 Files queued}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100369 </text>
370
371 <text style="text_m_accent">
372 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500373 <text>{@zip_warn1=This operation may install incompatible}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100374 </text>
375
376 <text style="text_m_accent">
377 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500378 <text>{@zip_warn2=software and render your device unusable.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100379 </text>
380
381 <text style="text_m">
382 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500383 <text>{@zip_back_cancel=Press back to cancel adding this zip.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100384 </text>
385
386 <text style="text_m_accent">
387 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500388 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100389 </text>
390
391 <text style="text_m">
392 <placement x="%indent%" y="%row8_y%"/>
393 <text>%tw_zip_location%</text>
394 </text>
395
396 <text style="text_m_accent">
397 <placement x="%indent%" y="%row9a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500398 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100399 </text>
400
401 <text style="text_m">
402 <placement x="%indent%" y="%row10a_y%"/>
403 <text>%tw_file%</text>
404 </text>
405
epicX9597b842021-03-20 21:58:17 +0530406 <listbox style="options_listbox">
407 <placement x="%indent%" y="%row12_y%" w="%content_width%" h="%listbox_options_height%"/>
408 <icon selected="checkbox_true" unselected="checkbox_false"/>
409 <listitem name="{@zip_sig_chk=Zip signature verification}">
410 <data variable="tw_signed_zip_verify"/>
411 </listitem>
412 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
413 <data variable="tw_skip_digest_check_zip"/>
414 </listitem>
nebrassyac29e692021-05-20 13:03:30 +0200415 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
416 <conditions>
417 <condition var1="tw_has_boot_slots" var2="1"/>
418 <condition var1="tw_has_repack_tools" var2="1"/>
419 </conditions>
420 <data variable="tw_auto_reflashtwrp"/>
421 </listitem>
epicX9597b842021-03-20 21:58:17 +0530422 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
423 <data variable="tw_install_reboot"/>
424 </listitem>
425 <listitem name="{@inject_twrp_chk=Inject TWRP after install}">
426 <condition var1="tw_has_injecttwrp" var2="1"/>
427 <data variable="tw_inject_after_zip"/>
428 </listitem>
429 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +0100430
431 <button style="main_button_half_height">
432 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500433 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100434 <action function="page">install</action>
435 </button>
436
437 <button style="main_button_half_height">
438 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500439 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100440 <actions>
441 <action function="queueclear"/>
442 <action function="page">install</action>
443 </actions>
444 </button>
445
446 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500447 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100448 <action function="flash">flash_zip</action>
449 </slider>
450
451 <action>
452 <touch key="back"/>
453 <actions>
454 <action function="cancelzip"/>
455 <action function="page">install</action>
456 </actions>
457 </action>
458
459 <action>
460 <touch key="home"/>
461 <action function="page">main</action>
462 </action>
463 </page>
464
465 <page name="flash_zip">
466 <template name="page"/>
467
468 <text style="text_l">
469 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500470 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100471 </text>
472
473 <text style="text_m">
474 <placement x="%col1_x_header%" y="%row4_header_y%"/>
475 <text>%tw_file%</text>
476 </text>
477
478 <template name="console"/>
479
480 <template name="progress_bar"/>
481
482 <action>
483 <condition var1="tw_operation_state" var2="1"/>
484 <action function="page">flash_done</action>
485 </action>
486 </page>
487
488 <page name="flash_done">
489 <template name="page"/>
490
491 <text style="text_l">
492 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500493 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100494 </text>
495
496 <text style="text_m_fail">
497 <condition var1="tw_operation_status" op="!=" var2="0"/>
498 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500499 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100500 </text>
501
502 <text style="text_m">
503 <condition var1="tw_operation_status" var2="0"/>
504 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500505 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100506 </text>
507
508 <template name="console"/>
509
510 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500511 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100512 <placement x="%indent%" y="%row21a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500513 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100514 <actions>
515 <action function="set">tw_back=flash_done</action>
516 <action function="set">tw_action=wipe</action>
517 <action function="set">tw_action_param=/cache</action>
518 <action function="set">tw_has_action2=1</action>
519 <action function="set">tw_action2=wipe</action>
520 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500521 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
522 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
523 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
524 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100525 <action function="page">confirm_action</action>
526 </actions>
527 </button>
528
529 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500530 <condition var1="tw_ab_device" var2="1"/>
531 <placement x="%indent%" y="%row21a_y%"/>
532 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
533 <actions>
534 <action function="set">tw_back=flash_done</action>
535 <action function="set">tw_action=wipe</action>
536 <action function="set">tw_action_param=dalvik</action>
537 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
538 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
539 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
540 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
541 <action function="page">confirm_action</action>
542 </actions>
543 </button>
544
545 <button style="main_button_half_height">
Chaosmaster7b66bf52020-02-07 20:33:43 +0100546 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100547 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500548 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100549 <actions>
550 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500551 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100552 </actions>
553 </button>
554
Chaosmaster7b66bf52020-02-07 20:33:43 +0100555 <button style="main_button_half_height">
556 <condition var1="tw_ab_device" var2="1"/>
557 <placement x="%center_x%" y="%row21a_y%"/>
558 <text>{@reboot_btn=Reboot}</text>
559 <actions>
560 <action function="set">tw_back=main2</action>
561 <action function="page">reboot</action>
562 </actions>
563 </button>
564
z31s1g28f0a922015-11-07 18:50:22 +0100565 <action>
566 <touch key="back"/>
567 <actions>
568 <action function="set">tw_clear_destination=install</action>
569 <action function="page">clear_vars</action>
570 </actions>
571 </action>
572
573 <action>
574 <touch key="home"/>
575 <actions>
576 <action function="set">tw_clear_destination=main2</action>
577 <action function="page">clear_vars</action>
578 </actions>
579 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500580
581 <action>
582 <conditions>
583 <condition var1="tw_install_reboot" var2="1"/>
584 <condition var1="tw_operation_status" var2="0"/>
585 <condition var1="tw_reboot_system" var2="1"/>
586 </conditions>
587 <actions>
588 <action function="set">tw_sleep=%tw_sleep_total%</action>
589 <action function="page">flash_sleep_and_reboot</action>
590 </actions>
591 </action>
592 </page>
593
594 <page name="flash_sleep_and_reboot">
595 <template name="page"/>
596
597 <text style="text_l">
598 <placement x="%col1_x_header%" y="%row3_header_y%"/>
599 <text>{@install_zip_hdr=Install Zip}</text>
600 </text>
601
602 <text style="text_m">
603 <placement x="%col1_x_header%" y="%row4_header_y%"/>
604 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
605 </text>
606
607 <template name="console"/>
608
609 <template name="progress_bar"/>
610
611 <button style="main_button_half_height">
612 <condition var1="tw_sleep" op="&gt;" var2="0"/>
613 <placement x="%center_x%" y="%row21a_y%"/>
614 <text>{@cancel_btn=Cancel}</text>
615 <actions>
616 <action function="set">tw_install_reboot=0</action>
617 <action function="page">flash_done</action>
618 </actions>
619 </button>
620
621 <action>
622 <conditions>
623 <condition var1="tw_sleep" var2="tw_sleep_total"/>
624 <condition var1="tw_install_reboot" var2="1"/>
625 </conditions>
626 <action function="sleepcounter">%tw_sleep_total%</action>
627 </action>
628
629 <action>
630 <conditions>
631 <condition var1="tw_sleep" var2="0"/>
632 <condition var1="tw_install_reboot" var2="1"/>
633 </conditions>
634 <actions>
635 <action function="sleep">50000</action>
636 <action function="set">tw_back=main2</action>
637 <action function="page">reboot_system_routine</action>
638 </actions>
639 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100640 </page>
641
642 <page name="flashimage_confirm">
643 <template name="page"/>
644
645 <text style="text_l">
646 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500647 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100648 </text>
649
650 <text style="text_m">
651 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500652 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100653 </text>
654
655 <text style="text_m_accent">
656 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500657 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100658 </text>
659
660 <text style="text_m">
661 <placement x="%indent%" y="%row3_y%"/>
662 <text>%tw_zip_location%</text>
663 </text>
664
665 <text style="text_m_accent">
666 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500667 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100668 </text>
669
670 <text style="text_m">
671 <placement x="%indent%" y="%row5a_y%"/>
672 <text>%tw_file%</text>
673 </text>
674
675 <partitionlist>
676 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%partitionlist_flashimage_height%"/>
677 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500678 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100679 <data name="tw_flash_partition"/>
680 <listtype name="flashimg"/>
681 </partitionlist>
682
epicX8f52c0a2021-02-24 23:12:08 +0530683 <button style="checkbox">
684 <conditions>
685 <condition var1="tw_is_slot_part" op="=" var2="1"/>
686 <condition var1="tw_flash_both_slots" op="=" var2="0"/>
687 <condition var1="tw_has_boot_slots" var2="1"/>
688 </conditions>
689 <placement x="%indent%" y="%row19a_y%" textplacement="6"/>
690 <text>{@flash_ab_both_slots=Flash to both slots}</text>
691 <image resource="checkbox_false"/>
692 <action function="set">tw_flash_both_slots=1</action>
693 </button>
694
695 <button style="checkbox">
696 <conditions>
697 <condition var1="tw_is_slot_part" op="=" var2="1"/>
698 <condition var1="tw_flash_both_slots" op="=" var2="1"/>
699 <condition var1="tw_has_boot_slots" var2="1"/>
700 </conditions>
701 <placement x="%indent%" y="%row19a_y%" textplacement="6"/>
702 <text>{@flash_ab_both_slots=Flash to both slots}</text>
703 <image resource="checkbox_true"/>
704 <action function="set">tw_flash_both_slots=0</action>
705 </button>
706
z31s1g28f0a922015-11-07 18:50:22 +0100707 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500708 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100709 <actions>
710 <action function="set">tw_back=flashimage_confirm</action>
711 <action function="set">tw_action=flashimage</action>
712 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500713 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100714 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500715 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100716 <action function="page">action_page</action>
717 </actions>
718 <action function="flashimage"/>
719 </slider>
720
721 <action>
722 <touch key="back"/>
723 <actions>
724 <action function="set">tw_clear_destination=install</action>
725 <action function="page">clear_vars</action>
726 </actions>
727 </action>
728
729 <action>
730 <touch key="home"/>
731 <actions>
732 <action function="set">tw_clear_destination=main2</action>
733 <action function="page">clear_vars</action>
734 </actions>
735 </action>
736 </page>
737
738 <page name="clear_vars">
739 <action>
740 <action function="set">tw_operation_state=0</action>
741 <action function="set">tw_text1=</action>
742 <action function="set">tw_text2=</action>
743 <action function="set">tw_text3=</action>
744 <action function="set">tw_text4=</action>
745 <action function="set">tw_action_text1=</action>
746 <action function="set">tw_action_text2=</action>
747 <action function="set">tw_action_param=</action>
748 <action function="set">tw_has_action2=0</action>
749 <action function="set">tw_action2=</action>
750 <action function="set">tw_action2_param=</action>
751 <action function="set">tw_has_cancel=0</action>
752 <action function="set">tw_cancel_action=</action>
753 <action function="set">tw_cancel_param=</action>
754 <action function="set">tw_show_exclamation=0</action>
755 <action function="set">tw_show_reboot=0</action>
Noah Jacobson81d638d2019-04-28 00:10:07 -0400756 <action function="set">tw_crypto_user_id=</action>
757 <action function="set">tw_multiuser_warning_accepted=</action>
758 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100759 <action function="page">%tw_clear_destination%</action>
760 </action>
761 </page>
762
Matt Mower908dd252016-05-25 02:26:50 -0500763 <page name="reboot_system_routine">
764 <action>
765 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500766 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500767 <action function="set">tw_has_action2=0</action>
768 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
769 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
770 <action function="set">tw_text3=</action>
771 <action function="set">tw_text4=</action>
772 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
773 <action function="set">tw_action_text2=</action>
774 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
775 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
776 <action function="page">rebootcheck</action>
777 </action>
778 </page>
779
z31s1g28f0a922015-11-07 18:50:22 +0100780 <page name="confirm_action">
781 <template name="page"/>
782
783 <text style="text_l">
784 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500785 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100786 </text>
787
788 <text style="text_m">
789 <placement x="%col1_x_header%" y="%row4_header_y%"/>
790 <text/>
791 </text>
792
793 <text style="text_m_accent">
794 <placement x="%center_x%" y="%row2_y%" placement="5"/>
795 <text>%tw_text1%</text>
796 </text>
797
798 <text style="text_m_accent">
799 <placement x="%center_x%" y="%row3_y%" placement="5"/>
800 <text>%tw_text2%</text>
801 </text>
802
803 <text style="text_m">
804 <placement x="%center_x%" y="%row4_y%" placement="5"/>
805 <text>%tw_text3%</text>
806 </text>
807
808 <text style="text_m">
809 <placement x="%center_x%" y="%row5_y%" placement="5"/>
810 <text>%tw_text4%</text>
811 </text>
812
813 <text style="text_m">
814 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500815 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100816 </text>
817
818 <slider>
819 <text>%tw_slider_text%</text>
820 <action function="page">action_page</action>
821 </slider>
822
823 <action>
824 <touch key="back"/>
825 <actions>
826 <action function="set">tw_clear_destination=%tw_back%</action>
827 <action function="page">clear_vars</action>
828 </actions>
829 </action>
830
831 <action>
832 <touch key="home"/>
833 <action function="page">main</action>
834 </action>
835 </page>
836
837 <page name="action_page">
838 <template name="page"/>
839
840 <text style="text_l">
841 <placement x="%col1_x_header%" y="%row3_header_y%"/>
842 <text>%tw_action_text1%</text>
843 </text>
844
845 <text style="text_m">
846 <placement x="%col1_x_header%" y="%row4_header_y%"/>
847 <text>%tw_action_text2%</text>
848 </text>
849
850 <template name="console"/>
851
852 <template name="progress_bar"/>
853
854 <button style="main_button_half_height">
855 <condition var1="tw_has_cancel" var2="1"/>
856 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500857 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100858 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
859 </button>
860
861 <action>
862 <condition var1="tw_operation_state" var2="1"/>
863 <actions>
864 <action function="page">action_complete</action>
865 </actions>
866 </action>
867
868 <action>
869 <condition var1="tw_has_action2" var2="0"/>
870 <actions>
871 <action function="%tw_action%">%tw_action_param%</action>
872 </actions>
873 </action>
874
875 <action>
876 <condition var1="tw_has_action2" var2="1"/>
877 <actions>
878 <action function="%tw_action%">%tw_action_param%</action>
879 <action function="%tw_action2%">%tw_action2_param%</action>
880 </actions>
881 </action>
882 </page>
883
884 <page name="singleaction_page">
885 <template name="page"/>
886
887 <text style="text_l">
888 <placement x="%col1_x_header%" y="%row3_header_y%"/>
889 <text>%tw_action_text1%</text>
890 </text>
891
892 <text style="text_m">
893 <placement x="%col1_x_header%" y="%row4_header_y%"/>
894 <text>%tw_action_text2%</text>
895 </text>
896
897 <template name="console"/>
898
899 <template name="progress_bar"/>
900
901 <action>
902 <condition var1="tw_operation_state" var2="1"/>
903 <actions>
904 <action function="set">tw_page_done=1</action>
905 </actions>
906 </action>
907
908 <action>
909 <condition var1="tw_has_action2" var2="0"/>
910 <actions>
911 <action function="%tw_action%">%tw_action_param%</action>
912 </actions>
913 </action>
914
915 <action>
916 <condition var1="tw_has_action2" var2="1"/>
917 <actions>
918 <action function="%tw_action%">%tw_action_param%</action>
919 <action function="%tw_action2%">%tw_action2_param%</action>
920 </actions>
921 </action>
922 </page>
923
924 <page name="action_complete">
925 <template name="page"/>
926
927 <text style="text_l">
928 <placement x="%col1_x_header%" y="%row3_header_y%"/>
929 <text>%tw_complete_text1%</text>
930 </text>
931
932 <text style="text_m_fail">
933 <condition var1="tw_operation_status" op="!=" var2="0"/>
934 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500935 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100936 </text>
937
938 <text style="text_m">
939 <condition var1="tw_operation_status" var2="0"/>
940 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500941 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100942 </text>
943
944 <template name="console"/>
945
946 <button style="main_button_half_height">
947 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500948 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100949 <actions>
950 <action function="set">tw_clear_destination=%tw_back%</action>
951 <action function="page">clear_vars</action>
952 </actions>
953 </button>
954
955 <button style="main_button_half_height">
956 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500957 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100958 <actions>
959 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500960 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100961 </actions>
962 </button>
963
964 <action>
965 <touch key="home"/>
966 <actions>
967 <action function="set">tw_clear_destination=main2</action>
968 <action function="page">clear_vars</action>
969 </actions>
970 </action>
971
972 <action>
973 <touch key="back"/>
974 <actions>
975 <action function="set">tw_clear_destination=%tw_back%</action>
976 <action function="page">clear_vars</action>
977 </actions>
978 </action>
979 </page>
980
981 <page name="filecheck">
982 <action>
983 <action function="fileexists">%tw_filecheck%</action>
984 </action>
985
986 <action>
987 <conditions>
988 <condition var1="tw_operation_state" var2="1"/>
989 <condition var1="tw_operation_status" var2="0"/>
990 </conditions>
991 <actions>
992 <action function="set">tw_fileexists=1</action>
993 <action function="page">%tw_existpage%</action>
994 </actions>
995 </action>
996
997 <action>
998 <conditions>
999 <condition var1="tw_operation_state" var2="1"/>
1000 <condition var1="tw_operation_status" var2="1"/>
1001 </conditions>
1002 <actions>
1003 <action function="set">tw_fileexists=0</action>
1004 <action function="page">%tw_notexistpage%</action>
1005 </actions>
1006 </action>
1007 </page>
1008
1009 <page name="rebootcheck">
1010 <action>
1011 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06001012 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +01001013 </action>
1014
1015 <action>
1016 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1017 <action function="page">confirm_action</action>
1018 </action>
1019 </page>
1020
1021 <page name="wipe">
1022 <template name="page"/>
1023
1024 <text style="text_l">
1025 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001026 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001027 </text>
1028
1029 <text style="text_m">
1030 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001031 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001032 </text>
1033
1034 <text style="text_m_accent">
1035 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001036 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001037 </text>
1038
1039 <text style="text_m_accent">
bigbiffadc599e2020-05-28 19:36:30 +00001040 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04001041 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1042 </text>
1043
1044 <text style="text_m_accent">
1045 <condition var1="tw_has_data_media" var2="1"/>
1046 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001047 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001048 </text>
1049
1050 <text style="text_m_accent">
1051 <conditions>
1052 <condition var1="tw_has_android_secure" var2="1"/>
1053 <condition var1="fileexists" var2="/and-sec"/>
1054 </conditions>
1055 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001056 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001057 </text>
1058
1059 <text style="text_m_accent">
1060 <condition var1="tw_has_sdext_partition" var2="1"/>
1061 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001062 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001063 </text>
1064
1065 <text style="text_m">
1066 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001067 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001068 </text>
1069
1070 <text style="text_m">
1071 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001072 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001073 </text>
1074
1075 <text style="text_m">
1076 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001077 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001078 </text>
1079
1080 <button style="main_button_half_height">
1081 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001082 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001083 <actions>
1084 <action function="set">partitionlisterror=0</action>
1085 <action function="page">advancedwipe</action>
1086 </actions>
1087 </button>
1088
1089 <button style="main_button_half_height">
1090 <condition var1="tw_has_data_media" var2="1"/>
1091 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001092 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001093 <action function="page">formatdata</action>
1094 </button>
1095
1096 <button style="main_button_half_height">
1097 <conditions>
1098 <condition var1="tw_is_encrypted" var2="1"/>
1099 <condition var1="tw_has_data_media" var2="0"/>
1100 </conditions>
1101 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001102 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001103 <actions>
1104 <action function="set">tw_back=wipe</action>
1105 <action function="set">tw_action=wipe</action>
1106 <action function="set">tw_action_param=DATAMEDIA</action>
1107 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001108 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001109 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001110 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1111 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1112 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001113 <action function="page">confirm_action</action>
1114 </actions>
1115 </button>
1116
1117 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001118 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001119 <actions>
1120 <action function="set">tw_back=wipe</action>
1121 <action function="set">tw_action=wipe</action>
1122 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001123 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1124 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001125 <action function="page">action_page</action>
1126 </actions>
1127 </slider>
1128
1129 <action>
1130 <touch key="back"/>
1131 <action function="page">main</action>
1132 </action>
1133
1134 <action>
1135 <touch key="home"/>
1136 <action function="page">main</action>
1137 </action>
1138 </page>
1139
1140 <page name="advancedwipe">
1141 <template name="page"/>
1142
1143 <action>
1144 <action function="set">tw_wipe_list=</action>
1145 </action>
1146
1147 <text style="text_l">
1148 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001149 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001150 </text>
1151
1152 <text style="text_m">
1153 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001154 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001155 </text>
1156
1157 <partitionlist>
1158 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001159 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001160 <data name="tw_wipe_list"/>
1161 <listtype name="wipe"/>
1162 </partitionlist>
1163
1164 <text style="text_m_fail">
1165 <condition var1="partitionlisterror" var2="1"/>
1166 <placement x="%center_x%" y="%row17_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001167 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001168 </text>
1169
1170 <button style="main_button_half_height_full_width">
1171 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001172 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001173 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001174 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001175 <action function="page">checkpartitionlist</action>
1176 </actions>
1177 </button>
1178
1179 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001180 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001181 <actions>
1182 <action function="set">tw_back=advancedwipe</action>
1183 <action function="set">tw_action=wipe</action>
1184 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001185 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1186 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1187 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001188 <action function="page">action_page</action>
1189 </actions>
1190 </slider>
1191
1192 <action>
1193 <touch key="home"/>
1194 <action function="page">main</action>
1195 </action>
1196
1197 <action>
1198 <touch key="back"/>
1199 <action function="page">wipe</action>
1200 </action>
1201 </page>
1202
1203 <page name="formatdata">
1204 <template name="page"/>
1205
1206 <text style="text_l">
1207 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001208 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001209 </text>
1210
1211 <text style="text_m">
1212 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001213 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001214 </text>
1215
1216 <text style="text_m_fail">
1217 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001218 <text>{@format_data_ptr1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001219 </text>
1220
1221 <text style="text_m_fail">
1222 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001223 <text>{@format_data_ptr2=backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001224 </text>
1225
1226 <text style="text_m_fail">
1227 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001228 <text>{@format_data_ptr3=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001229 </text>
1230
Ethan Yonker66a19492015-12-10 10:19:45 -06001231 <text style="text_m_fail">
1232 <condition var1="tw_has_adopted_storage" var2="1"/>
1233 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1234 <text>{@format_data_adopted=Including Adopted Storage}</text>
1235 </text>
1236
z31s1g28f0a922015-11-07 18:50:22 +01001237 <text style="text_m">
1238 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001239 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001240 </text>
1241
1242 <text style="text_m">
1243 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001244 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001245 </text>
1246
1247 <input>
1248 <placement x="%indent%" y="%row10_y%" w="%content_width%" h="%input_height%"/>
1249 <text>%tw_confirm_formatdata%</text>
1250 <data name="tw_confirm_formatdata"/>
1251 <restrict minlen="3" maxlen="3" allow="yes"/>
1252 <action function="page">formatdata_confirm</action>
1253 </input>
1254
1255 <fill color="%accent_color%">
1256 <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width"/>
1257 </fill>
1258
1259 <template name="keyboardtemplate"/>
1260
1261 <action>
1262 <touch key="home"/>
1263 <action function="page">main</action>
1264 </action>
1265
1266 <action>
1267 <touch key="back"/>
1268 <action function="page">wipe</action>
1269 </action>
1270 </page>
1271
1272 <page name="formatdata_confirm">
1273 <action>
1274 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1275 <actions>
1276 <action function="set">tw_back=formatdata</action>
1277 <action function="set">tw_action=wipe</action>
1278 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001279 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1280 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001281 <action function="page">action_page</action>
1282 </actions>
1283 </action>
1284
1285 <action>
1286 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1287 <action function="page">formatdata</action>
1288 </action>
1289 </page>
1290
1291 <page name="checkpartitionlist">
1292 <action>
1293 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1294 <actions>
1295 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001296 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001297 <action function="page">partitionoptions</action>
1298 </actions>
1299 </action>
1300
1301 <action>
1302 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1303 <actions>
1304 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001305 <action function="page">advancedwipe</action>
1306 </actions>
1307 </action>
1308 </page>
1309
1310 <page name="partitionoptions">
1311 <template name="page"/>
1312
1313 <text style="text_l">
1314 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001315 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001316 </text>
1317
1318 <text style="text_m">
1319 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001320 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001321 </text>
1322
1323 <text style="text_m_accent">
1324 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001325 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001326 </text>
1327
1328 <text style="text_m_accent">
1329 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001330 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001331 </text>
1332
1333 <text style="text_m">
1334 <condition var1="tw_partition_is_present" var2="1"/>
1335 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001336 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001337 </text>
1338
1339 <text style="text_m">
1340 <condition var1="tw_partition_is_present" var2="0"/>
1341 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001342 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001343 </text>
1344
1345 <text style="text_m">
1346 <condition var1="tw_partition_removable" var2="1"/>
1347 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001348 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001349 </text>
1350
1351 <text style="text_m">
1352 <condition var1="tw_partition_removable" var2="0"/>
1353 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001354 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001355 </text>
1356
1357 <text style="text_m">
1358 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001359 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001360 </text>
1361
1362 <text style="text_m">
1363 <placement x="%center_x%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001364 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001365 </text>
1366
1367 <text style="text_m">
1368 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001369 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001370 </text>
1371
1372 <text style="text_m">
1373 <placement x="%center_x%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001374 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001375 </text>
1376
1377 <button style="main_button_half_height">
1378 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1379 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001380 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001381 <actions>
1382 <action function="set">tw_back=partitionoptions</action>
1383 <action function="set">tw_action=resize</action>
1384 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1385 <action function="set">tw_has_action2=1</action>
1386 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001387 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001388 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001389 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001390 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1391 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1392 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001393 <action function="page">confirm_action</action>
1394 </actions>
1395 </button>
1396
1397 <button style="main_button_half_height">
1398 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1399 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001400 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001401 <actions>
1402 <action function="set">tw_back=partitionoptions</action>
1403 <action function="set">tw_action=repair</action>
1404 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1405 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001406 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001407 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001408 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1409 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1410 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001411 <action function="page">confirm_action</action>
1412 </actions>
1413 </button>
1414
1415 <button style="main_button_half_height">
1416 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001417 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001418 <action function="page">selectfilesystem</action>
1419 </button>
1420
1421 <action>
1422 <touch key="home"/>
1423 <action function="page">main</action>
1424 </action>
1425
1426 <action>
1427 <touch key="back"/>
1428 <action function="page">advancedwipe</action>
1429 </action>
1430 </page>
1431
1432 <page name="refreshfilesystem">
1433 <action>
1434 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1435 <actions>
1436 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001437 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001438 <action function="page">selectfilesystem</action>
1439 </actions>
1440 </action>
1441
1442 <action>
1443 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1444 <actions>
1445 <action function="set">partitionlisterror=1</action>
1446 <action function="set">tw_wipe_list=</action>
1447 <action function="page">advancedwipe</action>
1448 </actions>
1449 </action>
1450 </page>
1451
1452 <page name="selectfilesystem">
1453 <template name="page"/>
1454
1455 <text style="text_l">
1456 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001457 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001458 </text>
1459
1460 <text style="text_m">
1461 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001462 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001463 </text>
1464
1465 <text style="text_m_accent">
1466 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001467 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001468 </text>
1469
1470 <text style="text_m_accent">
1471 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001472 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001473 </text>
1474
1475 <text style="text_m_fail">
1476 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001477 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001478 </text>
1479
1480 <text style="text_m_fail">
1481 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001482 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001483 </text>
1484
1485 <button style="main_button_half_height">
1486 <condition var1="tw_partition_ext" op="=" var2="1"/>
1487 <placement x="%indent%" y="%row15a_y%"/>
1488 <text>EXT2</text>
1489 <actions>
1490 <action function="set">tw_back=refreshfilesystem</action>
1491 <action function="set">tw_action=changefilesystem</action>
1492 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1493 <action function="set">tw_action_new_file_system=ext2</action>
1494 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001495 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1496 <action function="set">tw_text2=EXT2</action>
1497 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1498 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1499 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001500 <action function="page">confirm_action</action>
1501 </actions>
1502 </button>
1503
1504 <button style="main_button_half_height">
1505 <condition var1="tw_partition_ext" op="=" var2="1"/>
1506 <placement x="%indent%" y="%row18a_y%"/>
1507 <text>EXT3</text>
1508 <actions>
1509 <action function="set">tw_back=refreshfilesystem</action>
1510 <action function="set">tw_action=changefilesystem</action>
1511 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1512 <action function="set">tw_action_new_file_system=ext3</action>
1513 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001514 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1515 <action function="set">tw_text2=EXT3</action>
1516 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1517 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1518 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001519 <action function="page">confirm_action</action>
1520 </actions>
1521 </button>
1522
1523 <button style="main_button_half_height">
1524 <condition var1="tw_partition_ext" op="=" var2="1"/>
1525 <placement x="%indent%" y="%row21a_y%"/>
1526 <text>EXT4</text>
1527 <actions>
1528 <action function="set">tw_back=refreshfilesystem</action>
1529 <action function="set">tw_action=changefilesystem</action>
1530 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1531 <action function="set">tw_action_new_file_system=ext4</action>
1532 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001533 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1534 <action function="set">tw_text2=EXT4</action>
1535 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1536 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1537 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001538 <action function="page">confirm_action</action>
1539 </actions>
1540 </button>
1541
1542 <button style="main_button_half_height">
1543 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1544 <placement x="%center_x%" y="%row15a_y%"/>
1545 <text>FAT</text>
1546 <actions>
1547 <action function="set">tw_back=refreshfilesystem</action>
1548 <action function="set">tw_action=changefilesystem</action>
1549 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1550 <action function="set">tw_action_new_file_system=vfat</action>
1551 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001552 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1553 <action function="set">tw_text2=FAT</action>
1554 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1555 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1556 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001557 <action function="page">confirm_action</action>
1558 </actions>
1559 </button>
1560
1561 <button style="main_button_half_height">
1562 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1563 <placement x="%center_x%" y="%row18a_y%"/>
1564 <text>exFAT</text>
1565 <actions>
1566 <action function="set">tw_back=refreshfilesystem</action>
1567 <action function="set">tw_action=changefilesystem</action>
1568 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1569 <action function="set">tw_action_new_file_system=exfat</action>
1570 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001571 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1572 <action function="set">tw_text2=exFAT</action>
1573 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1574 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1575 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001576 <action function="page">confirm_action</action>
1577 </actions>
1578 </button>
1579
1580 <button style="main_button_half_height">
1581 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1582 <placement x="%center_x%" y="%row21a_y%"/>
1583 <text>F2FS</text>
1584 <actions>
1585 <action function="set">tw_back=refreshfilesystem</action>
1586 <action function="set">tw_action=changefilesystem</action>
1587 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1588 <action function="set">tw_action_new_file_system=f2fs</action>
1589 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001590 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1591 <action function="set">tw_text2=F2FS</action>
1592 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1593 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1594 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001595 <action function="page">confirm_action</action>
1596 </actions>
1597 </button>
1598
1599 <action>
1600 <touch key="home"/>
1601 <action function="page">main</action>
1602 </action>
1603
1604 <action>
1605 <touch key="back"/>
1606 <action function="page">partitionoptions</action>
1607 </action>
1608 </page>
1609
1610 <page name="backup">
1611 <template name="page"/>
1612
Noah Jacobson81d638d2019-04-28 00:10:07 -04001613 <action>
1614 <conditions>
1615 <condition var1="tw_is_fbe" var2="1"/>
1616 <condition var1="tw_all_users_decrypted" var2="0"/>
1617 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1618 </conditions>
1619 <actions>
1620 <action function="set">tw_multiuser_warning_destination=backup</action>
1621 <action function="page">multiuser_warning</action>
1622 </actions>
1623 </action>
1624
z31s1g28f0a922015-11-07 18:50:22 +01001625 <text style="text_l">
1626 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001627 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001628 </text>
1629
1630 <text style="text_m">
1631 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001632 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001633 </text>
1634
1635 <template name="tabs_backup"/>
1636
1637 <fill color="%text_color%">
1638 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1639 </fill>
1640
1641 <button style="tab">
1642 <conditions>
1643 <condition var1="tw_include_encrypted_backup" var2="1"/>
1644 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001645 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001646 </conditions>
1647 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001648 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001649 <font resource="font_s" color="%text_color%"/>
1650 <actions>
1651 <action function="set">tw_password_not_match=0</action>
1652 <action function="page">backupencryption</action>
1653 </actions>
1654 </button>
1655
1656 <button style="tab">
1657 <conditions>
1658 <condition var1="tw_include_encrypted_backup" var2="1"/>
1659 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001660 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001661 </conditions>
1662 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001663 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001664 <font resource="font_s" color="%text_success_color%"/>
1665 <actions>
1666 <action function="set">tw_password_not_match=0</action>
1667 <action function="page">backupencryption</action>
1668 </actions>
1669 </button>
1670
1671 <text style="text_m_accent">
1672 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001673 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001674 </text>
1675
1676 <text style="text_m">
1677 <placement x="%indent%" y="%row4a_y%"/>
1678 <text>%tw_backup_name%</text>
1679 </text>
1680
1681 <fill color="%fileselector_linecolor%">
1682 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width"/>
1683 </fill>
1684
1685 <button>
bigbiffce8f83c2015-12-12 18:30:21 -05001686 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001687 <placement x="indent" y="%row3a_y%" w="%content_width%" h="%navbar_height%"/>
1688 <fill color="%transparent%"/>
1689 <actions>
1690 <action function="set">tw_fileexists=0</action>
1691 <action function="page">backupname1</action>
1692 </actions>
1693 </button>
1694
1695 <partitionlist>
1696 <placement x="%indent%" y="%row6_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001697 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001698 <data name="tw_backup_list"/>
1699 <listtype name="backup"/>
1700 </partitionlist>
1701
1702 <button style="main_button_half_height">
bigbiffce8f83c2015-12-12 18:30:21 -05001703 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001704 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001705 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001706 <actions>
1707 <action function="set">tw_back=backup</action>
1708 <action function="overlay">select_storage</action>
1709 </actions>
1710 </button>
1711
1712 <button style="main_button_half_height">
1713 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001714 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001715 <actions>
1716 <action function="refreshsizes"/>
1717 <action function="page">backup</action>
1718 </actions>
1719 </button>
1720
1721 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001722 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001723 <action function="page">backup_run</action>
1724 </slider>
1725
1726 <action>
1727 <touch key="home"/>
1728 <action function="page">main</action>
1729 </action>
1730
1731 <action>
1732 <touch key="back"/>
1733 <action function="page">main</action>
1734 </action>
1735 </page>
1736
Noah Jacobson81d638d2019-04-28 00:10:07 -04001737 <page name="multiuser_warning">
1738 <template name="page"/>
1739
1740 <text style="text_l">
1741 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1742 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
1743 </text>
1744
1745 <text style="text_m_fail">
1746 <placement x="%center_x%" y="%row7_y%" placement="5"/>
1747 <text>{@multiuser_warning1=Not all users decrypted!}</text>
1748 </text>
1749
1750 <text style="text_m_fail">
1751 <placement x="%center_x%" y="%row8_y%" placement="5"/>
1752 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
1753 </text>
1754
1755 <button style="main_button_half_height_full_width">
1756 <placement x="%indent%" y="%row18a_y%"/>
1757 <text>{@decrypt_users=Decrypt Users}</text>
1758 <action function="page">decrypt_users</action>
1759 </button>
1760
1761 <slider>>
1762 <text>{@multiuser_warning_accept=Continue Anyway}</text>
1763 <actions>
1764 <action function="set">tw_multiuser_warning_accepted=1</action>
1765 <action function="page">%tw_multiuser_warning_destination%</action>
1766 </actions>
1767 </slider>
1768
1769 <action>
1770 <touch key="home"/>
1771 <action function="page">main</action>
1772 </action>
1773
1774 <action>
1775 <touch key="back"/>
1776 <action function="page">main</action>
1777 </action>
1778 </page>
1779
z31s1g28f0a922015-11-07 18:50:22 +01001780 <page name="backup_options">
1781 <template name="page"/>
1782
1783 <text style="text_l">
1784 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001785 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001786 </text>
1787
1788 <text style="text_m">
1789 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001790 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001791 </text>
1792
1793 <template name="tabs_backup"/>
1794
1795 <fill color="%text_color%">
1796 <placement x="%tab3_col2_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1797 </fill>
1798
1799 <button style="tab">
1800 <conditions>
1801 <condition var1="tw_include_encrypted_backup" var2="1"/>
1802 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001803 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001804 </conditions>
1805 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001806 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001807 <font resource="font_s" color="%text_color%"/>
1808 <actions>
1809 <action function="set">tw_password_not_match=0</action>
1810 <action function="page">backupencryption</action>
1811 </actions>
1812 </button>
1813
1814 <button style="tab">
1815 <conditions>
1816 <condition var1="tw_include_encrypted_backup" var2="1"/>
1817 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001818 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001819 </conditions>
1820 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001821 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001822 <font resource="font_s" color="%text_success_color%"/>
1823 <actions>
1824 <action function="set">tw_password_not_match=0</action>
1825 <action function="page">backupencryption</action>
1826 </actions>
1827 </button>
1828
1829 <checkbox>
1830 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001831 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001832 <data variable="tw_use_compression"/>
1833 </checkbox>
1834
1835 <checkbox>
1836 <placement x="%indent%" y="%row5_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001837 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1838 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001839 </checkbox>
1840
1841 <checkbox>
1842 <placement x="%indent%" y="%row6a_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001843 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001844 <data variable="tw_disable_free_space"/>
1845 </checkbox>
1846
Ethan Yonker1b190162016-12-05 15:25:19 -06001847 <text style="text_m">
1848 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01001849 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06001850 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
1851 </text>
1852
1853 <button style="main_button">
1854 <condition var1="tw_has_boot_slots" var2="1"/>
1855 <placement x="%indent%" y="%row19_y%"/>
1856 <text>{@boot_slot_a=Slot A}</text>
1857 <actions>
1858 <action function="set">tw_back=backup_options</action>
1859 <action function="set">tw_action=setbootslot</action>
1860 <action function="set">tw_action_param=A</action>
1861 <action function="set">tw_has_action2=0</action>
1862 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1863 <action function="set">tw_action_text2=</action>
1864 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1865 <action function="page">action_page</action>
1866 </actions>
1867 </button>
1868
1869 <button style="main_button">
1870 <condition var1="tw_has_boot_slots" var2="1"/>
1871 <placement x="%center_x%" y="%row19_y%"/>
1872 <text>{@boot_slot_b=Slot B}</text>
1873 <actions>
1874 <action function="set">tw_back=backup_options</action>
1875 <action function="set">tw_action=setbootslot</action>
1876 <action function="set">tw_action_param=B</action>
1877 <action function="set">tw_has_action2=0</action>
1878 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1879 <action function="set">tw_action_text2=</action>
1880 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1881 <action function="page">action_page</action>
1882 </actions>
1883 </button>
1884
z31s1g28f0a922015-11-07 18:50:22 +01001885 <action>
1886 <touch key="home"/>
1887 <action function="page">main</action>
1888 </action>
1889
1890 <action>
1891 <touch key="back"/>
1892 <action function="page">backup</action>
1893 </action>
1894 </page>
1895
1896 <page name="backupname1">
1897 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001898 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001899 <action function="generatebackupname"/>
1900 </action>
1901
1902 <action>
1903 <action function="page">backupname2</action>
1904 </action>
1905 </page>
1906
1907 <page name="backupname2">
1908 <template name="page"/>
1909
1910 <text style="text_l">
1911 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001912 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001913 </text>
1914
1915 <text style="text_m">
1916 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001917 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001918 </text>
1919
1920 <template name="tabs_backup"/>
1921
1922 <fill color="%text_color%">
1923 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1924 </fill>
1925
1926 <button style="tab">
1927 <conditions>
1928 <condition var1="tw_include_encrypted_backup" var2="1"/>
1929 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001930 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001931 </conditions>
1932 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001933 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001934 <font resource="font_s" color="%text_color%"/>
1935 <actions>
1936 <action function="set">tw_password_not_match=0</action>
1937 <action function="page">backupencryption</action>
1938 </actions>
1939 </button>
1940
1941 <button style="tab">
1942 <conditions>
1943 <condition var1="tw_include_encrypted_backup" var2="1"/>
1944 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001945 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001946 </conditions>
1947 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001948 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001949 <font resource="font_s" color="%text_success_color%"/>
1950 <actions>
1951 <action function="set">tw_password_not_match=0</action>
1952 <action function="page">backupencryption</action>
1953 </actions>
1954 </button>
1955
1956 <text style="text_m_accent">
1957 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001958 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001959 </text>
1960
1961 <input>
1962 <placement x="%indent%" y="%row4_input_y%" w="%content_width%" h="%input_height%"/>
1963 <text>%tw_backup_name%</text>
1964 <data name="tw_backup_name"/>
1965 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1966 <actions>
1967 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1968 <action function="set">tw_existpage=backupname2</action>
1969 <action function="set">tw_notexistpage=backup</action>
1970 <action function="page">filecheck</action>
1971 </actions>
1972 </input>
1973
1974 <fill color="%accent_color%">
1975 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1976 </fill>
1977
1978 <fill color="%text_fail_color%">
1979 <condition var1="tw_fileexists" var2="1"/>
1980 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1981 </fill>
1982
1983 <text style="text_m_fail">
1984 <condition var1="tw_fileexists" var2="1"/>
1985 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001986 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001987 </text>
1988
1989 <button style="main_button_half_height">
1990 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001991 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001992 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001993 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001994 <action function="page">backup</action>
1995 </actions>
1996 </button>
1997
1998 <button style="main_button_half_height">
1999 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002000 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002001 <action function="appenddatetobackupname"/>
2002 </button>
2003
2004 <template name="keyboardtemplate"/>
2005
2006 <action>
2007 <touch key="home"/>
2008 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002009 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002010 <action function="page">main</action>
2011 </actions>
2012 </action>
2013
2014 <action>
2015 <touch key="back"/>
2016 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002017 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002018 <action function="page">backup</action>
2019 </actions>
2020 </action>
2021 </page>
2022
2023 <page name="backupencryption">
2024 <template name="page"/>
2025
2026 <text style="text_l">
2027 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002028 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002029 </text>
2030
2031 <text style="text_m">
2032 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002033 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002034 </text>
2035
2036 <template name="tabs_backup"/>
2037
2038 <button style="tab">
2039 <conditions>
2040 <condition var1="tw_include_encrypted_backup" var2="1"/>
2041 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002042 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002043 </conditions>
2044 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002045 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002046 <font resource="font_s" color="%text_color%"/>
2047 <actions>
2048 <action function="set">tw_password_not_match=0</action>
2049 <action function="page">backupencryption</action>
2050 </actions>
2051 </button>
2052
2053 <button style="tab">
2054 <conditions>
2055 <condition var1="tw_include_encrypted_backup" var2="1"/>
2056 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002057 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002058 </conditions>
2059 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002060 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002061 <font resource="font_s" color="%text_success_color%"/>
2062 <actions>
2063 <action function="set">tw_password_not_match=0</action>
2064 <action function="page">backupencryption</action>
2065 </actions>
2066 </button>
2067
2068 <fill color="%text_color%">
2069 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2070 </fill>
2071
2072 <text style="text_m_accent">
2073 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002074 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002075 </text>
2076
2077 <text style="text_m">
2078 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002079 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002080 </text>
2081
2082 <input>
2083 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2084 <text>%tw_backup_encrypt_display%</text>
2085 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2086 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2087 <action function="page">backupencryption2</action>
2088 </input>
2089
2090 <fill color="%accent_color%">
2091 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2092 </fill>
2093
2094 <fill color="%text_fail_color%">
2095 <condition var1="tw_password_not_match" var2="1"/>
2096 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2097 </fill>
2098
2099 <text style="text_m_fail">
2100 <condition var1="tw_password_not_match" var2="1"/>
2101 <placement x="%indent%" y="%row8a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002102 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002103 </text>
2104
2105 <button style="main_button_half_height">
2106 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002107 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002108 <actions>
2109 <action function="set">tw_encrypt_backup=0</action>
2110 <action function="set">tw_backup_password=</action>
2111 <action function="set">tw_backup_password2=</action>
2112 <action function="set">tw_backup_encrypt_display=</action>
2113 <action function="set">tw_backup_encrypt_display2=</action>
2114 <action function="page">backup</action>
2115 </actions>
2116 </button>
2117
2118 <template name="keyboardtemplate"/>
2119
2120 <action>
2121 <touch key="home"/>
2122 <action function="page">main</action>
2123 </action>
2124
2125 <action>
2126 <touch key="back"/>
2127 <action function="page">backup</action>
2128 </action>
2129 </page>
2130
2131 <page name="backupencryption2">
2132 <template name="page"/>
2133
2134 <text style="text_l">
2135 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002136 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002137 </text>
2138
2139 <text style="text_m">
2140 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002141 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002142 </text>
2143
2144 <template name="tabs_backup"/>
2145
2146 <button style="tab">
2147 <conditions>
2148 <condition var1="tw_include_encrypted_backup" var2="1"/>
2149 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002150 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002151 </conditions>
2152 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002153 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002154 <font resource="font_s" color="%text_color%"/>
2155 <actions>
2156 <action function="set">tw_password_not_match=0</action>
2157 <action function="page">backupencryption</action>
2158 </actions>
2159 </button>
2160
2161 <button style="tab">
2162 <conditions>
2163 <condition var1="tw_include_encrypted_backup" var2="1"/>
2164 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002165 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002166 </conditions>
2167 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002168 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002169 <font resource="font_s" color="%text_success_color%"/>
2170 <actions>
2171 <action function="set">tw_password_not_match=0</action>
2172 <action function="page">backupencryption</action>
2173 </actions>
2174 </button>
2175
2176 <fill color="%text_color%">
2177 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2178 </fill>
2179
2180 <text style="text_m_accent">
2181 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002182 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002183 </text>
2184
2185 <text style="text_m">
2186 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002187 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002188 </text>
2189
2190 <input>
2191 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2192 <text>%tw_backup_encrypt_display2%</text>
2193 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2194 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2195 <action function="page">checkbackuppassword</action>
2196 </input>
2197
2198 <fill color="%accent_color%">
2199 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2200 </fill>
2201
2202 <button style="main_button_half_height">
2203 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002204 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002205 <actions>
2206 <action function="set">tw_encrypt_backup=0</action>
2207 <action function="set">tw_backup_password=</action>
2208 <action function="set">tw_backup_password2=</action>
2209 <action function="set">tw_backup_encrypt_display=</action>
2210 <action function="set">tw_backup_encrypt_display2=</action>
2211 <action function="page">backup</action>
2212 </actions>
2213 </button>
2214
2215 <template name="keyboardtemplate"/>
2216
2217 <action>
2218 <touch key="home"/>
2219 <action function="page">main</action>
2220 </action>
2221
2222 <action>
2223 <touch key="back"/>
2224 <action function="page">backup</action>
2225 </action>
2226 </page>
2227
2228 <page name="checkbackuppassword">
2229 <action>
2230 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2231 <actions>
2232 <action function="set">tw_encrypt_backup=1</action>
2233 <action function="page">backup</action>
2234 </actions>
2235 </action>
2236
2237 <action>
2238 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2239 <actions>
2240 <action function="set">tw_encrypt_backup=0</action>
2241 <action function="set">tw_password_not_match=1</action>
2242 <action function="set">tw_backup_password=</action>
2243 <action function="set">tw_backup_password2=</action>
2244 <action function="set">tw_backup_encrypt_display=</action>
2245 <action function="set">tw_backup_encrypt_display2=</action>
2246 <action function="page">backupencryption</action>
2247 </actions>
2248 </action>
2249 </page>
2250
2251 <page name="backup_run">
2252 <template name="page"/>
2253
2254 <text style="text_l">
2255 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2256 <text>%tw_operation%</text>
2257 </text>
2258
2259 <text style="text_m">
2260 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2261 <text>%tw_partition% Partition</text>
2262 </text>
2263
2264 <template name="console"/>
2265
2266 <template name="progress_bar"/>
2267
2268 <text style="text_m_accent">
2269 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002270 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002271 </text>
2272
2273 <text style="text_m">
2274 <placement x="%indent%" y="%row20_y%"/>
2275 <text>%tw_file_progress%</text>
2276 </text>
2277
2278 <text style="text_m">
2279 <placement x="%indent%" y="%row21_y%"/>
2280 <text>%tw_size_progress%</text>
2281 </text>
2282
2283 <button style="main_button_half_height">
2284 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002285 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002286 <action function="cancelbackup"/>
2287 </button>
2288
2289 <action>
2290 <action function="nandroid">backup</action>
2291 </action>
2292
2293 <action>
2294 <condition var1="tw_operation_state" var2="1"/>
2295 <condition var1="tw_cancel_backup" var2="0"/>
2296 <actions>
2297 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002298 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002299 <action function="set">tw_show_reboot=1</action>
2300 <action function="page">action_complete</action>
2301 </actions>
2302 </action>
2303
2304 <action>
2305 <condition var1="tw_operation_state" var2="1"/>
2306 <condition var1="tw_cancel_backup" var2="1"/>
2307 <actions>
2308 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002309 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002310 <action function="set">tw_show_reboot=1</action>
2311 <action function="page">action_complete</action>
2312 </actions>
2313 </action>
2314 </page>
2315
2316 <page name="restore">
2317 <template name="page"/>
2318
Noah Jacobson81d638d2019-04-28 00:10:07 -04002319 <action>
2320 <conditions>
2321 <condition var1="tw_is_fbe" var2="1"/>
2322 <condition var1="tw_all_users_decrypted" var2="0"/>
2323 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2324 </conditions>
2325 <actions>
2326 <action function="set">tw_multiuser_warning_destination=restore</action>
2327 <action function="page">multiuser_warning</action>
2328 </actions>
2329 </action>
2330
z31s1g28f0a922015-11-07 18:50:22 +01002331 <text style="text_l">
2332 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002333 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002334 </text>
2335
2336 <text style="text_m">
2337 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002338 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002339 </text>
2340
2341 <template name="sort_options"/>
2342
2343 <fileselector>
2344 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002345 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002346 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002347 <path name="tw_backups_folder"/>
2348 <data name="tw_restore" default=""/>
2349 <selection name="tw_restore_name"/>
2350 </fileselector>
2351
2352 <button style="main_button_half_height">
2353 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002354 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002355 <actions>
2356 <action function="set">tw_back=restore</action>
2357 <action function="overlay">select_storage</action>
2358 </actions>
2359 </button>
2360
2361 <action>
bigbiff8f5fad32021-11-03 20:39:02 -04002362 <condition var1="tw_crypto_pwtype" op="!=" var2="0"/>
2363 <actions>
2364 <action function="page">restore_keymaster</action>
2365 </actions>
2366 </action>
2367
2368 <action>
2369 <condition var1="tw_restore" op="modified"/>
2370 <actions>
2371 <action function="readBackup"/>
2372 <action function="page">restore_read</action>
2373 </actions>
2374 </action>
2375
2376 <action>
2377 <touch key="home"/>
2378 <action function="page">main</action>
2379 </action>
2380
2381 <action>
2382 <touch key="back"/>
2383 <action function="page">main</action>
2384 </action>
2385 </page>
2386
2387
2388 <page name="restore_force">
2389 <template name="page"/>
2390
2391 <action>
2392 <conditions>
2393 <condition var1="tw_is_fbe" var2="1"/>
2394 <condition var1="tw_all_users_decrypted" var2="0"/>
2395 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2396 </conditions>
2397 <actions>
2398 <action function="set">tw_multiuser_warning_destination=restore</action>
2399 <action function="page">multiuser_warning</action>
2400 </actions>
2401 </action>
2402
2403 <text style="text_l">
2404 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2405 <text>{@restore_hdr=Restore}</text>
2406 </text>
2407
2408 <text style="text_m">
2409 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2410 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
2411 </text>
2412
2413 <template name="sort_options"/>
2414
2415 <fileselector>
2416 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
2417 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
2418 <filter folders="1" files="1" nav="0" extn=".ab"/>
2419 <path name="tw_backups_folder"/>
2420 <data name="tw_restore" default=""/>
2421 <selection name="tw_restore_name"/>
2422 </fileselector>
2423
2424 <button style="main_button_half_height">
2425 <placement x="%indent%" y="%row21a_y%"/>
2426 <text>{@select_storage_btn=Select Storage}</text>
2427 <actions>
2428 <action function="set">tw_back=restore</action>
2429 <action function="overlay">select_storage</action>
2430 </actions>
2431 </button>
2432
2433 <action>
z31s1g28f0a922015-11-07 18:50:22 +01002434 <condition var1="tw_restore" op="modified"/>
2435 <actions>
2436 <action function="readBackup"/>
2437 <action function="page">restore_read</action>
2438 </actions>
2439 </action>
2440
2441 <action>
2442 <touch key="home"/>
2443 <action function="page">main</action>
2444 </action>
2445
2446 <action>
2447 <touch key="back"/>
2448 <action function="page">main</action>
2449 </action>
2450 </page>
2451
2452 <page name="restore_read">
2453 <action>
2454 <condition var1="tw_restore_encrypted" var2="1"/>
2455 <actions>
2456 <action function="set">tw_password_fail=0</action>
2457 <action function="page">restore_decrypt</action>
2458 </actions>
2459 </action>
2460
2461 <action>
2462 <condition var1="tw_restore_encrypted" var2="0"/>
2463 <actions>
2464 <action function="page">restore_select</action>
2465 </actions>
2466 </action>
2467 </page>
2468
2469 <page name="restore_decrypt">
2470 <template name="page"/>
2471
2472 <text style="text_l">
2473 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002474 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002475 </text>
2476
2477 <text style="text_m">
2478 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002479 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002480 </text>
2481
2482 <text style="text_m_accent">
2483 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002484 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002485 </text>
2486
2487 <input>
2488 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2489 <text>%tw_restore_display%</text>
2490 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2491 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2492 <action function="page">try_restore_decrypt</action>
2493 </input>
2494
2495 <fill color="%accent_color%">
2496 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2497 </fill>
2498
2499 <fill color="%text_fail_color%">
2500 <condition var1="tw_password_fail" var2="1"/>
2501 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2502 </fill>
2503
2504 <text style="text_m_fail">
2505 <condition var1="tw_password_fail" var2="1"/>
2506 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002507 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002508 </text>
2509
2510 <button style="main_button_half_height">
2511 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002512 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002513 <actions>
2514 <action function="set">tw_page_done=1</action>
2515 <action function="page">restore</action>
2516 </actions>
2517 </button>
2518
2519 <button style="main_button_half_height">
2520 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002521 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002522 <actions>
2523 <action function="set">tw_back=restore</action>
2524 <action function="set">tw_action=cmd</action>
2525 <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 -05002526 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2527 <action function="set">tw_text2=%tw_restore_name%</action>
2528 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2529 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2530 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2531 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002532 <action function="page">confirm_action</action>
2533 </actions>
2534 </button>
2535
2536 <template name="keyboardtemplate"/>
2537
2538 <action>
2539 <touch key="home"/>
2540 <action function="page">main</action>
2541 </action>
2542
2543 <action>
2544 <touch key="back"/>
2545 <action function="page">restore</action>
2546 </action>
2547 </page>
2548
2549 <page name="try_restore_decrypt">
2550 <template name="page"/>
2551
2552 <text style="text_l">
2553 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002554 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002555 </text>
2556
2557 <text style="text_m">
2558 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002559 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002560 </text>
2561
2562 <template name="console"/>
2563
2564 <template name="progress_bar"/>
2565
2566 <action>
2567 <action function="decrypt_backup"/>
2568 </action>
2569
2570 <action>
2571 <conditions>
2572 <condition var1="tw_operation_state" var2="1"/>
2573 <condition var1="tw_operation_status" op="!=" var2="0"/>
2574 </conditions>
2575 <actions>
2576 <action function="set">tw_password_fail=1</action>
2577 <action function="page">restore_decrypt</action>
2578 </actions>
2579 </action>
2580
2581 <action>
2582 <conditions>
2583 <condition var1="tw_operation_state" var2="1"/>
2584 <condition var1="tw_operation_status" op="=" var2="0"/>
2585 </conditions>
2586 <actions>
2587 <action function="set">tw_page_done=1</action>
2588 <action function="page">restore_select</action>
2589 </actions>
2590 </action>
2591 </page>
2592
2593 <page name="restore_select">
2594 <template name="page"/>
2595
2596 <text style="text_l">
2597 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002598 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002599 </text>
2600
2601 <text style="text_m">
2602 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002603 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002604 </text>
2605
2606 <text style="text_m_accent">
2607 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002608 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002609 </text>
2610
2611 <text style="text_m">
2612 <placement x="%indent%" y="%row3_y%"/>
2613 <text>%tw_restore_name%</text>
2614 </text>
2615
2616 <fill color="%fileselector_linecolor%">
2617 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width"/>
2618 </fill>
2619
2620 <button>
2621 <placement x="indent" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2622 <fill color="%transparent%"/>
2623 <actions>
2624 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2625 <action function="set">tw_fileexists=0</action>
2626 <action function="page">renamebackup</action>
2627 </actions>
2628 </button>
2629
2630 <partitionlist>
2631 <placement x="%indent%" y="%row4a_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002632 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002633 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2634 <listtype name="restore"/>
2635 </partitionlist>
2636
2637 <checkbox>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002638 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002639 <placement x="%indent%" y="%row17_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002640 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2641 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002642 </checkbox>
2643
2644 <button style="main_button_half_height">
2645 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002646 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002647 <actions>
2648 <action function="set">tw_back=restore</action>
2649 <action function="set">tw_action=cmd</action>
2650 <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 -05002651 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002652 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002653 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2654 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2655 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2656 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002657 <action function="page">confirm_action</action>
2658 </actions>
2659 </button>
2660
2661 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002662 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002663 <action function="page">restore_run</action>
2664 </slider>
2665
2666 <action>
2667 <touch key="home"/>
2668 <action function="page">main</action>
2669 </action>
2670
2671 <action>
2672 <touch key="back"/>
2673 <action function="page">restore</action>
2674 </action>
2675 </page>
2676
2677 <page name="renamebackup">
2678 <template name="page"/>
2679
2680 <text style="text_l">
2681 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002682 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002683 </text>
2684
2685 <text style="text_m">
2686 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002687 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002688 </text>
2689
2690 <text style="text_m_accent">
2691 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002692 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002693 </text>
2694
2695 <input>
2696 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2697 <text>%tw_backup_rename%</text>
2698 <data name="tw_backup_rename"/>
2699 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2700 <actions>
2701 <action function="set">tw_back=restore</action>
2702 <action function="set">tw_action=cmd</action>
2703 <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 -05002704 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2705 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2706 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2707 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2708 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002709 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2710 <action function="set">tw_existpage=renamebackup</action>
2711 <action function="set">tw_notexistpage=confirm_action</action>
2712 <action function="page">filecheck</action>
2713 </actions>
2714 </input>
2715
2716 <fill color="%accent_color%">
2717 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2718 </fill>
2719
2720 <fill color="%text_fail_color%">
2721 <condition var1="tw_fileexists" var2="1"/>
2722 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2723 </fill>
2724
2725 <text style="text_m_fail">
2726 <condition var1="tw_fileexists" var2="1"/>
2727 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002728 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002729 </text>
2730
2731 <button style="main_button_half_height">
2732 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002733 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002734 <action function="page">restore_select</action>
2735 </button>
2736
2737 <template name="keyboardtemplate"/>
2738
2739 <action>
2740 <touch key="home"/>
2741 <action function="page">main</action>
2742 </action>
2743
2744 <action>
2745 <touch key="back"/>
2746 <action function="page">restore_select</action>
2747 </action>
2748 </page>
2749
2750 <page name="restore_run">
2751 <template name="page"/>
2752
2753 <text style="text_l">
2754 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002755 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002756 </text>
2757
2758 <text style="text_m">
2759 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2760 <text>%tw_operation% %tw_partition%</text>
2761 </text>
2762
2763 <template name="console"/>
2764
2765 <template name="progress_bar"/>
2766
2767 <text style="text_m_accent">
2768 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002769 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002770 </text>
2771
2772 <text style="text_m">
2773 <placement x="%indent%" y="%row20_y%"/>
2774 <text>%tw_size_progress%</text>
2775 </text>
2776
2777 <action>
2778 <condition var1="tw_operation_state" var2="1"/>
2779 <actions>
2780 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002781 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002782 <action function="set">tw_show_reboot=1</action>
2783 <action function="page">action_complete</action>
2784 </actions>
2785 </action>
2786
2787 <action>
2788 <action function="nandroid">restore</action>
2789 </action>
2790 </page>
2791
2792 <page name="mount">
2793 <template name="page"/>
2794
2795 <text style="text_l">
2796 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002797 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002798 </text>
2799
2800 <text style="text_m">
2801 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002802 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002803 </text>
2804
2805 <partitionlist>
2806 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002807 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002808 <listtype name="mount"/>
2809 </partitionlist>
2810
2811 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002812 <conditions>
bigbiffb640d972021-10-12 19:08:10 -04002813 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
bigbiffee7b7ff2020-03-23 15:08:27 -04002814 <condition var1="tw_is_super" op="=" var2="0"/>
2815 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002816 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002817 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002818 <image resource="checkbox_false"/>
2819 <action function="mountsystemtoggle">1</action>
2820 </button>
2821
2822 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002823 <conditions>
2824 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2825 <condition var1="tw_is_super" op="=" var2="0"/>
2826 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002827 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002828 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002829 <image resource="checkbox_true"/>
2830 <actions>
2831 <action function="set">tw_lifetime_writes=2</action>
2832 <action function="page">system_readonly_check</action>
2833 </actions>
2834 </button>
2835
2836 <button style="main_button_half_height">
2837 <condition var1="tw_has_usb_storage" var2="1"/>
2838 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002839 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002840 <action function="page">usb_mount</action>
2841 </button>
2842
2843 <button style="main_button_half_height">
2844 <conditions>
2845 <condition var1="tw_is_encrypted" var2="1"/>
2846 <condition var1="tw_is_decrypted" var2="0"/>
2847 </conditions>
2848 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002849 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04002850 <action function="set">tw_crypto_user_id=0</action>
2851 <action function="set">tw_crypto_password=</action>
2852 <action function="set">tw_password_fail=0</action>
2853 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002854 <action function="page">decrypt</action>
2855 </button>
2856
2857 <button style="main_button_half_height">
2858 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002859 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002860 <actions>
2861 <action function="set">tw_back=mount</action>
2862 <action function="overlay">select_storage</action>
2863 </actions>
2864 </button>
2865
2866 <button style="main_button_half_height">
2867 <conditions>
2868 <condition var1="tw_has_mtp" var2="1"/>
2869 <condition var1="tw_mtp_enabled" var2="0"/>
2870 </conditions>
2871 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002872 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002873 <action function="startmtp"/>
2874 </button>
2875
2876 <button style="main_button_half_height">
2877 <conditions>
2878 <condition var1="tw_has_mtp" var2="1"/>
2879 <condition var1="tw_mtp_enabled" var2="1"/>
2880 </conditions>
2881 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002882 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002883 <action function="stopmtp"/>
2884 </button>
2885
2886 <action>
2887 <touch key="home"/>
2888 <action function="page">main</action>
2889 </action>
2890
2891 <action>
2892 <touch key="back"/>
2893 <action function="page">main</action>
2894 </action>
2895 </page>
2896
2897 <page name="usb_mount">
2898 <template name="page"/>
2899
2900 <text style="text_l">
2901 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002902 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002903 </text>
2904
2905 <text style="text_m">
2906 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002907 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002908 </text>
2909
2910 <text style="text_m_accent">
2911 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002912 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002913 </text>
2914
2915 <text style="text_m">
2916 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002917 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002918 </text>
2919
2920 <text style="text_m">
2921 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002922 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002923 </text>
2924
2925 <button style="main_button_half_height">
2926 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002927 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002928 <action function="page">usb_umount</action>
2929 </button>
2930
2931 <action>
2932 <action function="mount">usb</action>
2933 <action function="set">tw_busy=1</action>
2934 </action>
2935 </page>
2936
2937 <page name="usb_umount">
2938 <action>
2939 <action function="unmount">usb</action>
2940 </action>
2941
2942 <action>
2943 <action function="page">mount</action>
2944 <action function="set">tw_busy=0</action>
2945 </action>
2946 </page>
2947
2948 <page name="system_readonly_check">
2949 <action>
2950 <action function="checkpartitionlifetimewrites">/system</action>
2951 </action>
2952
2953 <action>
2954 <condition var1="tw_lifetime_writes" var2="1"/>
2955 <actions>
2956 <action function="mountsystemtoggle">0</action>
2957 <action function="page">mount</action>
2958 </actions>
2959 </action>
2960
2961 <action>
2962 <condition var1="tw_lifetime_writes" var2="0"/>
2963 <actions>
2964 <action function="set">tw_back=mount</action>
2965 <action function="page">system_readonly</action>
2966 </actions>
2967 </action>
2968 </page>
2969
bigbiffdf8436b2020-08-30 16:22:34 -04002970 <page name="fastbootreboot">
2971 <template name="page"/>
2972
2973 <text style="text_l">
2974 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2975 <text>{@reboot_hdr=Reboot}</text>
2976 </text>
2977
2978 <listbox style="advanced_listbox">
2979 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
2980
2981 <listitem name="{@rb_system_btn=System}">
2982 <condition var1="tw_reboot_system" var2="1"/>
2983 <actions>
2984 <action function="set">tw_back=fastbootreboot</action>
2985 <action function="set">tw_action=reboot</action>
2986 <action function="set">tw_action_param=system</action>
2987 <action function="set">tw_reboot_param=system</action>
2988 <action function="set">tw_has_action2=0</action>
2989 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2990 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2991 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2992 <action function="page">confirm_action</action>
2993 </actions>
2994 </listitem>
2995
2996 <listitem name="{@rb_poweroff_btn=Power Off}">
2997 <condition var1="tw_reboot_poweroff" var2="1"/>
2998 <actions>
2999 <action function="set">tw_back=fastbootreboot</action>
3000 <action function="set">tw_action=reboot</action>
3001 <action function="set">tw_action_param=poweroff</action>
3002 <action function="set">tw_reboot_param=poweroff</action>
3003 <action function="set">tw_has_action2=0</action>
3004 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3005 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3006 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
3007 <action function="page">confirm_action</action>
3008 </actions>
3009 </listitem>
3010
3011 <listitem name="{@rb_recovery_btn=Recovery}">
3012 <condition var1="tw_reboot_recovery" var2="1"/>
3013 <actions>
3014 <action function="set">tw_back=fastbootreboot</action>
3015 <action function="set">tw_action=reboot</action>
3016 <action function="set">tw_action_param=recovery</action>
3017 <action function="set">tw_reboot_param=recovery</action>
3018 <action function="set">tw_has_action2=0</action>
3019 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3020 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3021 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3022 <action function="page">confirm_action</action>
3023 </actions>
3024 </listitem>
3025
3026 <listitem name="{@rb_bootloader_btn=Bootloader}">
3027 <condition var1="tw_reboot_bootloader" var2="1"/>
3028 <actions>
3029 <action function="set">tw_back=fastbootreboot</action>
3030 <action function="set">tw_action=reboot</action>
3031 <action function="set">tw_action_param=bootloader</action>
3032 <action function="set">tw_reboot_param=bootloader</action>
3033 <action function="set">tw_has_action2=0</action>
3034 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3035 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3036 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3037 <action function="page">confirm_action</action>
3038 </actions>
3039 </listitem>
3040
3041 <listitem name="{@rb_download_btn=Download}">
3042 <condition var1="tw_download_mode" var2="1"/>
3043 <actions>
3044 <action function="set">tw_back=fastbootreboot</action>
3045 <action function="set">tw_action=reboot</action>
3046 <action function="set">tw_action_param=download</action>
3047 <action function="set">tw_reboot_param=download</action>
3048 <action function="set">tw_has_action2=0</action>
3049 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3050 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3051 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3052 <action function="page">confirm_action</action>
3053 </actions>
3054 </listitem>
3055
3056 <listitem name="{@fastboot_button=Fastboot}">
3057 <condition var1="tw_fastboot_mode" var2="1"/>
3058 <actions>
3059 <action function="set">tw_back=fastbootreboot</action>
3060 <action function="set">tw_action=reboot</action>
3061 <action function="set">tw_action_param=fastboot</action>
3062 <action function="set">tw_reboot_param=fastboot</action>
3063 <action function="set">tw_has_action2=0</action>
3064 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3065 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3066 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3067 <action function="page">confirm_action</action>
3068 </actions>
3069 </listitem>
3070
Aseem Athaledd81b9a2021-11-08 13:12:30 +05303071 <listitem name="{@rb_edl_btn=EDL}">
bigbiffdf8436b2020-08-30 16:22:34 -04003072 <condition var1="tw_edl_mode" var2="1"/>
3073 <actions>
3074 <action function="set">tw_back=fastbootreboot</action>
3075 <action function="set">tw_action=reboot</action>
3076 <action function="set">tw_action_param=edl</action>
3077 <action function="set">tw_reboot_param=edl</action>
3078 <action function="set">tw_has_action2=0</action>
3079 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3080 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3081 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3082 <action function="page">confirm_action</action>
3083 </actions>
3084 </listitem>
3085 </listbox>
3086
3087 <action>
3088 <touch key="home"/>
3089 <action function="page">fastboot</action>
3090 </action>
3091
3092 <action>
3093 <touch key="back"/>
3094 <action function="page">fastboot</action>
3095 </action>
3096 </page>
3097
z31s1g28f0a922015-11-07 18:50:22 +01003098 <page name="reboot">
Ethan Yonker8581ab32020-12-17 14:51:50 -06003099 <action>
3100 <action function="checkforapp"></action>
3101 <action function="page">reboot2</action>
3102 </action>
3103 </page>
3104
3105 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01003106 <template name="page"/>
3107
3108 <text style="text_l">
3109 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003110 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003111 </text>
3112
bigbiffdf8436b2020-08-30 16:22:34 -04003113 <listbox style="advanced_listbox">
3114 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003115
bigbiffdf8436b2020-08-30 16:22:34 -04003116 <listitem name="{@rb_system_btn=System}">
3117 <condition var1="tw_reboot_system" var2="1"/>
3118 <actions>
3119 <action function="set">tw_back=reboot</action>
3120 <action function="page">reboot_system_routine</action>
3121 </actions>
3122 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003123
bigbiffdf8436b2020-08-30 16:22:34 -04003124 <listitem name="{@rb_poweroff_btn=Power Off}">
3125 <condition var1="tw_reboot_poweroff" var2="1"/>
3126 <actions>
3127 <action function="set">tw_back=reboot</action>
3128 <action function="set">tw_action=reboot</action>
3129 <action function="set">tw_action_param=poweroff</action>
3130 <action function="set">tw_reboot_param=poweroff</action>
3131 <action function="set">tw_has_action2=0</action>
3132 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3133 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
3134 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3135 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3136 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
3137 <action function="page">rebootcheck</action>
3138 </actions>
3139 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003140
bigbiffdf8436b2020-08-30 16:22:34 -04003141 <listitem name="{@rb_recovery_btn=Recovery}">
3142 <condition var1="tw_reboot_recovery" var2="1"/>
3143 <actions>
3144 <action function="set">tw_back=reboot</action>
3145 <action function="set">tw_action=reboot</action>
3146 <action function="set">tw_action_param=recovery</action>
3147 <action function="set">tw_reboot_param=recovery</action>
3148 <action function="set">tw_has_action2=0</action>
3149 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3150 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3151 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3152 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3153 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3154 <action function="page">rebootcheck</action>
3155 </actions>
3156 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003157
bigbiffdf8436b2020-08-30 16:22:34 -04003158 <listitem name="{@rb_bootloader_btn=Bootloader}">
3159 <condition var1="tw_reboot_bootloader" var2="1"/>
3160 <actions>
3161 <action function="set">tw_back=reboot</action>
3162 <action function="set">tw_action=reboot</action>
3163 <action function="set">tw_action_param=bootloader</action>
3164 <action function="set">tw_reboot_param=bootloader</action>
3165 <action function="set">tw_has_action2=0</action>
3166 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3167 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3168 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3169 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3170 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3171 <action function="page">rebootcheck</action>
3172 </actions>
3173 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003174
bigbiffdf8436b2020-08-30 16:22:34 -04003175 <listitem name="{@rb_download_btn=Download}">
3176 <condition var1="tw_download_mode" var2="1"/>
3177 <actions>
3178 <action function="set">tw_back=reboot</action>
3179 <action function="set">tw_action=reboot</action>
3180 <action function="set">tw_action_param=download</action>
3181 <action function="set">tw_reboot_param=download</action>
3182 <action function="set">tw_has_action2=0</action>
3183 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3184 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3185 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3186 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3187 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3188 <action function="page">rebootcheck</action>
3189 </actions>
3190 </listitem>
3191
3192 <listitem name="{@fastboot_button=Fastboot}">
3193 <condition var1="tw_fastboot_mode" var2="1"/>
3194 <actions>
3195 <action function="set">tw_back=reboot</action>
3196 <action function="set">tw_action=reboot</action>
3197 <action function="set">tw_action_param=fastboot</action>
3198 <action function="set">tw_reboot_param=fastboot</action>
3199 <action function="set">tw_has_action2=0</action>
3200 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3201 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3202 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3203 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3204 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3205 <action function="page">rebootcheck</action>
3206 </actions>
3207 </listitem>
3208
Aseem Athaledd81b9a2021-11-08 13:12:30 +05303209 <listitem name="{@rb_edl_btn=EDL}">
bigbiffdf8436b2020-08-30 16:22:34 -04003210 <condition var1="tw_edl_mode" var2="1"/>
3211 <actions>
3212 <action function="set">tw_back=reboot</action>
3213 <action function="set">tw_action=reboot</action>
3214 <action function="set">tw_action_param=edl</action>
3215 <action function="set">tw_reboot_param=edl</action>
3216 <action function="set">tw_has_action2=0</action>
3217 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3218 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3219 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3220 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3221 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3222 <action function="page">rebootcheck</action>
3223 </actions>
Captain Throwback52978932021-09-05 15:11:07 -04003224 </listitem>
bigbiffdf8436b2020-08-30 16:22:34 -04003225 </listbox>
mauronofrioe9a49ef2018-10-03 13:38:16 +02003226
Ethan Yonker1b190162016-12-05 15:25:19 -06003227 <text style="text_m">
3228 <condition var1="tw_has_boot_slots" var2="1"/>
bigbiffdf8436b2020-08-30 16:22:34 -04003229 <placement x="%center_x%" y="%row15_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06003230 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
3231 </text>
3232
bigbiffdf8436b2020-08-30 16:22:34 -04003233 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06003234 <condition var1="tw_has_boot_slots" var2="1"/>
3235 <placement x="%indent%" y="%row19_y%"/>
3236 <text>{@boot_slot_a=Slot A}</text>
3237 <actions>
3238 <action function="set">tw_back=reboot</action>
3239 <action function="set">tw_action=setbootslot</action>
3240 <action function="set">tw_action_param=A</action>
3241 <action function="set">tw_has_action2=0</action>
3242 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3243 <action function="set">tw_action_text2=</action>
3244 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3245 <action function="page">action_page</action>
3246 </actions>
3247 </button>
3248
bigbiffdf8436b2020-08-30 16:22:34 -04003249 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06003250 <condition var1="tw_has_boot_slots" var2="1"/>
3251 <placement x="%center_x%" y="%row19_y%"/>
3252 <text>{@boot_slot_b=Slot B}</text>
3253 <actions>
3254 <action function="set">tw_back=reboot</action>
3255 <action function="set">tw_action=setbootslot</action>
3256 <action function="set">tw_action_param=B</action>
3257 <action function="set">tw_has_action2=0</action>
3258 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3259 <action function="set">tw_action_text2=</action>
3260 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3261 <action function="page">action_page</action>
3262 </actions>
3263 </button>
3264
Ethan Yonker8581ab32020-12-17 14:51:50 -06003265 <button style="main_button_half_height">
3266 <condition var1="tw_app_install_status" var2="1"/>
3267 <placement x="%indent%" y="%row22_y%"/>
3268 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
3269 <actions>
3270 <action function="set">tw_back=reboot</action>
3271 <action function="set">tw_appinstall_title={@reboot_hdr=Reboot}</action>
3272 <action function="page">installapp</action>
3273 </actions>
3274 </button>
3275
z31s1g28f0a922015-11-07 18:50:22 +01003276 <action>
3277 <touch key="home"/>
3278 <action function="page">main</action>
3279 </action>
3280
3281 <action>
3282 <touch key="back"/>
3283 <action function="page">main</action>
3284 </action>
3285 </page>
3286
Ethan Yonker8581ab32020-12-17 14:51:50 -06003287 <page name="installapp">
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003288 <template name="page"/>
3289
3290 <text style="text_l">
3291 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003292 <text>%tw_appinstall_title%</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003293 </text>
3294
3295 <text style="text_m">
3296 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003297 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003298 </text>
3299
3300 <text style="text_m_accent">
3301 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3302 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3303 </text>
3304
3305 <text style="text_m_accent">
3306 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3307 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3308 </text>
3309
3310 <checkbox>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003311 <condition var1="tw_mount_system_ro" var2="0"/>
3312 <placement x="%indent%" y="%row7_y%"/>
3313 <text>{@reboot_install_app_system=Install as a System App}</text>
3314 <data variable="tw_app_install_system"/>
3315 </checkbox>
3316
3317 <button style="main_button_half_height">
3318 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003319 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003320 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003321 </button>
3322
3323 <slider>
3324 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3325 <actions>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003326 <action function="set">tw_action=installapp</action>
3327 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3328 <action function="set">tw_action_text2=</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003329 <action function="set">tw_complete_text1={@successful=Successful}</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003330 <action function="page">action_page</action>
3331 </actions>
3332 </slider>
3333
3334 <action>
3335 <touch key="home"/>
3336 <actions>
3337 <action function="set">tw_app_install_status=0</action>
3338 <action function="page">main</action>
3339 </actions>
3340 </action>
3341
3342 <action>
3343 <touch key="back"/>
3344 <actions>
3345 <action function="set">tw_app_install_status=0</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003346 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003347 </actions>
3348 </action>
3349 </page>
3350
z31s1g28f0a922015-11-07 18:50:22 +01003351 <page name="system_readonly">
3352 <template name="page"/>
3353
3354 <text style="text_l">
3355 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003356 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003357 </text>
3358
3359 <text style="text_m_accent">
3360 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003361 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003362 </text>
3363
3364 <text style="text_m">
3365 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003366 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003367 </text>
3368
3369 <text style="text_m">
3370 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003371 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003372 </text>
3373
3374 <text style="text_m">
3375 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003376 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003377 </text>
3378
3379 <text style="text_m">
3380 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003381 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003382 </text>
3383
3384 <text style="text_m_fail">
3385 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003386 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003387 </text>
3388
3389 <text style="text_m_fail">
3390 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003391 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003392 </text>
3393
3394 <checkbox>
3395 <condition var1="tw_is_encrypted" var2="0"/>
3396 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003397 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003398 <data variable="tw_never_show_system_ro_page"/>
3399 </checkbox>
3400
3401 <button style="main_button_half_height">
3402 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003403 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003404 <actions>
3405 <action function="mountsystemtoggle">1</action>
3406 <action function="set">tw_page_done=1</action>
3407 <action function="page">%tw_back%</action>
3408 </actions>
3409 </button>
3410
z31s1g608d7ff2016-01-18 19:47:25 +01003411 <button style="main_button_half_height">
3412 <placement x="%center_x%" y="%row18a_y%"/>
3413 <text>{@sel_lang_btn=Select Language}</text>
3414 <action function="overlay">select_language</action>
3415 </button>
3416
z31s1g28f0a922015-11-07 18:50:22 +01003417 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003418 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003419 <actions>
3420 <action function="mountsystemtoggle">0</action>
3421 <action function="set">tw_page_done=1</action>
3422 <action function="page">%tw_back%</action>
3423 </actions>
3424 </slider>
3425 </page>
3426
3427 <page name="settings">
3428 <template name="page"/>
3429
3430 <text style="text_l">
3431 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003432 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003433 </text>
3434
3435 <text style="text_m">
3436 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003437 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003438 </text>
3439
3440 <template name="tabs_settings"/>
3441
3442 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003443 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003444 </fill>
3445
3446 <listbox style="scrolllist">
3447 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3448 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003449 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003450 <data variable="tw_signed_zip_verify"/>
3451 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003452 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3453 <data variable="tw_install_reboot"/>
3454 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003455 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003456 <data variable="tw_rm_rf"/>
3457 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003458 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3459 <data variable="tw_disable_free_space"/>
3460 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003461 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3462 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003463 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003464 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3465 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003466 </listitem>
epicX9597b842021-03-20 21:58:17 +05303467 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
3468 <data variable="tw_skip_digest_check_zip"/>
3469 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003470 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003471 <data variable="tw_military_time"/>
3472 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003473 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003474 <data variable="tw_samsung_navbar"/>
3475 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003476 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003477 <data variable="tw_simulate_actions"/>
3478 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003479 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003480 <condition var1="tw_simulate_actions" var2="1"/>
3481 <data variable="tw_simulate_fail"/>
3482 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003483 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3484 <condition var1="tw_no_sha2" var2="0"/>
3485 <data variable="tw_use_sha2"/>
3486 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003487 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3488 <data variable="tw_unmount_system"/>
3489 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003490 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
3491 <conditions>
3492 <condition var1="tw_has_boot_slots" var2="1"/>
3493 <condition var1="tw_has_repack_tools" var2="1"/>
3494 </conditions>
3495 <data variable="tw_auto_reflashtwrp"/>
3496 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003497 </listbox>
3498
3499 <button style="main_button_half_height">
3500 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003501 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003502 <actions>
3503 <action function="set">tw_samsung_navbar=0</action>
3504 <action function="set">tw_tab_icons=0</action>
3505 <action function="restoredefaultsettings"/>
3506 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003507 </button>
3508
3509 <action>
3510 <touch key="home"/>
3511 <action function="page">main</action>
3512 </action>
3513
3514 <action>
3515 <touch key="back"/>
3516 <action function="page">main</action>
3517 </action>
3518 </page>
3519
3520 <page name="settings_timezone">
3521 <template name="page"/>
3522
3523 <text style="text_l">
3524 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003525 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003526 </text>
3527
3528 <text style="text_m">
3529 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003530 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003531 </text>
3532
3533 <template name="tabs_settings"/>
3534
3535 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003536 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003537 </fill>
3538
3539 <listbox>
3540 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003541 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003542 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003543 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3544 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3545 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3546 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3547 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3548 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3549 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3550 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3551 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3552 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3553 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3554 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3555 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3556 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3557 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3558 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3559 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3560 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3561 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3562 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3563 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3564 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3565 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3566 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003567 </listbox>
3568
3569 <text style="text_m_accent">
3570 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003571 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003572 </text>
3573
3574 <button style="button_quarter_width">
3575 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003576 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003577 <action function="set">tw_time_zone_guioffset=0</action>
3578 </button>
3579
3580 <button style="button_quarter_width">
3581 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003582 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003583 <action function="set">tw_time_zone_guioffset=15</action>
3584 </button>
3585
3586 <button style="button_quarter_width">
3587 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003588 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003589 <action function="set">tw_time_zone_guioffset=30</action>
3590 </button>
3591
3592 <button style="button_quarter_width">
3593 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003594 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003595 <action function="set">tw_time_zone_guioffset=45</action>
3596 </button>
3597
3598 <checkbox>
3599 <placement x="%indent%" y="%row18a_y%"/>
3600 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003601 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003602 <data variable="tw_time_zone_guidst"/>
3603 <image checked="checkbox_true" unchecked="checkbox_false"/>
3604 </checkbox>
3605
3606 <text color="%text_color%">
3607 <font resource="font_m"/>
3608 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003609 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003610 </text>
3611
3612 <button>
3613 <highlight color="%highlight_color%"/>
3614 <placement x="%center_x%" y="%row21a_y%"/>
3615 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003616 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003617 <image resource="main_button_half_height"/>
3618 <action function="setguitimezone"/>
3619 </button>
3620
3621 <action>
3622 <touch key="home"/>
3623 <action function="page">main</action>
3624 </action>
3625
3626 <action>
3627 <touch key="back"/>
3628 <action function="page">main</action>
3629 </action>
3630 </page>
3631
3632 <page name="settings_screen">
3633 <template name="page"/>
3634
3635 <text style="text_l">
3636 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003637 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003638 </text>
3639
3640 <text style="text_m">
3641 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003642 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003643 </text>
3644
3645 <template name="tabs_settings"/>
3646
3647 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003648 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003649 </fill>
3650
3651 <button>
3652 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3653 <font resource="font_m" color="%text_color%"/>
3654 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3655 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003656 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003657 <image resource="checkbox_false"/>
3658 <action function="set">tw_screen_timeout_secs=60</action>
3659 </button>
3660
3661 <button>
3662 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3663 <font resource="font_m" color="%text_color%"/>
3664 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3665 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003666 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003667 <image resource="checkbox_true"/>
3668 <action function="set">tw_screen_timeout_secs=0</action>
3669 </button>
3670
3671 <slidervalue>
3672 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3673 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3674 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003675 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003676 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3677 </slidervalue>
3678
3679 <slidervalue>
3680 <condition var1="tw_has_brightnesss_file" var2="1"/>
3681 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003682 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003683 <data variable="tw_brightness_pct" min="10" max="100"/>
3684 <actions>
3685 <action function="set">tw_brightness=%tw_brightness_max%</action>
3686 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3687 <action function="compute">tw_brightness/100</action>
3688 <action function="setbrightness">%tw_brightness%</action>
3689 </actions>
3690 </slidervalue>
3691
3692 <action>
3693 <touch key="home"/>
3694 <action function="page">main</action>
3695 </action>
3696
3697 <action>
3698 <touch key="back"/>
3699 <action function="page">main</action>
3700 </action>
3701 </page>
3702
3703 <page name="settings_vibration">
3704 <template name="page"/>
3705
3706 <text style="text_l">
3707 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003708 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003709 </text>
3710
3711 <text style="text_m">
3712 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003713 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003714 </text>
3715
3716 <template name="tabs_settings"/>
3717
3718 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003719 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003720 </fill>
3721
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003722 <text style="text_m">
3723 <condition var1="tw_disable_haptics" var2="1"/>
3724 <placement x="%indent%" y="%row4_y%"/>
3725 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3726 </text>
3727
z31s1g28f0a922015-11-07 18:50:22 +01003728 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003729 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003730 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003731 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003732 <data variable="tw_button_vibrate" min="0" max="300"/>
3733 </slidervalue>
3734
3735 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003736 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003737 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003738 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003739 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3740 </slidervalue>
3741
3742 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003743 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003744 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003745 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003746 <data variable="tw_action_vibrate" min="0" max="500"/>
3747 </slidervalue>
3748
3749 <action>
3750 <touch key="home"/>
3751 <action function="page">main</action>
3752 </action>
3753
3754 <action>
3755 <touch key="back"/>
3756 <action function="page">main</action>
3757 </action>
3758 </page>
3759
Ethan Yonker74db1572015-10-28 12:44:49 -05003760 <page name="settings_language">
3761 <template name="page"/>
3762
3763 <text style="text_l">
3764 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3765 <text>{@settings_hdr=Settings}</text>
3766 </text>
3767
3768 <text style="text_m">
3769 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3770 <text>{@language_hdr=Language - %tw_language_display%}</text>
3771 </text>
3772
3773 <template name="tabs_settings"/>
3774
3775 <fill color="%text_color%">
3776 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3777 </fill>
3778
3779 <listbox>
3780 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3781 <text>{@select_language=Select Language:}</text>
3782 <icon selected="radio_true" unselected="radio_false" />
3783 <data name="tw_language" />
3784 </listbox>
3785
3786 <button style="main_button_half_height">
3787 <placement x="%center_x%" y="%row21a_y%"/>
3788 <text>{@set_language_btn=Set Language}</text>
3789 <action function="setlanguage"></action>
3790 </button>
3791
3792 <action>
3793 <touch key="home" />
3794 <action function="page">main</action>
3795 </action>
3796
3797 <action>
3798 <touch key="back" />
3799 <action function="page">settings</action>
3800 </action>
3801 </page>
3802
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003803 <page name="copylog">
3804 <template name="page"/>
3805
3806 <text style="text_l">
3807 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3808 <text>{@copying_log=Copy Logs to SD Card}</text>
3809 </text>
3810
3811 <checkbox>
Captain Throwback52978932021-09-05 15:11:07 -04003812 <condition var1="tw_logcat_exists" var2="1"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003813 <placement x="%indent%" y="%row4_y%"/>
Captain Throwback52978932021-09-05 15:11:07 -04003814 <text>{@include_logcat=Include Logcat}</text>
3815 <data variable="tw_include_logcat" value="1"/>
3816 </checkbox>
3817
3818 <checkbox>
3819 <placement x="%indent%" y="%row6_y%"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003820 <text>{@include_kernel_log=Include Kernel Log}</text>
3821 <data variable="tw_include_kernel_log" value="1"/>
3822 </checkbox>
3823
3824 <slider>
3825 <text>{@copying_log=Copy Logs to SD Card}</text>
3826 <actions>
3827 <action function="set">tw_back=advanced</action>
3828 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003829 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3830 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003831 <action function="page">action_page</action>
3832 </actions>
3833 </slider>
3834
3835 <action>
3836 <touch key="home"/>
3837 <action function="page">main</action>
3838 </action>
3839
3840 <action>
3841 <touch key="back"/>
3842 <actions>
3843 <action function="page">advanced</action>
3844 </actions>
3845 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003846 </page>
3847
z31s1g28f0a922015-11-07 18:50:22 +01003848 <page name="advanced">
3849 <template name="page"/>
3850
3851 <text style="text_l">
3852 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003853 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003854 </text>
3855
3856 <button style="main_button">
3857 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003858 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003859 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003860 </button>
3861
3862 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003863 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003864 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003865 <text>{@adb_sideload_btn=ADB Sideload}</text>
3866 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003867 </button>
3868
3869 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003870 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003871 <text>{@terminal_btn=Terminal}</text>
3872 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003873 </button>
3874
3875 <button style="main_button">
3876 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003877 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003878 <action function="page">filemanagerlist</action>
3879 </button>
3880
Ethan Yonker64e0a652018-07-25 09:52:17 -05003881 <listbox style="advanced_listbox">
3882 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
Ian Macdonaldef7768e2021-03-01 21:31:07 +01003883 <listitem name="{@change_twrp_folder_btn=Change TWRP folder}">
epicXa721f952021-01-04 13:01:31 +05303884 <condition var1="tw_is_encrypted" var2="0"/>
3885 <action function="page">changeTwrpFolder</action>
3886 </listitem>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003887 <listitem name="{@decrypt_users=Decrypt Users}">
3888 <conditions>
3889 <condition var1="tw_is_fbe" var2="1"/>
3890 <condition var1="tw_all_users_decrypted" var2="0"/>
3891 </conditions>
3892 <actions>
3893 <action function="set">tw_crypto_user_id=</action>
3894 <action function="page">decrypt_users</action>
3895 </actions>
3896 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003897 <listitem name="{@reload_theme_btn=Reload Theme}">
3898 <action function="reload"/>
3899 </listitem>
3900 <listitem name="{@part_sd_btn=Partition SD Card}">
3901 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3902 <actions>
3903 <action function="set">partitionlisterror=0</action>
3904 <action function="page">partsdcardsel</action>
3905 </actions>
3906 </listitem>
3907 <listitem name="{@fix_context_btn=Fix Contexts}">
3908 <condition var1="tw_has_data_media" var2="1"/>
3909 <action function="page">fixcontexts</action>
3910 </listitem>
3911 <listitem name="{@dumlock_btn=HTC Dumlock}">
3912 <condition var1="tw_show_dumlock" var2="1"/>
3913 <action function="page">htcdumlock</action>
3914 </listitem>
3915 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3916 <condition var1="tw_has_injecttwrp" var2="1"/>
3917 <actions>
3918 <action function="set">tw_back=advanced</action>
3919 <action function="set">tw_action=reinjecttwrp</action>
3920 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3921 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3922 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3923 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3924 <action function="page">confirm_action</action>
3925 </actions>
3926 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003927 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3928 <conditions>
3929 <condition var1="tw_has_boot_slots" var2="1"/>
3930 <condition var1="tw_has_repack_tools" var2="1"/>
3931 </conditions>
3932 <actions>
3933 <action function="set">tw_repack_kernel=0</action>
3934 <action function="page">repackselect</action>
3935 </actions>
3936 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003937 <listitem name="{@reflash_twrp=Flash Current TWRP}">
3938 <conditions>
3939 <condition var1="tw_has_boot_slots" var2="1"/>
3940 <condition var1="tw_has_repack_tools" var2="1"/>
3941 </conditions>
3942 <actions>
3943 <action function="set">tw_repack_kernel=0</action>
3944 <action function="set">tw_back=advanced</action>
3945 <action function="set">tw_action=reflashtwrp</action>
3946 <action function="set">tw_text1={@reflash_twrp_confirm=Flash Current TWRP?}</action>
3947 <action function="set">tw_action_text1={@reflashing_twrp=Flashing TWRP...}</action>
3948 <action function="set">tw_complete_text1={@reflash_twrp_complete=Done Flashing TWRP}</action>
3949 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3950 <action function="page">confirm_action</action>
3951 </actions>
3952 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003953 <listitem name="{@install_kernel=Install Kernel}">
3954 <conditions>
3955 <condition var1="tw_has_boot_slots" var2="1"/>
3956 <condition var1="tw_has_repack_tools" var2="1"/>
3957 </conditions>
3958 <actions>
3959 <action function="set">tw_repack_kernel=1</action>
3960 <action function="page">repackselect</action>
3961 </actions>
3962 </listitem>
3963 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3964 <conditions>
3965 <condition var1="tw_has_boot_slots" var2="1"/>
3966 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwbackbc2cfa32021-09-16 10:04:26 -04003967 <condition var1="tw_uses_initramfs" var2="1"/>
Ethan Yonker53796e72019-01-11 22:49:52 -06003968 </conditions>
3969 <actions>
3970 <action function="set">tw_back=advanced</action>
3971 <action function="set">tw_action=fixabrecoverybootloop</action>
3972 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3973 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3974 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3975 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3976 <action function="page">confirm_action</action>
3977 </actions>
3978 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003979 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3980 <condition var1="tw_app_install_status" var2="1"/>
3981 <actions>
3982 <action function="set">tw_back=advanced</action>
3983 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3984 <action function="page">installapp</action>
3985 </actions>
3986 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003987 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3988 <condition var1="tw_app_installed_in_system" var2="1"/>
3989 <actions>
3990 <action function="set">tw_back=advanced</action>
3991 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3992 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3993 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3994 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3995 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3996 <action function="page">confirm_action</action>
3997 </actions>
3998 </listitem>
bigbiffcfa875c2021-06-20 16:20:27 -04003999 <listitem name="{@unmap_super_devices=Unmap Super Devices}">
bigbiffab76bd72021-10-11 10:17:48 -04004000 <condition var1="tw_virtual_ab.enabled" op="=" var2="1"/>
bigbiffcfa875c2021-06-20 16:20:27 -04004001 <actions>
4002 <action function="set">tw_back=advanced</action>
4003 <action function="set">tw_action=unmapsuperdevices</action>
4004 <action function="set">tw_text1={@unmap_super_devices_confirm=Unmap all Super Devices?}</action>
4005 <action function="set">tw_action_text1={@unmapping_super_devices=Unmapping Super Devices...}</action>
4006 <action function="set">tw_complete_text1={@unmap_super_devices_complete=Unmapped all Super Devices}</action>
4007 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4008 <action function="page">confirm_action</action>
4009 </actions>
4010 </listitem>
bigbiffd21252f2021-09-18 15:56:32 -04004011 <listitem name="{@merges_snapshots=Merge Snapshots}">
bigbiffab76bd72021-10-11 10:17:48 -04004012 <condition var1="tw_virtual_ab.enabled" op="=" var2="1"/>
bigbiffd21252f2021-09-18 15:56:32 -04004013 <actions>
4014 <action function="set">tw_back=advanced</action>
4015 <action function="set">tw_action=mergesnapshots</action>
4016 <action function="set">tw_text1={@merge_snapshots_confirm=Merge Snapshots?}</action>
4017 <action function="set">tw_action_text1={@merging_snapshots=Merging Snapshots...}</action>
4018 <action function="set">tw_complete_text1={@merging_snapshots_complete=Merged Snapshots}</action>
4019 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4020 <action function="page">confirm_action</action>
4021 </actions>
4022 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004023 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01004024
4025 <action>
4026 <touch key="home"/>
4027 <action function="page">main</action>
4028 </action>
4029
4030 <action>
4031 <touch key="back"/>
4032 <action function="page">main</action>
4033 </action>
4034 </page>
4035
Ethan Yonker483e9f42016-01-11 22:21:18 -06004036 <page name="partsdcardsel">
4037 <template name="page"/>
4038
4039 <text style="text_l">
4040 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4041 <text>{@advanced_hdr=Advanced}</text>
4042 </text>
4043
4044 <text style="text_m">
4045 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4046 <text>{@part_sd_hdr=Partition SD Card}</text>
4047 </text>
4048
z31s1g782e1c92016-01-30 16:50:09 +01004049 <partitionlist>
4050 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004051 <text>{@sel_storage_list=Select Storage}</text>
4052 <data name="tw_storage_path"/>
4053 <listtype name="storage"/>
4054 </partitionlist>
4055
4056 <text style="text_m_fail">
4057 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01004058 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004059 <text>{@invalid_partsd_sel=You must select a removable device}</text>
4060 </text>
4061
z31s1g782e1c92016-01-30 16:50:09 +01004062 <button style="main_button_half_height">
4063 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004064 <text>{@ok_btn=OK}</text>
4065 <actions>
4066 <action function="getpartitiondetails">tw_storage_path</action>
4067 <action function="page">partsdcardcheck</action>
4068 </actions>
4069 </button>
4070
4071 <action>
4072 <touch key="home"/>
4073 <action function="page">main</action>
4074 </action>
4075
4076 <action>
4077 <touch key="back"/>
4078 <action function="page">advanced</action>
4079 </action>
4080 </page>
4081
4082 <page name="partsdcardcheck">
4083 <action>
4084 <condition var1="tw_partition_removable" op="=" var2="1"/>
4085 <actions>
4086 <action function="set">partitionlisterror=0</action>
4087 <action function="page">partsdcard</action>
4088 </actions>
4089 </action>
4090
4091 <action>
4092 <condition var1="tw_partition_removable" op="!=" var2="1"/>
4093 <actions>
4094 <action function="set">partitionlisterror=1</action>
4095 <action function="page">partsdcardsel</action>
4096 </actions>
4097 </action>
4098 </page>
4099
z31s1g28f0a922015-11-07 18:50:22 +01004100 <page name="partsdcard">
4101 <template name="page"/>
4102
4103 <text style="text_l">
4104 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004105 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004106 </text>
4107
4108 <text style="text_m">
4109 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004110 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004111 </text>
4112
4113 <text style="text_m_fail">
4114 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004115 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004116 </text>
4117
4118 <text style="text_m_fail">
4119 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004120 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004121 </text>
4122
4123 <text style="text_m_accent">
4124 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004125 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004126 </text>
4127
4128 <text style="text_m">
4129 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4130 <text>%tw_sdext_size%</text>
4131 </text>
4132
4133 <button style="button_quarter_width">
4134 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004135 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004136 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004137 </button>
4138
4139 <button style="button_quarter_width">
4140 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004141 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004142 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004143 </button>
4144
4145 <text style="text_m_accent">
4146 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004147 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004148 </text>
4149
4150 <text style="text_m">
4151 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
4152 <text>%tw_swap_size%</text>
4153 </text>
4154
4155 <button style="button_quarter_width">
4156 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004157 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004158 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004159 </button>
4160
4161 <button style="button_quarter_width">
4162 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004163 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004164 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004165 </button>
4166
4167 <text style="text_m_accent">
4168 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004169 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004170 </text>
4171
4172 <text style="text_m">
4173 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
4174 <text>%tw_sdpart_file_system%</text>
4175 </text>
4176
4177 <button style="button_quarter_width">
4178 <placement x="%indent%" y="%row14_y%"/>
4179 <text>EXT3</text>
4180 <action function="set">tw_sdpart_file_system=ext3</action>
4181 </button>
4182
4183 <button style="button_quarter_width">
4184 <placement x="%btn4_col4_x%" y="%row14_y%"/>
4185 <text>EXT4</text>
4186 <action function="set">tw_sdpart_file_system=ext4</action>
4187 </button>
4188
4189 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004190 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004191 <action function="page">partsdcardaction</action>
4192 <actions>
4193 <action function="set">tw_back=partsdcard</action>
4194 <action function="set">tw_action=partitionsd</action>
4195 <action function="set">tw_has_action2=1</action>
4196 <action function="set">tw_action2=set</action>
4197 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004198 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4199 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4200 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004201 <action function="page">action_page</action>
4202 </actions>
4203 </slider>
4204
4205 <action>
4206 <touch key="home"/>
4207 <action function="page">main</action>
4208 </action>
4209
4210 <action>
4211 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004212 <actions>
4213 <action function="set">partitionlisterror=0</action>
4214 <action function="page">partsdcardsel</action>
4215 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004216 </action>
4217 </page>
4218
4219 <page name="htcdumlock">
4220 <template name="page"/>
4221
4222 <text style="text_l">
4223 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004224 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004225 </text>
4226
4227 <text style="text_m">
4228 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004229 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004230 </text>
4231
4232 <button style="main_button_half_height_full_width">
4233 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004234 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004235 <actions>
4236 <action function="set">tw_back=htcdumlock</action>
4237 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004238 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4239 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4240 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4241 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004242 <action function="page">confirm_action</action>
4243 </actions>
4244 </button>
4245
4246 <button style="main_button_half_height_full_width">
4247 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004248 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004249 <actions>
4250 <action function="set">tw_back=htcdumlock</action>
4251 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004252 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4253 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4254 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4255 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004256 <action function="page">confirm_action</action>
4257 </actions>
4258 </button>
4259
4260 <button style="main_button_half_height_full_width">
4261 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004262 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004263 <actions>
4264 <action function="set">tw_back=htcdumlock</action>
4265 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004266 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
4267 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4268 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4269 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004270 <action function="page">confirm_action</action>
4271 </actions>
4272 </button>
4273
4274 <action>
4275 <touch key="home"/>
4276 <action function="page">main</action>
4277 </action>
4278
4279 <action>
4280 <touch key="back"/>
4281 <action function="page">advanced</action>
4282 </action>
4283 </page>
4284
Ethan Yonker53796e72019-01-11 22:49:52 -06004285 <page name="repackselect">
4286 <template name="page"/>
4287
4288 <text style="text_l">
4289 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4290 <text>{@repack_image_hdr=Select Image}</text>
4291 </text>
4292
4293 <text style="text_m">
4294 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4295 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
4296 </text>
4297
4298 <template name="sort_options"/>
4299
4300 <fileselector>
4301 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
4302 <text>%tw_zip_location%</text>
4303 <filter extn=".img" folders="1" files="1"/>
4304 <path name="tw_zip_location" default="/sdcard"/>
4305 <data name="tw_filename"/>
4306 <selection name="tw_file"/>
4307 </fileselector>
4308
4309 <button style="main_button_half_height">
4310 <placement x="%indent%" y="%row21a_y%"/>
4311 <text>{@select_storage_btn=Select Storage}</text>
4312 <actions>
4313 <action function="set">tw_back=repackselect</action>
4314 <action function="overlay">select_storage</action>
4315 </actions>
4316 </button>
4317
4318 <action>
4319 <conditions>
4320 <condition var1="tw_filename" op="modified"/>
4321 </conditions>
4322 <action function="page">repackconfirm</action>
4323 </action>
4324
4325 <action>
4326 <touch key="back"/>
4327 <action function="page">advanced</action>
4328 </action>
4329
4330 <action>
4331 <touch key="home"/>
4332 <action function="page">main</action>
4333 </action>
4334 </page>
4335
4336 <page name="repackconfirm">
4337 <template name="page"/>
4338
4339 <text style="text_l">
4340 <condition var1="tw_repack_kernel" var2="1"/>
4341 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4342 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4343 </text>
4344
4345 <text style="text_l">
4346 <condition var1="tw_repack_kernel" var2="0"/>
4347 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4348 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4349 </text>
4350
4351 <text style="text_m">
4352 <condition var1="tw_repack_kernel" var2="1"/>
4353 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4354 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4355 </text>
4356
4357 <text style="text_m">
4358 <condition var1="tw_repack_kernel" var2="0"/>
4359 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4360 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4361 </text>
4362
4363 <text style="text_m_accent">
4364 <placement x="%indent%" y="%row2_y%"/>
4365 <text>{@folder=Folder:}</text>
4366 </text>
4367
4368 <text style="text_m">
4369 <placement x="%indent%" y="%row3_y%"/>
4370 <text>%tw_zip_location%</text>
4371 </text>
4372
4373 <text style="text_m_accent">
4374 <placement x="%indent%" y="%row4_y%"/>
4375 <text>{@file=File:}</text>
4376 </text>
4377
4378 <text style="text_m">
4379 <placement x="%indent%" y="%row5_y%"/>
4380 <text>%tw_file%</text>
4381 </text>
4382
4383 <checkbox>
4384 <placement x="%indent%" y="%row7_y%"/>
4385 <text>{@repack_backup_first=Back up existing image first}</text>
4386 <data variable="tw_repack_backup_first"/>
4387 </checkbox>
4388
4389 <button style="main_button_half_height">
4390 <placement x="%indent%" y="%row16_y%"/>
4391 <text>{@install_cancel=Do not Install}</text>
4392 <action function="page">repackselect</action>
4393 </button>
4394
4395 <slider>
4396 <text>{@swipe_to_install=Swipe to Install}</text>
4397 <actions>
4398 <action function="set">tw_back=advanced</action>
4399 <action function="set">tw_action=repackimage</action>
4400 <action function="set">tw_action_param=/boot</action>
4401 <action function="set">tw_action_text1={@installing=Installing...}</action>
4402 <action function="set">tw_action_text2=</action>
4403 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4404 <action function="page">action_page</action>
4405 </actions>
4406 </slider>
4407
4408 <action>
4409 <touch key="back"/>
4410 <action function="page">repackselect</action>
4411 </action>
4412
4413 <action>
4414 <touch key="home"/>
4415 <action function="page">main</action>
4416 </action>
4417 </page>
4418
z31s1g28f0a922015-11-07 18:50:22 +01004419 <page name="lock">
4420 <background color="%semi_transparent%"/>
4421
4422 <image>
4423 <image resource="unlock_icon"/>
4424 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4425 </image>
4426
4427 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004428 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004429 <action function="overlay"/>
4430 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004431
4432 <action>
4433 <touch key="power"/>
4434 <action function="togglebacklight"/>
4435 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004436 </page>
4437
4438 <page name="filemanagerlist">
4439 <template name="page"/>
4440
4441 <text style="text_l">
4442 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004443 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004444 </text>
4445
4446 <text style="text_m">
4447 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004448 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004449 </text>
4450
4451 <template name="sort_options"/>
4452
4453 <fileselector>
4454 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4455 <text>%tw_file_location1%</text>
4456 <filter folders="1" files="1"/>
4457 <path name="tw_file_location1" default="/"/>
4458 <data name="tw_filename1"/>
4459 <selection name="tw_selection1"/>
4460 </fileselector>
4461
4462 <button style="fab">
4463 <image resource="fab_selectfolder"/>
4464 <actions>
4465 <action function="set">tw_filename1=tw_file_location1</action>
4466 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004467 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004468 <action function="page">filemanageroptions</action>
4469 </actions>
4470 </button>
4471
4472 <action>
4473 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004474 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004475 <action function="set">tw_fm_isfolder=0</action>
4476 </actions>
4477 </action>
4478
4479 <action>
4480 <touch key="home"/>
4481 <action function="page">main</action>
4482 </action>
4483
4484 <action>
4485 <touch key="back"/>
4486 <action function="page">advanced</action>
4487 </action>
4488
4489 <action>
4490 <condition var1="tw_filename1" op="modified"/>
4491 <action function="page">filemanageroptions</action>
4492 </action>
4493 </page>
4494
4495 <page name="filemanageroptions">
4496 <template name="page"/>
4497
4498 <text style="text_l">
4499 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004500 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004501 </text>
4502
4503 <text style="text_m">
4504 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004505 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004506 </text>
4507
4508 <text style="text_m_accent">
4509 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004510 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004511 </text>
4512
4513 <text style="text_m">
4514 <placement x="%indent%" y="%row3_y%"/>
4515 <text>%tw_filename1%</text>
4516 </text>
4517
4518 <button style="main_button_half_height">
Captain Throwback16dd81b2021-02-12 19:32:36 -05004519 <conditions>
4520 <condition var1="tw_include_nano" var2="1"/>
4521 <condition var1="tw_fm_isfolder" var2="0"/>
4522 </conditions>
4523 <placement x="%indent%" y="%row12a_y%"/>
4524 <text>{@fm_edit_file=Edit File}</text>
4525 <actions>
4526 <action function="editfile">nano "%tw_filename1%"</action>
4527 <action function="page">terminalcommand</action>
4528 </actions>
4529 </button>
4530
4531 <button style="main_button_half_height">
Mohd Faraz77bbeb02020-08-12 12:29:42 +00004532 <condition var1="tw_fm_isfolder" var2="1"/>
4533 <placement x="%center_x%" y="%row12a_y%"/>
4534 <text>{@fm_open_terminal_btn=Open Terminal Here}</text>
4535 <action function="changeterminal">%tw_filename1%</action>
4536 </button>
4537
4538 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01004539 <condition var1="tw_fm_isfolder" var2="0"/>
4540 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004541 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004542 <actions>
4543 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004544 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004545 <action function="page">choosedestinationfolder</action>
4546 </actions>
4547 </button>
4548
4549 <button style="main_button_half_height">
4550 <condition var1="tw_fm_isfolder" var2="1"/>
4551 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004552 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004553 <actions>
4554 <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 -05004555 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004556 <action function="page">choosedestinationfolder</action>
4557 </actions>
4558 </button>
4559
4560 <button style="main_button_half_height">
4561 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004562 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004563 <actions>
4564 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004565 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004566 <action function="page">choosedestinationfolder</action>
4567 </actions>
4568 </button>
4569
4570 <button style="main_button_half_height">
4571 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004572 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004573 <actions>
4574 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004575 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004576 <action function="set">tw_fm_text2=</action>
4577 <action function="set">tw_fm_text3=</action>
4578 <action function="set">tw_include_text3=0</action>
4579 <action function="set">tw_back=filemanageroptions</action>
4580 <action function="page">filemanagerconfirm</action>
4581 </actions>
4582 </button>
4583
4584 <button style="main_button_half_height">
4585 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004586 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004587 <actions>
4588 <action function="set">tw_filemanager_rename=0000</action>
4589 <action function="set">tw_fm_text2=</action>
4590 <action function="set">tw_fm_text3=</action>
4591 <action function="set">tw_include_text3=0</action>
4592 <action function="set">tw_back=filemanageroptions</action>
4593 <action function="page">filemanagerchmod</action>
4594 </actions>
4595 </button>
4596
4597 <button style="main_button_half_height">
4598 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004599 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004600 <actions>
4601 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004602 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004603 <action function="set">tw_fm_text2=</action>
4604 <action function="set">tw_fm_text3=</action>
4605 <action function="set">tw_include_text3=0</action>
4606 <action function="set">tw_back=filemanageroptions</action>
4607 <action function="page">filemanagerconfirm</action>
4608 </actions>
4609 </button>
4610
4611 <button style="main_button_half_height">
4612 <condition var1="tw_fm_isfolder" var2="0"/>
4613 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004614 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004615 <actions>
4616 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004617 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004618 <action function="set">tw_filemanager_command=mv</action>
4619 <action function="page">filemanagerrenamefile</action>
4620 </actions>
4621 </button>
4622
4623 <button style="main_button_half_height">
4624 <condition var1="tw_fm_isfolder" var2="1"/>
4625 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004626 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004627 <actions>
4628 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004629 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004630 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4631 <action function="page">filemanagerrenamefolder</action>
4632 </actions>
4633 </button>
4634
4635 <action>
4636 <touch key="home"/>
4637 <action function="page">main</action>
4638 </action>
4639
4640 <action>
4641 <touch key="back"/>
4642 <action function="page">filemanagerlist</action>
4643 </action>
4644 </page>
4645
4646 <page name="choosedestinationfolder">
4647 <template name="page"/>
4648
4649 <text style="text_l">
4650 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004651 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004652 </text>
4653
4654 <text style="text_m">
4655 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004656 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004657 </text>
4658
4659 <template name="sort_options"/>
4660
4661 <fileselector>
4662 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4663 <text>%tw_file_location2%</text>
4664 <filter folders="1" files="0"/>
4665 <path name="tw_file_location2" default="/"/>
4666 <data name="tw_filename2"/>
4667 <selection name="tw_selection2"/>
4668 </fileselector>
4669
4670 <button style="fab">
4671 <image resource="fab_selectfolder"/>
4672 <actions>
4673 <action function="set">tw_fm_text2=to</action>
4674 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4675 <action function="set">tw_include_text3=1</action>
4676 <action function="set">tw_back=filemanageroptions</action>
4677 <action function="page">filemanagerconfirm</action>
4678 </actions>
4679 </button>
4680
4681 <action>
4682 <touch key="home"/>
4683 <action function="page">main</action>
4684 </action>
4685
4686 <action>
4687 <touch key="back"/>
4688 <action function="page">filemanageroptions</action>
4689 </action>
4690 </page>
4691
4692 <page name="filemanagerrenamefile">
4693 <template name="page"/>
4694
4695 <text style="text_l">
4696 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004697 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004698 </text>
4699
4700 <text style="text_m">
4701 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004702 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004703 </text>
4704
4705 <text style="text_m_accent">
4706 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004707 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004708 </text>
4709
4710 <input>
4711 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4712 <text>%tw_filemanager_rename%</text>
4713 <data name="tw_filemanager_rename"/>
4714 <restrict minlen="1" maxlen="128"/>
4715 <actions>
4716 <action function="set">tw_fm_text2=to</action>
4717 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4718 <action function="set">tw_include_text3=1</action>
4719 <action function="set">tw_back=filemanageroptions</action>
4720 <action function="page">filemanagerconfirm</action>
4721 </actions>
4722 </input>
4723
4724 <fill color="%accent_color%">
4725 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4726 </fill>
4727
4728 <button style="main_button_half_height">
4729 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004730 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004731 <action function="page">filemanageroptions</action>
4732 </button>
4733
4734 <template name="keyboardtemplate"/>
4735
4736 <action>
4737 <touch key="home"/>
4738 <action function="page">main</action>
4739 </action>
4740
4741 <action>
4742 <touch key="back"/>
4743 <action function="page">filemanageroptions</action>
4744 </action>
4745 </page>
4746
4747 <page name="filemanagerrenamefolder">
4748 <template name="page"/>
4749
4750 <text style="text_l">
4751 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004752 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004753 </text>
4754
4755 <text style="text_m">
4756 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004757 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004758 </text>
4759
4760 <text style="text_m_accent">
4761 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004762 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004763 </text>
4764
4765 <input>
4766 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4767 <text>%tw_filemanager_rename%</text>
4768 <data name="tw_filemanager_rename"/>
4769 <restrict minlen="1" maxlen="128"/>
4770 <actions>
4771 <action function="set">tw_fm_text2=to</action>
4772 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4773 <action function="set">tw_include_text3=1</action>
4774 <action function="set">tw_back=filemanageroptions</action>
4775 <action function="page">filemanagerconfirm</action>
4776 </actions>
4777 </input>
4778
4779 <fill color="%accent_color%">
4780 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4781 </fill>
4782
4783 <button style="main_button_half_height">
4784 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004785 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004786 <action function="page">filemanageroptions</action>
4787 </button>
4788
4789 <template name="keyboardtemplate"/>
4790
4791 <action>
4792 <touch key="home"/>
4793 <action function="page">main</action>
4794 </action>
4795
4796 <action>
4797 <touch key="back"/>
4798 <action function="page">filemanageroptions</action>
4799 </action>
4800 </page>
4801
4802 <page name="filemanagerchmod">
4803 <template name="page"/>
4804
4805 <text style="text_l">
4806 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004807 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004808 </text>
4809
4810 <text style="text_m">
4811 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004812 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004813 </text>
4814
4815 <text style="text_m_accent">
4816 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004817 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004818 </text>
4819
4820 <input>
4821 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4822 <text>%tw_filemanager_rename%</text>
4823 <data name="tw_filemanager_rename"/>
4824 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4825 <actions>
4826 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4827 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4828 <action function="set">tw_back=filemanageroptions</action>
4829 <action function="page">filemanagerconfirm</action>
4830 </actions>
4831 </input>
4832
4833 <fill color="%accent_color%">
4834 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4835 </fill>
4836
4837 <button style="main_button_half_height">
4838 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004839 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004840 <action function="page">filemanageroptions</action>
4841 </button>
4842
4843 <template name="keyboardtemplate"/>
4844
4845 <action>
4846 <touch key="home"/>
4847 <action function="page">main</action>
4848 </action>
4849
4850 <action>
4851 <touch key="back"/>
4852 <action function="page">filemanageroptions</action>
4853 </action>
4854 </page>
4855
4856 <page name="filemanagerconfirm">
4857 <template name="page"/>
4858
4859 <text style="text_l">
4860 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004861 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004862 </text>
4863
4864 <text style="text_m">
4865 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004866 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004867 </text>
4868
4869 <text style="text_m_accent">
4870 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4871 <text>%tw_fm_text1%</text>
4872 </text>
4873
4874 <text style="text_m">
4875 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4876 <text>%tw_filename1%</text>
4877 </text>
4878
4879 <text style="text_m_accent">
4880 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4881 <text>%tw_fm_text2%</text>
4882 </text>
4883
4884 <text style="text_m">
4885 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4886 <text>%tw_fm_text3%</text>
4887 </text>
4888
4889 <text style="text_m">
4890 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004891 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004892 </text>
4893
4894 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004895 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004896 <action function="page">filemanageraction</action>
4897 </slider>
4898
4899 <action>
4900 <touch key="back"/>
4901 <action function="page">%tw_back%</action>
4902 </action>
4903
4904 <action>
4905 <touch key="home"/>
4906 <action function="page">main</action>
4907 </action>
4908 </page>
4909
4910 <page name="filemanageraction">
4911 <template name="page"/>
4912
4913 <text style="text_l">
4914 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004915 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004916 </text>
4917
4918 <text style="text_m">
4919 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4920 <text>%tw_fm_text1%</text>
4921 </text>
4922
4923 <template name="console"/>
4924
4925 <template name="progress_bar"/>
4926
4927 <action>
4928 <conditions>
4929 <condition var1="tw_operation_state" var2="1"/>
4930 <condition var1="tw_operation_status" var2="0"/>
4931 </conditions>
4932 <actions>
4933 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004934 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004935 <action function="page">action_complete</action>
4936 </actions>
4937 </action>
4938
4939 <action>
4940 <conditions>
4941 <condition var1="tw_operation_state" var2="1"/>
4942 <condition var1="tw_operation_status" op="!=" var2="0"/>
4943 </conditions>
4944 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004945 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004946 <action function="page">action_complete</action>
4947 </actions>
4948 </action>
4949
4950 <action>
4951 <condition var1="tw_include_text3" var2="0"/>
4952 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4953 </action>
4954
4955 <action>
4956 <condition var1="tw_include_text3" var2="1"/>
4957 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4958 </action>
4959 </page>
4960
4961 <page name="decrypt">
4962 <template name="page"/>
4963
4964 <action>
4965 <condition var1="tw_crypto_pwtype" var2="2"/>
4966 <action function="page">decrypt_pattern</action>
4967 </action>
4968
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04004969 <action>
4970 <condition var1="tw_crypto_pwtype" var2="3"/>
4971 <action function="page">decrypt_pin</action>
4972 </action>
4973
z31s1g28f0a922015-11-07 18:50:22 +01004974 <text style="text_l">
4975 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004976 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004977 </text>
4978
4979 <text style="text_m">
4980 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004981 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004982 </text>
4983
4984 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004985 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004986 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004987 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004988 </text>
4989
Noah Jacobson81d638d2019-04-28 00:10:07 -04004990 <text style="text_m_accent">
4991 <condition var1="tw_is_fbe" var2="1"/>
4992 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4993 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4994 </text>
4995
z31s1g28f0a922015-11-07 18:50:22 +01004996 <input>
4997 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4998 <text>%tw_crypto_display%</text>
4999 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
5000 <restrict minlen="1" maxlen="254"/>
5001 <action function="page">trydecrypt</action>
5002 </input>
5003
5004 <fill color="%accent_color%">
5005 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
5006 </fill>
5007
5008 <fill color="%text_fail_color%">
5009 <condition var1="tw_password_fail" var2="1"/>
5010 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
5011 </fill>
5012
5013 <text style="text_m_fail">
5014 <condition var1="tw_password_fail" var2="1"/>
5015 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08005016 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005017 </text>
5018
5019 <button style="main_button_half_height">
5020 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005021 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05005022 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01005023 </button>
5024
z31s1g608d7ff2016-01-18 19:47:25 +01005025 <button style="main_button_half_height">
5026 <placement x="%center_x%" y="%row10_y%"/>
5027 <text>{@sel_lang_btn=Select Language}</text>
5028 <action function="overlay">select_language</action>
5029 </button>
5030
z31s1g28f0a922015-11-07 18:50:22 +01005031 <template name="keyboardtemplate"/>
5032 </page>
5033
5034 <page name="decrypt_pattern">
5035 <template name="page"/>
5036
5037 <text style="text_l">
5038 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005039 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005040 </text>
5041
5042 <text style="text_m">
5043 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005044 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005045 </text>
5046
5047 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04005048 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01005049 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005050 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005051 </text>
5052
Noah Jacobson81d638d2019-04-28 00:10:07 -04005053 <text style="text_m_accent">
5054 <condition var1="tw_is_fbe" var2="1"/>
5055 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5056 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
5057 </text>
5058
Aleksa Saraib25a1832015-12-31 17:36:00 +01005059 <text style="text_m_fail">
5060 <condition var1="tw_password_fail" var2="1"/>
5061 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08005062 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005063 </text>
5064
z31s1g28f0a922015-11-07 18:50:22 +01005065 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005066 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005067 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
5068 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
5069 <data name="tw_crypto_password"/>
5070 <action function="page">trydecrypt</action>
5071 </patternpassword>
5072
Aleksa Saraib25a1832015-12-31 17:36:00 +01005073 <button style="button_quarter_width">
5074 <placement x="%indent%" y="%row19a_y%"/>
5075 <text>3x3</text>
5076 <action function="set">tw_gui_pattern_grid_size=3</action>
5077 </button>
5078
5079 <button style="button_quarter_width">
5080 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
5081 <text>4x4</text>
5082 <action function="set">tw_gui_pattern_grid_size=4</action>
5083 </button>
5084
5085 <button style="button_quarter_width">
5086 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
5087 <text>5x5</text>
5088 <action function="set">tw_gui_pattern_grid_size=5</action>
5089 </button>
5090
5091 <button style="button_quarter_width">
5092 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
5093 <text>6x6</text>
5094 <action function="set">tw_gui_pattern_grid_size=6</action>
5095 </button>
5096
z31s1g28f0a922015-11-07 18:50:22 +01005097 <button style="main_button_half_height">
5098 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005099 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05005100 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01005101 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01005102
5103 <button style="main_button_half_height">
5104 <placement x="%center_x%" y="%row21a_y%"/>
5105 <text>{@sel_lang_btn=Select Language}</text>
5106 <action function="overlay">select_language</action>
5107 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005108 </page>
5109
Captain Throwbackfec0c3b2021-11-04 15:50:36 -04005110 <page name="decrypt_pin">
5111 <template name="page"/>
5112
5113 <text style="text_l">
5114 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5115 <text>{@mount_hdr=Mount}</text>
5116 </text>
5117
5118 <text style="text_m">
5119 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5120 <text>{@decrypt_data_hdr=Decrypt Data}</text>
5121 </text>
5122
5123 <text style="text_m_accent">
5124 <condition var1="tw_is_fbe" op="!=" var2="1"/>
5125 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5126 <text>{@decrypt_data_enter_pass=Enter PIN:}</text>
5127 </text>
5128
5129 <text style="text_m_accent">
5130 <condition var1="tw_is_fbe" var2="1"/>
5131 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5132 <text>{@decrypt_data_enter_pass_fbe=Enter PIN for User [%tw_crypto_user_id%]}</text>
5133 </text>
5134
5135 <input>
5136 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
5137 <text>%tw_crypto_display%</text>
5138 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
5139 <restrict minlen="1" maxlen="254"/>
5140 <action function="page">trydecrypt</action>
5141 </input>
5142
5143 <fill color="%accent_color%">
5144 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
5145 </fill>
5146
5147 <fill color="%text_fail_color%">
5148 <condition var1="tw_password_fail" var2="1"/>
5149 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
5150 </fill>
5151
5152 <text style="text_m_fail">
5153 <condition var1="tw_password_fail" var2="1"/>
5154 <placement x="%indent%" y="%row5_y%"/>
5155 <text>{@decrypt_data_failed=PIN failed, please try again!}</text>
5156 </text>
5157
5158 <button style="main_button_half_height">
5159 <placement x="%indent%" y="%row10_y%"/>
5160 <text>{@cancel_btn=Cancel}</text>
5161 <action function="page">canceldecrypt</action>
5162 </button>
5163
5164 <button style="main_button_half_height">
5165 <placement x="%center_x%" y="%row10_y%"/>
5166 <text>{@sel_lang_btn=Select Language}</text>
5167 <action function="overlay">select_language</action>
5168 </button>
5169
5170 <template name="keyboardnum"/>
5171 </page>
5172
z31s1g28f0a922015-11-07 18:50:22 +01005173 <page name="trydecrypt">
5174 <template name="page"/>
5175
5176 <text style="text_l">
5177 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005178 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005179 </text>
5180
5181 <text style="text_m">
5182 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005183 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005184 </text>
5185
5186 <template name="console"/>
5187
5188 <template name="progress_bar"/>
5189
5190 <action>
5191 <action function="decrypt"/>
5192 </action>
5193
5194 <action>
5195 <conditions>
5196 <condition var1="tw_operation_state" var2="1"/>
5197 <condition var1="tw_operation_status" op="!=" var2="0"/>
5198 </conditions>
5199 <actions>
5200 <action function="set">tw_password_fail=1</action>
5201 <action function="page">decrypt</action>
5202 </actions>
5203 </action>
5204
5205 <action>
5206 <conditions>
5207 <condition var1="tw_operation_state" var2="1"/>
5208 <condition var1="tw_operation_status" op="=" var2="0"/>
5209 </conditions>
5210 <actions>
5211 <action function="set">tw_page_done=1</action>
5212 <action function="page">main</action>
5213 </actions>
5214 </action>
5215 </page>
5216
Captain Throwback89b56a12021-02-10 18:25:07 -05005217 <page name="canceldecrypt">
5218 <template name="page"/>
5219
5220 <text style="text_l">
5221 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5222 <text>{@cancel_btn=Cancel}</text>
5223 </text>
5224
5225 <text style="text_m">
5226 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5227 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
5228 </text>
5229
5230 <template name="console"/>
5231
5232 <template name="progress_bar"/>
5233
5234 <action>
5235 <action function="refreshsizes"/>
5236 </action>
5237
5238 <action>
5239 <conditions>
5240 <condition var1="tw_operation_state" var2="1"/>
5241 </conditions>
5242 <actions>
5243 <action function="set">tw_page_done=1</action>
5244 <action function="page">main</action>
5245 </actions>
5246 </action>
5247 </page>
5248
z31s1g28f0a922015-11-07 18:50:22 +01005249 <page name="terminalcommand">
5250 <template name="page"/>
5251
z31s1g56189522016-01-13 19:12:40 +01005252 <fill color="%background_color%">
5253 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005254 </fill>
5255
z31s1g56189522016-01-13 19:12:40 +01005256 <terminal>
5257 <condition var1="tw_hide_kb" var2="0"/>
5258 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
5259 </terminal>
5260
5261 <terminal>
5262 <condition var1="tw_hide_kb" var2="1"/>
5263 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
5264 </terminal>
5265
5266 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005267
5268 <template name="keyboardtemplate"/>
5269
z31s1g608d7ff2016-01-18 19:47:25 +01005270 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01005271 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01005272 </fill>
z31s1g56189522016-01-13 19:12:40 +01005273
z31s1g608d7ff2016-01-18 19:47:25 +01005274 <button>
z31s1g56189522016-01-13 19:12:40 +01005275 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5276 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5277 <image resource="back" />
5278 <condition var1="tw_busy" var2="0" />
5279 <actions>
5280 <action function="set">tw_hide_kb=0</action>
5281 <action function="key">back</action>
5282 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005283 </button>
z31s1g56189522016-01-13 19:12:40 +01005284
z31s1g608d7ff2016-01-18 19:47:25 +01005285 <button>
z31s1g56189522016-01-13 19:12:40 +01005286 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5287 <condition var1="tw_hide_kb" op="=" var2="0" />
5288 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5289 <image resource="kb_hide" />
5290 <condition var1="tw_busy" var2="0" />
5291 <actions>
5292 <action function="set">tw_hide_kb=1</action>
5293 <action function="page">terminalcommand</action>
5294 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005295 </button>
z31s1g56189522016-01-13 19:12:40 +01005296
z31s1g608d7ff2016-01-18 19:47:25 +01005297 <button>
z31s1g56189522016-01-13 19:12:40 +01005298 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5299 <condition var1="tw_hide_kb" op="=" var2="1" />
5300 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5301 <image resource="kb_show" />
5302 <condition var1="tw_busy" var2="0" />
5303 <actions>
5304 <action function="set">tw_hide_kb=0</action>
5305 <action function="page">terminalcommand</action>
5306 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005307 </button>
z31s1g56189522016-01-13 19:12:40 +01005308
z31s1g608d7ff2016-01-18 19:47:25 +01005309 <button>
z31s1g56189522016-01-13 19:12:40 +01005310 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5311 <image resource="home" />
5312 <condition var1="tw_busy" var2="0" />
5313 <actions>
5314 <action function="set">tw_hide_kb=0</action>
5315 <action function="key">home</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005316 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005317 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005318 </button>
z31s1g56189522016-01-13 19:12:40 +01005319
z31s1g608d7ff2016-01-18 19:47:25 +01005320 <button>
z31s1g56189522016-01-13 19:12:40 +01005321 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5322 <condition var1="tw_hide_kb" op="=" var2="0" />
5323 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5324 <image resource="kb_hide" />
5325 <condition var1="tw_busy" var2="0" />
5326 <actions>
5327 <action function="set">tw_hide_kb=1</action>
5328 <action function="page">terminalcommand</action>
5329 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005330 </button>
z31s1g56189522016-01-13 19:12:40 +01005331
z31s1g608d7ff2016-01-18 19:47:25 +01005332 <button>
z31s1g56189522016-01-13 19:12:40 +01005333 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5334 <condition var1="tw_hide_kb" op="=" var2="1" />
5335 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5336 <image resource="kb_show" />
5337 <condition var1="tw_busy" var2="0" />
5338 <actions>
5339 <action function="set">tw_hide_kb=0</action>
5340 <action function="page">terminalcommand</action>
5341 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005342 </button>
z31s1g56189522016-01-13 19:12:40 +01005343
z31s1g608d7ff2016-01-18 19:47:25 +01005344 <button>
z31s1g56189522016-01-13 19:12:40 +01005345 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5346 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5347 <image resource="back" />
5348 <condition var1="tw_busy" var2="0" />
5349 <actions>
5350 <action function="set">tw_hide_kb=0</action>
5351 <action function="key">back</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005352 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005353 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005354 </button>
z31s1g56189522016-01-13 19:12:40 +01005355
z31s1g28f0a922015-11-07 18:50:22 +01005356 <action>
5357 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005358 <actions>
5359 <action function="set">tw_hide_kb=0</action>
5360 <action function="page">main</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005361 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005362 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005363 </action>
5364
5365 <action>
5366 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005367 <actions>
5368 <action function="set">tw_hide_kb=0</action>
5369 <action function="page">advanced</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005370 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005371 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005372 </action>
z31s1g56189522016-01-13 19:12:40 +01005373
z31s1g608d7ff2016-01-18 19:47:25 +01005374 <action>
z31s1g56189522016-01-13 19:12:40 +01005375 <touch key="power+voldown" />
5376 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01005377 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005378 </page>
5379
bigbiffdf8436b2020-08-30 16:22:34 -04005380 <page name="fastboot">
5381 <template name="page"/>
5382
5383 <text style="text_l">
5384 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5385 <text>{@fastboot_button=Fastboot}</text>
5386 </text>
5387
5388 <template name="console"/>
5389
5390 <template name="progress_bar"/>
5391
5392 <button style="main_button_half_height">
5393 <condition var1="tw_enable_fastboot" op="=" var2="1" />
5394 <placement x="%indent%" y="%row21a_y%"/>
5395 <text>{@enable_adb=Enable ADB}</text>
5396 <actions>
5397 <action function="enableadb"/>
5398 <action function="set">tw_enable_adb=1</action>
5399 <action function="set">tw_enable_fastboot=0</action>
5400 </actions>
5401 </button>
5402
5403 <button style="main_button_half_height">
5404 <condition var1="tw_enable_adb" op="=" var2="1" />
5405 <placement x="%indent%" y="%row21a_y%"/>
5406 <text>{@enable_fastboot=Enable Fastboot}</text>
5407 <actions>
5408 <action function="enablefastboot"/>
5409 <action function="set">tw_enable_fastboot=1</action>
5410 <action function="set">tw_enable_adb=0</action>
5411 </actions>
5412 </button>
5413
5414 <button style="main_button_half_height">
5415 <placement x="%center_x%" y="%row21a_y%"/>
5416 <text>{@reboot_btn=Reboot}</text>
5417 <action function="page">fastbootreboot</action>
5418 </button>
5419 </page>
5420
z31s1g28f0a922015-11-07 18:50:22 +01005421 <page name="sideload">
5422 <template name="page"/>
5423
5424 <text style="text_l">
5425 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005426 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005427 </text>
5428
5429 <text style="text_m">
5430 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005431 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005432 </text>
5433
5434 <checkbox>
5435 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005436 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005437 <data variable="tw_wipe_dalvik"/>
5438 </checkbox>
5439
5440 <checkbox>
5441 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005442 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005443 <data variable="tw_wipe_cache"/>
5444 </checkbox>
5445
5446 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005447 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005448 <actions>
5449 <action function="set">tw_back=advanced</action>
5450 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005451 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5452 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5453 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005454 <action function="set">tw_has_cancel=1</action>
5455 <action function="set">tw_show_reboot=1</action>
5456 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5457 <action function="page">action_page</action>
5458 </actions>
5459 </slider>
5460
5461 <action>
5462 <touch key="home"/>
5463 <action function="page">main</action>
5464 </action>
5465
5466 <action>
5467 <touch key="back"/>
5468 <action function="page">advanced</action>
5469 </action>
5470 </page>
5471
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005472 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005473 <template name="page"/>
5474
5475 <text style="text_l">
5476 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005477 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005478 </text>
5479
5480 <text style="text_m">
5481 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005482 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005483 </text>
5484
5485 <text style="text_m_accent">
5486 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005487 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005488 </text>
5489
z31s1g28f0a922015-11-07 18:50:22 +01005490 <text style="text_m_fail">
5491 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005492 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005493 </text>
5494
5495 <text style="text_m_fail">
5496 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005497 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005498 </text>
5499
5500 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005501 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005502 <actions>
5503 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005504 <action function="set">tw_action=fixcontexts</action>
5505 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5506 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005507 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005508 <action function="set">tw_show_reboot=1</action>
5509 <action function="page">action_page</action>
5510 </actions>
5511 </slider>
5512
5513 <action>
5514 <touch key="home"/>
5515 <action function="page">main</action>
5516 </action>
5517
5518 <action>
5519 <touch key="back"/>
5520 <action function="page">advanced</action>
5521 </action>
5522 </page>
5523
z31s1g28f0a922015-11-07 18:50:22 +01005524 <page name="slideout">
5525 <fill color="%background_color%">
5526 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5527 </fill>
5528
5529 <console>
5530 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
5531 </console>
5532
5533 <button>
5534 <fill color="%transparent%"/>
5535 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5536 <action function="overlay"/>
5537 </button>
5538
5539 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005540 <touch key="power"/>
5541 <action function="togglebacklight"/>
5542 </action>
5543
5544 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005545 <touch key="power+voldown"/>
5546 <action function="screenshot"/>
5547 </action>
5548 </page>
5549
5550 <page name="select_storage">
5551 <fill color="%semi_transparent%">
5552 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5553 </fill>
5554
5555 <fill color="%background_color%">
5556 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5557 </fill>
5558
5559 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005560 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005561 <data name="tw_storage_path"/>
5562 <listtype name="storage"/>
5563 </partitionlist>
5564
5565 <button style="button_third_width">
5566 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005567 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005568 <actions>
5569 <action function="set">tw_clear_destination=%tw_back%</action>
5570 <action function="overlay"/>
5571 <action function="page">clear_vars</action>
5572 </actions>
5573 </button>
5574
5575 <fill color="#000000">
5576 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5577 </fill>
5578
5579 <button>
5580 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5581 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5582 <image resource="back"/>
5583 <condition var1="tw_busy" var2="0"/>
5584 <actions>
5585 <action function="overlay"/>
5586 <action function="key">%tw_back%</action>
5587 </actions>
5588 </button>
5589
5590 <button>
5591 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5592 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5593 <image resource="console"/>
5594 <condition var1="tw_busy" var2="0"/>
5595 <action function="overlay">slideout</action>
5596 </button>
5597
5598 <button>
5599 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5600 <image resource="home"/>
5601 <condition var1="tw_busy" var2="0"/>
5602 <actions>
5603 <action function="overlay"/>
5604 <action function="key">home</action>
5605 </actions>
5606 </button>
5607
5608 <button>
5609 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5610 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5611 <image resource="console"/>
5612 <condition var1="tw_busy" var2="0"/>
5613 <action function="overlay">slideout</action>
5614 </button>
5615
5616 <button>
5617 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5618 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5619 <image resource="back"/>
5620 <condition var1="tw_busy" var2="0"/>
5621 <actions>
5622 <action function="overlay"/>
5623 <action function="key">%tw_back%</action>
5624 </actions>
5625 </button>
5626
5627 <action>
5628 <touch key="power+voldown"/>
5629 <action function="screenshot"/>
5630 </action>
5631 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005632
5633 <page name="select_language">
5634 <fill color="%semi_transparent%">
5635 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5636 </fill>
5637
5638 <fill color="%background_color%">
5639 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5640 </fill>
5641
5642 <listbox>
5643 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5644 <text>{@select_language=Select Language:}</text>
5645 <icon selected="radio_true" unselected="radio_false" />
5646 <data name="tw_language" />
5647 </listbox>
5648
5649 <button style="button_third_width">
5650 <placement x="%dialog_button_x%" y="%row14_y%"/>
5651 <text>{@ok_btn=OK}</text>
5652 <actions>
5653 <action function="overlay"/>
5654 <action function="setlanguage"></action>
5655 </actions>
5656 </button>
5657
5658 <fill color="#000000">
5659 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5660 </fill>
5661
5662 <button>
5663 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5664 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5665 <image resource="back"/>
5666 <condition var1="tw_busy" var2="0"/>
5667 <actions>
5668 <action function="overlay"/>
5669 <action function="key">%tw_back%</action>
5670 </actions>
5671 </button>
5672
5673 <button>
5674 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5675 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5676 <image resource="console"/>
5677 <condition var1="tw_busy" var2="0"/>
5678 <action function="overlay">slideout</action>
5679 </button>
5680
5681 <button>
5682 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5683 <image resource="home"/>
5684 <condition var1="tw_busy" var2="0"/>
5685 <actions>
5686 <action function="overlay"/>
5687 <action function="key">home</action>
5688 </actions>
5689 </button>
5690
5691 <button>
5692 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5693 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5694 <image resource="console"/>
5695 <condition var1="tw_busy" var2="0"/>
5696 <action function="overlay">slideout</action>
5697 </button>
5698
5699 <button>
5700 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5701 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5702 <image resource="back"/>
5703 <condition var1="tw_busy" var2="0"/>
5704 <actions>
5705 <action function="overlay"/>
5706 <action function="key">%tw_back%</action>
5707 </actions>
5708 </button>
5709
5710 <action>
5711 <touch key="power+voldown"/>
5712 <action function="screenshot"/>
5713 </action>
5714 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005715
5716 <page name="decrypt_users">
5717 <template name="page"/>
5718
5719 <text style="text_l">
5720 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5721 <text>{@decrypt_users=Decrypt Users}</text>
5722 </text>
5723
5724 <text style="text_m_accent">
5725 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5726 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5727 </text>
5728
5729 <listbox>
5730 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_advanced_height%"/>
5731 <text>{@select_user=Select User}</text>
5732 <icon selected="radio_true" unselected="radio_false" />
5733 <data name="tw_crypto_user_id" />
5734 </listbox>
5735
5736 <button style="main_button_half_height">
5737 <placement x="%center_x%" y="%row21a_y%"/>
5738 <text>{@decrypt_users=Decrypt Users}</text>
5739 <action function="set">tw_crypto_password=</action>
5740 <action function="set">tw_password_fail=0</action>
5741 <action function="page">decrypt</action>
5742 </button>
5743
5744 <action>
5745 <touch key="home"/>
5746 <action function="page">main</action>
5747 </action>
5748
5749 <action>
5750 <touch key="back"/>
5751 <action function="page">advanced</action>
5752 </action>
5753 </page>
epicXa721f952021-01-04 13:01:31 +05305754
5755 <page name="changeTwrpFolder">
5756 <template name="page"/>
5757
5758 <text style="text_l">
5759 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5760 <text>{@advanced_hdr=Advanced}</text>
5761 </text>
5762
5763 <text style="text_m">
5764 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5765 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
5766 </text>
5767
5768 <text style="text_m_accent">
5769 <placement x="%indent%" y="%row2_y%"/>
5770 <text>{@name=Name:}</text>
5771 </text>
5772
5773 <input>
5774 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
5775 <text>%tw_custom_folder%</text>
5776 <data name="tw_custom_folder"/>
5777 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
5778 <actions>
5779 <action function="set">tw_back=changeTwrpFolder</action>
5780 <action function="set">tw_action=applycustomtwrpfolder</action>
5781 <action function="set">tw_action_param=%tw_custom_folder%</action>
5782 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5783 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5784 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5785 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
5786 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5787 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
5788 <action function="set">tw_existpage=changeTwrpFolder</action>
5789 <action function="set">tw_notexistpage=confirm_action</action>
5790 <action function="page">filecheck</action>
5791 </actions>
5792 </input>
5793
5794 <fill color="%accent_color%">
5795 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5796 </fill>
5797
5798 <fill color="%text_fail_color%">
5799 <condition var1="tw_fileexists" var2="1"/>
5800 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5801 </fill>
5802
5803 <text style="text_m_fail">
5804 <condition var1="tw_fileexists" var2="1"/>
5805 <placement x="%indent%" y="%row4a_y%"/>
5806 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
5807 </text>
5808
5809 <button style="main_button_half_height">
5810 <placement x="%indent%" y="%row10_y%"/>
5811 <text>{@cancel_btn=Cancel}</text>
5812 <actions>
5813 <action function="page">advanced</action>
5814 </actions>
5815 </button>
5816
5817 <button style="main_button_half_height">
5818 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
5819 <placement x="%center_x%" y="%row10_y%"/>
5820 <text>{@restore_defaults_btn=Restore Defaults}</text>
5821 <actions>
5822 <action function="set">tw_back=changeTwrpFolder</action>
5823 <action function="set">tw_action=applycustomtwrpfolder</action>
5824 <action function="set">tw_action_param=TWRP</action>
5825 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5826 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5827 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5828 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
5829 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5830 <action function="set">tw_filecheck=/sdcard/TWRP</action>
5831 <action function="set">tw_existpage=changeTwrpFolder</action>
5832 <action function="set">tw_notexistpage=confirm_action</action>
5833 <action function="page">filecheck</action>
5834 </actions>
5835 </button>
5836
5837 <template name="keyboardtemplate"/>
5838
5839 <action>
5840 <touch key="home"/>
5841 <actions>
5842 <action function="page">main</action>
5843 </actions>
5844 </action>
5845
5846 <action>
5847 <touch key="back"/>
5848 <actions>
5849 <action function="page">advanced</action>
5850 </actions>
5851 </action>
5852 </page>
bigbiff8f5fad32021-11-03 20:39:02 -04005853
5854 <page name="restore_keymaster">
5855 <template name="page"/>
5856
5857 <text style="text_m_accent">
5858 <condition var1="tw_crypto_pwtype" var2="1"/>
5859 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5860 <text>{@restore_with_pin_password1=PIN/Password is enabled}</text>
5861 </text>
5862
5863 <text style="text_m_accent">
5864 <condition var1="tw_crypto_pwtype" var2="1"/>
5865 <placement x="%center_x%" y="%row3_y%" placement="5"/>
5866 <text>{@restore_with_pin_password2=PIN/Password should be disabled before restore}</text>
5867 </text>
5868 <text style="text_l">
5869 <condition var1="tw_crypto_pwtype" var2="1"/>
5870 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5871 <text>{@restore_pin_password=Restore While PIN/Password Enabled?}</text>
5872 </text>
5873
5874 <text style="text_m_accent">
5875 <condition var1="tw_crypto_pwtype" var2="2"/>
5876 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5877 <text>{@restore_with_pattern1=Pattern is enabled}</text>
5878 </text>
5879
5880 <text style="text_m_accent">
5881 <condition var1="tw_crypto_pwtype" var2="2"/>
5882 <placement x="%center_x%" y="%row3_y%" placement="5"/>
5883 <text>{@restore_with_pattern2=Pattern should be disabled before restore}</text>
5884 </text>
5885
5886 <text style="text_l">
5887 <condition var1="tw_crypto_pwtype" var2="2"/>
5888 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5889 <text>{@restore_pattern=Restore While Pattern Enabled?}</text>
5890 </text>
5891
5892 <text style="text_m_accent">
5893 <condition var1="tw_crypto_pwtype" var2="3"/>
5894 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5895 <text>{@restore_with_pin1=PIN is enabled}</text>
5896 </text>
5897
5898 <text style="text_m_accent">
5899 <condition var1="tw_crypto_pwtype" var2="3"/>
5900 <placement x="%center_x%" y="%row3_y%" placement="5"/>
5901 <text>{@restore_with_pin2=PIN should be disabled before restore}</text>
5902 </text>
5903
5904 <text style="text_l">
5905 <condition var1="tw_crypto_pwtype" var2="3"/>
5906 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5907 <text>{@restore_pin=Restore While PIN Enabled?}</text>
5908 </text>
5909
5910 <slider>
5911 <text>{@continue_restore_encrypted=Continue Restore?}</text>
5912 <actions>
5913 <action function="page">restore_force</action>
5914 </actions>
5915 </slider>
5916
5917 <action>
5918 <touch key="home"/>
5919 <action function="page">main</action>
5920 </action>
5921
5922 <action>
5923 <touch key="back"/>
5924 <actions>
5925 <action function="page">main</action>
5926 </actions>
5927 </action>
5928 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005929 </pages>
5930</recovery>