blob: e8b05953e662dbd3cc09ac640ce8a953ca85320e [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_full_width">
42 <highlight color="%highlight_color%"/>
43 <font resource="font_l" color="%text_button_color%"/>
44 <image resource="main_button_full_width"/>
45 </style>
46
47 <style name="main_button_quarter_width">
48 <highlight color="%highlight_color%"/>
49 <font resource="font_l" color="%text_button_color%"/>
50 <image resource="main_button_quarter_width"/>
51 </style>
52
53 <style name="main_button_half_height">
54 <highlight color="%highlight_color%"/>
55 <font resource="font_m" color="%text_button_color%"/>
56 <image resource="main_button_half_height"/>
57 </style>
58
59 <style name="main_button_half_height_full_width">
60 <highlight color="%highlight_color%"/>
61 <font resource="font_m" color="%text_button_color%"/>
62 <image resource="main_button_half_height_full_width"/>
63 </style>
64
65 <style name="button_third_width">
66 <highlight color="%highlight_color%"/>
67 <font resource="font_m" color="%text_button_color%"/>
68 <image resource="tab_3"/>
69 </style>
70
Aleksa Saraib25a1832015-12-31 17:36:00 +010071 <style name="button_navbar">
72 <font resource="font_m" color="%text_button_color%"/>
73 </style>
74
z31s1g28f0a922015-11-07 18:50:22 +010075 <style name="console">
76 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
77 <font resource="fixed"/>
78 </style>
79
z31s1g56189522016-01-13 19:12:40 +010080 <style name="terminal">
81 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
82 <background color="%background_color%"/>
83 <font resource="fixed" spacing="2" color="%text_color%"/>
84 </style>
85
z31s1g28f0a922015-11-07 18:50:22 +010086 <style name="fileselector">
87 <highlight color="%fileselector_highlight_color%"/>
88 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
89 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
90 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
91 <sort name="tw_gui_sort_order"/>
92 <icon folder="folder" file="file"/>
93 <background color="%background_color%"/>
94 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
95 </style>
96
97 <style name="listbox">
98 <highlight color="%fileselector_highlight_color%"/>
99 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
100 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
101 <icon selected="radio_true" unselected="radio_false"/>
102 <background color="%background_color%"/>
103 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
104 </style>
105
106 <style name="listbox_headerless">
107 <highlight color="%fileselector_highlight_color%"/>
108 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
109 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
110 <icon selected="radio_true" unselected="radio_false"/>
111 <background color="%background_color%"/>
112 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
113 </style>
114
115 <style name="listbox_options">
116 <background color="%background_color%"/>
117 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
118 <icon selected="checkbox_true_small" unselected="checkbox_false_small"/>
119 </style>
120
121 <style name="scrolllist">
122 <highlight color="%fileselector_highlight_color%"/>
123 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
124 <icon selected="checkbox_true" unselected="checkbox_false"/>
125 <background color="%background_color%"/>
126 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
127 </style>
128
129 <style name="partitionlist">
130 <highlight color="%fileselector_highlight_color%"/>
131 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
132 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
133 <icon selected="checkbox_true" unselected="checkbox_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
139 <style name="partitionlist_summary">
140 <highlight color="%fileselector_highlight_color%"/>
141 <background color="%background_color%"/>
142 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
143 <icon selected="checkbox_true_small" unselected="checkbox_false_small"/>
144 </style>
145
146 <style name="partitionlist_headerless_rb">
147 <highlight color="%fileselector_highlight_color%"/>
148 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
149 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
150 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
151 <icon selected="radio_true" unselected="radio_false"/>
152 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
153 <background color="%background_color%"/>
154 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
155 </style>
156
157 <style name="partitionlist_headerless_cb">
158 <highlight color="%fileselector_highlight_color%"/>
159 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
160 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
161 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
162 <icon selected="checkbox_true" unselected="checkbox_false"/>
163 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
164 <background color="%background_color%"/>
165 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
166 </style>
167
168 <style name="slider">
169 <placement x="%center_x%" y="%slider_y%"/>
170 <font resource="font_l" color="%text_color%"/>
171 <resource base="slider" used="slider_used" touch="slider_touch"/>
172 </style>
173
174 <style name="slidervalue">
175 <resource handle="handle"/>
176 <font resource="font_m" color="%text_color%"/>
177 <colors line="%fileselector_linecolor%"/>
178 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
179 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100180
181 <style name="patternpassword">
182 <size name="tw_gui_pattern_grid_size" default="3"/>
183 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100184 </styles>
185
186 <pages>
187 <page name="main">
188 <action>
189 <actions>
190 <action function="set">tw_clear_destination=main2</action>
191 <action function="page">clear_vars</action>
192 </actions>
193 </action>
194 </page>
195
196 <page name="main2">
197 <template name="page"/>
198
199 <button style="main_button">
200 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500201 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100202 <action function="page">install_type</action>
203 </button>
204
205 <button style="main_button">
206 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500207 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100208 <action function="page">wipe_type1</action>
209 </button>
210
211 <button style="main_button">
212 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500213 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100214 <actions>
215 <action function="set">tw_back=main</action>
bigbiffce8f83c2015-12-12 18:30:21 -0500216 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +0100217 </actions>
218 </button>
219
220 <button style="main_button">
221 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500222 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100223 <action function="page">restore</action>
224 </button>
225
226 <button style="main_button">
227 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500228 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100229 <action function="page">reboot</action>
230 </button>
231
232 <button>
233 <placement x="%btn4_col4_x%" y="%row11_y%"/>
234 <highlight color="%highlight_color%"/>
235 <image resource="q_btn_arrow_right"/>
236 <action function="page">main3</action>
237 </button>
238 </page>
239
Matt Mower32676622017-01-18 18:56:13 -0600240 <page name="copylog">
241 <template name="page"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400242
Matt Mower32676622017-01-18 18:56:13 -0600243 <checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400244 <placement x="%indent%" y="%row1_y%"/>
Matt Mower32676622017-01-18 18:56:13 -0600245 <text>{@include_kernel_log=Include Kernel Log}</text>
246 <data variable="tw_include_kernel_log" value="1"/>
247 </checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400248
249 <slider>
250 <text>{@swipe_confirm= Confirm}</text>
251 <actions>
Matt Mower32676622017-01-18 18:56:13 -0600252 <action function="set">tw_back=main3</action>
253 <action function="set">tw_action=copylog</action>
254 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
255 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400256 <action function="page">action_page</action>
257 </actions>
258 </slider>
259
260 <action>
261 <touch key="back"/>
262 <action function="page">main2</action>
263 </action>
264
265 <action>
266 <touch key="home"/>
267 <action function="page">main</action>
268 </action>
Matt Mower32676622017-01-18 18:56:13 -0600269 </page>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400270
z31s1g28f0a922015-11-07 18:50:22 +0100271 <page name="main3">
272 <template name="page"/>
273
274 <button style="main_button">
275 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500276 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100277 <action function="page">mount</action>
278 </button>
279
280 <button style="main_button">
281 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500282 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100283 <action function="page">settings</action>
284 </button>
285
286 <button style="main_button">
287 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500288 <text>{@files_btn=Files}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100289 <action function="page">filemanagerlist</action>
290 </button>
291
292 <button style="main_button">
293 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500294 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400295 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +0100296 </button>
297
298 <button style="main_button">
299 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500300 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100301 <action function="page">advanced</action>
302 </button>
303
304 <button>
305 <placement x="%col1_x_left%" y="%row11_y%"/>
306 <highlight color="%highlight_color%"/>
307 <image resource="q_btn_arrow_left"/>
308 <action function="page">main2</action>
309 </button>
310
311 <action>
312 <touch key="back"/>
313 <action function="page">main2</action>
314 </action>
315
316 <action>
317 <touch key="home"/>
318 <action function="page">main</action>
319 </action>
320 </page>
321
322 <page name="install_type">
323 <template name="page"/>
324
325 <template name="statusbar"/>
326
327 <text style="text_m">
328 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500329 <text>{@install_hdr=Install} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100330 </text>
331
332 <button style="main_button_full_width">
333 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500334 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100335 <actions>
336 <action function="queueclear"/>
337 <action function="set">tw_selectimage=0</action>
338 <action function="page">install</action>
339 </actions>
340 </button>
341
342 <button style="main_button_full_width">
343 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500344 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100345 <actions>
346 <action function="queueclear"/>
347 <action function="set">tw_selectimage=1</action>
348 <action function="page">install</action>
349 </actions>
350 </button>
351
352 <button style="main_button_full_width">
353 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500354 <text>{@adb_sideload_btn=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100355 <action function="page">sideload</action>
356 </button>
357
358 <action>
359 <touch key="home"/>
360 <action function="page">main</action>
361 </action>
362
363 <action>
364 <touch key="back"/>
365 <action function="page">main</action>
366 </action>
367 </page>
368
369 <page name="install">
370 <template name="page"/>
371
372 <template name="statusbar"/>
373
374 <text style="text_m">
375 <condition var1="tw_selectimage" var2="0"/>
376 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500377 <text>{@install_zip_hdr=Install Zip} &gt; {@install_select_file_hdr=Select File}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100378 </text>
379
380 <text style="text_m">
381 <condition var1="tw_selectimage" var2="1"/>
382 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500383 <text>{@install_image_hdr=Install Image} &gt; {@install_select_file_hdr=Select File}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100384 </text>
385
386 <fileselector>
387 <condition var1="tw_selectimage" var2="0"/>
388 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
389 <text>%tw_zip_location%</text>
390 <filter extn=".zip" folders="1" files="1"/>
391 <path name="tw_zip_location" default="/sdcard"/>
392 <data name="tw_filename"/>
393 <selection name="tw_file"/>
394 </fileselector>
395
396 <fileselector>
397 <condition var1="tw_selectimage" var2="1"/>
398 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
399 <text>%tw_zip_location%</text>
400 <filter extn=".img" folders="1" files="1"/>
401 <path name="tw_zip_location" default="/sdcard"/>
402 <data name="tw_filename"/>
403 <selection name="tw_file"/>
404 </fileselector>
405
406 <button>
407 <placement x="%btn4_col4_x%" y="%row11_y%"/>
408 <highlight color="%highlight_color%"/>
409 <image resource="q_btn_storage"/>
410 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -0500411 <action function="set">tw_storagetext={@install_hdr=Install} &gt; {@select_storage_hdr=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100412 <action function="set">tw_back=install</action>
413 <action function="page">select_storage</action>
414 </actions>
415 </button>
416
417 <action>
418 <conditions>
419 <condition var1="tw_selectimage" var2="0"/>
420 <condition var1="tw_filename" op="modified"/>
421 </conditions>
422 <actions>
423 <action function="queuezip"/>
424 <action function="page">flash_queue</action>
425 </actions>
426 </action>
427
428 <action>
429 <conditions>
430 <condition var1="tw_selectimage" var2="1"/>
431 <condition var1="tw_filename" op="modified"/>
432 </conditions>
433 <action function="page">flashimage_type</action>
434 </action>
435
436 <action>
437 <touch key="back"/>
438 <action function="page">install_type</action>
439 </action>
440
441 <action>
442 <touch key="home"/>
443 <action function="page">main</action>
444 </action>
445 </page>
446
447 <page name="flash_queue">
448 <template name="page"/>
449
450 <template name="statusbar"/>
451
452 <text style="text_m">
453 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500454 <text>{@install_zip_hdr=Install Zip} &gt; {@queue_hdr=Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100455 </text>
456
457 <text style="text_m_accent">
458 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500459 <text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100460 </text>
461
462 <text style="text_m">
463 <placement x="%indent%" y="%row2_y%"/>
464 <text>%tw_file%</text>
465 </text>
466
467 <text style="text_m_accent">
468 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500469 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100470 </text>
471
472 <text style="text_m">
473 <placement x="%indent%" y="%row5_y%"/>
474 <text>%tw_zip_location%</text>
475 </text>
476
477 <text style="text_m">
478 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500479 <text>{@zip_back_clear=Press back button to clear the queue.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100480 </text>
481
482 <button>
483 <placement x="%col1_x_left%" y="%row11_y%"/>
484 <highlight color="%highlight_color%"/>
485 <image resource="q_btn_arrow_left"/>
486 <actions>
487 <action function="queueclear"/>
488 <action function="page">install</action>
489 </actions>
490 </button>
491
492 <button>
493 <placement x="%btn4_col2_x%" y="%row11_y%"/>
494 <highlight color="%highlight_color%"/>
495 <image resource="q_btn_addzip"/>
496 <action function="page">install</action>
497 </button>
498
499 <button>
500 <placement x="%btn4_col3_x%" y="%row11_y%"/>
501 <highlight color="%highlight_color%"/>
502 <image resource="q_btn_accept"/>
503 <action function="page">flash_confirm</action>
504 </button>
505
506 <button>
507 <placement x="%btn4_col4_x%" y="%row11_y%"/>
508 <highlight color="%highlight_color%"/>
509 <image resource="q_btn_arrow_right"/>
510 <action function="page">flash_options</action>
511 </button>
512
513 <action>
514 <touch key="back"/>
515 <actions>
516 <action function="queueclear"/>
517 <action function="page">install</action>
518 </actions>
519 </action>
520
521 <action>
522 <touch key="home"/>
523 <action function="page">main</action>
524 </action>
525 </page>
526
527 <page name="flash_options">
528 <template name="page"/>
529
530 <template name="statusbar"/>
531
532 <text style="text_m">
533 <condition var1="tw_selectimage" var2="0"/>
534 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500535 <text>{@install_zip_hdr=Install Zip} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100536 </text>
537
538 <checkbox>
539 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500540 <text>{@zip_sig_chk=Zip file signature verification}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100541 <data variable="tw_signed_zip_verify"/>
542 </checkbox>
543
544 <checkbox>
545 <condition var1="tw_has_injecttwrp" var2="1"/>
546 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500547 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100548 <data variable="tw_inject_after_zip"/>
549 </checkbox>
550
bigbiffa869fc72016-03-01 19:40:36 -0500551 <checkbox>
Matt Mower32676622017-01-18 18:56:13 -0600552 <placement x="%indent%" y="%row4_y%"/>
bigbiffa869fc72016-03-01 19:40:36 -0500553 <text>{@install_reboot_chk=Reboot after installation is complete}</text>
Matt Mower32676622017-01-18 18:56:13 -0600554 <data variable="tw_install_reboot"/>
bigbiffa869fc72016-03-01 19:40:36 -0500555 </checkbox>
556
z31s1g28f0a922015-11-07 18:50:22 +0100557 <button>
558 <placement x="%col1_x_left%" y="%row11_y%"/>
559 <highlight color="%highlight_color%"/>
560 <image resource="q_btn_arrow_left"/>
561 <action function="page">flash_queue</action>
562 </button>
563
564 <button>
565 <placement x="%btn4_col4_x%" y="%row11_y%"/>
566 <highlight color="%highlight_color%"/>
567 <image resource="q_btn_accept_transp"/>
568 <action function="page">flash_confirm</action>
569 </button>
570
571 <action>
572 <touch key="back"/>
573 <action function="page">flash_queue</action>
574 </action>
575
576 <action>
577 <touch key="home"/>
578 <action function="page">main</action>
579 </action>
580 </page>
581
582 <page name="flash_confirm">
583 <template name="page"/>
584
585 <template name="statusbar"/>
586
587 <text style="text_m">
588 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500589 <text>{@install_zip_hdr=Install Zip} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100590 </text>
591
592 <text style="text_m_accent">
593 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500594 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100595 </text>
596
597 <text style="text_m">
598 <placement x="%indent%" y="%row2_y%"/>
599 <text>%tw_file%</text>
600 </text>
601
602 <button>
603 <fill color="%transparent%"/>
604 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
605 <action function="page">flash_queue</action>
606 </button>
607
608 <text style="text_m_accent">
609 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500610 <text>{@zip_queue=Queue:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100611 </text>
612
613 <text style="text_m">
614 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500615 <text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100616 </text>
617
618 <button>
619 <fill color="%transparent%"/>
620 <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
621 <action function="page">flash_queue</action>
622 </button>
623
624 <listbox style="listbox_options">
625 <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="80"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500626 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +0100627 <data variable="tw_signed_zip_verify"/>
628 </listitem>
629 </listbox>
630
631 <text style="text_m_accent">
632 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500633 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100634 </text>
635
636 <text style="text_m">
637 <condition var1="tw_has_injecttwrp" var2="1"/>
638 <condition var1="tw_inject_after_zip" var2="1"/>
639 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500640 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100641 </text>
642
643 <button>
644 <fill color="%transparent%"/>
645 <placement x="0" y="%row6a_y%" w="%screen_width%" h="64"/>
646 <action function="page">flash_options</action>
647 </button>
648
649 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500650 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100651 <action function="flash">flash_zip</action>
652 </slider>
653
654 <action>
655 <touch key="back"/>
656 <actions>
657 <action function="cancelzip"/>
658 <action function="page">install</action>
659 </actions>
660 </action>
661
662 <action>
663 <touch key="home"/>
664 <action function="page">main</action>
665 </action>
666 </page>
667
668 <page name="flash_zip">
669 <template name="page"/>
670
671 <template name="statusbar"/>
672
673 <text style="text_m">
674 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -0600675 <text>{@installing_zip_xml=Installing Zip: %tw_file%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100676 </text>
677
678 <template name="console"/>
679
680 <template name="progress_bar"/>
681
682 <action>
683 <condition var1="tw_operation_state" var2="1"/>
684 <action function="page">flash_done</action>
685 </action>
686 </page>
687
688 <page name="flash_done">
689 <template name="page"/>
690
691 <template name="statusbar"/>
692
693 <text style="text_m_fail">
694 <condition var1="tw_operation_status" op="!=" var2="0"/>
695 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500696 <text>{@install_failed=Installation Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100697 </text>
698
699 <text style="text_m">
700 <condition var1="tw_operation_status" var2="0"/>
701 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500702 <text>{@install_successful=Installation Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100703 </text>
704
705 <template name="console"/>
706
707 <button style="main_button_half_height">
708 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500709 <text>{@wipe_cache_dalvik_btn=Wipe cache/dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100710 <actions>
711 <action function="set">tw_back=flash_done</action>
712 <action function="set">tw_action=wipe</action>
713 <action function="set">tw_action_param=/cache</action>
714 <action function="set">tw_has_action2=1</action>
715 <action function="set">tw_action2=wipe</action>
716 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500717 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
718 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
719 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
720 <action function="set">tw_slider_text={@swipe_wipe_s= Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100721 <action function="page">confirm_action</action>
722 </actions>
723 </button>
724
725 <button style="main_button_half_height">
726 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500727 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100728 <actions>
729 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500730 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100731 </actions>
732 </button>
733
734 <action>
735 <touch key="back"/>
736 <actions>
737 <action function="set">tw_clear_destination=install_type</action>
738 <action function="page">clear_vars</action>
739 </actions>
740 </action>
741
742 <action>
743 <touch key="home"/>
744 <actions>
745 <action function="set">tw_clear_destination=main2</action>
746 <action function="page">clear_vars</action>
747 </actions>
748 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500749
750 <action>
751 <conditions>
752 <condition var1="tw_install_reboot" var2="1"/>
753 <condition var1="tw_operation_status" var2="0"/>
754 <condition var1="tw_reboot_system" var2="1"/>
755 </conditions>
756 <actions>
757 <action function="set">tw_sleep=%tw_sleep_total%</action>
758 <action function="page">flash_sleep_and_reboot</action>
759 </actions>
760 </action>
761 </page>
762
763 <page name="flash_sleep_and_reboot">
764 <template name="page"/>
765
766 <template name="statusbar"/>
767
768 <text style="text_m">
769 <placement x="%col1_x_left%" y="%row1_header_y%"/>
770 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
771 </text>
772
773 <template name="console"/>
774
775 <template name="progress_bar"/>
776
777 <button style="main_button_half_height">
778 <condition var1="tw_sleep" op="&gt;" var2="0"/>
779 <placement x="%col1_x_right%" y="%row13_y%"/>
780 <text>{@cancel_btn=Cancel}</text>
781 <actions>
782 <action function="set">tw_install_reboot=0</action>
783 <action function="page">flash_done</action>
784 </actions>
785 </button>
786
787 <action>
788 <conditions>
789 <condition var1="tw_sleep" var2="tw_sleep_total"/>
790 <condition var1="tw_install_reboot" var2="1"/>
791 </conditions>
792 <action function="sleepcounter">%tw_sleep_total%</action>
793 </action>
794
795 <action>
796 <conditions>
797 <condition var1="tw_sleep" var2="0"/>
798 <condition var1="tw_install_reboot" var2="1"/>
799 </conditions>
800 <actions>
801 <action function="sleep">50000</action>
802 <action function="set">tw_back=main2</action>
803 <action function="page">reboot_system_routine</action>
804 </actions>
805 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100806 </page>
807
808 <page name="flashimage_type">
809 <template name="page"/>
810
811 <template name="statusbar"/>
812
813 <text style="text_m">
814 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -0600815 <text>{@install_image_hdr=Install Image} &gt; {@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100816 </text>
817
818 <partitionlist style="partitionlist_headerless_rb">
819 <data name="tw_flash_partition"/>
820 <listtype name="flashimg"/>
821 </partitionlist>
822
823 <button>
824 <placement x="%col1_x_left%" y="%row11_y%"/>
825 <highlight color="%highlight_color%"/>
826 <image resource="q_btn_arrow_left"/>
827 <action function="page">install</action>
828 </button>
829
830 <button>
831 <placement x="%btn4_col4_x%" y="%row11_y%"/>
832 <highlight color="%highlight_color%"/>
833 <image resource="q_btn_accept_transp"/>
834 <action function="page">flashimage_confirm</action>
835 </button>
836
837 <action>
838 <touch key="back"/>
839 <action function="page">install</action>
840 </action>
841
842 <action>
843 <touch key="home"/>
844 <action function="page">main</action>
845 </action>
846 </page>
847
848 <page name="flashimage_confirm">
849 <template name="page"/>
850
851 <template name="statusbar"/>
852
853 <text style="text_m">
854 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500855 <text>{@install_image_hdr=Install Image} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100856 </text>
857
858 <text style="text_m_accent">
859 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500860 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100861 </text>
862
863 <text style="text_m">
864 <placement x="%indent%" y="%row2_y%"/>
865 <text>%tw_file%</text>
866 </text>
867
868 <button>
869 <fill color="%transparent%"/>
870 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
871 <action function="page">install</action>
872 </button>
873
874 <text style="text_m_accent">
875 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500876 <text>{@target_partition=Target Partition:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100877 </text>
878
879 <text style="text_m">
880 <placement x="%indent%" y="%row5_y%"/>
881 <text>%tw_flash_partition%</text>
882 </text>
883
884 <button>
885 <fill color="%transparent%"/>
886 <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
887 <action function="page">flashimage_type</action>
888 </button>
889
890 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500891 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100892 <actions>
893 <action function="set">tw_back=flashimage_confirm</action>
894 <action function="set">tw_action=flashimage</action>
895 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500896 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100897 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500898 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100899 <action function="page">action_page</action>
900 </actions>
901 <action function="flashimage"/>
902 </slider>
903
904 <action>
905 <touch key="back"/>
906 <actions>
907 <action function="set">tw_clear_destination=install</action>
908 <action function="page">clear_vars</action>
909 </actions>
910 </action>
911
912 <action>
913 <touch key="home"/>
914 <actions>
915 <action function="set">tw_clear_destination=main2</action>
916 <action function="page">clear_vars</action>
917 </actions>
918 </action>
919 </page>
920
921 <page name="clear_vars">
922 <action>
923 <action function="set">tw_operation_state=0</action>
924 <action function="set">tw_text1=</action>
925 <action function="set">tw_text2=</action>
926 <action function="set">tw_text3=</action>
927 <action function="set">tw_text4=</action>
928 <action function="set">tw_action_text1=</action>
929 <action function="set">tw_action_text2=</action>
930 <action function="set">tw_action_param=</action>
931 <action function="set">tw_has_action2=0</action>
932 <action function="set">tw_action2=</action>
933 <action function="set">tw_action2_param=</action>
934 <action function="set">tw_has_cancel=0</action>
935 <action function="set">tw_cancel_action=</action>
936 <action function="set">tw_cancel_param=</action>
937 <action function="set">tw_show_exclamation=0</action>
938 <action function="set">tw_show_reboot=0</action>
939 <action function="page">%tw_clear_destination%</action>
940 </action>
941 </page>
942
Matt Mower908dd252016-05-25 02:26:50 -0500943 <page name="reboot_system_routine">
944 <action>
945 <action function="set">tw_back=main2</action>
946 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500947 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500948 <action function="set">tw_has_action2=0</action>
949 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
950 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
951 <action function="set">tw_text3=</action>
952 <action function="set">tw_text4=</action>
953 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
954 <action function="set">tw_action_text2=</action>
955 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
956 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
957 <action function="page">rebootcheck</action>
958 </action>
959 </page>
960
z31s1g28f0a922015-11-07 18:50:22 +0100961 <page name="confirm_action">
962 <template name="page"/>
963
964 <template name="statusbar"/>
965
966 <text style="text_m">
967 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500968 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100969 </text>
970
971 <text style="text_m_accent">
972 <placement x="%center_x%" y="%row2_y%" placement="5"/>
973 <text>%tw_text1%</text>
974 </text>
975
976 <text style="text_m_accent">
977 <placement x="%center_x%" y="%row3_y%" placement="5"/>
978 <text>%tw_text2%</text>
979 </text>
980
981 <text style="text_m">
982 <condition var1="tw_action" op="!=" var2="changefilesystem"/>
983 <placement x="%center_x%" y="%row5_y%" placement="5"/>
984 <text>%tw_text3%</text>
985 </text>
986
987 <text style="text_m">
988 <condition var1="tw_action" op="!=" var2="changefilesystem"/>
989 <placement x="%center_x%" y="%row6_y%" placement="5"/>
990 <text>%tw_text4%</text>
991 </text>
992
993 <text style="text_m_fail">
994 <condition var1="tw_action" var2="changefilesystem"/>
995 <placement x="%center_x%" y="%row5_y%" placement="5"/>
996 <text>%tw_text3%</text>
997 </text>
998
999 <text style="text_m_fail">
1000 <condition var1="tw_action" var2="changefilesystem"/>
1001 <placement x="%center_x%" y="%row6_y%" placement="5"/>
1002 <text>%tw_text4%</text>
1003 </text>
1004
1005 <text style="text_m">
1006 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001007 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001008 </text>
1009
1010 <slider>
1011 <text>%tw_slider_text%</text>
1012 <action function="page">action_page</action>
1013 </slider>
1014
1015 <action>
1016 <touch key="back"/>
1017 <actions>
1018 <action function="set">tw_clear_destination=%tw_back%</action>
1019 <action function="page">clear_vars</action>
1020 </actions>
1021 </action>
1022
1023 <action>
1024 <touch key="home"/>
1025 <action function="page">main</action>
1026 </action>
1027 </page>
1028
1029 <page name="action_page">
1030 <template name="page"/>
1031
1032 <template name="statusbar"/>
1033
1034 <text style="text_m">
1035 <placement x="%col1_x_left%" y="%row1_header_y%"/>
1036 <text>%tw_action_text1% %tw_action_text2%</text>
1037 </text>
1038
1039 <template name="console"/>
1040
1041 <template name="progress_bar"/>
1042
1043 <button style="main_button_half_height">
1044 <condition var1="tw_has_cancel" var2="1"/>
1045 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001046 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001047 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
1048 </button>
1049
1050 <action>
1051 <condition var1="tw_operation_state" var2="1"/>
1052 <actions>
1053 <action function="page">action_complete</action>
1054 </actions>
1055 </action>
1056
1057 <action>
1058 <condition var1="tw_has_action2" var2="0"/>
1059 <actions>
1060 <action function="%tw_action%">%tw_action_param%</action>
1061 </actions>
1062 </action>
1063
1064 <action>
1065 <condition var1="tw_has_action2" var2="1"/>
1066 <actions>
1067 <action function="%tw_action%">%tw_action_param%</action>
1068 <action function="%tw_action2%">%tw_action2_param%</action>
1069 </actions>
1070 </action>
1071 </page>
1072
1073 <page name="singleaction_page">
1074 <template name="page"/>
1075
1076 <template name="statusbar"/>
1077
1078 <text style="text_m">
1079 <placement x="%col1_x_left%" y="%row1_header_y%"/>
1080 <text>%tw_action_text1% %tw_action_text2%</text>
1081 </text>
1082
1083 <template name="console"/>
1084
1085 <template name="progress_bar"/>
1086
1087 <action>
1088 <condition var1="tw_operation_state" var2="1"/>
1089 <actions>
1090 <action function="set">tw_page_done=1</action>
1091 </actions>
1092 </action>
1093
1094 <action>
1095 <condition var1="tw_has_action2" var2="0"/>
1096 <actions>
1097 <action function="%tw_action%">%tw_action_param%</action>
1098 </actions>
1099 </action>
1100
1101 <action>
1102 <condition var1="tw_has_action2" var2="1"/>
1103 <actions>
1104 <action function="%tw_action%">%tw_action_param%</action>
1105 <action function="%tw_action2%">%tw_action2_param%</action>
1106 </actions>
1107 </action>
1108 </page>
1109
1110 <page name="action_complete">
1111 <template name="page"/>
1112
1113 <template name="statusbar"/>
1114
1115 <text style="text_m_fail">
1116 <condition var1="tw_operation_status" op="!=" var2="0"/>
1117 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001118 <text>%tw_complete_text1% {@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001119 </text>
1120
1121 <text style="text_m">
1122 <condition var1="tw_operation_status" var2="0"/>
1123 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001124 <text>%tw_complete_text1% {@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001125 </text>
1126
1127 <template name="console"/>
1128
1129 <button style="main_button_half_height">
1130 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001131 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001132 <actions>
1133 <action function="set">tw_clear_destination=%tw_back%</action>
1134 <action function="page">clear_vars</action>
1135 </actions>
1136 </button>
1137
1138 <button style="main_button_half_height">
1139 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001140 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001141 <actions>
1142 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -05001143 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01001144 </actions>
1145 </button>
1146
1147 <action>
1148 <touch key="home"/>
1149 <actions>
1150 <action function="set">tw_clear_destination=main2</action>
1151 <action function="page">clear_vars</action>
1152 </actions>
1153 </action>
1154
1155 <action>
1156 <touch key="back"/>
1157 <actions>
1158 <action function="set">tw_clear_destination=%tw_back%</action>
1159 <action function="page">clear_vars</action>
1160 </actions>
1161 </action>
1162 </page>
1163
1164 <page name="filecheck">
1165 <action>
1166 <action function="fileexists">%tw_filecheck%</action>
1167 </action>
1168
1169 <action>
1170 <conditions>
1171 <condition var1="tw_operation_state" var2="1"/>
1172 <condition var1="tw_operation_status" var2="0"/>
1173 </conditions>
1174 <actions>
1175 <action function="set">tw_fileexists=1</action>
1176 <action function="page">%tw_existpage%</action>
1177 </actions>
1178 </action>
1179
1180 <action>
1181 <conditions>
1182 <condition var1="tw_operation_state" var2="1"/>
1183 <condition var1="tw_operation_status" var2="1"/>
1184 </conditions>
1185 <actions>
1186 <action function="set">tw_fileexists=0</action>
1187 <action function="page">%tw_notexistpage%</action>
1188 </actions>
1189 </action>
1190 </page>
1191
1192 <page name="rebootcheck">
1193 <action>
1194 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06001195 <action function="page">appcheck</action>
z31s1g28f0a922015-11-07 18:50:22 +01001196 </action>
1197
1198 <action>
1199 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1200 <action function="page">confirm_action</action>
1201 </action>
1202 </page>
1203
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06001204 <page name="appcheck">
1205 <action>
1206 <condition var1="tw_app_prompt" var2="1"/>
1207 <action function="checkforapp"></action>
1208 </action>
1209
1210 <action>
1211 <condition var1="tw_app_prompt" op="!=" var2="1"/>
1212 <action function="reboot">%tw_reboot_param%</action>
1213 </action>
1214
1215 <action>
1216 <condition var1="tw_app_install_status" var2="1"/>
1217 <action function="page">rebootapp</action>
1218 </action>
1219
1220 <action>
1221 <condition var1="tw_app_install_status" var2="2"/>
1222 <action function="reboot">%tw_reboot_param%</action>
1223 </action>
1224 </page>
1225
z31s1g28f0a922015-11-07 18:50:22 +01001226 <page name="wipe_type1">
1227 <template name="page"/>
1228
1229 <template name="statusbar"/>
1230
1231 <text style="text_m">
1232 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001233 <text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001234 </text>
1235
1236 <button style="main_button_full_width">
1237 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001238 <text>{@factory_reset_btn=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001239 <action function="page">wipe</action>
1240 </button>
1241
1242 <button style="main_button_full_width">
1243 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001244 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001245 <actions>
1246 <action function="set">partitionlisterror=0</action>
1247 <action function="page">advancedwipe</action>
1248 </actions>
1249 </button>
1250
1251 <button>
1252 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1253 <highlight color="%highlight_color%"/>
1254 <image resource="q_btn_arrow_right"/>
1255 <action function="page">wipe_type2</action>
1256 </button>
1257
1258 <action>
1259 <touch key="home"/>
1260 <action function="page">main</action>
1261 </action>
1262
1263 <action>
1264 <touch key="back"/>
1265 <action function="page">main</action>
1266 </action>
1267 </page>
1268
1269 <page name="wipe_type2">
1270 <template name="page"/>
1271
1272 <template name="statusbar"/>
1273
1274 <text style="text_m">
1275 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001276 <text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001277 </text>
1278
1279 <button style="main_button_full_width">
1280 <condition var1="tw_has_data_media" var2="1"/>
1281 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001282 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001283 <action function="page">formatdata</action>
1284 </button>
1285
1286 <button style="main_button_full_width">
1287 <conditions>
1288 <condition var1="tw_is_encrypted" var2="1"/>
1289 <condition var1="tw_has_data_media" var2="0"/>
1290 </conditions>
1291 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001292 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001293 <actions>
1294 <action function="set">tw_back=wipe</action>
1295 <action function="set">tw_action=wipe</action>
1296 <action function="set">tw_action_param=DATAMEDIA</action>
1297 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001298 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001299 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001300 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1301 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1302 <action function="set">tw_slider_text={@swipe_format_data_s= Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001303 <action function="page">confirm_action</action>
1304 </actions>
1305 </button>
1306
1307 <button style="main_button_full_width">
1308 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001309 <text>{@file_sys_opt=File System Options}</text><actions>
z31s1g28f0a922015-11-07 18:50:22 +01001310 <action function="set">partitionlisterror=0</action>
1311 <action function="page">partitionoptions_select</action>
1312 </actions>
1313 </button>
1314
1315 <button>
1316 <placement x="%col1_x_left%" y="%row11_y%"/>
1317 <highlight color="%highlight_color%"/>
1318 <image resource="q_btn_arrow_left"/>
1319 <action function="page">wipe_type1</action>
1320 </button>
1321
1322 <action>
1323 <touch key="home"/>
1324 <action function="page">main</action>
1325 </action>
1326
1327 <action>
1328 <touch key="back"/>
1329 <action function="page">main</action>
1330 </action>
1331 </page>
1332
1333 <page name="wipe">
1334 <template name="page"/>
1335
1336 <template name="statusbar"/>
1337
1338 <text style="text_m">
1339 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001340 <text>{@wipe_hdr=Wipe} &gt; {@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001341 </text>
1342
1343 <text style="text_m_accent">
1344 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001345 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001346 </text>
1347
1348 <text style="text_m_accent">
1349 <condition var1="tw_has_data_media" var2="1"/>
1350 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001351 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001352 </text>
1353
1354 <text style="text_m_accent">
1355 <conditions>
1356 <condition var1="tw_has_android_secure" var2="1"/>
1357 <condition var1="fileexists" var2="/and-sec"/>
1358 </conditions>
1359 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001360 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001361 </text>
1362
1363 <text style="text_m_accent">
1364 <condition var1="tw_has_sdext_partition" var2="1"/>
1365 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001366 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001367 </text>
1368
1369 <text style="text_m">
1370 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001371 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001372 </text>
1373
1374 <text style="text_m">
1375 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001376 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001377 </text>
1378
1379 <text style="text_m">
1380 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001381 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001382 </text>
1383
1384 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001385 <text>{@swipe_wipe_s= Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001386 <actions>
1387 <action function="set">tw_back=wipe</action>
1388 <action function="set">tw_action=wipe</action>
1389 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001390 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1391 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001392 <action function="page">action_page</action>
1393 </actions>
1394 </slider>
1395
1396 <action>
1397 <touch key="back"/>
1398 <action function="page">wipe_type1</action>
1399 </action>
1400
1401 <action>
1402 <touch key="home"/>
1403 <action function="page">main</action>
1404 </action>
1405 </page>
1406
1407 <page name="advancedwipe">
1408 <action>
1409 <action function="set">tw_wipe_list=</action>
1410 </action>
1411
1412 <template name="page"/>
1413
1414 <template name="statusbar"/>
1415
1416 <text style="text_m">
1417 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001418 <text>{@wipe_hdr=Wipe} &gt; {@advanced_wipe_hdr=Advanced Wipe} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001419 </text>
1420
1421 <partitionlist style="partitionlist_headerless_cb">
1422 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1423 <data name="tw_wipe_list"/>
1424 <listtype name="wipe"/>
1425 </partitionlist>
1426
1427 <fill color="%accent_color%">
1428 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1429 </fill>
1430
1431 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001432 <text>{@swipe_wipe_s= Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001433 <actions>
1434 <action function="set">tw_back=advancedwipe</action>
1435 <action function="set">tw_action=wipe</action>
1436 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001437 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1438 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1439 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001440 <action function="page">action_page</action>
1441 </actions>
1442 </slider>
1443
1444 <action>
1445 <touch key="home"/>
1446 <action function="page">main</action>
1447 </action>
1448
1449 <action>
1450 <touch key="back"/>
1451 <action function="page">wipe_type1</action>
1452 </action>
1453 </page>
1454
1455 <page name="formatdata">
1456 <template name="page"/>
1457
1458 <template name="statusbar"/>
1459
1460 <text style="text_m">
1461 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001462 <text>{@wipe_hdr=Wipe} &gt; {@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001463 </text>
1464
1465 <text style="text_m_fail">
1466 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001467 <text>{@format_data_wtc1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001468 </text>
1469
1470 <text style="text_m_fail">
1471 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001472 <text>{@format_data_wtc2=backups and media. This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001473 </text>
1474
1475 <text style="text_m">
1476 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001477 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001478 </text>
1479
1480 <input>
1481 <placement x="%col1_x_left%" y="%row5_y%" w="%content_width%" h="%input_height%"/>
1482 <text>%tw_confirm_formatdata%</text>
1483 <data name="tw_confirm_formatdata"/>
1484 <restrict minlen="3" maxlen="3" allow="yes"/>
1485 <action function="page">formatdata_confirm</action>
1486 </input>
1487
1488 <fill color="%accent_color%">
1489 <placement x="%col1_x_left%" y="row6_input_y" w="%content_width%" h="input_line_width"/>
1490 </fill>
1491
1492 <template name="keyboardtemplate"/>
1493
1494 <action>
1495 <touch key="home"/>
1496 <action function="page">main</action>
1497 </action>
1498
1499 <action>
1500 <touch key="back"/>
1501 <action function="page">wipe_type2</action>
1502 </action>
1503 </page>
1504
1505 <page name="formatdata_confirm">
1506 <action>
1507 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1508 <actions>
1509 <action function="set">tw_back=formatdata</action>
1510 <action function="set">tw_action=wipe</action>
1511 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001512 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1513 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001514 <action function="page">action_page</action>
1515 </actions>
1516 </action>
1517
1518 <action>
1519 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1520 <action function="page">formatdata</action>
1521 </action>
1522 </page>
1523
1524 <page name="checkpartitionlist">
1525 <action>
1526 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1527 <actions>
1528 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001529 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001530 <action function="page">partitionoptions</action>
1531 </actions>
1532 </action>
1533
1534 <action>
1535 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1536 <actions>
1537 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001538 <action function="page">partitionoptions_select</action>
1539 </actions>
1540 </action>
1541 </page>
1542
1543 <page name="partitionoptions_select">
1544 <action>
1545 <action function="set">tw_wipe_list=</action>
1546 </action>
1547
1548 <template name="page"/>
1549
1550 <template name="statusbar"/>
1551
1552 <text style="text_m">
1553 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001554 <text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001555 </text>
1556
1557 <partitionlist style="partitionlist_headerless_cb">
1558 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1559 <data name="tw_wipe_list"/>
1560 <listtype name="wipe"/>
1561 </partitionlist>
1562
1563 <fill color="%accent_color%">
1564 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1565 </fill>
1566
z31s1g28f0a922015-11-07 18:50:22 +01001567 <text style="text_m_fail">
1568 <condition var1="partitionlisterror" var2="1"/>
1569 <placement x="%col1_x_left%" y="%row12_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001570 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001571 </text>
1572
1573 <button>
1574 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1575 <highlight color="%highlight_color%"/>
1576 <image resource="q_btn_arrow_right"/><actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001577 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001578 <action function="page">checkpartitionlist</action>
1579 </actions>
1580 </button>
1581
1582 <action>
1583 <touch key="home"/>
1584 <action function="page">main</action>
1585 </action>
1586
1587 <action>
1588 <touch key="back"/>
1589 <action function="page">wipe_type2</action>
1590 </action>
1591 </page>
1592
1593 <page name="partitionoptions">
1594
1595 <template name="page"/>
1596
1597 <template name="statusbar"/>
1598
1599 <text style="text_m">
1600 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001601 <text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_act_hdr=Select Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001602 </text>
1603
1604 <text style="text_m_accent">
1605 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001606 <text>{@partition=Partition: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001607 </text>
1608
1609 <text style="text_m_accent">
1610 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001611 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001612 </text>
1613
1614 <text style="text_m">
1615 <condition var1="tw_partition_is_present" var2="1"/>
1616 <placement x="%col1_x_left%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001617 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001618 </text>
1619
1620 <text style="text_m">
1621 <condition var1="tw_partition_is_present" var2="0"/>
1622 <placement x="%col1_x_left%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001623 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001624 </text>
1625
1626 <text style="text_m">
1627 <condition var1="tw_partition_removable" var2="1"/>
1628 <placement x="%col1_x_right%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001629 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001630 </text>
1631
1632 <text style="text_m">
1633 <condition var1="tw_partition_removable" var2="0"/>
1634 <placement x="%col1_x_right%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001635 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001636 </text>
1637
1638 <text style="text_m">
1639 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001640 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001641 </text>
1642
1643 <text style="text_m">
1644 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001645 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001646 </text>
1647
1648 <text style="text_m">
1649 <placement x="%col1_x_left%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001650 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001651 </text>
1652
1653 <text style="text_m">
1654 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001655 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001656 </text>
1657
1658 <button style="main_button">
1659 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1660 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001661 <text>{@resize_btn_s=Resize}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001662 <actions>
1663 <action function="set">tw_back=partitionoptions</action>
1664 <action function="set">tw_action=resize</action>
1665 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1666 <action function="set">tw_has_action2=1</action>
1667 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001668 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001669 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001670 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001671 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1672 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1673 <action function="set">tw_slider_text={@swipe_resize_s= Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001674 <action function="page">confirm_action</action>
1675 </actions>
1676 </button>
1677
1678 <button style="main_button">
1679 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1680 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001681 <text>{@repair_btn_s=Repair}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001682 <actions>
1683 <action function="set">tw_back=partitionoptions</action>
1684 <action function="set">tw_action=repair</action>
1685 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1686 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001687 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001688 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001689 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1690 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1691 <action function="set">tw_slider_text={@swipe_repair_s= Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001692 <action function="page">confirm_action</action>
1693 </actions>
1694 </button>
1695
1696 <button>
1697 <placement x="%col1_x_left%" y="%row11_y%"/>
1698 <highlight color="%highlight_color%"/>
1699 <image resource="q_btn_arrow_left"/>
1700 <action function="page">partitionoptions_select</action>
1701 </button>
1702
1703 <button style="main_button">
1704 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001705 <text>{@change_fs_btn_s=Change}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001706 <action function="page">selectfilesystem</action>
1707 </button>
1708
1709 <action>
1710 <touch key="home"/>
1711 <action function="page">main</action>
1712 </action>
1713
1714 <action>
1715 <touch key="back"/>
1716 <action function="page">partitionoptions_select</action>
1717 </action>
1718 </page>
1719
1720 <page name="refreshfilesystem">
1721 <action>
1722 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1723 <actions>
1724 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001725 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001726 <action function="page">selectfilesystem</action>
1727 </actions>
1728 </action>
1729
1730 <action>
1731 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1732 <actions>
1733 <action function="set">partitionlisterror=1</action>
1734 <action function="set">tw_wipe_list=</action>
1735 <action function="page">advancedwipe</action>
1736 </actions>
1737 </action>
1738 </page>
1739
1740 <page name="selectfilesystem">
1741 <template name="page"/>
1742
1743 <template name="statusbar"/>
1744
1745 <text style="text_m">
1746 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001747 <text>{@change_fs_for_hdr_s=Partition: %tw_partition_name% &gt; Select File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001748 </text>
1749
1750 <button style="main_button">
1751 <condition var1="tw_partition_ext" op="=" var2="1"/>
1752 <placement x="%col1_x_left%" y="%row1_y%"/>
1753 <text>EXT2</text>
1754 <actions>
1755 <action function="set">tw_back=refreshfilesystem</action>
1756 <action function="set">tw_action=changefilesystem</action>
1757 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1758 <action function="set">tw_action_new_file_system=ext2</action>
1759 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001760 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1761 <action function="set">tw_text2=EXT2</action>
1762 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1763 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1764 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1765 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1766 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001767 <action function="page">confirm_action</action>
1768 </actions>
1769 </button>
1770
1771 <button style="main_button">
1772 <condition var1="tw_partition_ext" op="=" var2="1"/>
1773 <placement x="%col1_x_left%" y="%row6_y%"/>
1774 <text>EXT3</text>
1775 <actions>
1776 <action function="set">tw_back=refreshfilesystem</action>
1777 <action function="set">tw_action=changefilesystem</action>
1778 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1779 <action function="set">tw_action_new_file_system=ext3</action>
1780 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001781 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1782 <action function="set">tw_text2=EXT3</action>
1783 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1784 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1785 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1786 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1787 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001788 <action function="page">confirm_action</action>
1789 </actions>
1790 </button>
1791
1792 <button style="main_button">
1793 <condition var1="tw_partition_ext" op="=" var2="1"/>
1794 <placement x="%col1_x_left%" y="%row11_y%"/>
1795 <text>EXT4</text>
1796 <actions>
1797 <action function="set">tw_back=refreshfilesystem</action>
1798 <action function="set">tw_action=changefilesystem</action>
1799 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1800 <action function="set">tw_action_new_file_system=ext4</action>
1801 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001802 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1803 <action function="set">tw_text2=EXT4</action>
1804 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1805 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1806 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1807 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1808 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001809 <action function="page">confirm_action</action>
1810 </actions>
1811 </button>
1812
1813 <button style="main_button">
1814 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1815 <placement x="%col1_x_right%" y="%row1_y%"/>
1816 <text>FAT</text>
1817 <actions>
1818 <action function="set">tw_back=refreshfilesystem</action>
1819 <action function="set">tw_action=changefilesystem</action>
1820 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1821 <action function="set">tw_action_new_file_system=vfat</action>
1822 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001823 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1824 <action function="set">tw_text2=FAT</action>
1825 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1826 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1827 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1828 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1829 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001830 <action function="page">confirm_action</action>
1831 </actions>
1832 </button>
1833
1834 <button style="main_button">
1835 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1836 <placement x="%col1_x_right%" y="%row6_y%"/>
1837 <text>exFAT</text>
1838 <actions>
1839 <action function="set">tw_back=refreshfilesystem</action>
1840 <action function="set">tw_action=changefilesystem</action>
1841 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1842 <action function="set">tw_action_new_file_system=exfat</action>
1843 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001844 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1845 <action function="set">tw_text2=exFAT</action>
1846 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1847 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1848 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1849 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1850 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001851 <action function="page">confirm_action</action>
1852 </actions>
1853 </button>
1854
1855 <button style="main_button">
1856 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1857 <placement x="%col1_x_right%" y="%row11_y%"/>
1858 <text>F2FS</text>
1859 <actions>
1860 <action function="set">tw_back=refreshfilesystem</action>
1861 <action function="set">tw_action=changefilesystem</action>
1862 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1863 <action function="set">tw_action_new_file_system=f2fs</action>
1864 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001865 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1866 <action function="set">tw_text2=F2FS</action>
1867 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1868 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1869 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1870 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1871 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001872 <action function="page">confirm_action</action>
1873 </actions>
1874 </button>
1875
1876 <action>
1877 <touch key="home"/>
1878 <action function="page">main</action>
1879 </action>
1880
1881 <action>
1882 <touch key="back"/>
1883 <action function="page">partitionoptions</action>
1884 </action>
1885 </page>
1886
bigbiffce8f83c2015-12-12 18:30:21 -05001887 <page name="backup">
z31s1g28f0a922015-11-07 18:50:22 +01001888 <template name="page"/>
1889
1890 <template name="statusbar"/>
1891
1892 <text style="text_m">
1893 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001894 <text>{@backup_hdr=Backup} &gt; {@select_storage_hdr=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001895 </text>
1896
1897 <partitionlist style="partitionlist_headerless_rb">
1898 <data name="tw_storage_path"/>
1899 <listtype name="storage"/>
1900 </partitionlist>
1901
1902 <button>
1903 <placement x="%btn4_col2_x%" y="%row11_y%"/>
1904 <highlight color="%highlight_color%"/>
1905 <image resource="q_btn_refresh"/>
1906 <actions>
1907 <action function="refreshsizes"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001908 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01001909 </actions>
1910 </button>
1911
1912 <button>
1913 <condition var1="tw_back" var2="backup_confirm"/>
1914 <placement x="%btn4_col3_x%" y="%row11_y%"/>
1915 <highlight color="%highlight_color%"/>
1916 <image resource="q_btn_accept"/>
1917 <action function="page">backup_confirm</action>
1918 </button>
1919
1920 <button>
1921 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1922 <highlight color="%highlight_color%"/>
1923 <image resource="q_btn_arrow_right"/>
1924 <actions>
bigbiffce8f83c2015-12-12 18:30:21 -05001925 <action function="set">tw_back=backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01001926 <action function="page">backup_selectpartitions</action>
1927 </actions>
1928 </button>
1929
1930 <action>
1931 <touch key="home"/>
1932 <action function="page">main</action>
1933 </action>
1934
1935 <action>
1936 <touch key="back"/>
1937 <action function="page">%tw_back%</action>
1938 </action>
1939
1940 <action>
1941 <touch key="power+voldown"/>
1942 <action function="screenshot"/>
1943 </action>
1944 </page>
1945
1946 <page name="backup_selectpartitions">
1947 <template name="page"/>
1948
1949 <template name="statusbar"/>
1950
1951 <text style="text_m">
1952 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001953 <text>{@backup_hdr=Backup} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001954 </text>
1955
1956 <partitionlist style="partitionlist_headerless_cb">
1957 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1958 <data name="tw_backup_list"/>
1959 <listtype name="backup"/>
1960 </partitionlist>
1961
1962 <fill color="%accent_color%">
1963 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1964 </fill>
1965
1966 <button>
1967 <placement x="%col1_x_left%" y="%row11_y%"/>
1968 <highlight color="%highlight_color%"/>
1969 <image resource="q_btn_arrow_left"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001970 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01001971 </button>
1972
1973 <button>
1974 <placement x="%btn4_col2_x%" y="%row11_y%"/>
1975 <highlight color="%highlight_color%"/>
1976 <image resource="q_btn_refresh"/>
1977 <action function="page">backup_selectpartitions</action>
1978 </button>
1979
1980 <button>
1981 <placement x="%btn4_col3_x%" y="%row11_y%"/>
1982 <highlight color="%highlight_color%"/>
1983 <image resource="q_btn_accept"/>
1984 <action function="page">backup_confirm</action>
1985 </button>
1986
1987 <button>
1988 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1989 <highlight color="%highlight_color%"/>
1990 <image resource="q_btn_arrow_right"/>
1991 <actions>
1992 <action function="set">tw_back=backup_selectpartitions</action>
1993 <action function="page">backup_options</action>
1994 </actions>
1995 </button>
1996
1997 <action>
1998 <touch key="home"/>
1999 <action function="page">main</action>
2000 </action>
2001
2002 <action>
2003 <touch key="back"/>
2004 <action function="page">%tw_back%</action>
2005 </action>
2006
2007 <action>
2008 <touch key="power+voldown"/>
2009 <action function="screenshot"/>
2010 </action>
2011 </page>
2012
2013 <page name="backup_options">
2014 <template name="page"/>
2015
2016 <template name="statusbar"/>
2017
2018 <text style="text_m">
2019 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002020 <text>{@backup_hdr=Backup} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002021 </text>
2022
2023 <listbox style="scrolllist">
2024 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002025 <listitem name="{@enable_backup_comp_chk=Enable compression}">
z31s1g28f0a922015-11-07 18:50:22 +01002026 <data variable="tw_use_compression"/>
2027 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05002028 <listitem name="{@skip_md5_backup_chk=Skip MD5 generation during backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002029 <data variable="tw_skip_md5_generate"/>
2030 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05002031 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002032 <data variable="tw_disable_free_space"/>
2033 </listitem>
2034 </listbox>
2035
2036 <button>
2037 <placement x="%col1_x_left%" y="%row11_y%"/>
2038 <highlight color="%highlight_color%"/>
2039 <image resource="q_btn_arrow_left"/>
2040 <action function="page">backup_selectpartitions</action>
2041 </button>
2042
2043 <button>
2044 <conditions>
2045 <condition var1="tw_include_encrypted_backup" var2="1"/>
2046 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002047 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002048 </conditions>
2049 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2050 <highlight color="%highlight_color%"/>
2051 <image resource="q_btn_encryption_dis"/>
2052 <actions>
2053 <action function="set">tw_password_not_match=0</action>
2054 <action function="set">tw_back=backup_options</action>
2055 <action function="page">backupencryption</action>
2056 </actions>
2057 </button>
2058
2059 <button>
2060 <conditions>
2061 <condition var1="tw_include_encrypted_backup" var2="1"/>
2062 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002063 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002064 </conditions>
2065 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2066 <highlight color="%highlight_color%"/>
2067 <image resource="q_btn_encryption_en"/>
2068 <actions>
2069 <action function="set">tw_password_not_match=0</action>
2070 <action function="set">tw_back=backup_options</action>
2071 <action function="page">backupencryption</action>
2072 </actions>
2073 </button>
2074
2075 <button>
2076 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2077 <highlight color="%highlight_color%"/>
2078 <image resource="q_btn_accept_transp"/>
2079 <actions>
2080 <action function="set">tw_back=backup_options</action>
2081 <action function="page">backup_confirm</action>
2082 </actions>
2083 </button>
2084
2085 <action>
2086 <touch key="home"/>
2087 <action function="page">main</action>
2088 </action>
2089
2090 <action>
2091 <touch key="back"/>
2092 <action function="page">%tw_back%</action>
2093 </action>
2094
2095 <action>
2096 <touch key="power+voldown"/>
2097 <action function="screenshot"/>
2098 </action>
2099 </page>
2100
2101 <page name="backup_confirm">
2102 <template name="page"/>
2103
2104 <template name="statusbar"/>
2105
2106 <text style="text_m">
2107 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker090751a2016-01-23 16:31:41 -06002108 <text>{@backup_hdr=Backup} &gt; {@backup_confirm_hdr=Confirm Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002109 </text>
2110
2111 <text style="text_m_accent">
2112 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002113 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002114 </text>
2115
2116 <text style="text_m">
2117 <placement x="%col1_x_left%" y="%row2_y%"/>
2118 <text>%tw_backup_name%</text>
2119 </text>
2120
2121 <fill color="%accent_color%">
2122 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_half_width%" h="input_line_width" placement="1"/>
2123 </fill>
2124
2125 <button>
2126 <fill color="%transparent%"/>
2127 <placement x="0" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2128 <actions>
2129 <action function="set">tw_back=backup_confirm</action>
2130 <action function="set">tw_fileexists=0</action>
2131 <action function="page">backup_name1</action>
2132 </actions>
2133 </button>
2134
2135 <fill color="%background_color%">
2136 <placement x="%col1_x_left_negative%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2137 </fill>
2138
2139 <text style="text_m_accent">
2140 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002141 <text>{@partitions=Partitions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002142 </text>
2143
2144 <partitionlist style="partitionlist_summary">
2145 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/>
2146 <data name="tw_backup_list"/>
2147 <listtype name="backup"/>
2148 </partitionlist>
2149
2150 <button>
2151 <fill color="%transparent%"/>
2152 <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/>
2153 <actions>
2154 <action function="set">tw_back=backup_confirm</action>
2155 <action function="page">backup_selectpartitions</action>
2156 </actions>
2157 </button>
2158
2159 <text style="text_m_accent">
2160 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002161 <text>{@storage=Storage:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002162 </text>
2163
2164 <text style="text_m">
2165 <placement x="%col1_x_right%" y="%row2_y%"/>
2166 <text>%tw_storage_display_name%</text>
2167 </text>
2168
2169 <button>
2170 <fill color="%transparent%"/>
2171 <placement x="%center_x%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2172 <actions>
2173 <action function="set">tw_back=backup_confirm</action>
bigbiffce8f83c2015-12-12 18:30:21 -05002174 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002175 </actions>
2176 </button>
2177
2178 <text style="text_m_accent">
2179 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002180 <text>{@encryption=Encryption:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002181 </text>
2182
2183 <text style="text_m">
2184 <conditions>
2185 <condition var1="tw_include_encrypted_backup" var2="1"/>
2186 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002187 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002188 </conditions>
2189 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002190 <text>{@disabled=Disabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002191 </text>
2192
2193 <text style="text_m">
2194 <conditions>
2195 <condition var1="tw_include_encrypted_backup" var2="1"/>
2196 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002197 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002198 </conditions>
2199 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002200 <text>{@enabled=Enabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002201 </text>
2202
2203 <button>
2204 <fill color="%transparent%"/>
2205 <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="48"/>
2206 <actions>
2207 <action function="set">tw_back=backup_confirm</action>
2208 <action function="page">backupencryption</action>
2209 </actions>
2210 </button>
2211
2212 <listbox style="listbox_options">
2213 <placement x="%col1_x_right%" y="%row7_y%" w="%content_half_width%" h="80"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002214 <listitem name="{@enable_backup_comp_chk=Enable compression}">
z31s1g28f0a922015-11-07 18:50:22 +01002215 <data variable="tw_use_compression"/>
2216 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05002217 <listitem name="{@skip_md5_backup_chk=Skip MD5 generation during backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002218 <data variable="tw_skip_md5_generate"/>
2219 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05002220 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002221 <data variable="tw_disable_free_space"/>
2222 </listitem>
2223 </listbox>
2224
2225 <text style="text_m_accent">
2226 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002227 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002228 </text>
2229
2230 <button>
2231 <fill color="%transparent%"/>
2232 <placement x="%center_x%" y="%row6_y%" w="%screen_half_width%" h="64"/>
2233 <actions>
2234 <action function="set">tw_back=backup_confirm</action>
2235 <action function="page">backup_options</action>
2236 </actions>
2237 </button>
2238
2239 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002240 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002241 <action function="page">backup_run</action>
2242 </slider>
2243
2244 <action>
2245 <touch key="home"/>
2246 <action function="page">main</action>
2247 </action>
2248
2249 <action>
2250 <touch key="back"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002251 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002252 </action>
2253 </page>
2254
2255 <page name="backup_name1">
2256 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002257 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01002258 <action function="generatebackupname"/>
2259 </action>
2260
2261 <action>
2262 <action function="page">backup_name2</action>
2263 </action>
2264 </page>
2265
2266 <page name="backup_name2">
2267 <template name="page"/>
2268
2269 <template name="statusbar"/>
2270
2271 <text style="text_m">
2272 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002273 <text>{@backup_hdr=Backup} &gt; {@backup_name_hdr=Set Backup Name}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002274 </text>
2275
2276 <text style="text_m_accent">
2277 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002278 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002279 </text>
2280
2281 <input>
2282 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2283 <text>%tw_backup_name%</text>
2284 <data name="tw_backup_name"/>
2285 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2286 <actions>
2287 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
2288 <action function="set">tw_existpage=backup_name2</action>
2289 <action function="set">tw_notexistpage=backup_confirm</action>
2290 <action function="page">filecheck</action>
2291 </actions>
2292 </input>
2293
2294 <fill color="%accent_color%">
2295 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2296 </fill>
2297
2298 <fill color="%text_fail_color%">
2299 <condition var1="tw_fileexists" var2="1"/>
2300 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2301 </fill>
2302
2303 <text style="text_m_fail">
2304 <condition var1="tw_fileexists" var2="1"/>
2305 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002306 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002307 </text>
2308
2309 <button style="main_button_half_height">
2310 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002311 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002312 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002313 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002314 <action function="page">backup_confirm</action>
2315 </actions>
2316 </button>
2317
2318 <button style="main_button_half_height">
2319 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002320 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002321 <action function="appenddatetobackupname"/>
2322 </button>
2323
2324 <template name="keyboardtemplate"/>
2325
2326 <action>
2327 <touch key="home"/>
2328 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002329 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002330 <action function="page">main</action>
2331 </actions>
2332 </action>
2333
2334 <action>
2335 <touch key="back"/>
2336 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002337 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002338 <action function="page">backup_confirm</action>
2339 </actions>
2340 </action>
2341 </page>
2342
2343 <page name="backupencryption">
2344 <template name="page"/>
2345
2346 <template name="statusbar"/>
2347
2348 <text style="text_m">
2349 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002350 <text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002351 </text>
2352
2353 <text style="text_m_accent">
2354 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002355 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002356 </text>
2357
2358 <input>
2359 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2360 <text>%tw_backup_encrypt_display%</text>
2361 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2362 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2363 <action function="page">backupencryption2</action>
2364 </input>
2365
2366 <fill color="%accent_color%">
2367 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2368 </fill>
2369
2370 <fill color="%text_fail_color%">
2371 <condition var1="tw_password_not_match" var2="1"/>
2372 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
2373 </fill>
2374
2375 <text style="text_m_fail">
2376 <condition var1="tw_password_not_match" var2="1"/>
2377 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002378 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002379 </text>
2380
2381 <button style="main_button_half_height">
2382 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002383 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002384 <actions>
2385 <action function="set">tw_encrypt_backup=0</action>
2386 <action function="set">tw_backup_password=</action>
2387 <action function="set">tw_backup_password2=</action>
2388 <action function="set">tw_backup_encrypt_display=</action>
2389 <action function="set">tw_backup_encrypt_display2=</action>
2390 <action function="page">%tw_back%</action>
2391 </actions>
2392 </button>
2393
2394 <template name="keyboardtemplate"/>
2395
2396 <action>
2397 <touch key="home"/>
2398 <action function="page">main</action>
2399 </action>
2400
2401 <action>
2402 <touch key="back"/>
2403 <action function="page">%tw_back%</action>
2404 </action>
2405 </page>
2406
2407 <page name="backupencryption2">
2408 <template name="page"/>
2409
2410 <template name="statusbar"/>
2411
2412 <text style="text_m">
2413 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002414 <text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002415 </text>
2416
2417 <text style="text_m_accent">
2418 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002419 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002420 </text>
2421
2422 <input>
2423 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2424 <text>%tw_backup_encrypt_display2%</text>
2425 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2426 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2427 <action function="page">checkbackuppassword</action>
2428 </input>
2429
2430 <fill color="%accent_color%">
2431 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2432 </fill>
2433
2434 <button style="main_button_half_height">
2435 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002436 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002437 <actions>
2438 <action function="set">tw_encrypt_backup=0</action>
2439 <action function="set">tw_backup_password=</action>
2440 <action function="set">tw_backup_password2=</action>
2441 <action function="set">tw_backup_encrypt_display=</action>
2442 <action function="set">tw_backup_encrypt_display2=</action>
2443 <action function="page">%tw_back%</action>
2444 </actions>
2445 </button>
2446
2447 <template name="keyboardtemplate"/>
2448
2449 <action>
2450 <touch key="home"/>
2451 <action function="page">main</action>
2452 </action>
2453
2454 <action>
2455 <touch key="back"/>
2456 <action function="page">%tw_back%</action>
2457 </action>
2458 </page>
2459
2460 <page name="checkbackuppassword">
2461 <action>
2462 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2463 <actions>
2464 <action function="set">tw_encrypt_backup=1</action>
2465 <action function="page">%tw_back%</action>
2466 </actions>
2467 </action>
2468
2469 <action>
2470 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2471 <actions>
2472 <action function="set">tw_encrypt_backup=0</action>
2473 <action function="set">tw_password_not_match=1</action>
2474 <action function="set">tw_backup_password=</action>
2475 <action function="set">tw_backup_password2=</action>
2476 <action function="set">tw_backup_encrypt_display=</action>
2477 <action function="set">tw_backup_encrypt_display2=</action>
2478 <action function="page">backupencryption</action>
2479 </actions>
2480 </action>
2481 </page>
2482
2483 <page name="backup_run">
2484 <template name="page"/>
2485
2486 <template name="statusbar"/>
2487
2488 <text style="text_m">
2489 <placement x="%col1_x_left%" y="%row1_header_y%"/>
2490 <text>%tw_operation% %tw_partition%</text>
2491 </text>
2492
2493 <template name="console"/>
2494
2495 <template name="progress_bar"/>
2496
2497 <text style="text_m">
2498 <placement x="%indent%" y="%row13a_y%"/>
2499 <text>%tw_file_progress%</text>
2500 </text>
2501
2502 <text style="text_m">
2503 <placement x="%indent%" y="%row14a_y%"/>
2504 <text>%tw_size_progress%</text>
2505 </text>
2506
2507 <button style="main_button_half_height">
2508 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002509 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002510 <action function="cancelbackup"/>
2511 </button>
2512
2513 <action>
2514 <action function="nandroid">backup</action>
2515 </action>
2516
2517 <action>
2518 <condition var1="tw_operation_state" var2="1"/>
2519 <condition var1="tw_cancel_backup" var2="0"/>
2520 <actions>
2521 <action function="set">tw_back=backup_selectpartitions</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002522 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002523 <action function="set">tw_show_reboot=1</action>
2524 <action function="page">action_complete</action>
2525 </actions>
2526 </action>
2527
2528 <action>
2529 <condition var1="tw_operation_state" var2="1"/>
2530 <condition var1="tw_cancel_backup" var2="1"/>
2531 <actions>
2532 <action function="set">tw_back=backup_selectpartitions</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002533 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002534 <action function="set">tw_show_reboot=1</action>
2535 <action function="page">action_complete</action>
2536 </actions>
2537 </action>
2538 </page>
2539
2540 <page name="restore">
2541 <template name="page"/>
2542
2543 <template name="statusbar"/>
2544
2545 <text style="text_m">
2546 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002547 <text>{@restore_hdr=Restore} &gt; {@sel_backup_hdr=Select Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002548 </text>
2549
2550 <fileselector>
2551 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
2552 <text>%tw_storage_display_name%</text>
2553 <filter folders="1" files="0" nav="0"/>
2554 <path name="tw_backups_folder"/>
2555 <data name="tw_restore" default=""/>
2556 <selection name="tw_restore_name"/>
2557 </fileselector>
2558
2559 <button>
2560 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2561 <highlight color="%highlight_color%"/>
2562 <image resource="q_btn_storage"/>
2563 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002564 <action function="set">tw_storagetext={@restore_btn=Restore} &gt; {@select_storage_btn=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002565 <action function="set">tw_back=restore</action>
2566 <action function="page">select_storage</action>
2567 </actions>
2568 </button>
2569
2570 <action>
2571 <condition var1="tw_restore" op="modified"/>
2572 <actions>
2573 <action function="readBackup"/>
2574 <action function="set">tw_back=restore</action>
2575 <action function="page">restore_read</action>
2576 </actions>
2577 </action>
2578
2579 <action>
2580 <touch key="home"/>
2581 <action function="page">main</action>
2582 </action>
2583
2584 <action>
2585 <touch key="back"/>
2586 <action function="page">main</action>
2587 </action>
2588 </page>
2589
2590 <page name="restore_read">
2591 <action>
2592 <condition var1="tw_restore_encrypted" var2="1"/>
2593 <actions>
2594 <action function="set">tw_password_fail=0</action>
2595 <action function="page">restore_decrypt</action>
2596 </actions>
2597 </action>
2598
2599 <action>
2600 <condition var1="tw_restore_encrypted" var2="0"/>
2601 <actions>
2602 <action function="page">restore_select</action>
2603 </actions>
2604 </action>
2605 </page>
2606
2607 <page name="restore_decrypt">
2608 <template name="page"/>
2609
2610 <template name="statusbar"/>
2611
2612 <text style="text_m">
2613 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002614 <text>{@restore_hdr=Restore} &gt; {@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002615 </text>
2616
2617 <text style="text_m_accent">
2618 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002619 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002620 </text>
2621
2622 <input>
2623 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2624 <text>%tw_restore_display%</text>
2625 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2626 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2627 <action function="page">try_restore_decrypt</action>
2628 </input>
2629
2630 <fill color="%accent_color%">
2631 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2632 </fill>
2633
2634 <fill color="%text_fail_color%">
2635 <condition var1="tw_password_fail" var2="1"/>
2636 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
2637 </fill>
2638
2639 <text style="text_m_fail">
2640 <condition var1="tw_password_fail" var2="1"/>
2641 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002642 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002643 </text>
2644
2645 <button style="main_button_half_height">
2646 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002647 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002648 <actions>
2649 <action function="set">tw_page_done=1</action>
2650 <action function="page">restore</action>
2651 </actions>
2652 </button>
2653
2654 <button style="main_button_half_height">
2655 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002656 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002657 <actions>
2658 <action function="set">tw_back=restore</action>
2659 <action function="set">tw_action=cmd</action>
2660 <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 -05002661 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2662 <action function="set">tw_text2=%tw_restore_name%</action>
2663 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2664 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2665 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2666 <action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002667 <action function="page">confirm_action</action>
2668 </actions>
2669 </button>
2670
2671 <template name="keyboardtemplate"/>
2672
2673 <action>
2674 <touch key="home"/>
2675 <action function="page">main</action>
2676 </action>
2677
2678 <action>
2679 <touch key="back"/>
2680 <action function="page">restore</action>
2681 </action>
2682 </page>
2683
2684 <page name="try_restore_decrypt">
2685 <template name="page"/>
2686
2687 <template name="statusbar"/>
2688
2689 <text style="text_m">
2690 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002691 <text>{@restore_hdr=Restore} &gt; {@restore_try_decrypt_s=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002692 </text>
2693
2694 <template name="console"/>
2695
2696 <template name="progress_bar"/>
2697
2698 <action>
2699 <action function="decrypt_backup"/>
2700 </action>
2701
2702 <action>
2703 <conditions>
2704 <condition var1="tw_operation_state" var2="1"/>
2705 <condition var1="tw_operation_status" op="!=" var2="0"/>
2706 </conditions>
2707 <actions>
2708 <action function="set">tw_password_fail=1</action>
2709 <action function="page">restore_decrypt</action>
2710 </actions>
2711 </action>
2712
2713 <action>
2714 <conditions>
2715 <condition var1="tw_operation_state" var2="1"/>
2716 <condition var1="tw_operation_status" op="=" var2="0"/>
2717 </conditions>
2718 <actions>
2719 <action function="set">tw_page_done=1</action>
2720 <action function="page">restore_select</action>
2721 </actions>
2722 </action>
2723 </page>
2724
2725 <page name="restore_select">
2726 <template name="page"/>
2727
2728 <template name="statusbar"/>
2729
2730 <text style="text_m">
2731 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002732 <text>{@restore_hdr=Restore} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002733 </text>
2734
2735 <partitionlist style="partitionlist_headerless_cb">
2736 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
2737 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2738 <listtype name="restore"/>
2739 </partitionlist>
2740
2741 <fill color="%accent_color%">
2742 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
2743 </fill>
2744
2745 <button>
2746 <placement x="%col1_x_left%" y="%row11_y%"/>
2747 <highlight color="%highlight_color%"/>
2748 <image resource="q_btn_arrow_left"/>
2749 <action function="page">restore</action>
2750 </button>
2751
2752 <button>
2753 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2754 <highlight color="%highlight_color%"/>
2755 <image resource="q_btn_delete"/>
2756 <actions>
2757 <action function="set">tw_back=restore</action>
2758 <action function="set">tw_action=cmd</action>
2759 <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 -05002760 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002761 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002762 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2763 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2764 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2765 <action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002766 <action function="page">confirm_action</action>
2767 </actions>
2768 </button>
2769
2770 <button>
2771 <placement x="%btn4_col3_x%" y="%row11_y%"/>
2772 <highlight color="%highlight_color%"/>
2773 <image resource="q_btn_accept"/>
2774 <action function="page">restore_confirm</action>
2775 </button>
2776
2777 <button>
2778 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2779 <highlight color="%highlight_color%"/>
2780 <image resource="q_btn_arrow_right"/>
2781 <actions>
2782 <action function="set">tw_back=restore_select</action>
2783 <action function="page">restore_options</action>
2784 </actions>
2785 </button>
2786
2787 <action>
2788 <touch key="home"/>
2789 <action function="page">main</action>
2790 </action>
2791
2792 <action>
2793 <touch key="back"/>
2794 <action function="page">%tw_back%</action>
2795 </action>
2796 </page>
2797
2798 <page name="restore_options">
2799 <template name="page"/>
2800
2801 <template name="statusbar"/>
2802
2803 <text style="text_m">
2804 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002805 <text>{@restore_hdr=Restore} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002806 </text>
2807
2808 <listbox style="scrolllist">
2809 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker4c105b92016-01-05 16:23:28 -06002810 <listitem name="{@restore_enable_md5_chk=Enable MD5 Verification of Backup Files}">
z31s1g28f0a922015-11-07 18:50:22 +01002811 <data variable="tw_skip_md5_check"/>
2812 </listitem>
2813 </listbox>
2814
2815 <button>
2816 <placement x="%col1_x_left%" y="%row11_y%"/>
2817 <highlight color="%highlight_color%"/>
2818 <image resource="q_btn_arrow_left"/>
2819 <action function="page">restore_select</action>
2820 </button>
2821
2822 <button>
2823 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2824 <highlight color="%highlight_color%"/>
2825 <image resource="q_btn_accept_transp"/>
2826 <actions>
2827 <action function="set">tw_back=restore_options</action>
2828 <action function="page">restore_confirm</action>
2829 </actions>
2830 </button>
2831
2832 <action>
2833 <touch key="home"/>
2834 <action function="page">main</action>
2835 </action>
2836
2837 <action>
2838 <touch key="back"/>
2839 <action function="page">%tw_back%</action>
2840 </action>
2841
2842 <action>
2843 <touch key="power+voldown"/>
2844 <action function="screenshot"/>
2845 </action>
2846 </page>
2847
2848 <page name="renamebackup">
2849 <template name="page"/>
2850
2851 <template name="statusbar"/>
2852
2853 <text style="text_m">
2854 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002855 <text>{@restore_hdr=Restore} &gt; {@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002856 </text>
2857
2858 <text style="text_m_accent">
2859 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002860 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002861 </text>
2862
2863 <input>
2864 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2865 <text>%tw_backup_rename%</text>
2866 <data name="tw_backup_rename"/>
2867 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2868 <actions>
2869 <action function="set">tw_back=restore</action>
2870 <action function="set">tw_action=cmd</action>
2871 <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 -05002872 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2873 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2874 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2875 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2876 <action function="set">tw_slider_text={@swipe_rename= Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002877 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2878 <action function="set">tw_existpage=renamebackup</action>
2879 <action function="set">tw_notexistpage=confirm_action</action>
2880 <action function="page">filecheck</action>
2881 </actions>
2882 </input>
2883
2884 <fill color="%accent_color%">
2885 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2886 </fill>
2887
2888 <fill color="%text_fail_color%">
2889 <condition var1="tw_fileexists" var2="1"/>
2890 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2891 </fill>
2892
2893 <text style="text_m_fail">
2894 <condition var1="tw_fileexists" var2="1"/>
2895 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002896 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002897 </text>
2898
2899 <button style="main_button_half_height">
2900 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002901 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002902 <action function="page">restore_confirm</action>
2903 </button>
2904
2905 <template name="keyboardtemplate"/>
2906
2907 <action>
2908 <touch key="home"/>
2909 <action function="page">main</action>
2910 </action>
2911
2912 <action>
2913 <touch key="back"/>
2914 <action function="page">restore_confirm</action>
2915 </action>
2916 </page>
2917
2918 <page name="restore_confirm">
2919 <template name="page"/>
2920
2921 <template name="statusbar"/>
2922
2923 <text style="text_m">
2924 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002925 <text>{@restore_hdr=Restore} &gt; {@confirm_hdr=Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002926 </text>
2927
2928 <text style="text_m_accent">
2929 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002930 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002931 </text>
2932
2933 <text style="text_m">
2934 <placement x="%indent%" y="%row2_y%"/>
2935 <text>%tw_restore_name%</text>
2936 </text>
2937
2938 <fill color="%accent_color%">
2939 <placement x="%indent%" y="64" w="%content_width%" h="input_line_width" placement="1"/>
2940 </fill>
2941
2942 <button>
2943 <fill color="%transparent%"/>
2944 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
2945 <actions>
2946 <action function="set">tw_back=restore_confirm</action>
2947 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2948 <action function="set">tw_fileexists=0</action>
2949 <action function="page">renamebackup</action>
2950 </actions>
2951 </button>
2952
2953 <text style="text_m_accent">
2954 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002955 <text>{@partitions=Partitions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002956 </text>
2957
2958 <partitionlist style="partitionlist_summary">
2959 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/>
2960 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2961 <listtype name="restore"/>
2962 </partitionlist>
2963
2964 <button>
2965 <fill color="%transparent%"/>
2966 <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/>
2967 <actions>
2968 <action function="set">tw_back=restore_confirm</action>
2969 <action function="page">restore_select</action>
2970 </actions>
2971 </button>
2972
2973 <listbox style="listbox_options">
2974 <placement x="%col1_x_right%" y="%row4a_y%" w="%content_half_width%" h="80"/>
Ethan Yonker4c105b92016-01-05 16:23:28 -06002975 <listitem name="{@restore_enable_md5_chk=Enable MD5 Verification of Backup Files}">
z31s1g28f0a922015-11-07 18:50:22 +01002976 <data variable="tw_skip_md5_check"/>
2977 </listitem>
2978 </listbox>
2979
2980 <text style="text_m_accent">
2981 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002982 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002983 </text>
2984
2985 <button>
2986 <fill color="%transparent%"/>
2987 <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="64"/>
2988 <actions>
2989 <action function="set">tw_back=restore_confirm</action>
2990 <action function="page">restore_options</action>
2991 </actions>
2992 </button>
2993
2994 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002995 <text>{@swipe_restore_s= Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002996 <action function="page">restore_run</action>
2997 </slider>
2998
2999 <action>
3000 <touch key="home"/>
3001 <action function="page">main</action>
3002 </action>
3003
3004 <action>
3005 <touch key="back"/>
3006 <action function="page">restore_options</action>
3007 </action>
3008 </page>
3009
3010 <page name="restore_run">
3011 <template name="page"/>
3012
3013 <template name="statusbar"/>
3014
3015 <text style="text_m">
3016 <placement x="%col1_x_left%" y="%row1_header_y%"/>
3017 <text>%tw_operation% %tw_partition%</text>
3018 </text>
3019
3020 <template name="console"/>
3021
3022 <template name="progress_bar"/>
3023
3024 <text style="text_m">
3025 <placement x="%indent%" y="%row14a_y%"/>
3026 <text>%tw_size_progress%</text>
3027 </text>
3028
3029 <action>
3030 <condition var1="tw_operation_state" var2="1"/>
3031 <actions>
3032 <action function="set">tw_back=restore</action>
Matt Mower3c366972015-12-25 19:28:31 -06003033 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003034 <action function="set">tw_show_reboot=1</action>
3035 <action function="page">action_complete</action>
3036 </actions>
3037 </action>
3038
3039 <action>
3040 <action function="nandroid">restore</action>
3041 </action>
3042 </page>
3043
3044 <page name="mount">
3045 <template name="page"/>
3046
3047 <template name="statusbar"/>
3048
3049 <text style="text_m">
3050 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003051 <text>{@mount_hdr=Mount} &gt; %tw_storage_display_name%</text>
z31s1g28f0a922015-11-07 18:50:22 +01003052 </text>
3053
3054 <partitionlist style="partitionlist_headerless_cb">
3055 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
3056 <listtype name="mount"/>
3057 </partitionlist>
3058
3059 <fill color="%accent_color%">
3060 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
3061 </fill>
3062
3063 <button style="checkbox">
3064 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
3065 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003066 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003067 <image resource="checkbox_false"/>
3068 <action function="mountsystemtoggle">1</action>
3069 </button>
3070
3071 <button style="checkbox">
3072 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
3073 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003074 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003075 <image resource="checkbox_true"/>
3076 <actions>
3077 <action function="set">tw_lifetime_writes=2</action>
3078 <action function="page">system_readonly_check</action>
3079 </actions>
3080 </button>
3081
3082 <button style="checkbox">
3083 <conditions>
3084 <condition var1="tw_has_mtp" var2="1"/>
3085 <condition var1="tw_mtp_enabled" var2="0"/>
3086 </conditions>
3087 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3088 <image resource="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003089 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003090 <action function="startmtp"/>
3091 </button>
3092
3093 <button style="checkbox">
3094 <conditions>
3095 <condition var1="tw_has_mtp" var2="1"/>
3096 <condition var1="tw_mtp_enabled" var2="1"/>
3097 </conditions>
3098 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3099 <image resource="checkbox_true"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003100 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003101 <action function="stopmtp"/>
3102 </button>
3103
3104 <button>
3105 <placement x="%btn4_col3_x%" y="%row11_y%"/>
3106 <highlight color="%highlight_color%"/>
3107 <image resource="q_btn_storage"/>
3108 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05003109 <action function="set">tw_storagetext={@mount_hdr=Mount} &gt; {@select_storage_hdr=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003110 <action function="set">tw_back=mount</action>
3111 <action function="page">select_storage</action>
3112 </actions>
3113 </button>
3114
3115 <button>
3116 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3117 <highlight color="%highlight_color%"/>
3118 <image resource="q_btn_arrow_right"/>
3119 <action function="page">mount_options</action>
3120 </button>
3121
3122 <action>
3123 <touch key="home"/>
3124 <action function="page">main</action>
3125 </action>
3126
3127 <action>
3128 <touch key="back"/>
3129 <action function="page">main</action>
3130 </action>
3131 </page>
3132
3133 <page name="mount_options">
3134 <template name="page"/>
3135
3136 <template name="statusbar"/>
3137
3138 <text style="text_m">
3139 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003140 <text>{@mount_hdr=Mount} &gt; %tw_storage_display_name%</text>
z31s1g28f0a922015-11-07 18:50:22 +01003141 </text>
3142
3143 <button style="main_button_full_width">
3144 <condition var1="tw_has_usb_storage" var2="1"/>
3145 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003146 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003147 <action function="page">usb_mount</action>
3148 </button>
3149
3150 <button style="main_button_full_width">
3151 <conditions>
3152 <condition var1="tw_is_encrypted" var2="1"/>
3153 <condition var1="tw_is_decrypted" var2="0"/>
3154 </conditions>
3155 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003156 <text>{@decrypt_data_btn=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003157 <action function="page">decrypt</action>
3158 </button>
3159
3160 <button>
3161 <placement x="%col1_x_left%" y="%row11_y%"/>
3162 <highlight color="%highlight_color%"/>
3163 <image resource="q_btn_arrow_left"/>
3164 <action function="page">mount</action>
3165 </button>
3166
3167 <action>
3168 <touch key="home"/>
3169 <action function="page">main</action>
3170 </action>
3171
3172 <action>
3173 <touch key="back"/>
3174 <action function="page">mount</action>
3175 </action>
3176 </page>
3177
3178 <page name="usb_mount">
3179 <template name="page"/>
3180
3181 <template name="statusbar"/>
3182
3183 <text style="text_m">
3184 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003185 <text>{@mount_hdr=Mount} &gt; {@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003186 </text>
3187
3188 <text style="text_m_accent">
3189 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003190 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003191 </text>
3192
3193 <text style="text_m_fail">
3194 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003195 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003196 </text>
3197
3198 <text style="text_m_fail">
3199 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003200 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003201 </text>
3202
3203 <button style="main_button">
3204 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003205 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003206 <action function="page">usb_umount</action>
3207 </button>
3208
3209 <action>
3210 <action function="mount">usb</action>
3211 <action function="set">tw_busy=1</action>
3212 </action>
3213 </page>
3214
3215 <page name="usb_umount">
3216 <action>
3217 <action function="unmount">usb</action>
3218 </action>
3219
3220 <action>
3221 <action function="page">mount_options</action>
3222 <action function="set">tw_busy=0</action>
3223 </action>
3224 </page>
3225
3226 <page name="system_readonly_check">
3227 <action>
3228 <action function="checkpartitionlifetimewrites">/system</action>
3229 </action>
3230
3231 <action>
3232 <condition var1="tw_lifetime_writes" var2="1"/>
3233 <actions>
3234 <action function="mountsystemtoggle">0</action>
3235 <action function="page">mount</action>
3236 </actions>
3237 </action>
3238
3239 <action>
3240 <condition var1="tw_lifetime_writes" var2="0"/>
3241 <actions>
3242 <action function="set">tw_back=mount</action>
3243 <action function="page">system_readonly</action>
3244 </actions>
3245 </action>
3246 </page>
3247
3248 <page name="reboot">
3249 <template name="page"/>
3250
3251 <template name="statusbar"/>
3252
3253 <text style="text_m">
3254 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003255 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003256 </text>
3257
3258 <button style="main_button">
3259 <condition var1="tw_reboot_system" var2="1"/>
3260 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003261 <text>{@rb_system_btn=System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003262 <actions>
3263 <action function="set">tw_back=reboot</action>
Matt Mower908dd252016-05-25 02:26:50 -05003264 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01003265 </actions>
3266 </button>
3267
3268 <button style="main_button">
3269 <condition var1="tw_reboot_poweroff" var2="1"/>
3270 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003271 <text>{@rb_poweroff_btn=Power Off}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003272 <actions>
3273 <action function="set">tw_back=reboot</action>
3274 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003275 <action function="set">tw_action_param=poweroff</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003276 <action function="set">tw_reboot_param=poweroff</action>
z31s1g28f0a922015-11-07 18:50:22 +01003277 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003278 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3279 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
3280 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3281 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3282 <action function="set">tw_slider_text={@swipe_power_off_s=Power Off}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003283 <action function="page">rebootcheck</action>
3284 </actions>
3285 </button>
3286
3287 <button style="main_button">
3288 <condition var1="tw_reboot_recovery" var2="1"/>
3289 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003290 <text>{@rb_recovery_btn=Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003291 <actions>
3292 <action function="set">tw_back=reboot</action>
3293 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003294 <action function="set">tw_action_param=recovery</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003295 <action function="set">tw_reboot_param=recovery</action>
z31s1g28f0a922015-11-07 18:50:22 +01003296 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003297 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3298 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3299 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3300 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3301 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003302 <action function="page">rebootcheck</action>
3303 </actions>
3304 </button>
3305
3306 <button style="main_button">
3307 <condition var1="tw_reboot_bootloader" var2="1"/>
3308 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003309 <text>{@rb_bootloader_btn=Bootloader}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003310 <actions>
3311 <action function="set">tw_back=reboot</action>
3312 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003313 <action function="set">tw_action_param=bootloader</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003314 <action function="set">tw_reboot_param=bootloader</action>
z31s1g28f0a922015-11-07 18:50:22 +01003315 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003316 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3317 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3318 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3319 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3320 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003321 <action function="page">rebootcheck</action>
3322 </actions>
3323 </button>
3324
3325 <button style="main_button">
3326 <condition var1="tw_download_mode" var2="1"/>
3327 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003328 <text>{@rb_download_btn=Download}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003329 <actions>
3330 <action function="set">tw_back=reboot</action>
3331 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003332 <action function="set">tw_action_param=download</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003333 <action function="set">tw_reboot_param=download</action>
z31s1g28f0a922015-11-07 18:50:22 +01003334 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003335 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3336 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3337 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3338 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3339 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003340 <action function="page">rebootcheck</action>
3341 </actions>
3342 </button>
3343
3344 <action>
3345 <touch key="home"/>
3346 <action function="page">main</action>
3347 </action>
3348
3349 <action>
3350 <touch key="back"/>
3351 <action function="page">main</action>
3352 </action>
3353 </page>
3354
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003355 <page name="rebootapp">
3356 <template name="page"/>
3357
3358 <template name="statusbar"/>
3359
3360 <text style="text_m">
3361 <placement x="%col1_x_left%" y="%row1_header_y%"/>
3362 <text>{@reboot_hdr=Reboot} &gt; {@reboot_install_app_hdr=Install TWRP App?}</text>
3363 </text>
3364
3365 <text style="text_m_accent">
3366 <placement x="%center_x%" y="%row1_y%" placement="5"/>
3367 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3368 </text>
3369
3370 <text style="text_m">
3371 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3372 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3373 </text>
3374
3375 <checkbox>
3376 <placement x="%indent%" y="%row3_y%"/>
3377 <text>{@reboot_install_app_prompt_install=Prompt to install TWRP app if not installed}</text>
3378 <data variable="tw_app_prompt"/>
3379 </checkbox>
3380
3381 <checkbox>
3382 <condition var1="tw_mount_system_ro" var2="0"/>
3383 <placement x="%indent%" y="%row5_y%"/>
3384 <text>{@reboot_install_app_system=Install as a System App}</text>
3385 <data variable="tw_app_install_system"/>
3386 </checkbox>
3387
3388 <button style="main_button_half_height">
3389 <placement x="%indent%" y="%row7_y%"/>
3390 <text>{@su_cancel=Do not Install}</text>
3391 <action function="reboot">%tw_reboot_param%</action>
3392 </button>
3393
3394 <slider>
3395 <text>{@swipe_su_install= Install}</text>
3396 <actions>
3397 <action function="set">tw_back=reboot</action>
3398 <action function="set">tw_action=installapp</action>
3399 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3400 <action function="set">tw_action_text2=</action>
3401 <action function="set">tw_has_action2=1</action>
3402 <action function="set">tw_action2=reboot</action>
3403 <action function="set">tw_action2_param=%tw_reboot_param%</action>
3404 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3405 <action function="page">action_page</action>
3406 </actions>
3407 </slider>
3408
3409 <action>
3410 <touch key="home"/>
3411 <actions>
3412 <action function="set">tw_app_install_status=0</action>
3413 <action function="page">main</action>
3414 </actions>
3415 </action>
3416
3417 <action>
3418 <touch key="back"/>
3419 <actions>
3420 <action function="set">tw_app_install_status=0</action>
3421 <action function="page">reboot</action>
3422 </actions>
3423 </action>
3424 </page>
3425
z31s1g28f0a922015-11-07 18:50:22 +01003426 <page name="system_readonly">
3427 <template name="page"/>
3428
3429 <template name="statusbar"/>
3430
3431 <text style="text_m">
3432 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003433 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003434 </text>
3435
3436 <text style="text_m_accent">
3437 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003438 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003439 </text>
3440
3441 <text style="text_m">
3442 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003443 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003444 </text>
3445
3446 <text style="text_m">
3447 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003448 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003449 </text>
3450
3451 <text style="text_m">
3452 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003453 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003454 </text>
3455
3456 <text style="text_m">
3457 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003458 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003459 </text>
3460
3461 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003462 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003463 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003464 </text>
3465
3466 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003467 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003468 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003469 </text>
3470
z31s1g608d7ff2016-01-18 19:47:25 +01003471 <button style="main_button_half_height">
3472 <placement x="%col1_x_right%" y="%row8a_y%"/>
3473 <text>{@sel_lang_btn=Select Language}</text>
3474 <action function="page">settings_language</action>
3475 </button>
3476
z31s1g28f0a922015-11-07 18:50:22 +01003477 <checkbox>
3478 <condition var1="tw_is_encrypted" var2="0"/>
z31s1g608d7ff2016-01-18 19:47:25 +01003479 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003480 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003481 <data variable="tw_never_show_system_ro_page"/>
3482 </checkbox>
3483
3484 <button style="main_button_half_height">
3485 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003486 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003487 <actions>
3488 <action function="mountsystemtoggle">1</action>
3489 <action function="set">tw_page_done=1</action>
3490 <action function="page">%tw_back%</action>
3491 </actions>
3492 </button>
3493
3494 <button style="main_button_half_height">
3495 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003496 <text>{@swipe_allow_mod_s=Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003497 <actions>
3498 <action function="mountsystemtoggle">0</action>
3499 <action function="set">tw_page_done=1</action>
3500 <action function="page">%tw_back%</action>
3501 </actions>
3502 </button>
3503 </page>
3504
3505 <page name="settings">
3506 <template name="page"/>
3507
3508 <template name="statusbar"/>
3509
3510 <text style="text_m">
3511 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003512 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003513 </text>
3514
3515 <button style="main_button">
3516 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003517 <text>{@settings_gen_btn=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003518 <action function="page">settings_general</action>
3519 </button>
3520
3521 <button style="main_button">
3522 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003523 <text>{@settings_tz_btn=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003524 <action function="page">settings_timezone</action>
3525 </button>
3526
3527 <button style="main_button">
3528 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003529 <text>{@settings_screen_btn=Screen}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003530 <action function="page">settings_screen</action>
3531 </button>
3532
3533 <button style="main_button">
3534 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003535 <text>{@settings_vibration_btn=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003536 <action function="page">settings_vibration</action>
3537 </button>
3538
3539 <button style="main_button">
3540 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003541 <text>{@settings_language_btn=Language}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003542 <action function="page">settings_language</action>
3543 </button>
3544
3545 <button>
3546 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3547 <highlight color="%highlight_color%"/>
3548 <image resource="q_btn_reset"/>
3549 <action function="restoredefaultsettings"/>
3550 </button>
3551
3552 <action>
3553 <touch key="home"/>
3554 <action function="page">main</action>
3555 </action>
3556
3557 <action>
3558 <touch key="back"/>
3559 <action function="page">main3</action>
3560 </action>
3561 </page>
3562
3563 <page name="settings_general">
3564 <template name="page"/>
3565
3566 <template name="statusbar"/>
3567
3568 <text style="text_m">
3569 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003570 <text>{@settings_hdr=Settings} &gt; {@settings_gen_s_hdr=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003571 </text>
3572
3573 <listbox style="scrolllist">
3574 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_settings_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003575 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003576 <data variable="tw_signed_zip_verify"/>
3577 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003578 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3579 <data variable="tw_install_reboot"/>
3580 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003581 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003582 <data variable="tw_rm_rf"/>
3583 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003584 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3585 <data variable="tw_disable_free_space"/>
3586 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003587 <listitem name="{@skip_md5_backup_chk=Skip MD5 generation during backup}">
z31s1g28f0a922015-11-07 18:50:22 +01003588 <data variable="tw_skip_md5_generate"/>
3589 </listitem>
Ethan Yonker4c105b92016-01-05 16:23:28 -06003590 <listitem name="{@restore_enable_md5_chk=Enable MD5 verification of backup files}">
z31s1g28f0a922015-11-07 18:50:22 +01003591 <data variable="tw_skip_md5_check"/>
3592 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003593 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003594 <data variable="tw_military_time"/>
3595 </listitem>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003596 <listitem name="{@reboot_install_app_prompt_install=Prompt to install TWRP app on every reboot}">
3597 <data variable="tw_app_prompt"/>
3598 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003599 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003600 <data variable="tw_simulate_actions"/>
3601 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003602 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003603 <data variable="tw_simulate_fail"/>
3604 <condition var1="tw_simulate_actions" var2="1"/>
3605 </listitem>
3606 </listbox>
3607
3608 <action>
3609 <touch key="home"/>
3610 <action function="page">main</action>
3611 </action>
3612
3613 <action>
3614 <touch key="back"/>
3615 <action function="page">settings</action>
3616 </action>
3617 </page>
3618
3619 <page name="settings_timezone">
3620 <template name="page"/>
3621
3622 <template name="statusbar"/>
3623
3624 <text style="text_m">
3625 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003626 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003627 </text>
3628
3629 <text color="%text_color%">
3630 <font resource="font_m"/>
3631 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3632 <text>%tw_time%</text>
3633 </text>
3634
3635 <listbox style="listbox_headerless">
3636 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_timezone_height%"/>
3637 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003638 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3639 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3640 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3641 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3642 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3643 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3644 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3645 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3646 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3647 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3648 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3649 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3650 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3651 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3652 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3653 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3654 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3655 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3656 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3657 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3658 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3659 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3660 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3661 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003662 </listbox>
3663
3664 <button>
3665 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3666 <highlight color="%highlight_color%"/>
3667 <image resource="q_btn_arrow_right"/>
3668 <actions>
3669 <action function="setguitimezone"/>
3670 <action function="page">settings_timezone2</action>
3671 </actions>
3672 </button>
3673
3674 <action>
3675 <condition var1="tw_time_zone_guisel" op="modified"/>
3676 <action function="setguitimezone"/>
3677 </action>
3678
3679 <action>
3680 <touch key="home"/>
3681 <actions>
3682 <action function="page">main</action>
3683 <action function="setguitimezone"/>
3684 </actions>
3685 </action>
3686
3687 <action>
3688 <touch key="back"/>
3689 <actions>
3690 <action function="page">settings</action>
3691 <action function="setguitimezone"/>
3692 </actions>
3693 </action>
3694
3695 <action>
3696 <touch key="power+voldown"/>
3697 <action function="screenshot"/>
3698 </action>
3699 </page>
3700
3701 <page name="settings_timezone2">
3702 <template name="page"/>
3703
3704 <template name="statusbar"/>
3705
3706 <text style="text_m">
3707 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003708 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003709 </text>
3710
3711 <text color="%text_color%">
3712 <font resource="font_m"/>
3713 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3714 <text>%tw_time%</text>
3715 </text>
3716
3717 <checkbox>
3718 <placement x="%col1_x_left%" y="%row1_y%"/>
3719 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003720 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003721 <data variable="tw_time_zone_guidst"/>
3722 <image checked="checkbox_true" unchecked="checkbox_false"/>
3723 </checkbox>
3724
3725 <text style="text_m_accent">
3726 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003727 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003728 </text>
3729
3730 <button style="main_button_quarter_width">
3731 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003732 <text>{@tz_offset_0=0}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003733 <actions>
3734 <action function="set">tw_time_zone_guioffset=0</action>
3735 <action function="setguitimezone"/>
3736 </actions>
3737 </button>
3738
3739 <button style="main_button_quarter_width">
3740 <placement x="%btn4_col2_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003741 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003742 <actions>
3743 <action function="set">tw_time_zone_guioffset=15</action>
3744 <action function="setguitimezone"/>
3745 </actions>
3746 </button>
3747
3748 <button style="main_button_quarter_width">
3749 <placement x="%btn4_col3_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003750 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003751 <actions>
3752 <action function="set">tw_time_zone_guioffset=30</action>
3753 <action function="setguitimezone"/>
3754 </actions>
3755 </button>
3756
3757 <button style="main_button_quarter_width">
3758 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003759 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003760 <actions>
3761 <action function="set">tw_time_zone_guioffset=45</action>
3762 <action function="setguitimezone"/>
3763 </actions>
3764 </button>
3765
3766 <button>
3767 <placement x="%col1_x_left%" y="%row11_y%"/>
3768 <highlight color="%highlight_color%"/>
3769 <image resource="q_btn_arrow_left"/>
3770 <actions>
3771 <action function="setguitimezone"/>
3772 <action function="page">settings_timezone</action>
3773 </actions>
3774 </button>
3775
3776 <text style="text_m_accent">
3777 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003778 <text>{@curr_tz_s=Current Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003779 </text>
3780
3781 <text style="text_m">
3782 <placement x="%btn4_col2_x%" y="%row12a_y%"/>
3783 <text>%tw_time_zone%</text>
3784 </text>
3785
3786 <action>
3787 <condition var1="tw_time_zone_guidst" op="modified"/>
3788 <action function="setguitimezone"/>
3789 </action>
3790
3791 <action>
3792 <touch key="home"/>
3793 <actions>
3794 <action function="setguitimezone"/>
3795 <action function="page">main</action>
3796 </actions>
3797 </action>
3798
3799 <action>
3800 <touch key="back"/>
3801 <actions>
3802 <action function="setguitimezone"/>
3803 <action function="page">settings_timezone</action>
3804 </actions>
3805 </action>
3806 </page>
3807
3808 <page name="settings_screen">
3809 <template name="page"/>
3810
3811 <template name="statusbar"/>
3812
3813 <text style="text_m">
3814 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003815 <text>{@settings_hdr=Settings} &gt; {@settings_screen_timeout_hdr=Screen Timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003816 </text>
3817
3818 <button style="checkbox">
3819 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3820 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3821 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003822 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003823 <image resource="checkbox_false"/>
3824 <action function="set">tw_screen_timeout_secs=60</action>
3825 </button>
3826
3827 <button style="checkbox">
3828 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3829 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3830 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003831 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003832 <image resource="checkbox_true"/>
3833 <action function="set">tw_screen_timeout_secs=0</action>
3834 </button>
3835
3836 <slidervalue>
3837 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3838 <placement x="col1_x_left" y="%row2a_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003839 <text>{@screen_to_slider_s=Screen timeout in seconds (0=disabled): %tw_screen_timeout_secs%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003840 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3841 </slidervalue>
3842
3843 <text style="text_m_fail">
3844 <condition var1="tw_no_screen_timeout" op="=" var2="1"/>
3845 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003846 <text>{@screen_to_na=Screen timeout setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003847 </text>
3848
3849 <button>
3850 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3851 <highlight color="%highlight_color%"/>
3852 <image resource="q_btn_arrow_right"/>
3853 <action function="page">settings_screen2</action>
3854 </button>
3855
3856 <action>
3857 <touch key="home"/>
3858 <action function="page">main</action>
3859 </action>
3860
3861 <action>
3862 <touch key="back"/>
3863 <action function="page">settings</action>
3864 </action>
3865 </page>
3866
3867 <page name="settings_screen2">
3868 <template name="page"/>
3869
3870 <template name="statusbar"/>
3871
3872 <text style="text_m">
3873 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003874 <text>{@settings_hdr=Settings} &gt; {@settings_screen_bright_btn=Screen Brightness}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003875 </text>
3876
3877 <slidervalue>
3878 <condition var1="tw_has_brightnesss_file" var2="1"/>
3879 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003880 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003881 <data variable="tw_brightness_pct" min="10" max="100"/>
3882 <actions>
3883 <action function="set">tw_brightness=%tw_brightness_max%</action>
3884 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3885 <action function="compute">tw_brightness/100</action>
3886 <action function="setbrightness">%tw_brightness%</action>
3887 </actions>
3888 </slidervalue>
3889
3890 <text style="text_m_fail">
3891 <condition var1="tw_has_brightnesss_file" var2="0"/>
3892 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003893 <text>{@screen_bright_na=Brightness setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003894 </text>
3895
3896 <button>
3897 <placement x="%col1_x_left%" y="%row11_y%"/>
3898 <highlight color="%highlight_color%"/>
3899 <image resource="q_btn_arrow_left"/>
3900 <action function="page">settings_screen</action>
3901 </button>
3902
3903 <action>
3904 <touch key="home"/>
3905 <action function="page">main</action>
3906 </action>
3907
3908 <action>
3909 <touch key="back"/>
3910 <action function="page">settings</action>
3911 </action>
3912 </page>
3913
3914 <page name="settings_vibration">
3915 <template name="page"/>
3916
3917 <template name="statusbar"/>
3918
3919 <text style="text_m">
3920 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003921 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@button_vibration_hdr=Button Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003922 </text>
3923
3924 <slidervalue>
3925 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003926 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003927 <data variable="tw_button_vibrate" min="0" max="300"/>
3928 </slidervalue>
3929
3930 <button>
3931 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3932 <highlight color="%highlight_color%"/>
3933 <image resource="q_btn_arrow_right"/>
3934 <action function="page">settings_vibration2</action>
3935 </button>
3936
3937 <action>
3938 <touch key="home"/>
3939 <action function="page">main</action>
3940 </action>
3941
3942 <action>
3943 <touch key="back"/>
3944 <action function="page">settings</action>
3945 </action>
3946 </page>
3947
3948 <page name="settings_vibration2">
3949 <template name="page"/>
3950
3951 <template name="statusbar"/>
3952
3953 <text style="text_m">
3954 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003955 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@kb_vibration_hdr=Keyboard Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003956 </text>
3957
3958 <slidervalue>
3959 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003960 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003961 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3962 </slidervalue>
3963
3964 <button>
3965 <placement x="%col1_x_left%" y="%row11_y%"/>
3966 <highlight color="%highlight_color%"/>
3967 <image resource="q_btn_arrow_left"/>
3968 <action function="page">settings_vibration</action>
3969 </button>
3970
3971 <button>
3972 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3973 <highlight color="%highlight_color%"/>
3974 <image resource="q_btn_arrow_right"/>
3975 <action function="page">settings_vibration3</action>
3976 </button>
3977
3978 <action>
3979 <touch key="home"/>
3980 <action function="page">main</action>
3981 </action>
3982
3983 <action>
3984 <touch key="back"/>
3985 <action function="page">settings</action>
3986 </action>
3987 </page>
3988
3989 <page name="settings_vibration3">
3990 <template name="page"/>
3991
3992 <template name="statusbar"/>
3993
3994 <text style="text_m">
3995 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003996 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@act_vibration_hdr=Action Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003997 </text>
3998
3999 <slidervalue>
4000 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004001 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004002 <data variable="tw_action_vibrate" min="0" max="500"/>
4003 </slidervalue>
4004
4005 <button>
4006 <placement x="%col1_x_left%" y="%row11_y%"/>
4007 <highlight color="%highlight_color%"/>
4008 <image resource="q_btn_arrow_left"/>
4009 <action function="page">settings_vibration2</action>
4010 </button>
4011
4012 <action>
4013 <touch key="home"/>
4014 <action function="page">main</action>
4015 </action>
4016
4017 <action>
4018 <touch key="back"/>
4019 <action function="page">settings</action>
4020 </action>
4021 </page>
4022
Ethan Yonker74db1572015-10-28 12:44:49 -05004023 <page name="settings_language">
4024 <template name="page"/>
4025
4026 <template name="statusbar"/>
4027
4028 <text style="text_m">
4029 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4030 <text>{@settings_hdr=Settings} &gt; {@language_hdr=Language} - %tw_language_display%</text>
4031 </text>
4032
z31s1g608d7ff2016-01-18 19:47:25 +01004033 <listbox style="scrolllist">
Ethan Yonker74db1572015-10-28 12:44:49 -05004034 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4035 <icon selected="radio_true" unselected="radio_false" />
4036 <data name="tw_language" />
z31s1g608d7ff2016-01-18 19:47:25 +01004037 </listbox>
Ethan Yonker74db1572015-10-28 12:44:49 -05004038
4039 <button>
4040 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4041 <highlight color="%highlight_color%"/>
z31s1g608d7ff2016-01-18 19:47:25 +01004042 <image resource="q_btn_accept_transp"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004043 <action function="setlanguage"></action>
4044 </button>
4045
z31s1g608d7ff2016-01-18 19:47:25 +01004046 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004047 <touch key="home" />
4048 <action function="page">main</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004049 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004050
z31s1g608d7ff2016-01-18 19:47:25 +01004051 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004052 <touch key="back" />
4053 <action function="page">settings</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004054 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004055 </page>
4056
z31s1g28f0a922015-11-07 18:50:22 +01004057 <page name="advanced">
4058 <template name="page"/>
4059
4060 <template name="statusbar"/>
4061
4062 <text style="text_m">
4063 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004064 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004065 </text>
4066
4067 <button style="main_button">
4068 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004069 <text>{@terminal_btn=Terminal}</text>
z31s1g56189522016-01-13 19:12:40 +01004070 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01004071 </button>
4072
4073 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004074 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004075 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004076 <text>{@fix_context_btn=Fix Contexts}</text>
4077 <action function="page">fixcontexts</action>
z31s1g28f0a922015-11-07 18:50:22 +01004078 </button>
4079
4080 <button style="main_button">
4081 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004082 <text>{@reload_theme_btn=Reload Theme}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004083 <action function="reload"/>
4084 </button>
4085
4086 <button style="main_button">
4087 <condition var1="tw_allow_partition_sdcard" var2="1"/>
4088 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004089 <text>{@part_sd_s_btn=SD Card}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004090 <actions>
4091 <action function="set">partitionlisterror=0</action>
4092 <action function="page">partsdcardsel</action>
4093 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004094 </button>
4095
4096 <button style="main_button">
4097 <condition var1="tw_show_dumlock" var2="1"/>
4098 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004099 <text>{@dumlock_btn=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004100 <action function="page">htcdumlock</action>
4101 </button>
4102
4103 <button style="main_button">
4104 <condition var1="tw_has_injecttwrp" var2="1"/>
4105 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004106 <text>{@inject_twrp_btn=Inject TWRP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004107 <actions>
4108 <action function="set">tw_back=advanced</action>
4109 <action function="set">tw_action=reinjecttwrp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004110 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
4111 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
4112 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
4113 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004114 <action function="page">confirm_action</action>
4115 </actions>
4116 </button>
4117
4118 <action>
4119 <touch key="home"/>
4120 <action function="page">main</action>
4121 </action>
4122
4123 <action>
4124 <touch key="back"/>
4125 <action function="page">main3</action>
4126 </action>
4127 </page>
4128
Ethan Yonker483e9f42016-01-11 22:21:18 -06004129 <page name="partsdcardsel">
4130 <template name="page"/>
4131
4132 <template name="statusbar"/>
4133
4134 <text style="text_m">
4135 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4136 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
4137 </text>
4138
4139 <partitionlist style="partitionlist_headerless_rb">
4140 <data name="tw_storage_path"/>
4141 <listtype name="storage"/>
4142 </partitionlist>
4143
4144 <text style="text_m_fail">
4145 <condition var1="partitionlisterror" var2="1"/>
4146 <placement x="%center_x%" y="%row9_y%" placement="5"/>
4147 <text>{@invalid_partsd_sel=You must select a removable device}</text>
4148 </text>
4149
4150 <button>
4151 <placement x="%btn4_col2_x%" y="%row11_y%"/>
4152 <highlight color="%highlight_color%"/>
4153 <image resource="q_btn_refresh"/>
4154 <action function="refreshsizes"/>
4155 </button>
4156
4157 <button>
4158 <placement x="%btn4_col3_x%" y="%row11_y%"/>
4159 <highlight color="%highlight_color%"/>
4160 <image resource="q_btn_accept"/>
4161 <actions>
4162 <action function="getpartitiondetails">tw_storage_path</action>
4163 <action function="page">partsdcardcheck</action>
4164 </actions>
4165 </button>
4166
4167 <action>
4168 <touch key="home"/>
4169 <action function="page">main</action>
4170 </action>
4171
4172 <action>
4173 <touch key="back"/>
4174 <action function="page">advanced</action>
4175 </action>
4176 </page>
4177
4178 <page name="partsdcardcheck">
4179 <action>
4180 <condition var1="tw_partition_removable" op="=" var2="1"/>
4181 <actions>
4182 <action function="set">partitionlisterror=0</action>
4183 <action function="page">partsdcard</action>
4184 </actions>
4185 </action>
4186
4187 <action>
4188 <condition var1="tw_partition_removable" op="!=" var2="1"/>
4189 <actions>
4190 <action function="set">partitionlisterror=1</action>
4191 <action function="page">partsdcardsel</action>
4192 </actions>
4193 </action>
4194 </page>
4195
z31s1g28f0a922015-11-07 18:50:22 +01004196 <page name="partsdcard">
4197 <template name="page"/>
4198
4199 <template name="statusbar"/>
4200
4201 <text style="text_m">
4202 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004203 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004204 </text>
4205
4206 <text style="text_m_fail">
4207 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004208 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004209 </text>
4210
4211 <text style="text_m_fail">
4212 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004213 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004214 </text>
4215
4216 <text style="text_m_accent">
4217 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004218 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004219 </text>
4220
4221 <text style="text_m">
4222 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4223 <text>%tw_sdext_size%</text>
4224 </text>
4225
4226 <button style="main_button_quarter_width">
4227 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004228 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004229 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004230 </button>
4231
4232 <button style="main_button_quarter_width">
4233 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004234 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004235 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004236 </button>
4237
4238 <button>
4239 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4240 <highlight color="%highlight_color%"/>
4241 <image resource="q_btn_arrow_right"/>
4242 <action function="page">partsdcard2</action>
4243 </button>
4244
4245 <action>
4246 <touch key="home"/>
4247 <action function="page">main</action>
4248 </action>
4249
4250 <action>
4251 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004252 <action function="page">partsdcardsel</action>
z31s1g28f0a922015-11-07 18:50:22 +01004253 </action>
4254 </page>
4255
4256 <page name="partsdcard2">
4257 <template name="page"/>
4258
4259 <template name="statusbar"/>
4260
4261 <text style="text_m">
4262 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004263 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004264 </text>
4265
4266 <text style="text_m_fail">
4267 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004268 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004269 </text>
4270
4271 <text style="text_m_fail">
4272 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004273 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004274 </text>
4275
4276 <text style="text_m_accent">
4277 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004278 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004279 </text>
4280
4281 <text style="text_m">
4282 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4283 <text>%tw_swap_size%</text>
4284 </text>
4285
4286 <button style="main_button_quarter_width">
4287 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004288 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004289 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004290 </button>
4291
4292 <button style="main_button_quarter_width">
4293 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004294 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004295 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004296 </button>
4297
4298 <button>
4299 <placement x="%col1_x_left%" y="%row11_y%"/>
4300 <highlight color="%highlight_color%"/>
4301 <image resource="q_btn_arrow_left"/>
4302 <action function="page">partsdcard</action>
4303 </button>
4304
4305 <button>
4306 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4307 <highlight color="%highlight_color%"/>
4308 <image resource="q_btn_arrow_right"/>
4309 <action function="page">partsdcard3</action>
4310 </button>
4311
4312 <action>
4313 <touch key="home"/>
4314 <action function="page">main</action>
4315 </action>
4316
4317 <action>
4318 <touch key="back"/>
4319 <action function="page">advanced</action>
4320 </action>
4321 </page>
4322
4323 <page name="partsdcard3">
4324 <template name="page"/>
4325
4326 <template name="statusbar"/>
4327
4328 <text style="text_m">
4329 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004330 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004331 </text>
4332
4333 <text style="text_m_fail">
4334 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004335 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004336 </text>
4337
4338 <text style="text_m_fail">
4339 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004340 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004341 </text>
4342
4343 <text style="text_m_accent">
4344 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004345 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004346 </text>
4347
4348 <text style="text_m">
4349 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4350 <text>%tw_sdpart_file_system%</text>
4351 </text>
4352
4353 <button style="main_button_quarter_width">
4354 <placement x="%indent%" y="%row6_y%"/>
4355 <text>EXT3</text>
4356 <action function="set">tw_sdpart_file_system=ext3</action>
4357 </button>
4358
4359 <button style="main_button_quarter_width">
4360 <placement x="%btn4_col4_x%" y="%row6_y%"/>
4361 <text>EXT4</text>
4362 <action function="set">tw_sdpart_file_system=ext4</action>
4363 </button>
4364
4365 <button>
4366 <placement x="%col1_x_left%" y="%row11_y%"/>
4367 <highlight color="%highlight_color%"/>
4368 <image resource="q_btn_arrow_left"/>
4369 <action function="page">partsdcard2</action>
4370 </button>
4371
4372 <button>
4373 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4374 <highlight color="%highlight_color%"/>
4375 <image resource="q_btn_arrow_right"/>
4376 <action function="page">partsdcard_confirm</action>
4377 </button>
4378
4379 <action>
4380 <touch key="home"/>
4381 <action function="page">main</action>
4382 </action>
4383
4384 <action>
4385 <touch key="back"/>
4386 <action function="page">advanced</action>
4387 </action>
4388 </page>
4389
4390 <page name="partsdcard_confirm">
4391 <template name="page"/>
4392
4393 <template name="statusbar"/>
4394
4395 <text style="text_m">
4396 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004397 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004398 </text>
4399
4400 <text style="text_m_fail">
4401 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004402 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004403 </text>
4404
4405 <text style="text_m_fail">
4406 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004407 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004408 </text>
4409
4410 <text style="text_m_accent">
4411 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004412 <text>{@part_sd_ext_sz=EXT Size:} %tw_sdext_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004413 </text>
4414
4415 <text style="text_m_accent">
4416 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004417 <text>{@part_sd_swap_sz=Swap Size:} %tw_swap_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004418 </text>
4419
4420 <text style="text_m_accent">
4421 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004422 <text>{@file_system=File System:} %tw_sdpart_file_system%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004423 </text>
4424
4425 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004426 <text>{@swipe_part_sd_s=Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004427 <action function="page">partsdcardaction</action>
4428 <actions>
4429 <action function="set">tw_back=partsdcard</action>
4430 <action function="set">tw_action=partitionsd</action>
4431 <action function="set">tw_has_action2=1</action>
4432 <action function="set">tw_action2=set</action>
4433 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004434 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4435 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4436 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004437 <action function="page">action_page</action>
4438 </actions>
4439 </slider>
4440
4441 <action>
4442 <touch key="home"/>
4443 <action function="page">main</action>
4444 </action>
4445
4446 <action>
4447 <touch key="back"/>
4448 <action function="page">advanced</action>
4449 </action>
4450 </page>
4451
4452 <page name="htcdumlock">
4453 <template name="page"/>
4454
4455 <template name="statusbar"/>
4456
4457 <text style="text_m">
4458 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004459 <text>{@advanced_hdr=Advanced} &gt; {@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004460 </text>
4461
4462 <button style="main_button_full_width">
4463 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004464 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004465 <actions>
4466 <action function="set">tw_back=htcdumlock</action>
4467 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004468 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4469 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4470 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4471 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004472 <action function="page">confirm_action</action>
4473 </actions>
4474 </button>
4475
4476 <button style="main_button_full_width">
4477 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004478 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004479 <actions>
4480 <action function="set">tw_back=htcdumlock</action>
4481 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004482 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4483 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4484 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4485 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004486 <action function="page">confirm_action</action>
4487 </actions>
4488 </button>
4489
4490 <button style="main_button_full_width">
4491 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004492 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004493 <actions>
4494 <action function="set">tw_back=htcdumlock</action>
4495 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004496 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4497 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4498 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4499 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004500 <action function="page">confirm_action</action>
4501 </actions>
4502 </button>
4503
4504 <action>
4505 <touch key="home"/>
4506 <action function="page">main</action>
4507 </action>
4508
4509 <action>
4510 <touch key="back"/>
4511 <action function="page">advanced</action>
4512 </action>
4513 </page>
4514
4515 <page name="lock">
4516 <background color="%semi_transparent%"/>
4517
4518 <image>
4519 <image resource="unlock_icon"/>
4520 <placement x="%center_x%" y="%row6_y%" placement="4"/>
4521 </image>
4522
4523 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004524 <text>{@swipe_unlock= Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004525 <action function="overlay"/>
4526 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004527
4528 <action>
4529 <touch key="power"/>
4530 <action function="togglebacklight"/>
4531 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004532 </page>
4533
4534 <page name="filemanagerlist">
4535 <template name="page"/>
4536
4537 <template name="statusbar"/>
4538
4539 <text style="text_m">
4540 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004541 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004542 </text>
4543
4544 <fileselector>
4545 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4546 <text>%tw_file_location1%</text>
4547 <filter folders="1" files="1"/>
4548 <path name="tw_file_location1" default="/"/>
4549 <data name="tw_filename1"/>
4550 <selection name="tw_selection1"/>
4551 </fileselector>
4552
4553 <button>
4554 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4555 <highlight color="%highlight_color%"/>
4556 <image resource="q_btn_folder"/>
4557 <actions>
4558 <action function="set">tw_filename1=tw_file_location1</action>
4559 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004560 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004561 <action function="page">filemanageroptions</action>
4562 </actions>
4563 </button>
4564
4565 <action>
4566 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004567 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004568 <action function="set">tw_fm_isfolder=0</action>
4569 </actions>
4570 </action>
4571
4572 <action>
4573 <touch key="home"/>
4574 <action function="page">main</action>
4575 </action>
4576
4577 <action>
4578 <touch key="back"/>
4579 <action function="page">main3</action>
4580 </action>
4581
4582 <action>
4583 <condition var1="tw_filename1" op="modified"/>
4584 <action function="page">filemanageroptions</action>
4585 </action>
4586 </page>
4587
4588 <page name="filemanageroptions">
4589 <template name="page"/>
4590
4591 <template name="statusbar"/>
4592
4593 <text style="text_m">
4594 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004595 <text>%tw_fm_type% &gt; %tw_filename1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004596 </text>
4597
4598 <button style="main_button">
4599 <condition var1="tw_fm_isfolder" var2="0"/>
4600 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004601 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004602 <actions>
4603 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004604 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004605 <action function="page">choosedestinationfolder</action>
4606 </actions>
4607 </button>
4608
4609 <button style="main_button">
4610 <condition var1="tw_fm_isfolder" var2="1"/>
4611 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004612 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004613 <actions>
4614 <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 -05004615 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004616 <action function="page">choosedestinationfolder</action>
4617 </actions>
4618 </button>
4619
4620 <button style="main_button">
4621 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004622 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004623 <actions>
4624 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004625 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004626 <action function="page">choosedestinationfolder</action>
4627 </actions>
4628 </button>
4629
4630 <button style="main_button">
4631 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004632 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004633 <actions>
4634 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004635 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004636 <action function="set">tw_fm_text2=</action>
4637 <action function="set">tw_fm_text3=</action>
4638 <action function="set">tw_include_text3=0</action>
4639 <action function="set">tw_back=filemanageroptions</action>
4640 <action function="page">filemanagerconfirm</action>
4641 </actions>
4642 </button>
4643
4644 <button style="main_button">
4645 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004646 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004647 <actions>
4648 <action function="set">tw_filemanager_rename=0000</action>
4649 <action function="set">tw_fm_text2=</action>
4650 <action function="set">tw_fm_text3=</action>
4651 <action function="set">tw_include_text3=0</action>
4652 <action function="set">tw_back=filemanageroptions</action>
4653 <action function="page">filemanagerchmod</action>
4654 </actions>
4655 </button>
4656
4657 <button style="main_button">
4658 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004659 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004660 <actions>
4661 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004662 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004663 <action function="set">tw_fm_text2=</action>
4664 <action function="set">tw_fm_text3=</action>
4665 <action function="set">tw_include_text3=0</action>
4666 <action function="set">tw_back=filemanageroptions</action>
4667 <action function="page">filemanagerconfirm</action>
4668 </actions>
4669 </button>
4670
4671 <button style="main_button">
4672 <condition var1="tw_fm_isfolder" var2="0"/>
4673 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004674 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004675 <actions>
4676 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004677 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004678 <action function="set">tw_filemanager_command=mv</action>
4679 <action function="page">filemanagerrenamefile</action>
4680 </actions>
4681 </button>
4682
4683 <button style="main_button">
4684 <condition var1="tw_fm_isfolder" var2="1"/>
4685 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004686 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004687 <actions>
4688 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004689 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004690 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4691 <action function="page">filemanagerrenamefolder</action>
4692 </actions>
4693 </button>
4694
4695 <action>
4696 <touch key="home"/>
4697 <action function="page">main</action>
4698 </action>
4699
4700 <action>
4701 <touch key="back"/>
4702 <action function="page">filemanagerlist</action>
4703 </action>
4704 </page>
4705
4706 <page name="choosedestinationfolder">
4707 <template name="page"/>
4708
4709 <template name="statusbar"/>
4710
4711 <text style="text_m">
4712 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004713 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004714 </text>
4715
4716 <fileselector>
4717 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4718 <text>%tw_file_location2%</text>
4719 <filter folders="1" files="0"/>
4720 <path name="tw_file_location2" default="/"/>
4721 <data name="tw_filename2"/>
4722 <selection name="tw_selection2"/>
4723 </fileselector>
4724
4725 <button>
4726 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4727 <highlight color="%highlight_color%"/>
4728 <image resource="q_btn_folder"/>
4729 <actions>
4730 <action function="set">tw_fm_text2=to</action>
4731 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4732 <action function="set">tw_include_text3=1</action>
4733 <action function="set">tw_back=filemanageroptions</action>
4734 <action function="page">filemanagerconfirm</action>
4735 </actions>
4736 </button>
4737
4738 <action>
4739 <touch key="home"/>
4740 <action function="page">main</action>
4741 </action>
4742
4743 <action>
4744 <touch key="back"/>
4745 <action function="page">filemanageroptions</action>
4746 </action>
4747 </page>
4748
4749 <page name="filemanagerrenamefile">
4750 <template name="page"/>
4751
4752 <template name="statusbar"/>
4753
4754 <text style="text_m">
4755 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004756 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004757 </text>
4758
4759 <text style="text_m_accent">
4760 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004761 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004762 </text>
4763
4764 <input>
4765 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
4766 <text>%tw_filemanager_rename%</text>
4767 <data name="tw_filemanager_rename"/>
4768 <restrict minlen="1" maxlen="128"/>
4769 <actions>
4770 <action function="set">tw_fm_text2=to</action>
4771 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4772 <action function="set">tw_include_text3=1</action>
4773 <action function="set">tw_back=filemanageroptions</action>
4774 <action function="page">filemanagerconfirm</action>
4775 </actions>
4776 </input>
4777
4778 <fill color="%accent_color%">
4779 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
4780 </fill>
4781
4782 <button style="main_button_half_height">
4783 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004784 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004785 <action function="page">filemanageroptions</action>
4786 </button>
4787
4788 <template name="keyboardtemplate"/>
4789
4790 <action>
4791 <touch key="home"/>
4792 <action function="page">main</action>
4793 </action>
4794
4795 <action>
4796 <touch key="back"/>
4797 <action function="page">filemanageroptions</action>
4798 </action>
4799 </page>
4800
4801 <page name="filemanagerrenamefolder">
4802 <template name="page"/>
4803
4804 <template name="statusbar"/>
4805
4806 <text style="text_m">
4807 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004808 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004809 </text>
4810
4811 <text style="text_m_accent">
4812 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004813 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004814 </text>
4815
4816 <input>
4817 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
4818 <text>%tw_filemanager_rename%</text>
4819 <data name="tw_filemanager_rename"/>
4820 <restrict minlen="1" maxlen="128"/>
4821 <actions>
4822 <action function="set">tw_fm_text2=to</action>
4823 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4824 <action function="set">tw_include_text3=1</action>
4825 <action function="set">tw_back=filemanageroptions</action>
4826 <action function="page">filemanagerconfirm</action>
4827 </actions>
4828 </input>
4829
4830 <fill color="%accent_color%">
4831 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4832 </fill>
4833
4834 <button style="main_button_half_height">
4835 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004836 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004837 <action function="page">filemanageroptions</action>
4838 </button>
4839
4840 <template name="keyboardtemplate"/>
4841
4842 <action>
4843 <touch key="home"/>
4844 <action function="page">main</action>
4845 </action>
4846
4847 <action>
4848 <touch key="back"/>
4849 <action function="page">filemanageroptions</action>
4850 </action>
4851 </page>
4852
4853 <page name="filemanagerchmod">
4854 <template name="page"/>
4855
4856 <template name="statusbar"/>
4857
4858 <text style="text_m">
4859 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004860 <text>{@fm_hdr=File Manager} &gt; {@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004861 </text>
4862
4863 <text style="text_m_accent">
4864 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004865 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004866 </text>
4867
4868 <input>
4869 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
4870 <text>%tw_filemanager_rename%</text>
4871 <data name="tw_filemanager_rename"/>
4872 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4873 <actions>
4874 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4875 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4876 <action function="set">tw_back=filemanageroptions</action>
4877 <action function="page">filemanagerconfirm</action>
4878 </actions>
4879 </input>
4880
4881 <fill color="%accent_color%">
4882 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4883 </fill>
4884
4885 <button style="main_button_half_height">
4886 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004887 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004888 <action function="page">filemanageroptions</action>
4889 </button>
4890
4891 <template name="keyboardtemplate"/>
4892
4893 <action>
4894 <touch key="home"/>
4895 <action function="page">main</action>
4896 </action>
4897
4898 <action>
4899 <touch key="back"/>
4900 <action function="page">filemanageroptions</action>
4901 </action>
4902 </page>
4903
4904 <page name="filemanagerconfirm">
4905 <template name="page"/>
4906
4907 <template name="statusbar"/>
4908
4909 <text style="text_m">
4910 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004911 <text>{@fm_hdr=File Manager} &gt; {@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004912 </text>
4913
4914 <text style="text_m_accent">
4915 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4916 <text>%tw_fm_text1%</text>
4917 </text>
4918
4919 <text style="text_m">
4920 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4921 <text>%tw_filename1%</text>
4922 </text>
4923
4924 <text style="text_m_accent">
4925 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4926 <text>%tw_fm_text2%</text>
4927 </text>
4928
4929 <text style="text_m">
4930 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4931 <text>%tw_fm_text3%</text>
4932 </text>
4933
4934 <text style="text_m">
4935 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004936 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004937 </text>
4938
4939 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004940 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004941 <action function="page">filemanageraction</action>
4942 </slider>
4943
4944 <action>
4945 <touch key="back"/>
4946 <action function="page">%tw_back%</action>
4947 </action>
4948
4949 <action>
4950 <touch key="home"/>
4951 <action function="page">main</action>
4952 </action>
4953 </page>
4954
4955 <page name="filemanageraction">
4956 <template name="page"/>
4957
4958 <template name="statusbar"/>
4959
4960 <text style="text_m">
4961 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004962 <text>{@fm_hdr=File Manager} &gt; %tw_fm_text1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004963 </text>
4964
4965 <template name="console"/>
4966
4967 <template name="progress_bar"/>
4968
4969 <action>
4970 <conditions>
4971 <condition var1="tw_operation_state" var2="1"/>
4972 <condition var1="tw_operation_status" var2="0"/>
4973 </conditions>
4974 <actions>
4975 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004976 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004977 <action function="page">action_complete</action>
4978 </actions>
4979 </action>
4980
4981 <action>
4982 <conditions>
4983 <condition var1="tw_operation_state" var2="1"/>
4984 <condition var1="tw_operation_status" op="!=" var2="0"/>
4985 </conditions>
4986 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004987 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004988 <action function="page">action_complete</action>
4989 </actions>
4990 </action>
4991
4992 <action>
4993 <condition var1="tw_include_text3" var2="0"/>
4994 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4995 </action>
4996
4997 <action>
4998 <condition var1="tw_include_text3" var2="1"/>
4999 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
5000 </action>
5001 </page>
5002
5003 <page name="decrypt">
5004 <template name="page"/>
5005
5006 <template name="statusbar"/>
5007
5008 <action>
5009 <condition var1="tw_crypto_pwtype" var2="2"/>
5010 <action function="page">decrypt_pattern</action>
5011 </action>
5012
5013 <text style="text_m">
5014 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005015 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005016 </text>
5017
5018 <text style="text_m_accent">
5019 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005020 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005021 </text>
5022
5023 <input>
5024 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5025 <text>%tw_crypto_display%</text>
5026 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
5027 <restrict minlen="1" maxlen="254"/>
5028 <action function="page">trydecrypt</action>
5029 </input>
5030
5031 <fill color="%accent_color%">
5032 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5033 </fill>
5034
5035 <fill color="%text_fail_color%">
5036 <condition var1="tw_password_fail" var2="1"/>
5037 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5038 </fill>
5039
5040 <text style="text_m_fail">
5041 <condition var1="tw_password_fail" var2="1"/>
5042 <placement x="%col1_x_left%" y="%row3_input_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08005043 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005044 </text>
5045
5046 <button style="main_button_half_height">
z31s1g608d7ff2016-01-18 19:47:25 +01005047 <placement x="%col1_x_left%" y="%row4_y%"/>
5048 <text>{@sel_lang_btn=Select Language}</text>
5049 <action function="page">settings_language</action>
5050 </button>
5051
5052 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01005053 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005054 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005055 <actions>
5056 <action function="set">tw_page_done=1</action>
5057 <action function="page">main</action>
5058 </actions>
5059 </button>
5060
5061 <template name="keyboardtemplate"/>
5062 </page>
5063
5064 <page name="decrypt_pattern">
5065 <template name="page"/>
5066
5067 <template name="statusbar"/>
5068
Aleksa Saraib25a1832015-12-31 17:36:00 +01005069 <action>
5070 <action function="set">tw_gui_pattern_grid_size=3</action>
5071 </action>
5072
z31s1g28f0a922015-11-07 18:50:22 +01005073 <text style="text_m">
5074 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005075 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005076 </text>
5077
5078 <text style="text_m_accent">
Aleksa Saraib25a1832015-12-31 17:36:00 +01005079 <condition var1="tw_password_fail" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01005080 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005081 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005082 </text>
5083
Aleksa Saraib25a1832015-12-31 17:36:00 +01005084 <text style="text_m_fail">
5085 <condition var1="tw_password_fail" var2="1"/>
5086 <placement x="%center_x%" y="%row5_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08005087 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005088 </text>
5089
z31s1g28f0a922015-11-07 18:50:22 +01005090 <text style="text_m">
5091 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005092 <text>{@back_cancel=Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005093 </text>
5094
5095 <patternpassword>
5096 <placement x="%pattern_x%" y="%row2_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005097 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
5098 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
5099 <data name="tw_crypto_password"/>
5100 <action function="page">trydecrypt</action>
5101 </patternpassword>
5102
5103 <fill color="#000000">
5104 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5105 </fill>
5106
5107 <button>
5108 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5109 <image resource="back"/>
5110 <condition var1="tw_busy" var2="0"/>
5111 <actions>
5112 <action function="set">tw_page_done=1</action>
5113 <action function="page">main</action>
5114 </actions>
5115 </button>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005116
5117 <button>
5118 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5119 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5120 <image resource="grid_less"/>
5121 <action function="set">tw_gui_pattern_grid_size=3</action>
5122 </button>
5123
5124 <button>
5125 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5126 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5127 <image resource="grid_less"/>
5128 <action function="set">tw_gui_pattern_grid_size=3</action>
5129 </button>
5130
5131 <button>
5132 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5133 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5134 <image resource="grid_less"/>
5135 <action function="set">tw_gui_pattern_grid_size=4</action>
5136 </button>
5137
5138 <button>
5139 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5140 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5141 <image resource="grid_less"/>
5142 <action function="set">tw_gui_pattern_grid_size=5</action>
5143 </button>
5144
5145 <button>
5146 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5147 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5148 <image resource="grid_more"/>
5149 <action function="set">tw_gui_pattern_grid_size=4</action>
5150 </button>
5151
5152 <button>
5153 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5154 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5155 <image resource="grid_more"/>
5156 <action function="set">tw_gui_pattern_grid_size=5</action>
5157 </button>
5158
5159 <button>
5160 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5161 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5162 <image resource="grid_more"/>
5163 <action function="set">tw_gui_pattern_grid_size=6</action>
5164 </button>
5165
5166 <button>
5167 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5168 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5169 <image resource="grid_more"/>
5170 <action function="set">tw_gui_pattern_grid_size=6</action>
5171 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005172 </page>
5173
5174 <page name="trydecrypt">
5175 <template name="page"/>
5176
5177 <template name="statusbar"/>
5178
5179 <text style="text_m">
5180 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005181 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005182 </text>
5183
5184 <template name="console"/>
5185
5186 <template name="progress_bar"/>
5187
5188 <action>
5189 <action function="decrypt"/>
5190 </action>
5191
5192 <action>
5193 <conditions>
5194 <condition var1="tw_operation_state" var2="1"/>
5195 <condition var1="tw_operation_status" op="!=" var2="0"/>
5196 </conditions>
5197 <actions>
5198 <action function="set">tw_password_fail=1</action>
5199 <action function="page">decrypt</action>
5200 </actions>
5201 </action>
5202
5203 <action>
5204 <conditions>
5205 <condition var1="tw_operation_state" var2="1"/>
5206 <condition var1="tw_operation_status" op="=" var2="0"/>
5207 </conditions>
5208 <actions>
5209 <action function="set">tw_page_done=1</action>
5210 <action function="page">main</action>
5211 </actions>
5212 </action>
5213 </page>
5214
z31s1g28f0a922015-11-07 18:50:22 +01005215 <page name="terminalcommand">
z31s1g56189522016-01-13 19:12:40 +01005216 <terminal>
5217 <condition var1="tw_hide_kb" var2="0"/>
5218 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_s_height%"/>
5219 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005220
z31s1g56189522016-01-13 19:12:40 +01005221 <terminal>
5222 <condition var1="tw_hide_kb" var2="1"/>
5223 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_l_height%"/>
5224 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005225
z31s1g56189522016-01-13 19:12:40 +01005226 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005227
5228 <template name="keyboardtemplate"/>
5229
z31s1g608d7ff2016-01-18 19:47:25 +01005230 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01005231 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01005232 </fill>
z31s1g56189522016-01-13 19:12:40 +01005233
z31s1g608d7ff2016-01-18 19:47:25 +01005234 <button>
z31s1g56189522016-01-13 19:12:40 +01005235 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5236 <image resource="back" />
5237 <condition var1="tw_busy" var2="0" />
5238 <actions>
5239 <action function="set">tw_hide_kb=0</action>
5240 <action function="key">back</action>
5241 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005242 </button>
z31s1g56189522016-01-13 19:12:40 +01005243
z31s1g608d7ff2016-01-18 19:47:25 +01005244 <button>
z31s1g56189522016-01-13 19:12:40 +01005245 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5246 <image resource="home" />
5247 <condition var1="tw_busy" var2="0" />
5248 <actions>
5249 <action function="set">tw_hide_kb=0</action>
5250 <action function="key">home</action>
5251 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005252 </button>
z31s1g56189522016-01-13 19:12:40 +01005253
z31s1g608d7ff2016-01-18 19:47:25 +01005254 <button>
z31s1g56189522016-01-13 19:12:40 +01005255 <condition var1="tw_hide_kb" var2="0"/>
5256 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5257 <image resource="kb_hide" />
5258 <condition var1="tw_busy" var2="0" />
5259 <actions>
5260 <action function="set">tw_hide_kb=1</action>
5261 <action function="page">terminalcommand</action>
5262 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005263 </button>
z31s1g56189522016-01-13 19:12:40 +01005264
z31s1g608d7ff2016-01-18 19:47:25 +01005265 <button>
z31s1g56189522016-01-13 19:12:40 +01005266 <condition var1="tw_hide_kb" var2="1"/>
5267 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5268 <image resource="kb_show" />
5269 <condition var1="tw_busy" var2="0" />
5270 <actions>
5271 <action function="set">tw_hide_kb=0</action>
5272 <action function="page">terminalcommand</action>
5273 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005274 </button>
z31s1g56189522016-01-13 19:12:40 +01005275
z31s1g28f0a922015-11-07 18:50:22 +01005276 <action>
5277 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005278 <actions>
5279 <action function="set">tw_hide_kb=0</action>
5280 <action function="page">main</action>
5281 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005282 </action>
5283
5284 <action>
5285 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005286 <actions>
5287 <action function="set">tw_hide_kb=0</action>
5288 <action function="page">advanced</action>
5289 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005290 </action>
z31s1g56189522016-01-13 19:12:40 +01005291
z31s1g608d7ff2016-01-18 19:47:25 +01005292 <action>
z31s1g56189522016-01-13 19:12:40 +01005293 <touch key="power+voldown" />
5294 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01005295 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005296 </page>
5297
5298 <page name="sideload">
5299 <template name="page"/>
5300
5301 <template name="statusbar"/>
5302
5303 <text style="text_m">
5304 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005305 <text>{@install_hdr=Install} &gt; {@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005306 </text>
5307
5308 <text style="text_m_accent">
5309 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005310 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005311 </text>
5312
5313 <checkbox>
5314 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005315 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005316 <data variable="tw_wipe_dalvik"/>
5317 </checkbox>
5318
5319 <checkbox>
5320 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005321 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005322 <data variable="tw_wipe_cache"/>
5323 </checkbox>
5324
5325 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005326 <text>{@swipe_sideload= Start}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005327 <actions>
5328 <action function="set">tw_back=install_type</action>
5329 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005330 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5331 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5332 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005333 <action function="set">tw_has_cancel=1</action>
5334 <action function="set">tw_show_reboot=1</action>
5335 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5336 <action function="page">action_page</action>
5337 </actions>
5338 </slider>
5339
5340 <action>
5341 <touch key="home"/>
5342 <action function="page">main</action>
5343 </action>
5344
5345 <action>
5346 <touch key="back"/>
5347 <action function="page">install_type</action>
5348 </action>
5349 </page>
5350
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005351 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005352 <template name="page"/>
5353
5354 <template name="statusbar"/>
5355
5356 <text style="text_m">
5357 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005358 <text>{@advanced_hdr=Advanced} &gt; {@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005359 </text>
5360
5361 <text style="text_m_accent">
5362 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005363 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005364 </text>
5365
z31s1g28f0a922015-11-07 18:50:22 +01005366 <text style="text_m_fail">
5367 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005368 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005369 </text>
5370
5371 <text style="text_m_fail">
5372 <placement x="%center_x%" y="%row7a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005373 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005374 </text>
5375
5376 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005377 <text>{@swipe_fix_contexts= Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005378 <actions>
5379 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005380 <action function="set">tw_action=fixcontexts</action>
5381 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5382 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005383 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005384 <action function="set">tw_show_reboot=1</action>
5385 <action function="page">action_page</action>
5386 </actions>
5387 </slider>
5388
5389 <action>
5390 <touch key="home"/>
5391 <action function="page">main</action>
5392 </action>
5393
5394 <action>
5395 <touch key="back"/>
5396 <action function="page">advanced</action>
5397 </action>
5398 </page>
5399
5400 <page name="installsu">
5401 <template name="page"/>
5402
5403 <template name="statusbar"/>
5404
5405 <text style="text_m">
5406 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005407 <text>{@reboot_hdr=Reboot} &gt; {@su_hdr=SuperSU Check}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005408 </text>
5409
5410 <text style="text_m_accent">
5411 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005412 <text>{@su_note1=Your device does not appear to be rooted.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005413 </text>
5414
5415 <text style="text_m">
5416 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005417 <text>{@su_note2=Install SuperSU now?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005418 </text>
5419
5420 <text style="text_m">
5421 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005422 <text>{@su_note3=This will root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005423 </text>
5424
5425 <button style="main_button_full_width">
5426 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005427 <text>{@su_cancel=Do not Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005428 <action function="set">tw_page_done=1</action>
5429 </button>
5430
5431 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005432 <text>{@swipe_su_install= Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005433 <actions>
5434 <action function="set">tw_action=installsu</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005435 <action function="set">tw_action_text1={@su_installing=Installing SuperSU}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005436 <action function="set">tw_action_text2=</action>
5437 <action function="page">singleaction_page</action>
5438 </actions>
5439 </slider>
5440 </page>
5441
5442 <page name="slideout">
5443 <fill color="%background_color%">
5444 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5445 </fill>
5446
5447 <console>
5448 <placement x="%indent%" y="%row1_y%" w="%content_width%" h="%slideout_height%"/>
5449 </console>
5450
5451 <fill color="%fileselector_linecolor%">
5452 <placement x="%indent%" y="row1_y" w="%content_width%" h="input_line_width" placement="1"/>
5453 </fill>
5454
5455 <fill color="%fileselector_linecolor%">
5456 <placement x="%indent%" y="row15a_y" w="%content_width%" h="input_line_width"/>
5457 </fill>
5458
5459 <button>
5460 <fill color="%transparent%"/>
5461 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5462 <action function="overlay"/>
5463 </button>
5464
5465 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005466 <touch key="power"/>
5467 <action function="togglebacklight"/>
5468 </action>
5469
5470 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005471 <touch key="power+voldown"/>
5472 <action function="screenshot"/>
5473 </action>
5474 </page>
5475
5476 <page name="select_storage">
5477 <template name="page"/>
5478
5479 <template name="statusbar"/>
5480
5481 <text style="text_m">
5482 <placement x="%col1_x_left%" y="%row1_header_y%"/>
5483 <text>%tw_storagetext%</text>
5484 </text>
5485
5486 <partitionlist style="partitionlist_headerless_rb">
5487 <data name="tw_storage_path"/>
5488 <listtype name="storage"/>
5489 </partitionlist>
5490
5491 <button>
5492 <placement x="%btn4_col2_x%" y="%row11_y%"/>
5493 <highlight color="%highlight_color%"/>
5494 <image resource="q_btn_refresh"/>
5495 <actions>
5496 <action function="refreshsizes"/>
5497 <action function="page">select_storage</action>
5498 </actions>
5499 </button>
5500
5501 <button>
5502 <placement x="%btn4_col3_x%" y="%row11_y%"/>
5503 <highlight color="%highlight_color%"/>
5504 <image resource="q_btn_accept"/>
5505 <actions>
5506 <action function="set">tw_clear_destination=%tw_back%</action>
5507 <action function="page">clear_vars</action>
5508 </actions>
5509 </button>
5510
5511 <action>
5512 <touch key="power+voldown"/>
5513 <action function="screenshot"/>
5514 </action>
5515 </page>
5516 </pages>
5517</recovery>