blob: a6b38a25ff1005ac2cbfab68eab8b1e148373367 [file] [log] [blame]
z31s1g28f0a922015-11-07 18:50:22 +01001<?xml version="1.0"?>
2<recovery>
3 <styles>
4 <style name="text_l">
5 <font resource="font_l" color="%text_color%"/>
6 </style>
7
8 <style name="text_m">
9 <font resource="font_m" color="%text_color%"/>
10 </style>
11
12 <style name="text_m_accent">
13 <font resource="font_m" color="%accent_color%"/>
14 </style>
15
16 <style name="text_m_fail">
17 <font resource="font_m" color="%text_fail_color%"/>
18 </style>
19
20 <style name="text_s">
21 <font resource="font_s" color="%text_color%"/>
22 </style>
23
24 <style name="input">
25 <background color="%background_color%"/>
26 <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/>
27 <font resource="font_m" color="%text_color%"/>
28 </style>
29
30 <style name="checkbox">
31 <font resource="font_m" color="%text_color%"/>
32 <image checked="checkbox_true" unchecked="checkbox_false"/>
33 </style>
34
35 <style name="radiobutton">
36 <font resource="font_m" color="%text_color%"/>
37 <image checked="radio_true" unchecked="radio_false"/>
38 </style>
39
40 <style name="main_button">
41 <highlight color="%highlight_color%"/>
42 <font resource="font_l" color="%text_button_color%"/>
43 <image resource="main_button"/>
44 </style>
45
46 <style name="main_button_m">
47 <highlight color="%highlight_color%"/>
48 <font resource="font_m" color="%text_button_color%"/>
49 <image resource="main_button"/>
50 </style>
51
52 <style name="main_button_half_width">
53 <highlight color="%highlight_color%"/>
54 <font resource="font_m" color="%text_button_color%"/>
55 <image resource="main_button_half_width"/>
56 </style>
57
58 <style name="main_button_half_width_low">
59 <highlight color="%highlight_color%"/>
60 <font resource="font_m" color="%text_button_color%"/>
61 <image resource="main_button_half_width_low"/>
62 </style>
63
64 <style name="button_third_width">
65 <highlight color="%highlight_color%"/>
66 <font resource="font_m" color="%text_button_color%"/>
67 <image resource="tab_3"/>
68 </style>
69
70 <style name="button_quarter_width">
71 <highlight color="%highlight_color%"/>
72 <font resource="font_m" color="%text_button_color%"/>
73 <image resource="tab_4"/>
74 </style>
75
76 <style name="sort_asc">
77 <highlight color="%highlight_color%"/>
78 <font resource="font_m" color="%text_button_color%"/>
79 <image resource="sort_asc"/>
80 </style>
81
82 <style name="sort_desc">
83 <highlight color="%highlight_color%"/>
84 <font resource="font_m" color="%text_button_color%"/>
85 <image resource="sort_desc"/>
86 </style>
87
88 <style name="sort_empty">
89 <highlight color="%highlight_color%"/>
90 <font resource="font_m" color="%text_button_color%"/>
91 <image resource="sort_empty"/>
92 </style>
93
94 <style name="fab">
95 <highlight color="%highlight_color%"/>
96 <placement x="%indent_right%" y="%row21a_y%" placement="1"/>
97 <font resource="font_m" color="%button_text_color%"/>
98 </style>
99
100 <style name="tab">
101 <highlight color="%highlight_color%"/>
102 <fill color="%accent_color%"/>
103 <font resource="font_s" color="%text_button_color%"/>
104 </style>
105
106 <style name="console">
107 <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
108 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
109 <font resource="fixed"/>
110 </style>
111
112 <style name="fileselector">
113 <highlight color="%fileselector_highlight_color%"/>
114 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
115 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
116 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
117 <sort name="tw_gui_sort_order"/>
118 <icon folder="folder" file="file"/>
119 <background color="%background_color%"/>
120 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
121 </style>
122
123 <style name="listbox">
124 <highlight color="%fileselector_highlight_color%"/>
125 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
126 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
127 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
128 <icon selected="radio_true" unselected="radio_false"/>
129 <background color="%background_color%"/>
130 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
131 </style>
132
133 <style name="scrolllist">
134 <background color="%background_color%"/>
135 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/>
136 </style>
137
138 <style name="partitionlist">
139 <highlight color="%fileselector_highlight_color%"/>
140 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
141 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
142 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
143 <icon selected="checkbox_true" unselected="checkbox_false"/>
144 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
145 <background color="%background_color%"/>
146 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
147 </style>
148
149 <style name="partitionlist_storage">
150 <highlight color="%fileselector_highlight_color%"/>
151 <placement x="%dialog_content_x%" y="%row4_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
152 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
153 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
154 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
155 <icon selected="radio_true" unselected="radio_false"/>
156 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
157 <background color="%background_color%"/>
158 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
159 </style>
160
161 <style name="slider">
162 <placement x="%col2_x_right%" y="%row17a_y%"/>
163 <font resource="font_m" color="%text_color%"/>
164 <resource base="slider" used="slider_used" touch="slider_touch"/>
165 </style>
166
167 <style name="slider_centered">
168 <placement x="%center_x%" y="%row17a_y%"/>
169 <font resource="font_m" color="%text_color%"/>
170 <resource base="slider" used="slider_used" touch="slider_touch"/>
171 </style>
172
173 <style name="slidervalue">
174 <resource handle="handle"/>
175 <font resource="font_m" color="%text_color%"/>
176 <colors line="%fileselector_linecolor%"/>
177 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
178 </style>
179 </styles>
180
181 <pages>
182 <page name="main">
183 <action>
184 <actions>
185 <action function="set">tw_clear_destination=main2</action>
186 <action function="page">clear_vars</action>
187 </actions>
188 </action>
189 </page>
190
191 <page name="main2">
192 <template name="page"/>
193
194 <text style="text_l">
195 <placement x="%col1_x_header%" y="%row3_header_y%"/>
196 <text>Team Win Recovery Project</text>
197 </text>
198
199 <text style="text_m">
200 <condition var1="tw_no_cpu_temp" var2="0"/>
201 <placement x="%col1_x_header%" y="%row4_header_y%"/>
202 <text>%tw_version%</text>
203 </text>
204
205 <button style="main_button">
206 <placement x="%col1_x_left%" y="%row2_y%"/>
207 <text>Install</text>
208 <actions>
209 <action function="queueclear"/>
210 <action function="set">tw_selectimage=0</action>
211 <action function="page">install</action>
212 </actions>
213 </button>
214
215 <button style="main_button">
216 <placement x="%center_x%" y="%row2_y%"/>
217 <text>Wipe</text>
218 <action function="page">wipe</action>
219 </button>
220
221 <button style="main_button">
222 <placement x="%col1_x_left%" y="%row6a_y%"/>
223 <text>Backup</text>
224 <action function="page">backup</action>
225 </button>
226
227 <button style="main_button">
228 <placement x="%center_x%" y="%row6a_y%"/>
229 <text>Restore</text>
230 <action function="page">restore</action>
231 </button>
232
233 <button style="main_button">
234 <placement x="%col1_x_left%" y="%row11_y%"/>
235 <text>Mount</text>
236 <action function="page">mount</action>
237 </button>
238
239 <button style="main_button">
240 <placement x="%center_x%" y="%row11_y%"/>
241 <text>Settings</text>
242 <action function="page">settings</action>
243 </button>
244
245 <button style="main_button">
246 <placement x="%col1_x_left%" y="%row15a_y%"/>
247 <text>Advanced</text>
248 <action function="page">advanced</action>
249 </button>
250
251 <button style="main_button">
252 <placement x="%center_x%" y="%row15a_y%"/>
253 <text>Reboot</text>
254 <action function="page">reboot</action>
255 </button>
256 </page>
257
258 <page name="install">
259 <template name="page"/>
260
261 <text style="text_l">
262 <condition var1="tw_selectimage" var2="0"/>
263 <placement x="%col1_x_header%" y="%row3_header_y%"/>
264 <text>Install Zip</text>
265 </text>
266
267 <text style="text_l">
268 <condition var1="tw_selectimage" var2="1"/>
269 <placement x="%col1_x_header%" y="%row3_header_y%"/>
270 <text>Install Image</text>
271 </text>
272
273 <text style="text_m">
274 <placement x="%col1_x_header%" y="%row4_header_y%"/>
275 <text>Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
276 </text>
277
278 <template name="sort_options"/>
279
280 <fileselector>
281 <placement x="%col1_x_left%" y="%row1a_y%" w="%fileselector_install_folder_width%" h="%fileselector_install_height%"/>
282 <text>Folders</text>
283 <filter folders="1" files="0"/>
284 <path name="tw_zip_location" default="/sdcard"/>
285 <data name="select"/>
286 </fileselector>
287
288 <fileselector>
289 <condition var1="tw_selectimage" var2="0"/>
290 <placement x="%col2_x_left%" y="%row1a_y%" w="%fileselector_install_width%" h="%fileselector_install_height%"/>
291 <text>%tw_zip_location%</text>
292 <filter extn=".zip" folders="0" files="1"/>
293 <path name="tw_zip_location" default="/sdcard"/>
294 <data name="tw_filename"/>
295 <selection name="tw_file"/>
296 </fileselector>
297
298 <fileselector>
299 <condition var1="tw_selectimage" var2="1"/>
300 <placement x="%col2_x_left%" y="%row1a_y%" w="%fileselector_install_width%" h="%fileselector_install_height%"/>
301 <text>%tw_zip_location%</text>
302 <filter extn=".img" folders="0" files="1"/>
303 <path name="tw_zip_location" default="/sdcard"/>
304 <data name="tw_filename"/>
305 <selection name="tw_file"/>
306 </fileselector>
307
308 <button style="main_button_half_width_low">
309 <condition var1="tw_selectimage" var2="0"/>
310 <placement x="%col_button_right%" y="%row13a_y%"/>
311 <text>Install Image</text>
312 <actions>
313 <action function="set">tw_selectimage=1</action>
314 <action function="page">install</action>
315 </actions>
316 </button>
317
318 <button style="main_button_half_width_low">
319 <condition var1="tw_selectimage" var2="1"/>
320 <placement x="%col_button_right%" y="%row13a_y%"/>
321 <text>Install Zip</text>
322 <actions>
323 <action function="set">tw_selectimage=0</action>
324 <action function="page">install</action>
325 </actions>
326 </button>
327
328 <button style="main_button_half_width_low">
329 <placement x="%col_button_right%" y="%row16a_y%"/>
330 <text>Select Storage</text>
331 <actions>
332 <action function="set">tw_back=install</action>
333 <action function="overlay">select_storage</action>
334 </actions>
335 </button>
336
337 <action>
338 <conditions>
339 <condition var1="tw_selectimage" var2="0"/>
340 <condition var1="tw_filename" op="modified"/>
341 </conditions>
342 <actions>
343 <action function="queuezip"/>
344 <action function="page">flash_confirm</action>
345 </actions>
346 </action>
347
348 <action>
349 <conditions>
350 <condition var1="tw_selectimage" var2="1"/>
351 <condition var1="tw_filename" op="modified"/>
352 </conditions>
353 <action function="page">flashimage_confirm</action>
354 </action>
355
356 <action>
357 <touch key="back"/>
358 <action function="page">main</action>
359 </action>
360
361 <action>
362 <touch key="home"/>
363 <action function="page">main</action>
364 </action>
365 </page>
366
367 <page name="flash_confirm">
368 <template name="page"/>
369
370 <text style="text_l">
371 <placement x="%col1_x_header%" y="%row3_header_y%"/>
372 <text>Install Zip</text>
373 </text>
374
375 <text style="text_m">
376 <placement x="%col1_x_header%" y="%row4_header_y%"/>
377 <text>%tw_zip_queue_count% of max of 10 Files queued</text>
378 </text>
379
380 <text style="text_m_accent">
381 <placement x="%center_x%" y="%row2_y%" placement="5"/>
382 <text>This operation may install incompatible</text>
383 </text>
384
385 <text style="text_m_accent">
386 <placement x="%center_x%" y="%row3_y%" placement="5"/>
387 <text>software and render your device unusable.</text>
388 </text>
389
390 <text style="text_m">
391 <placement x="%center_x%" y="%row5_y%" placement="5"/>
392 <text>Press back to cancel adding this zip.</text>
393 </text>
394
395 <text style="text_m_accent">
396 <placement x="%col1_x_left%" y="%row8_y%"/>
397 <text>Folder:</text>
398 </text>
399
400 <text style="text_m">
401 <placement x="%col1_x_left%" y="%row9_y%"/>
402 <text>%tw_zip_location%</text>
403 </text>
404
405 <text style="text_m_accent">
406 <placement x="%col1_x_left%" y="%row11_y%"/>
407 <text>File:</text>
408 </text>
409
410 <text style="text_m">
411 <placement x="%col1_x_left%" y="%row12_y%"/>
412 <text>%tw_file%</text>
413 </text>
414
415 <text style="text_m_accent">
416 <placement x="%col1_x_right%" y="%row8_y%"/>
417 <text>Options:</text>
418 </text>
419
420 <checkbox>
421 <placement x="%col1_x_right%" y="%row9_y%"/>
422 <text>Zip file signature verification</text>
423 <data variable="tw_signed_zip_verify"/>
424 </checkbox>
425
426 <checkbox>
427 <condition var1="tw_has_injecttwrp" var2="1"/>
428 <placement x="%col1_x_right%" y="%row10a_y%"/>
429 <text>Inject TWRP after install</text>
430 <data variable="tw_inject_after_zip"/>
431 </checkbox>
432
433 <button style="main_button_half_width">
434 <placement x="%col1_x_left%" y="%row15a_y%"/>
435 <text>Add more Zips</text>
436 <action function="page">install</action>
437 </button>
438
439 <button style="main_button_half_width">
440 <placement x="%col2_x_left%" y="%row15a_y%"/>
441 <text>Clear Zip Queue</text>
442 <actions>
443 <action function="queueclear"/>
444 <action function="page">install</action>
445 </actions>
446 </button>
447
448 <slider>
449 <text>Swipe to confirm Flash</text>
450 <action function="flash">flash_zip</action>
451 </slider>
452
453 <action>
454 <touch key="back"/>
455 <actions>
456 <action function="cancelzip"/>
457 <action function="page">install</action>
458 </actions>
459 </action>
460
461 <action>
462 <touch key="home"/>
463 <action function="page">main</action>
464 </action>
465 </page>
466
467 <page name="flash_zip">
468 <template name="page"/>
469
470 <text style="text_l">
471 <placement x="%col1_x_header%" y="%row3_header_y%"/>
472 <text>Install Zip %tw_zip_index% of %tw_zip_queue_count%</text>
473 </text>
474
475 <text style="text_m">
476 <placement x="%col1_x_header%" y="%row4_header_y%"/>
477 <text>%tw_file%</text>
478 </text>
479
480 <template name="console"/>
481
482 <template name="progress_bar"/>
483
484 <action>
485 <condition var1="tw_operation_state" var2="1"/>
486 <action function="page">flash_done</action>
487 </action>
488 </page>
489
490 <page name="flash_done">
491 <template name="page"/>
492
493 <text style="text_l">
494 <placement x="%col1_x_header%" y="%row3_header_y%"/>
495 <text>Install Zip</text>
496 </text>
497
498 <text style="text_m_fail">
499 <condition var1="tw_operation_status" op="!=" var2="0"/>
500 <placement x="%col1_x_header%" y="%row4_header_y%"/>
501 <text>Failed</text>
502 </text>
503
504 <text style="text_m">
505 <condition var1="tw_operation_status" var2="0"/>
506 <placement x="%col1_x_header%" y="%row4_header_y%"/>
507 <text>Successful</text>
508 </text>
509
510 <template name="console"/>
511
512 <button style="main_button_half_width">
513 <placement x="%col2_x_left%" y="%row15a_y%"/>
514 <text>Wipe cache/dalvik</text>
515 <actions>
516 <action function="set">tw_back=flash_done</action>
517 <action function="set">tw_action=wipe</action>
518 <action function="set">tw_action_param=/cache</action>
519 <action function="set">tw_has_action2=1</action>
520 <action function="set">tw_action2=wipe</action>
521 <action function="set">tw_action2_param=dalvik</action>
522 <action function="set">tw_text1=Wipe Cache &amp; Dalvik?</action>
523 <action function="set">tw_action_text1=Wiping Cache &amp; Dalvik...</action>
524 <action function="set">tw_complete_text1=Cache &amp; Dalvik Wipe Complete</action>
525 <action function="set">tw_slider_text=Swipe to Wipe</action>
526 <action function="page">confirm_action</action>
527 </actions>
528 </button>
529
530 <button style="main_button_half_width">
531 <placement x="%center_x%" y="%row15a_y%"/>
532 <text>Reboot System</text>
533 <actions>
534 <action function="set">tw_back=main2</action>
535 <action function="set">tw_action=reboot</action>
536 <action function="set">tw_action_param=system</action>
537 <action function="set">tw_has_action2=0</action>
538 <action function="set">tw_text1=No OS Installed! Are you</action>
539 <action function="set">tw_text2=sure you wish to reboot?</action>
540 <action function="set">tw_text3=</action>
541 <action function="set">tw_text4=</action>
542 <action function="set">tw_action_text1=Rebooting...</action>
543 <action function="set">tw_action_text2=</action>
544 <action function="set">tw_complete_text1=Rebooting...</action>
545 <action function="set">tw_slider_text=Swipe to Reboot</action>
546 <action function="page">rebootcheck</action>
547 </actions>
548 </button>
549
550 <action>
551 <touch key="back"/>
552 <actions>
553 <action function="set">tw_clear_destination=install</action>
554 <action function="page">clear_vars</action>
555 </actions>
556 </action>
557
558 <action>
559 <touch key="home"/>
560 <actions>
561 <action function="set">tw_clear_destination=main2</action>
562 <action function="page">clear_vars</action>
563 </actions>
564 </action>
565 </page>
566
567 <page name="flashimage_confirm">
568 <template name="page"/>
569
570 <text style="text_l">
571 <placement x="%col1_x_header%" y="%row3_header_y%"/>
572 <text>Install Image</text>
573 </text>
574
575 <text style="text_m">
576 <placement x="%col1_x_header%" y="%row4_header_y%"/>
577 <text>Select Target Partition</text>
578 </text>
579
580 <text style="text_m_accent">
581 <placement x="%center_x%" y="%row2_y%" placement="5"/>
582 <text>This operation may install incompatible</text>
583 </text>
584
585 <text style="text_m_accent">
586 <placement x="%center_x%" y="%row3_y%" placement="5"/>
587 <text>software and render your device unusable.</text>
588 </text>
589
590 <text style="text_m">
591 <placement x="%center_x%" y="%row5_y%" placement="5"/>
592 <text>Press back to cancel adding this image.</text>
593 </text>
594
595 <text style="text_m_accent">
596 <placement x="%col1_x_left%" y="%row8_y%"/>
597 <text>Folder:</text>
598 </text>
599
600 <text style="text_m">
601 <placement x="%col1_x_left%" y="%row9_y%"/>
602 <text>%tw_zip_location%</text>
603 </text>
604
605 <text style="text_m_accent">
606 <placement x="%col1_x_left%" y="%row11_y%"/>
607 <text>File:</text>
608 </text>
609
610 <text style="text_m">
611 <placement x="%col1_x_left%" y="%row12_y%"/>
612 <text>%tw_file%</text>
613 </text>
614
615 <partitionlist>
616 <placement x="%col1_x_right%" y="%row7a_y%" w="%content_half_width%" h="%partitionlist_flashimage_height%"/>
617 <icon selected="radio_true" unselected="radio_false"/>
618 <text>Select Partition to Flash Image:</text>
619 <data name="tw_flash_partition"/>
620 <listtype name="flashimg"/>
621 </partitionlist>
622
623 <slider>
624 <text>Swipe to confirm Flash</text>
625 <actions>
626 <action function="set">tw_back=flashimage_confirm</action>
627 <action function="set">tw_action=flashimage</action>
628 <action function="set">tw_has_action2=0</action>
629 <action function="set">tw_action_text1=Flashing Image...</action>
630 <action function="set">tw_action_text2=</action>
631 <action function="set">tw_complete_text1=Image Flashed</action>
632 <action function="page">action_page</action>
633 </actions>
634 <action function="flashimage"/>
635 </slider>
636
637 <action>
638 <touch key="back"/>
639 <actions>
640 <action function="set">tw_clear_destination=install</action>
641 <action function="page">clear_vars</action>
642 </actions>
643 </action>
644
645 <action>
646 <touch key="home"/>
647 <actions>
648 <action function="set">tw_clear_destination=main2</action>
649 <action function="page">clear_vars</action>
650 </actions>
651 </action>
652 </page>
653
654 <page name="clear_vars">
655 <action>
656 <action function="set">tw_operation_state=0</action>
657 <action function="set">tw_text1=</action>
658 <action function="set">tw_text2=</action>
659 <action function="set">tw_text3=</action>
660 <action function="set">tw_text4=</action>
661 <action function="set">tw_action_text1=</action>
662 <action function="set">tw_action_text2=</action>
663 <action function="set">tw_action_param=</action>
664 <action function="set">tw_has_action2=0</action>
665 <action function="set">tw_action2=</action>
666 <action function="set">tw_action2_param=</action>
667 <action function="set">tw_has_cancel=0</action>
668 <action function="set">tw_cancel_action=</action>
669 <action function="set">tw_cancel_param=</action>
670 <action function="set">tw_show_exclamation=0</action>
671 <action function="set">tw_show_reboot=0</action>
672 <action function="page">%tw_clear_destination%</action>
673 </action>
674 </page>
675
676 <page name="confirm_action">
677 <template name="page"/>
678
679 <text style="text_l">
680 <placement x="%col1_x_header%" y="%row3_header_y%"/>
681 <text>Confirm Action</text>
682 </text>
683
684 <text style="text_m">
685 <placement x="%col1_x_header%" y="%row4_header_y%"/>
686 <text/>
687 </text>
688
689 <text style="text_m_accent">
690 <placement x="%center_x%" y="%row2_y%" placement="5"/>
691 <text>%tw_text1%</text>
692 </text>
693
694 <text style="text_m_accent">
695 <placement x="%center_x%" y="%row3_y%" placement="5"/>
696 <text>%tw_text2%</text>
697 </text>
698
699 <text style="text_m">
700 <placement x="%center_x%" y="%row4_y%" placement="5"/>
701 <text>%tw_text3%</text>
702 </text>
703
704 <text style="text_m">
705 <placement x="%center_x%" y="%row5_y%" placement="5"/>
706 <text>%tw_text4%</text>
707 </text>
708
709 <text style="text_m">
710 <placement x="%center_x%" y="%row7_y%" placement="5"/>
711 <text>Press back button to cancel.</text>
712 </text>
713
714 <slider style="slider_centered">
715 <text>%tw_slider_text%</text>
716 <action function="page">action_page</action>
717 </slider>
718
719 <action>
720 <touch key="back"/>
721 <actions>
722 <action function="set">tw_clear_destination=%tw_back%</action>
723 <action function="page">clear_vars</action>
724 </actions>
725 </action>
726
727 <action>
728 <touch key="home"/>
729 <action function="page">main</action>
730 </action>
731 </page>
732
733 <page name="action_page">
734 <template name="page"/>
735
736 <text style="text_l">
737 <placement x="%col1_x_header%" y="%row3_header_y%"/>
738 <text>%tw_action_text1%</text>
739 </text>
740
741 <text style="text_m">
742 <placement x="%col1_x_header%" y="%row4_header_y%"/>
743 <text>%tw_action_text2%</text>
744 </text>
745
746 <template name="console"/>
747
748 <template name="progress_bar"/>
749
750 <button style="main_button_half_width">
751 <condition var1="tw_has_cancel" var2="1"/>
752 <placement x="%col2_x_right%" y="%row15a_y%"/>
753 <text>Cancel</text>
754 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
755 </button>
756
757 <action>
758 <condition var1="tw_operation_state" var2="1"/>
759 <actions>
760 <action function="page">action_complete</action>
761 </actions>
762 </action>
763
764 <action>
765 <condition var1="tw_has_action2" var2="0"/>
766 <actions>
767 <action function="%tw_action%">%tw_action_param%</action>
768 </actions>
769 </action>
770
771 <action>
772 <condition var1="tw_has_action2" var2="1"/>
773 <actions>
774 <action function="%tw_action%">%tw_action_param%</action>
775 <action function="%tw_action2%">%tw_action2_param%</action>
776 </actions>
777 </action>
778 </page>
779
780 <page name="singleaction_page">
781 <template name="page"/>
782
783 <text style="text_l">
784 <placement x="%col1_x_header%" y="%row3_header_y%"/>
785 <text>%tw_action_text1%</text>
786 </text>
787
788 <text style="text_m">
789 <placement x="%col1_x_header%" y="%row4_header_y%"/>
790 <text>%tw_action_text2%</text>
791 </text>
792
793 <template name="console"/>
794
795 <template name="progress_bar"/>
796
797 <action>
798 <condition var1="tw_operation_state" var2="1"/>
799 <actions>
800 <action function="set">tw_page_done=1</action>
801 </actions>
802 </action>
803
804 <action>
805 <condition var1="tw_has_action2" var2="0"/>
806 <actions>
807 <action function="%tw_action%">%tw_action_param%</action>
808 </actions>
809 </action>
810
811 <action>
812 <condition var1="tw_has_action2" var2="1"/>
813 <actions>
814 <action function="%tw_action%">%tw_action_param%</action>
815 <action function="%tw_action2%">%tw_action2_param%</action>
816 </actions>
817 </action>
818 </page>
819
820 <page name="action_complete">
821 <template name="page"/>
822
823 <text style="text_l">
824 <placement x="%col1_x_header%" y="%row3_header_y%"/>
825 <text>%tw_complete_text1%</text>
826 </text>
827
828 <text style="text_m_fail">
829 <condition var1="tw_operation_status" op="!=" var2="0"/>
830 <placement x="%col1_x_header%" y="%row4_header_y%"/>
831 <text>Failed</text>
832 </text>
833
834 <text style="text_m">
835 <condition var1="tw_operation_status" var2="0"/>
836 <placement x="%col1_x_header%" y="%row4_header_y%"/>
837 <text>Successful</text>
838 </text>
839
840 <template name="console"/>
841
842 <button style="main_button_half_width">
843 <placement x="%col2_x_left%" y="%row15a_y%"/>
844 <text>Back</text>
845 <actions>
846 <action function="set">tw_clear_destination=%tw_back%</action>
847 <action function="page">clear_vars</action>
848 </actions>
849 </button>
850
851 <button style="main_button_half_width">
852 <placement x="%center_x%" y="%row15a_y%"/>
853 <text>Reboot System</text>
854 <actions>
855 <action function="set">tw_back=main2</action>
856 <action function="set">tw_action=reboot</action>
857 <action function="set">tw_action_param=system</action>
858 <action function="set">tw_has_action2=0</action>
859 <action function="set">tw_text1=No OS Installed! Are you</action>
860 <action function="set">tw_text2=sure you wish to reboot?</action>
861 <action function="set">tw_text3=</action>
862 <action function="set">tw_text4=</action>
863 <action function="set">tw_action_text1=Rebooting...</action>
864 <action function="set">tw_action_text2=</action>
865 <action function="set">tw_complete_text1=Rebooting...</action>
866 <action function="set">tw_slider_text=Swipe to Reboot</action>
867 <action function="page">rebootcheck</action>
868 </actions>
869 </button>
870
871 <action>
872 <touch key="home"/>
873 <actions>
874 <action function="set">tw_clear_destination=main2</action>
875 <action function="page">clear_vars</action>
876 </actions>
877 </action>
878
879 <action>
880 <touch key="back"/>
881 <actions>
882 <action function="set">tw_clear_destination=%tw_back%</action>
883 <action function="page">clear_vars</action>
884 </actions>
885 </action>
886 </page>
887
888 <page name="filecheck">
889 <action>
890 <action function="fileexists">%tw_filecheck%</action>
891 </action>
892
893 <action>
894 <conditions>
895 <condition var1="tw_operation_state" var2="1"/>
896 <condition var1="tw_operation_status" var2="0"/>
897 </conditions>
898 <actions>
899 <action function="set">tw_fileexists=1</action>
900 <action function="page">%tw_existpage%</action>
901 </actions>
902 </action>
903
904 <action>
905 <conditions>
906 <condition var1="tw_operation_state" var2="1"/>
907 <condition var1="tw_operation_status" var2="1"/>
908 </conditions>
909 <actions>
910 <action function="set">tw_fileexists=0</action>
911 <action function="page">%tw_notexistpage%</action>
912 </actions>
913 </action>
914 </page>
915
916 <page name="rebootcheck">
917 <action>
918 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
919 <action function="reboot">%tw_action_param%</action>
920 </action>
921
922 <action>
923 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
924 <action function="page">confirm_action</action>
925 </action>
926 </page>
927
928 <page name="wipe">
929 <template name="page"/>
930
931 <text style="text_l">
932 <placement x="%col1_x_header%" y="%row3_header_y%"/>
933 <text>Wipe</text>
934 </text>
935
936 <text style="text_m">
937 <placement x="%col1_x_header%" y="%row4_header_y%"/>
938 <text>Factory Reset</text>
939 </text>
940
941 <text style="text_m_accent">
942 <placement x="%center_x%" y="%row2_y%" placement="5"/>
943 <text>Wipes Data, Cache, and Dalvik</text>
944 </text>
945
946 <text style="text_m_accent">
947 <condition var1="tw_has_data_media" var2="1"/>
948 <placement x="%center_x%" y="%row3_y%" placement="5"/>
949 <text>(not including internal storage)</text>
950 </text>
951
952 <text style="text_m_accent">
953 <conditions>
954 <condition var1="tw_has_android_secure" var2="1"/>
955 <condition var1="fileexists" var2="/and-sec"/>
956 </conditions>
957 <placement x="%center_x%" y="%row4_y%" placement="5"/>
958 <text>Android Secure</text>
959 </text>
960
961 <text style="text_m_accent">
962 <condition var1="tw_has_sdext_partition" var2="1"/>
963 <placement x="%center_x%" y="%row5_y%" placement="5"/>
964 <text>SD-EXT</text>
965 </text>
966
967 <text style="text_m">
968 <placement x="%center_x%" y="%row7_y%" placement="5"/>
969 <text>Most of the time this is</text>
970 </text>
971
972 <text style="text_m">
973 <placement x="%center_x%" y="%row8_y%" placement="5"/>
974 <text>the only wipe that you need.</text>
975 </text>
976
977 <text style="text_m">
978 <placement x="%center_x%" y="%row10_y%" placement="5"/>
979 <text>Press back button to cancel.</text>
980 </text>
981
982 <button style="main_button_half_width">
983 <placement x="%col1_x_left%" y="%row15a_y%"/>
984 <text>Advanced Wipe</text>
985 <actions>
986 <action function="set">partitionlisterror=0</action>
987 <action function="page">advancedwipe</action>
988 </actions>
989 </button>
990
991 <button style="main_button_half_width">
992 <condition var1="tw_has_data_media" var2="1"/>
993 <placement x="%col2_x_left%" y="%row15a_y%"/>
994 <text>Format Data</text>
995 <action function="page">formatdata</action>
996 </button>
997
998 <button style="main_button_half_width">
999 <conditions>
1000 <condition var1="tw_is_encrypted" var2="1"/>
1001 <condition var1="tw_has_data_media" var2="0"/>
1002 </conditions>
1003 <placement x="%col2_x_left%" y="%row15a_y%"/>
1004 <text>Wipe Encryption</text>
1005 <actions>
1006 <action function="set">tw_back=wipe</action>
1007 <action function="set">tw_action=wipe</action>
1008 <action function="set">tw_action_param=DATAMEDIA</action>
1009 <action function="set">tw_has_action2=0</action>
1010 <action function="set">tw_text1=Wipe Encryption from Data?</action>
1011 <action function="set">tw_text2=</action>
1012 <action function="set">tw_action_text1=Formatting Data...</action>
1013 <action function="set">tw_complete_text1=Data Format Complete</action>
1014 <action function="set">tw_slider_text=Swipe to Format Data</action>
1015 <action function="page">confirm_action</action>
1016 </actions>
1017 </button>
1018
1019 <slider>
1020 <text>Swipe to Factory Reset</text>
1021 <actions>
1022 <action function="set">tw_back=wipe</action>
1023 <action function="set">tw_action=wipe</action>
1024 <action function="set">tw_action_param=data</action>
1025 <action function="set">tw_action_text1=Factory Reset...</action>
1026 <action function="set">tw_complete_text1=Factory Reset Complete</action>
1027 <action function="page">action_page</action>
1028 </actions>
1029 </slider>
1030
1031 <action>
1032 <touch key="back"/>
1033 <action function="page">main</action>
1034 </action>
1035
1036 <action>
1037 <touch key="home"/>
1038 <action function="page">main</action>
1039 </action>
1040 </page>
1041
1042 <page name="advancedwipe">
1043 <template name="page"/>
1044
1045 <action>
1046 <action function="set">tw_wipe_list=</action>
1047 </action>
1048
1049 <text style="text_l">
1050 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1051 <text>Wipe</text>
1052 </text>
1053
1054 <text style="text_m">
1055 <placement x="%col1_x_header%" y="%row4_header_y%"/>
1056 <text>Advanced Wipe</text>
1057 </text>
1058
1059 <partitionlist>
1060 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1061 <text>Select Partitions to Wipe:</text>
1062 <data name="tw_wipe_list"/>
1063 <listtype name="wipe"/>
1064 </partitionlist>
1065
1066 <text style="text_m_fail">
1067 <condition var1="partitionlisterror" var2="1"/>
1068 <placement x="%col2_x_left%" y="%row14a_y%" placement="5"/>
1069 <text>Invalid partition selection</text>
1070 </text>
1071
1072 <button style="main_button_m">
1073 <placement x="%col1_x_left%" y="%row15a_y%"/>
1074 <text>Repair or Change File System</text>
1075 <actions>
1076 <action function="checkpartitionlist"/>
1077 <action function="page">checkpartitionlist</action>
1078 </actions>
1079 </button>
1080
1081 <slider>
1082 <text>Swipe to Wipe</text>
1083 <actions>
1084 <action function="set">tw_back=advancedwipe</action>
1085 <action function="set">tw_action=wipe</action>
1086 <action function="set">tw_action_param=LIST</action>
1087 <action function="set">tw_text1=Wipe Selected Partition(s)?</action>
1088 <action function="set">tw_action_text1=Wiping Partition(s)...</action>
1089 <action function="set">tw_complete_text1=Wipe Complete</action>
1090 <action function="page">action_page</action>
1091 </actions>
1092 </slider>
1093
1094 <action>
1095 <touch key="home"/>
1096 <action function="page">main</action>
1097 </action>
1098
1099 <action>
1100 <touch key="back"/>
1101 <action function="page">wipe</action>
1102 </action>
1103 </page>
1104
1105 <page name="formatdata">
1106 <template name="page"/>
1107
1108 <text style="text_l">
1109 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1110 <text>Wipe</text>
1111 </text>
1112
1113 <text style="text_m">
1114 <placement x="%col1_x_header%" y="%row4_header_y%"/>
1115 <text>Format Data</text>
1116 </text>
1117
1118 <text style="text_m_fail">
1119 <placement x="%center_x%" y="%row2_y%" placement="5"/>
1120 <text>Format Data will wipe all of your apps, backups, pictures, videos, media, and</text>
1121 </text>
1122
1123 <text style="text_m_fail">
1124 <placement x="%center_x%" y="%row3_y%" placement="5"/>
1125 <text>removes encryption on internal storage.</text>
1126 </text>
1127
1128 <text style="text_m">
1129 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1130 <text>This cannot be undone. Press back to cancel.</text>
1131 </text>
1132
1133 <text style="text_m">
1134 <placement x="%center_x%" y="%row6_y%" placement="5"/>
1135 <text>Type yes to continue.</text>
1136 </text>
1137
1138 <input>
1139 <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="%input_height%"/>
1140 <text>%tw_confirm_formatdata%</text>
1141 <data name="tw_confirm_formatdata"/>
1142 <restrict minlen="3" maxlen="3" allow="yes"/>
1143 <action function="page">formatdata_confirm</action>
1144 </input>
1145
1146 <fill color="%accent_color%">
1147 <placement x="%col1_x_left%" y="row9_y" w="%content_width%" h="input_line_width"/>
1148 </fill>
1149
1150 <template name="keyboardtemplate"/>
1151
1152 <action>
1153 <touch key="home"/>
1154 <action function="page">main</action>
1155 </action>
1156
1157 <action>
1158 <touch key="back"/>
1159 <action function="page">wipe</action>
1160 </action>
1161 </page>
1162
1163 <page name="formatdata_confirm">
1164 <action>
1165 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1166 <actions>
1167 <action function="set">tw_back=formatdata</action>
1168 <action function="set">tw_action=wipe</action>
1169 <action function="set">tw_action_param=DATAMEDIA</action>
1170 <action function="set">tw_action_text1=Formatting Data...</action>
1171 <action function="set">tw_complete_text1=Data Format Complete</action>
1172 <action function="page">action_page</action>
1173 </actions>
1174 </action>
1175
1176 <action>
1177 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1178 <action function="page">formatdata</action>
1179 </action>
1180 </page>
1181
1182 <page name="checkpartitionlist">
1183 <action>
1184 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1185 <actions>
1186 <action function="set">partitionlisterror=0</action>
1187 <action function="getpartitiondetails"/>
1188 <action function="page">partitionoptions</action>
1189 </actions>
1190 </action>
1191
1192 <action>
1193 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1194 <actions>
1195 <action function="set">partitionlisterror=1</action>
1196 <action function="set">tw_wipe_list=</action>
1197 <action function="page">advancedwipe</action>
1198 </actions>
1199 </action>
1200 </page>
1201
1202 <page name="partitionoptions">
1203 <template name="page"/>
1204
1205 <text style="text_l">
1206 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1207 <text>Wipe</text>
1208 </text>
1209
1210 <text style="text_m">
1211 <placement x="%col1_x_header%" y="%row4_header_y%"/>
1212 <text>Partition Options for: %tw_partition_name%</text>
1213 </text>
1214
1215 <text style="text_m_accent">
1216 <placement x="%center_x%" y="%row2_y%" placement="5"/>
1217 <text>Mount Point: %tw_partition_mount_point%</text>
1218 </text>
1219
1220 <text style="text_m_accent">
1221 <placement x="%center_x%" y="%row3_y%" placement="5"/>
1222 <text>Current file system: %tw_partition_file_system%</text>
1223 </text>
1224
1225 <text style="text_m">
1226 <condition var1="tw_partition_is_present" var2="1"/>
1227 <placement x="%col2_x_left%" y="%row5_y%"/>
1228 <text>Present: Yes</text>
1229 </text>
1230
1231 <text style="text_m">
1232 <condition var1="tw_partition_is_present" var2="0"/>
1233 <placement x="%col2_x_left%" y="%row5_y%"/>
1234 <text>Present: No</text>
1235 </text>
1236
1237 <text style="text_m">
1238 <condition var1="tw_partition_removable" var2="1"/>
1239 <placement x="%col1_x_right%" y="%row5_y%"/>
1240 <text>Removable: Yes</text>
1241 </text>
1242
1243 <text style="text_m">
1244 <condition var1="tw_partition_removable" var2="0"/>
1245 <placement x="%col1_x_right%" y="%row5_y%"/>
1246 <text>Removable: No</text>
1247 </text>
1248
1249 <text style="text_m">
1250 <placement x="%col2_x_left%" y="%row7_y%"/>
1251 <text>Size: %tw_partition_size%MB</text>
1252 </text>
1253
1254 <text style="text_m">
1255 <placement x="%col1_x_right%" y="%row7_y%"/>
1256 <text>Used: %tw_partition_used%MB</text>
1257 </text>
1258
1259 <text style="text_m">
1260 <placement x="%col2_x_left%" y="%row9_y%"/>
1261 <text>Free: %tw_partition_free%MB</text>
1262 </text>
1263
1264 <text style="text_m">
1265 <placement x="%col1_x_right%" y="%row9_y%"/>
1266 <text>Backup Size: %tw_partition_backup_size%MB</text>
1267 </text>
1268
1269 <button style="main_button_half_width">
1270 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1271 <placement x="%col1_x_left%" y="%row15a_y%"/>
1272 <text>Resize File System</text>
1273 <actions>
1274 <action function="set">tw_back=partitionoptions</action>
1275 <action function="set">tw_action=resize</action>
1276 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1277 <action function="set">tw_has_action2=1</action>
1278 <action function="set">tw_action2=getpartitiondetails</action>
1279 <action function="set">tw_text1=Resize %tw_partition_name%?</action>
1280 <action function="set">tw_text2=</action>
1281 <action function="set">tw_action_text1=Resizing...</action>
1282 <action function="set">tw_complete_text1=Resize Complete</action>
1283 <action function="set">tw_slider_text=Swipe to Resize</action>
1284 <action function="page">confirm_action</action>
1285 </actions>
1286 </button>
1287
1288 <button style="main_button_half_width">
1289 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1290 <placement x="%col2_x_left%" y="%row15a_y%"/>
1291 <text>Repair File System</text>
1292 <actions>
1293 <action function="set">tw_back=partitionoptions</action>
1294 <action function="set">tw_action=repair</action>
1295 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1296 <action function="set">tw_has_action2=0</action>
1297 <action function="set">tw_text1=Repair %tw_partition_name%?</action>
1298 <action function="set">tw_text2=</action>
1299 <action function="set">tw_action_text1=Repairing...</action>
1300 <action function="set">tw_complete_text1=Repair Complete</action>
1301 <action function="set">tw_slider_text=Swipe to Repair</action>
1302 <action function="page">confirm_action</action>
1303 </actions>
1304 </button>
1305
1306 <button style="main_button_half_width">
1307 <placement x="%center_x%" y="%row15a_y%"/>
1308 <text>Change File System</text>
1309 <action function="page">selectfilesystem</action>
1310 </button>
1311
1312 <action>
1313 <touch key="home"/>
1314 <action function="page">main</action>
1315 </action>
1316
1317 <action>
1318 <touch key="back"/>
1319 <action function="page">advancedwipe</action>
1320 </action>
1321 </page>
1322
1323 <page name="refreshfilesystem">
1324 <action>
1325 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1326 <actions>
1327 <action function="set">partitionlisterror=0</action>
1328 <action function="getpartitiondetails"/>
1329 <action function="page">selectfilesystem</action>
1330 </actions>
1331 </action>
1332
1333 <action>
1334 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1335 <actions>
1336 <action function="set">partitionlisterror=1</action>
1337 <action function="set">tw_wipe_list=</action>
1338 <action function="page">advancedwipe</action>
1339 </actions>
1340 </action>
1341 </page>
1342
1343 <page name="selectfilesystem">
1344 <template name="page"/>
1345
1346 <text style="text_l">
1347 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1348 <text>Wipe</text>
1349 </text>
1350
1351 <text style="text_m">
1352 <placement x="%col1_x_header%" y="%row4_header_y%"/>
1353 <text>Change File System for: %tw_partition_name%</text>
1354 </text>
1355
1356 <text style="text_m_accent">
1357 <placement x="%center_x%" y="%row2_y%" placement="5"/>
1358 <text>Mount Point: %tw_partition_mount_point%</text>
1359 </text>
1360
1361 <text style="text_m_accent">
1362 <placement x="%center_x%" y="%row3_y%" placement="5"/>
1363 <text>Current file system: %tw_partition_file_system%</text>
1364 </text>
1365
1366 <text style="text_m_fail">
1367 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1368 <text>Some ROMs or kernels may not support some</text>
1369 </text>
1370
1371 <text style="text_m_fail">
1372 <placement x="%center_x%" y="%row6_y%" placement="5"/>
1373 <text>file systems. Proceed with caution!</text>
1374 </text>
1375
1376 <button style="main_button_half_width">
1377 <condition var1="tw_partition_ext" op="=" var2="1"/>
1378 <placement x="%col1_x_left%" y="%row11_y%"/>
1379 <text>EXT2</text>
1380 <actions>
1381 <action function="set">tw_back=refreshfilesystem</action>
1382 <action function="set">tw_action=changefilesystem</action>
1383 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1384 <action function="set">tw_action_new_file_system=ext2</action>
1385 <action function="set">tw_has_action2=0</action>
1386 <action function="set">tw_text1=Change %tw_partition_name% to EXT2?</action>
1387 <action function="set">tw_text2=</action>
1388 <action function="set">tw_action_text1=Formatting...</action>
1389 <action function="set">tw_complete_text1=Format Complete</action>
1390 <action function="set">tw_slider_text=Swipe to Change</action>
1391 <action function="page">confirm_action</action>
1392 </actions>
1393 </button>
1394
1395 <button style="main_button_half_width">
1396 <condition var1="tw_partition_ext" op="=" var2="1"/>
1397 <placement x="%col2_x_left%" y="%row11_y%"/>
1398 <text>EXT3</text>
1399 <actions>
1400 <action function="set">tw_back=refreshfilesystem</action>
1401 <action function="set">tw_action=changefilesystem</action>
1402 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1403 <action function="set">tw_action_new_file_system=ext3</action>
1404 <action function="set">tw_has_action2=0</action>
1405 <action function="set">tw_text1=Change %tw_partition_name% to EXT3?</action>
1406 <action function="set">tw_text2=</action>
1407 <action function="set">tw_action_text1=Formatting...</action>
1408 <action function="set">tw_complete_text1=Format Complete</action>
1409 <action function="set">tw_slider_text=Swipe to Change</action>
1410 <action function="page">confirm_action</action>
1411 </actions>
1412 </button>
1413
1414 <button style="main_button_half_width">
1415 <condition var1="tw_partition_ext" op="=" var2="1"/>
1416 <placement x="%center_x%" y="%row11_y%"/>
1417 <text>EXT4</text>
1418 <actions>
1419 <action function="set">tw_back=refreshfilesystem</action>
1420 <action function="set">tw_action=changefilesystem</action>
1421 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1422 <action function="set">tw_action_new_file_system=ext4</action>
1423 <action function="set">tw_has_action2=0</action>
1424 <action function="set">tw_text1=Change %tw_partition_name% to EXT4?</action>
1425 <action function="set">tw_text2=</action>
1426 <action function="set">tw_action_text1=Formatting...</action>
1427 <action function="set">tw_complete_text1=Format Complete</action>
1428 <action function="set">tw_slider_text=Swipe to Change</action>
1429 <action function="page">confirm_action</action>
1430 </actions>
1431 </button>
1432
1433 <button style="main_button_half_width">
1434 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1435 <placement x="%col2_x_right%" y="%row11_y%"/>
1436 <text>FAT</text>
1437 <actions>
1438 <action function="set">tw_back=refreshfilesystem</action>
1439 <action function="set">tw_action=changefilesystem</action>
1440 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1441 <action function="set">tw_action_new_file_system=vfat</action>
1442 <action function="set">tw_has_action2=0</action>
1443 <action function="set">tw_text1=Change %tw_partition_name% to FAT?</action>
1444 <action function="set">tw_text2=</action>
1445 <action function="set">tw_action_text1=Formatting...</action>
1446 <action function="set">tw_complete_text1=Format Complete</action>
1447 <action function="set">tw_slider_text=Swipe to Change</action>
1448 <action function="page">confirm_action</action>
1449 </actions>
1450 </button>
1451
1452 <button style="main_button_half_width">
1453 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1454 <placement x="%col2_x_left%" y="%row15a_y%"/>
1455 <text>exFAT</text>
1456 <actions>
1457 <action function="set">tw_back=refreshfilesystem</action>
1458 <action function="set">tw_action=changefilesystem</action>
1459 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1460 <action function="set">tw_action_new_file_system=exfat</action>
1461 <action function="set">tw_has_action2=0</action>
1462 <action function="set">tw_text1=Change %tw_partition_name% to exFAT?</action>
1463 <action function="set">tw_text2=</action>
1464 <action function="set">tw_action_text1=Formatting...</action>
1465 <action function="set">tw_complete_text1=Format Complete</action>
1466 <action function="set">tw_slider_text=Swipe to Change</action>
1467 <action function="page">confirm_action</action>
1468 </actions>
1469 </button>
1470
1471 <button style="main_button_half_width">
1472 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1473 <placement x="%center_x%" y="%row15a_y%"/>
1474 <text>F2FS</text>
1475 <actions>
1476 <action function="set">tw_back=refreshfilesystem</action>
1477 <action function="set">tw_action=changefilesystem</action>
1478 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1479 <action function="set">tw_action_new_file_system=f2fs</action>
1480 <action function="set">tw_has_action2=0</action>
1481 <action function="set">tw_text1=Change %tw_partition_name% to F2FS?</action>
1482 <action function="set">tw_text2=</action>
1483 <action function="set">tw_action_text1=Formatting...</action>
1484 <action function="set">tw_complete_text1=Format Complete</action>
1485 <action function="set">tw_slider_text=Swipe to Change</action>
1486 <action function="page">confirm_action</action>
1487 </actions>
1488 </button>
1489
1490 <action>
1491 <touch key="home"/>
1492 <action function="page">main</action>
1493 </action>
1494
1495 <action>
1496 <touch key="back"/>
1497 <action function="page">partitionoptions</action>
1498 </action>
1499 </page>
1500
1501 <page name="backup">
1502 <template name="page"/>
1503
1504 <text style="text_l">
1505 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1506 <text>Backup</text>
1507 </text>
1508
1509 <text style="text_m">
1510 <placement x="%col1_x_header%" y="%row4_header_y%"/>
1511 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
1512 </text>
1513
1514 <text style="text_m_accent">
1515 <placement x="%col1_x_left%" y="%row2_y%"/>
1516 <text>Name:</text>
1517 </text>
1518
1519 <text style="text_m">
1520 <placement x="%col1_x_left%" y="%row3_y%"/>
1521 <text>%tw_backup_name%</text>
1522 </text>
1523
1524 <fill color="%fileselector_linecolor%">
1525 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1526 </fill>
1527
1528 <button>
1529 <placement x="col1_x_left" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/>
1530 <fill color="%transparent%"/>
1531 <actions>
1532 <action function="set">tw_fileexists=0</action>
1533 <action function="page">backupname1</action>
1534 </actions>
1535 </button>
1536
1537 <partitionlist>
1538 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="%partitionlist_backup_height%"/>
1539 <text>Select Partitions to Backup:</text>
1540 <data name="tw_backup_list"/>
1541 <listtype name="backup"/>
1542 </partitionlist>
1543
1544 <text style="text_m_accent">
1545 <placement x="%col1_x_right%" y="%row2_y%"/>
1546 <text>Encryption:</text>
1547 </text>
1548
1549 <text style="text_m">
1550 <conditions>
1551 <condition var1="tw_include_encrypted_backup" var2="1"/>
1552 <condition var1="tw_encrypt_backup" var2="0"/>
1553 </conditions>
1554 <placement x="%col1_x_right%" y="%row3_y%"/>
1555 <text>disabled - set a password to enable</text>
1556 </text>
1557
1558 <text style="text_m">
1559 <conditions>
1560 <condition var1="tw_include_encrypted_backup" var2="1"/>
1561 <condition var1="tw_encrypt_backup" var2="1"/>
1562 </conditions>
1563 <placement x="%col1_x_right%" y="%row3_y%"/>
1564 <text>enabled</text>
1565 </text>
1566
1567 <fill color="%fileselector_linecolor%">
1568 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1569 </fill>
1570
1571 <button>
1572 <placement x="col1_x_right" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/>
1573 <fill color="%transparent%"/>
1574 <actions>
1575 <action function="set">tw_password_not_match=0</action>
1576 <action function="page">backupencryption</action>
1577 </actions>
1578 </button>
1579
1580 <text style="text_m_accent">
1581 <placement x="%col1_x_right%" y="%row5_y%"/>
1582 <text>Options:</text>
1583 </text>
1584
1585 <checkbox>
1586 <placement x="%col1_x_right%" y="%row6_y%"/>
1587 <text>Enable compression</text>
1588 <data variable="tw_use_compression"/>
1589 </checkbox>
1590
1591 <checkbox>
1592 <placement x="%col1_x_right%" y="%row7a_y%"/>
1593 <text>Skip MD5 generation during backup</text>
1594 <data variable="tw_skip_md5_generate"/>
1595 </checkbox>
1596
1597 <checkbox>
1598 <placement x="%col1_x_right%" y="%row9_y%"/>
1599 <text>Disable Free Space Check</text>
1600 <data variable="tw_disable_free_space"/>
1601 </checkbox>
1602
1603 <button style="main_button_half_width">
1604 <placement x="%col1_x_left%" y="%row15a_y%"/>
1605 <text>Select Storage</text>
1606 <actions>
1607 <action function="set">tw_back=backup</action>
1608 <action function="overlay">select_storage</action>
1609 </actions>
1610 </button>
1611
1612 <button style="main_button_half_width">
1613 <placement x="%col2_x_left%" y="%row15a_y%"/>
1614 <text>Refresh Sizes</text>
1615 <actions>
1616 <action function="refreshsizes"/>
1617 <action function="page">backup</action>
1618 </actions>
1619 </button>
1620
1621 <slider>
1622 <text>Swipe to Backup</text>
1623 <action function="page">backup_run</action>
1624 </slider>
1625
1626 <action>
1627 <touch key="home"/>
1628 <action function="page">main</action>
1629 </action>
1630
1631 <action>
1632 <touch key="back"/>
1633 <action function="page">main</action>
1634 </action>
1635 </page>
1636
1637 <page name="backupname1">
1638 <action>
1639 <condition var1="tw_backup_name" op="=" var2="(Auto Generate)"/>
1640 <action function="generatebackupname"/>
1641 </action>
1642
1643 <action>
1644 <action function="page">backupname2</action>
1645 </action>
1646 </page>
1647
1648 <page name="backupname2">
1649 <template name="page"/>
1650
1651 <text style="text_l">
1652 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1653 <text>Backup</text>
1654 </text>
1655
1656 <text style="text_m">
1657 <placement x="%col1_x_header%" y="%row4_header_y%"/>
1658 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
1659 </text>
1660
1661 <text style="text_m_accent">
1662 <placement x="%col1_x_left%" y="%row2_y%"/>
1663 <text>Name:</text>
1664 </text>
1665
1666 <input>
1667 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
1668 <text>%tw_backup_name%</text>
1669 <data name="tw_backup_name"/>
1670 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1671 <actions>
1672 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1673 <action function="set">tw_existpage=backupname2</action>
1674 <action function="set">tw_notexistpage=backup</action>
1675 <action function="page">filecheck</action>
1676 </actions>
1677 </input>
1678
1679 <fill color="%accent_color%">
1680 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1681 </fill>
1682
1683 <fill color="%text_fail_color%">
1684 <condition var1="tw_fileexists" var2="1"/>
1685 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1686 </fill>
1687
1688 <text style="text_m_fail">
1689 <condition var1="tw_fileexists" var2="1"/>
1690 <placement x="%col1_x_left%" y="%row4_y%"/>
1691 <text>A backup with that name already exists!</text>
1692 </text>
1693
1694 <button style="main_button_half_width_low">
1695 <placement x="%indent%" y="%row5_y%"/>
1696 <text>Cancel</text>
1697 <actions>
1698 <action function="set">tw_backup_name=(Auto Generate)</action>
1699 <action function="page">backup</action>
1700 </actions>
1701 </button>
1702
1703 <button style="main_button_half_width_low">
1704 <placement x="%date_button_x%" y="%row5_y%"/>
1705 <text>Append Date</text>
1706 <action function="appenddatetobackupname"/>
1707 </button>
1708
1709 <template name="keyboardtemplate"/>
1710
1711 <action>
1712 <touch key="home"/>
1713 <actions>
1714 <action function="set">tw_backup_name=(Auto Generate)</action>
1715 <action function="page">main</action>
1716 </actions>
1717 </action>
1718
1719 <action>
1720 <touch key="back"/>
1721 <actions>
1722 <action function="set">tw_backup_name=(Auto Generate)</action>
1723 <action function="page">backup</action>
1724 </actions>
1725 </action>
1726 </page>
1727
1728 <page name="backupencryption">
1729 <template name="page"/>
1730
1731 <text style="text_l">
1732 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1733 <text>Backup</text>
1734 </text>
1735
1736 <text style="text_m">
1737 <placement x="%col1_x_header%" y="%row4_header_y%"/>
1738 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
1739 </text>
1740
1741 <text style="text_m_accent">
1742 <placement x="%col1_x_right%" y="%row2_y%"/>
1743 <text>Encryption Password:</text>
1744 </text>
1745
1746 <input>
1747 <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/>
1748 <text>%tw_backup_encrypt_display%</text>
1749 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
1750 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
1751 <action function="page">backupencryption2</action>
1752 </input>
1753
1754 <fill color="%accent_color%">
1755 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1756 </fill>
1757
1758 <fill color="%text_fail_color%">
1759 <condition var1="tw_password_not_match" var2="1"/>
1760 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1761 </fill>
1762
1763 <text style="text_m_fail">
1764 <condition var1="tw_password_not_match" var2="1"/>
1765 <placement x="%col1_x_right%" y="%row4_y%"/>
1766 <text>Passwords do not match!</text>
1767 </text>
1768
1769 <button style="main_button_half_width_low">
1770 <placement x="%center_x%" y="%row5_y%"/>
1771 <text>Cancel</text>
1772 <actions>
1773 <action function="set">tw_encrypt_backup=0</action>
1774 <action function="set">tw_backup_password=</action>
1775 <action function="set">tw_backup_password2=</action>
1776 <action function="set">tw_backup_encrypt_display=</action>
1777 <action function="set">tw_backup_encrypt_display2=</action>
1778 <action function="page">backup</action>
1779 </actions>
1780 </button>
1781
1782 <template name="keyboardtemplate"/>
1783
1784 <action>
1785 <touch key="home"/>
1786 <action function="page">main</action>
1787 </action>
1788
1789 <action>
1790 <touch key="back"/>
1791 <action function="page">backup</action>
1792 </action>
1793 </page>
1794
1795 <page name="backupencryption2">
1796 <template name="page"/>
1797
1798 <text style="text_l">
1799 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1800 <text>Backup</text>
1801 </text>
1802
1803 <text style="text_m">
1804 <placement x="%col1_x_header%" y="%row4_header_y%"/>
1805 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
1806 </text>
1807
1808 <text style="text_m_accent">
1809 <placement x="%col1_x_right%" y="%row2_y%"/>
1810 <text>Encryption Password:</text>
1811 </text>
1812
1813 <input>
1814 <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/>
1815 <text>%tw_backup_encrypt_display2%</text>
1816 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
1817 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
1818 <action function="page">checkbackuppassword</action>
1819 </input>
1820
1821 <fill color="%accent_color%">
1822 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1823 </fill>
1824
1825 <text style="text_m">
1826 <placement x="%col1_x_right%" y="%row4_y%"/>
1827 <text>Enter Password again!</text>
1828 </text>
1829
1830 <button style="main_button_half_width_low">
1831 <placement x="%center_x%" y="%row5_y%"/>
1832 <text>Cancel</text>
1833 <actions>
1834 <action function="set">tw_encrypt_backup=0</action>
1835 <action function="set">tw_backup_password=</action>
1836 <action function="set">tw_backup_password2=</action>
1837 <action function="set">tw_backup_encrypt_display=</action>
1838 <action function="set">tw_backup_encrypt_display2=</action>
1839 <action function="page">backup</action>
1840 </actions>
1841 </button>
1842
1843 <template name="keyboardtemplate"/>
1844
1845 <action>
1846 <touch key="home"/>
1847 <action function="page">main</action>
1848 </action>
1849
1850 <action>
1851 <touch key="back"/>
1852 <action function="page">backup</action>
1853 </action>
1854 </page>
1855
1856 <page name="checkbackuppassword">
1857 <action>
1858 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
1859 <actions>
1860 <action function="set">tw_encrypt_backup=1</action>
1861 <action function="page">backup</action>
1862 </actions>
1863 </action>
1864
1865 <action>
1866 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
1867 <actions>
1868 <action function="set">tw_encrypt_backup=0</action>
1869 <action function="set">tw_password_not_match=1</action>
1870 <action function="set">tw_backup_password=</action>
1871 <action function="set">tw_backup_password2=</action>
1872 <action function="set">tw_backup_encrypt_display=</action>
1873 <action function="set">tw_backup_encrypt_display2=</action>
1874 <action function="page">backupencryption</action>
1875 </actions>
1876 </action>
1877 </page>
1878
1879 <page name="backup_run">
1880 <template name="page"/>
1881
1882 <text style="text_l">
1883 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1884 <text>%tw_operation%</text>
1885 </text>
1886
1887 <text style="text_m">
1888 <placement x="%col1_x_header%" y="%row4_header_y%"/>
1889 <text>%tw_partition% Partition</text>
1890 </text>
1891
1892 <template name="console"/>
1893
1894 <template name="progress_bar"/>
1895
1896 <text style="text_m_accent">
1897 <placement x="%progress_text_x%" y="%progress_text_y%"/>
1898 <text>Progress:</text>
1899 </text>
1900
1901 <text style="text_m">
1902 <placement x="%progress_text_x%" y="%row17_y%"/>
1903 <text>%tw_file_progress%</text>
1904 </text>
1905
1906 <text style="text_m">
1907 <placement x="%progress_text_x%" y="%row18_y%"/>
1908 <text>%tw_size_progress%</text>
1909 </text>
1910
1911 <button style="main_button_half_width">
1912 <placement x="%col2_x_right%" y="%row15a_y%"/>
1913 <text>Cancel</text>
1914 <action function="cancelbackup"/>
1915 </button>
1916
1917 <action>
1918 <action function="nandroid">backup</action>
1919 </action>
1920
1921 <action>
1922 <condition var1="tw_operation_state" var2="1"/>
1923 <condition var1="tw_cancel_backup" var2="0"/>
1924 <actions>
1925 <action function="set">tw_back=backup</action>
1926 <action function="set">tw_complete_text1=Backup Complete</action>
1927 <action function="set">tw_show_reboot=1</action>
1928 <action function="page">action_complete</action>
1929 </actions>
1930 </action>
1931
1932 <action>
1933 <condition var1="tw_operation_state" var2="1"/>
1934 <condition var1="tw_cancel_backup" var2="1"/>
1935 <actions>
1936 <action function="set">tw_back=backup</action>
1937 <action function="set">tw_complete_text1=Backup Cancelled</action>
1938 <action function="set">tw_show_reboot=1</action>
1939 <action function="page">action_complete</action>
1940 </actions>
1941 </action>
1942 </page>
1943
1944 <page name="restore">
1945 <template name="page"/>
1946
1947 <text style="text_l">
1948 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1949 <text>Restore</text>
1950 </text>
1951
1952 <text style="text_m">
1953 <placement x="%col1_x_header%" y="%row4_header_y%"/>
1954 <text>Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
1955 </text>
1956
1957 <template name="sort_options"/>
1958
1959 <fileselector>
1960 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_install_height%"/>
1961 <text>Select Package to Restore:</text>
1962 <filter folders="1" files="0" nav="0"/>
1963 <path name="tw_backups_folder"/>
1964 <data name="tw_restore" default=""/>
1965 <selection name="tw_restore_name"/>
1966 </fileselector>
1967
1968 <button style="main_button_half_width_low">
1969 <placement x="%col_button_right%" y="%row16a_y%"/>
1970 <text>Select Storage</text>
1971 <actions>
1972 <action function="set">tw_back=restore</action>
1973 <action function="overlay">select_storage</action>
1974 </actions>
1975 </button>
1976
1977 <action>
1978 <condition var1="tw_restore" op="modified"/>
1979 <actions>
1980 <action function="readBackup"/>
1981 <action function="page">restore_read</action>
1982 </actions>
1983 </action>
1984
1985 <action>
1986 <touch key="home"/>
1987 <action function="page">main</action>
1988 </action>
1989
1990 <action>
1991 <touch key="back"/>
1992 <action function="page">main</action>
1993 </action>
1994 </page>
1995
1996 <page name="restore_read">
1997 <action>
1998 <condition var1="tw_restore_encrypted" var2="1"/>
1999 <actions>
2000 <action function="set">tw_password_fail=0</action>
2001 <action function="page">restore_decrypt</action>
2002 </actions>
2003 </action>
2004
2005 <action>
2006 <condition var1="tw_restore_encrypted" var2="0"/>
2007 <actions>
2008 <action function="page">restore_select</action>
2009 </actions>
2010 </action>
2011 </page>
2012
2013 <page name="restore_decrypt">
2014 <template name="page"/>
2015
2016 <text style="text_l">
2017 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2018 <text>Restore</text>
2019 </text>
2020
2021 <text style="text_m">
2022 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2023 <text>Encrypted Backup</text>
2024 </text>
2025
2026 <text style="text_m_accent">
2027 <placement x="%center_x%" y="%row2_y%" placement="5"/>
2028 <text>Enter Password:</text>
2029 </text>
2030
2031 <input>
2032 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2033 <text>%tw_restore_display%</text>
2034 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2035 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2036 <action function="page">try_restore_decrypt</action>
2037 </input>
2038
2039 <fill color="%accent_color%">
2040 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
2041 </fill>
2042
2043 <fill color="%text_fail_color%">
2044 <condition var1="tw_password_fail" var2="1"/>
2045 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
2046 </fill>
2047
2048 <text style="text_m_fail">
2049 <condition var1="tw_password_fail" var2="1"/>
2050 <placement x="%col1_x_left%" y="%row5_y%"/>
2051 <text>Password failed, please try again!</text>
2052 </text>
2053
2054 <button style="main_button_half_width_low">
2055 <placement x="%indent%" y="%row6_y%"/>
2056 <text>Cancel</text>
2057 <actions>
2058 <action function="set">tw_page_done=1</action>
2059 <action function="page">restore</action>
2060 </actions>
2061 </button>
2062
2063 <button style="main_button_half_width_low">
2064 <placement x="%col_button_right%" y="%row6_y%"/>
2065 <text>Delete Backup</text>
2066 <actions>
2067 <action function="set">tw_back=restore</action>
2068 <action function="set">tw_action=cmd</action>
2069 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf "%tw_restore_name%"</action>
2070 <action function="set">tw_text1=Delete Backup? %tw_restore_name%</action>
2071 <action function="set">tw_text2=This cannot be undone!</action>
2072 <action function="set">tw_action_text1=Deleting Backup...</action>
2073 <action function="set">tw_complete_text1=Backup Delete Complete</action>
2074 <action function="set">tw_slider_text=Swipe to Delete</action>
2075 <action function="page">confirm_action</action>
2076 </actions>
2077 </button>
2078
2079 <template name="keyboardtemplate"/>
2080
2081 <action>
2082 <touch key="home"/>
2083 <action function="page">main</action>
2084 </action>
2085
2086 <action>
2087 <touch key="back"/>
2088 <action function="page">restore</action>
2089 </action>
2090 </page>
2091
2092 <page name="try_restore_decrypt">
2093 <template name="page"/>
2094
2095 <text style="text_l">
2096 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2097 <text>Restore</text>
2098 </text>
2099
2100 <text style="text_m">
2101 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2102 <text>Encrypted Backup - Trying Decryption</text>
2103 </text>
2104
2105 <template name="console"/>
2106
2107 <template name="progress_bar"/>
2108
2109 <action>
2110 <action function="decrypt_backup"/>
2111 </action>
2112
2113 <action>
2114 <conditions>
2115 <condition var1="tw_operation_state" var2="1"/>
2116 <condition var1="tw_operation_status" op="!=" var2="0"/>
2117 </conditions>
2118 <actions>
2119 <action function="set">tw_password_fail=1</action>
2120 <action function="page">restore_decrypt</action>
2121 </actions>
2122 </action>
2123
2124 <action>
2125 <conditions>
2126 <condition var1="tw_operation_state" var2="1"/>
2127 <condition var1="tw_operation_status" op="=" var2="0"/>
2128 </conditions>
2129 <actions>
2130 <action function="set">tw_page_done=1</action>
2131 <action function="page">restore_select</action>
2132 </actions>
2133 </action>
2134 </page>
2135
2136 <page name="restore_select">
2137 <template name="page"/>
2138
2139 <text style="text_l">
2140 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2141 <text>Restore</text>
2142 </text>
2143
2144 <text style="text_m">
2145 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2146 <text>Backup made on %tw_restore_file_date%</text>
2147 </text>
2148
2149 <text style="text_m_accent">
2150 <placement x="%col1_x_left%" y="%row2_y%"/>
2151 <text>Name:</text>
2152 </text>
2153
2154 <text style="text_m">
2155 <placement x="%col1_x_left%" y="%row3_y%"/>
2156 <text>%tw_restore_name%</text>
2157 </text>
2158
2159 <fill color="%fileselector_linecolor%">
2160 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width"/>
2161 </fill>
2162
2163 <button>
2164 <placement x="col1_x_left" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2165 <fill color="%transparent%"/>
2166 <actions>
2167 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2168 <action function="set">tw_fileexists=0</action>
2169 <action function="page">renamebackup</action>
2170 </actions>
2171 </button>
2172
2173 <partitionlist>
2174 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="%partitionlist_backup_height%"/>
2175 <text>Select Partitions to Restore:</text>
2176 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2177 <listtype name="restore"/>
2178 </partitionlist>
2179
2180 <text style="text_m_accent">
2181 <placement x="%col1_x_right%" y="%row5_y%"/>
2182 <text>Options:</text>
2183 </text>
2184
2185 <checkbox>
2186 <placement x="%col1_x_right%" y="%row6_y%"/>
2187 <text>Enable MD5 Verification of Backup Files</text>
2188 <data variable="tw_skip_md5_check"/>
2189 </checkbox>
2190
2191 <button style="main_button_half_width">
2192 <placement x="%col2_x_left%" y="%row15a_y%"/>
2193 <text>Delete Backup</text>
2194 <actions>
2195 <action function="set">tw_back=restore</action>
2196 <action function="set">tw_action=cmd</action>
2197 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf "%tw_restore_name%"</action>
2198 <action function="set">tw_text1=Delete Backup?</action>
2199 <action function="set">tw_text2=%tw_restore_name%</action>
2200 <action function="set">tw_text4=This cannot be undone!</action>
2201 <action function="set">tw_action_text1=Deleting Backup...</action>
2202 <action function="set">tw_complete_text1=Backup Delete Complete</action>
2203 <action function="set">tw_slider_text=Swipe to Delete</action>
2204 <action function="page">confirm_action</action>
2205 </actions>
2206 </button>
2207
2208 <slider>
2209 <text>Swipe to Restore</text>
2210 <action function="page">restore_run</action>
2211 </slider>
2212
2213 <action>
2214 <touch key="home"/>
2215 <action function="page">main</action>
2216 </action>
2217
2218 <action>
2219 <touch key="back"/>
2220 <action function="page">restore</action>
2221 </action>
2222 </page>
2223
2224 <page name="renamebackup">
2225 <template name="page"/>
2226
2227 <text style="text_l">
2228 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2229 <text>Restore</text>
2230 </text>
2231
2232 <text style="text_m">
2233 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2234 <text>Rename Backup</text>
2235 </text>
2236
2237 <text style="text_m_accent">
2238 <placement x="%col1_x_left%" y="%row2_y%"/>
2239 <text>Name:</text>
2240 </text>
2241
2242 <input>
2243 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2244 <text>%tw_backup_rename%</text>
2245 <data name="tw_backup_rename"/>
2246 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2247 <actions>
2248 <action function="set">tw_back=restore</action>
2249 <action function="set">tw_action=cmd</action>
2250 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; mv "%tw_restore_name%" "%tw_backup_rename%"</action>
2251 <action function="set">tw_text1=Rename Backup?</action>
2252 <action function="set">tw_text2=This cannot be undone!</action>
2253 <action function="set">tw_action_text1=Renaming Backup...</action>
2254 <action function="set">tw_complete_text1=Backup Rename Complete</action>
2255 <action function="set">tw_slider_text=Swipe to Rename</action>
2256 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2257 <action function="set">tw_existpage=renamebackup</action>
2258 <action function="set">tw_notexistpage=confirm_action</action>
2259 <action function="page">filecheck</action>
2260 </actions>
2261 </input>
2262
2263 <fill color="%accent_color%">
2264 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2265 </fill>
2266
2267 <fill color="%text_fail_color%">
2268 <condition var1="tw_fileexists" var2="1"/>
2269 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2270 </fill>
2271
2272 <text style="text_m_fail">
2273 <condition var1="tw_fileexists" var2="1"/>
2274 <placement x="%col1_x_left%" y="%row4_y%"/>
2275 <text>A backup with that name already exists!</text>
2276 </text>
2277
2278 <button style="main_button_half_width_low">
2279 <placement x="%indent%" y="%row5_y%"/>
2280 <text>Cancel</text>
2281 <action function="page">restore_select</action>
2282 </button>
2283
2284 <template name="keyboardtemplate"/>
2285
2286 <action>
2287 <touch key="home"/>
2288 <action function="page">main</action>
2289 </action>
2290
2291 <action>
2292 <touch key="back"/>
2293 <action function="page">restore_select</action>
2294 </action>
2295 </page>
2296
2297 <page name="restore_run">
2298 <template name="page"/>
2299
2300 <text style="text_l">
2301 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2302 <text>Restore</text>
2303 </text>
2304
2305 <text style="text_m">
2306 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2307 <text>%tw_operation% %tw_partition%</text>
2308 </text>
2309
2310 <template name="console"/>
2311
2312 <template name="progress_bar"/>
2313
2314 <text style="text_m_accent">
2315 <placement x="%progress_text_x%" y="%progress_text_y%"/>
2316 <text>Progress:</text>
2317 </text>
2318
2319 <text style="text_m">
2320 <placement x="%progress_text_x%" y="%row18_y%"/>
2321 <text>%tw_size_progress%</text>
2322 </text>
2323
2324 <action>
2325 <condition var1="tw_operation_state" var2="1"/>
2326 <actions>
2327 <action function="set">tw_back=restore_select</action>
2328 <action function="set">tw_complete_text1=Restore Complete</action>
2329 <action function="set">tw_show_reboot=1</action>
2330 <action function="page">action_complete</action>
2331 </actions>
2332 </action>
2333
2334 <action>
2335 <action function="nandroid">restore</action>
2336 </action>
2337 </page>
2338
2339 <page name="mount">
2340 <template name="page"/>
2341
2342 <text style="text_l">
2343 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2344 <text>Mount</text>
2345 </text>
2346
2347 <text style="text_m">
2348 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2349 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
2350 </text>
2351
2352 <partitionlist>
2353 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
2354 <text>Select Partitions to Mount:</text>
2355 <listtype name="mount"/>
2356 </partitionlist>
2357
2358 <button style="checkbox">
2359 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
2360 <placement x="%col1_x_left%" y="%row14_y%" textplacement="6"/>
2361 <text>Mount system partition read-only</text>
2362 <image resource="checkbox_false"/>
2363 <action function="mountsystemtoggle">1</action>
2364 </button>
2365
2366 <button style="checkbox">
2367 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2368 <placement x="%col1_x_left%" y="%row14_y%" textplacement="6"/>
2369 <text>Mount system partition read-only</text>
2370 <image resource="checkbox_true"/>
2371 <actions>
2372 <action function="set">tw_lifetime_writes=2</action>
2373 <action function="page">system_readonly_check</action>
2374 </actions>
2375 </button>
2376
2377 <button style="main_button_half_width">
2378 <condition var1="tw_has_usb_storage" var2="1"/>
2379 <placement x="%col1_x_left%" y="%row15a_y%"/>
2380 <text>Mount USB Storage</text>
2381 <action function="page">usb_mount</action>
2382 </button>
2383
2384 <button style="main_button_half_width">
2385 <conditions>
2386 <condition var1="tw_is_encrypted" var2="1"/>
2387 <condition var1="tw_is_decrypted" var2="0"/>
2388 </conditions>
2389 <placement x="%col2_x_left%" y="%row15a_y%"/>
2390 <text>Decrypt Data</text>
2391 <action function="page">decrypt</action>
2392 </button>
2393
2394 <button style="main_button_half_width">
2395 <placement x="%center_x%" y="%row15a_y%"/>
2396 <text>Select Storage</text>
2397 <actions>
2398 <action function="set">tw_back=mount</action>
2399 <action function="overlay">select_storage</action>
2400 </actions>
2401 </button>
2402
2403 <button style="main_button_half_width">
2404 <conditions>
2405 <condition var1="tw_has_mtp" var2="1"/>
2406 <condition var1="tw_mtp_enabled" var2="0"/>
2407 </conditions>
2408 <placement x="%col2_x_right%" y="%row15a_y%"/>
2409 <text>Enable MTP</text>
2410 <action function="startmtp"/>
2411 </button>
2412
2413 <button style="main_button_half_width">
2414 <conditions>
2415 <condition var1="tw_has_mtp" var2="1"/>
2416 <condition var1="tw_mtp_enabled" var2="1"/>
2417 </conditions>
2418 <placement x="%col2_x_right%" y="%row15a_y%"/>
2419 <text>Disable MTP</text>
2420 <action function="stopmtp"/>
2421 </button>
2422
2423 <action>
2424 <touch key="home"/>
2425 <action function="page">main</action>
2426 </action>
2427
2428 <action>
2429 <touch key="back"/>
2430 <action function="page">main</action>
2431 </action>
2432 </page>
2433
2434 <page name="usb_mount">
2435 <template name="page"/>
2436
2437 <text style="text_l">
2438 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2439 <text>Mount</text>
2440 </text>
2441
2442 <text style="text_m">
2443 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2444 <text>USB Storage</text>
2445 </text>
2446
2447 <text style="text_m_accent">
2448 <placement x="%center_x%" y="%row2_y%" placement="5"/>
2449 <text>USB Storage Mounted</text>
2450 </text>
2451
2452 <text style="text_m">
2453 <placement x="%center_x%" y="%row4_y%" placement="5"/>
2454 <text>Be sure to safely remove your device</text>
2455 </text>
2456
2457 <text style="text_m">
2458 <placement x="%center_x%" y="%row5_y%" placement="5"/>
2459 <text>from your computer before unmounting!</text>
2460 </text>
2461
2462 <button style="main_button_half_width">
2463 <placement x="%col1_x_left%" y="%row15a_y%"/>
2464 <text>Unmount USB-Storage</text>
2465 <action function="page">usb_umount</action>
2466 </button>
2467
2468 <action>
2469 <action function="mount">usb</action>
2470 <action function="set">tw_busy=1</action>
2471 </action>
2472 </page>
2473
2474 <page name="usb_umount">
2475 <action>
2476 <action function="unmount">usb</action>
2477 </action>
2478
2479 <action>
2480 <action function="page">mount</action>
2481 <action function="set">tw_busy=0</action>
2482 </action>
2483 </page>
2484
2485 <page name="system_readonly_check">
2486 <action>
2487 <action function="checkpartitionlifetimewrites">/system</action>
2488 </action>
2489
2490 <action>
2491 <condition var1="tw_lifetime_writes" var2="1"/>
2492 <actions>
2493 <action function="mountsystemtoggle">0</action>
2494 <action function="page">mount</action>
2495 </actions>
2496 </action>
2497
2498 <action>
2499 <condition var1="tw_lifetime_writes" var2="0"/>
2500 <actions>
2501 <action function="set">tw_back=mount</action>
2502 <action function="page">system_readonly</action>
2503 </actions>
2504 </action>
2505 </page>
2506
2507 <page name="reboot">
2508 <template name="page"/>
2509
2510 <text style="text_l">
2511 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2512 <text>Reboot Menu</text>
2513 </text>
2514
2515 <button style="main_button">
2516 <condition var1="tw_reboot_system" var2="1"/>
2517 <placement x="%col1_x_left%" y="%row2_y%"/>
2518 <text>System</text>
2519 <actions>
2520 <action function="set">tw_back=reboot</action>
2521 <action function="set">tw_action=reboot</action>
2522 <action function="set">tw_action_param=system</action>
2523 <action function="set">tw_has_action2=0</action>
2524 <action function="set">tw_text1=No OS Installed! Are you</action>
2525 <action function="set">tw_text2=sure you wish to reboot?</action>
2526 <action function="set">tw_action_text1=Rebooting...</action>
2527 <action function="set">tw_complete_text1=Rebooting...</action>
2528 <action function="set">tw_slider_text=Swipe to Reboot</action>
2529 <action function="page">rebootcheck</action>
2530 </actions>
2531 </button>
2532
2533 <button style="main_button">
2534 <condition var1="tw_reboot_poweroff" var2="1"/>
2535 <placement x="%center_x%" y="%row2_y%"/>
2536 <text>Power Off</text>
2537 <actions>
2538 <action function="set">tw_back=reboot</action>
2539 <action function="set">tw_action=reboot</action>
2540 <action function="set">tw_action_param=poweroff</action>
2541 <action function="set">tw_has_action2=0</action>
2542 <action function="set">tw_text1=No OS Installed! Are you</action>
2543 <action function="set">tw_text2=sure you wish to power off?</action>
2544 <action function="set">tw_action_text1=Turning Off...</action>
2545 <action function="set">tw_complete_text1=Turning Off...</action>
2546 <action function="set">tw_slider_text=Swipe to Power Off</action>
2547 <action function="page">rebootcheck</action>
2548 </actions>
2549 </button>
2550
2551 <button style="main_button">
2552 <condition var1="tw_reboot_recovery" var2="1"/>
2553 <placement x="%col1_x_left%" y="%row6a_y%"/>
2554 <text>Recovery</text>
2555 <actions>
2556 <action function="set">tw_back=reboot</action>
2557 <action function="set">tw_action=reboot</action>
2558 <action function="set">tw_action_param=recovery</action>
2559 <action function="set">tw_has_action2=0</action>
2560 <action function="set">tw_text1=No OS Installed! Are you</action>
2561 <action function="set">tw_text2=sure you wish to reboot?</action>
2562 <action function="set">tw_action_text1=Rebooting...</action>
2563 <action function="set">tw_complete_text1=Rebooting...</action>
2564 <action function="set">tw_slider_text=Swipe to Reboot</action>
2565 <action function="page">rebootcheck</action>
2566 </actions>
2567 </button>
2568
2569 <button style="main_button">
2570 <condition var1="tw_reboot_bootloader" var2="1"/>
2571 <placement x="%center_x%" y="%row6a_y%"/>
2572 <text>Bootloader</text>
2573 <actions>
2574 <action function="set">tw_back=reboot</action>
2575 <action function="set">tw_action=reboot</action>
2576 <action function="set">tw_action_param=bootloader</action>
2577 <action function="set">tw_has_action2=0</action>
2578 <action function="set">tw_text1=No OS Installed! Are you</action>
2579 <action function="set">tw_text2=sure you wish to reboot?</action>
2580 <action function="set">tw_action_text1=Rebooting...</action>
2581 <action function="set">tw_complete_text1=Rebooting...</action>
2582 <action function="set">tw_slider_text=Swipe to Reboot</action>
2583 <action function="page">rebootcheck</action>
2584 </actions>
2585 </button>
2586
2587 <button style="main_button">
2588 <condition var1="tw_download_mode" var2="1"/>
2589 <placement x="%col1_x_left%" y="%row11_y%"/>
2590 <text>Download</text>
2591 <actions>
2592 <action function="set">tw_back=reboot</action>
2593 <action function="set">tw_action=reboot</action>
2594 <action function="set">tw_action_param=download</action>
2595 <action function="set">tw_has_action2=0</action>
2596 <action function="set">tw_text1=No OS Installed! Are you</action>
2597 <action function="set">tw_text2=sure you wish to reboot?</action>
2598 <action function="set">tw_action_text1=Rebooting...</action>
2599 <action function="set">tw_complete_text1=Rebooting...</action>
2600 <action function="set">tw_slider_text=Swipe to Reboot</action>
2601 <action function="page">rebootcheck</action>
2602 </actions>
2603 </button>
2604
2605 <action>
2606 <touch key="home"/>
2607 <action function="page">main</action>
2608 </action>
2609
2610 <action>
2611 <touch key="back"/>
2612 <action function="page">main</action>
2613 </action>
2614 </page>
2615
2616 <page name="system_readonly">
2617 <template name="page"/>
2618
2619 <text style="text_l">
2620 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2621 <text>Unmodified System Partition</text>
2622 </text>
2623
2624 <text style="text_m_accent">
2625 <placement x="%center_x%" y="%row2_y%" placement="5"/>
2626 <text>Keep System Read only?</text>
2627 </text>
2628
2629 <text style="text_m">
2630 <placement x="%center_x%" y="%row4_y%" placement="5"/>
2631 <text>TWRP can leave your system partition unmodified to make it easier for you to take official updates.</text>
2632 </text>
2633
2634 <text style="text_m">
2635 <placement x="%center_x%" y="%row5_y%" placement="5"/>
2636 <text>TWRP will be unable to prevent the stock ROM from replacing TWRP and will not offer to root your device.</text>
2637 </text>
2638
2639 <text style="text_m_fail">
2640 <placement x="%center_x%" y="%row6_y%" placement="5"/>
2641 <text>Installing zips or performing adb operations may still modify the system partition.</text>
2642 </text>
2643
2644 <checkbox>
2645 <condition var1="tw_is_encrypted" var2="0"/>
2646 <placement x="%col1_x_left%" y="%row14_y%"/>
2647 <text>Never show this screen during boot again</text>
2648 <data variable="tw_never_show_system_ro_page"/>
2649 </checkbox>
2650
2651 <button style="main_button_half_width">
2652 <placement x="%col1_x_left%" y="%row15a_y%"/>
2653 <text>Keep Read Only</text>
2654 <actions>
2655 <action function="mountsystemtoggle">1</action>
2656 <action function="set">tw_page_done=1</action>
2657 <action function="page">%tw_back%</action>
2658 </actions>
2659 </button>
2660
2661 <slider>
2662 <text>Swipe to Allow Modifications</text>
2663 <actions>
2664 <action function="mountsystemtoggle">0</action>
2665 <action function="set">tw_page_done=1</action>
2666 <action function="page">%tw_back%</action>
2667 </actions>
2668 </slider>
2669 </page>
2670
2671 <page name="settings">
2672 <template name="page"/>
2673
2674 <text style="text_l">
2675 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2676 <text>Settings</text>
2677 </text>
2678
2679 <text style="text_m">
2680 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2681 <text>General Settings</text>
2682 </text>
2683
2684 <template name="tabs_settings"/>
2685
2686 <fill color="%text_color%">
2687 <placement x="0" y="%row_tab_y%" w="%tab4_width%" h="%tab_indicator_height%"/>
2688 </fill>
2689
2690 <listbox style="scrolllist">
2691 <placement x="%col1_x_left%" y="%row3a_y%" w="%content_half_width%" h="%listbox_settings_height%"/>
2692 <icon selected="checkbox_true" unselected="checkbox_false"/>
2693 <listitem name="Zip file signature verification">
2694 <data variable="tw_signed_zip_verify"/>
2695 </listitem>
2696 <listitem name="Use rm -rf instead of formatting">
2697 <data variable="tw_rm_rf"/>
2698 </listitem>
2699 <listitem name="Skip MD5 generation during backup">
2700 <data variable="tw_skip_md5_generate"/>
2701 </listitem>
2702 <listitem name="Enable MD5 verification of backup files">
2703 <data variable="tw_skip_md5_check"/>
2704 </listitem>
2705 <listitem name="Use 24-hour clock">
2706 <data variable="tw_military_time"/>
2707 </listitem>
2708 <listitem name="Simulate actions for theme testing">
2709 <data variable="tw_simulate_actions"/>
2710 </listitem>
2711 <listitem name="Simulate failure for actions">
2712 <condition var1="tw_simulate_actions" var2="1"/>
2713 <data variable="tw_simulate_fail"/>
2714 </listitem>
2715 </listbox>
2716
2717 <checkbox>
2718 <placement x="%col1_x_right%" y="%row3a_y%"/>
2719 <text>Reversed navbar layout</text>
2720 <data variable="tw_samsung_navbar"/>
2721 </checkbox>
2722
2723 <button style="radiobutton">
2724 <condition var1="tw_navbar_button_position" op="!=" var2="0"/>
2725 <placement x="%col1_x_right%" y="%row5_y%" textplacement="6"/>
2726 <text>Center navbar buttons</text>
2727 <image resource="radio_false"/>
2728 <action function="set">tw_navbar_button_position=0</action>
2729 </button>
2730
2731 <button style="radiobutton">
2732 <condition var1="tw_navbar_button_position" var2="0"/>
2733 <placement x="%col1_x_right%" y="%row5_y%" textplacement="6"/>
2734 <text>Center navbar buttons</text>
2735 <image resource="radio_true"/>
2736 <action function="set">tw_navbar_button_position=0</action>
2737 </button>
2738
2739 <button style="radiobutton">
2740 <condition var1="tw_navbar_button_position" op="!=" var2="1"/>
2741 <placement x="%col1_x_right%" y="%row6a_y%" textplacement="6"/>
2742 <text>Left align navbar buttons</text>
2743 <image resource="radio_false"/>
2744 <action function="set">tw_navbar_button_position=1</action>
2745 </button>
2746
2747 <button style="radiobutton">
2748 <condition var1="tw_navbar_button_position" var2="1"/>
2749 <placement x="%col1_x_right%" y="%row6a_y%" textplacement="6"/>
2750 <text>Left align navbar buttons</text>
2751 <image resource="radio_true"/>
2752 <action function="set">tw_navbar_button_position=1</action>
2753 </button>
2754
2755 <button style="radiobutton">
2756 <condition var1="tw_navbar_button_position" op="!=" var2="2"/>
2757 <placement x="%col1_x_right%" y="%row8_y%" textplacement="6"/>
2758 <text>Right align navbar buttons</text>
2759 <image resource="radio_false"/>
2760 <action function="set">tw_navbar_button_position=2</action>
2761 </button>
2762
2763 <button style="radiobutton">
2764 <condition var1="tw_navbar_button_position" var2="2"/>
2765 <placement x="%col1_x_right%" y="%row8_y%" textplacement="6"/>
2766 <text>Right align navbar buttons</text>
2767 <image resource="radio_true"/>
2768 <action function="set">tw_navbar_button_position=2</action>
2769 </button>
2770
2771 <button style="main_button_half_width">
2772 <placement x="%col2_x_right%" y="%row15a_y%"/>
2773 <text>Restore Defaults</text>
2774 <action function="restoredefaultsettings"/>
2775 </button>
2776
2777 <action>
2778 <touch key="home"/>
2779 <action function="page">main</action>
2780 </action>
2781
2782 <action>
2783 <touch key="back"/>
2784 <action function="page">main</action>
2785 </action>
2786 </page>
2787
2788 <page name="settings_timezone">
2789 <template name="page"/>
2790
2791 <text style="text_l">
2792 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2793 <text>Settings</text>
2794 </text>
2795
2796 <text style="text_m">
2797 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2798 <text>Time Zone Settings</text>
2799 </text>
2800
2801 <template name="tabs_settings"/>
2802
2803 <fill color="%text_color%">
2804 <placement x="%tab4_col2_x%" y="%row_tab_y%" w="%tab4_width%" h="%tab_indicator_height%"/>
2805 </fill>
2806
2807 <listbox>
2808 <placement x="%col1_x_left%" y="%row3_y%" w="%content_half_width%" h="%listbox_timezone_height%"/>
2809 <text>Select Time Zone:</text>
2810 <data name="tw_time_zone_guisel"/>
2811 <listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
2812 <listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
2813 <listitem name="(UTC -9) Alaska">AST9;ADT</listitem>
2814 <listitem name="(UTC -8) Pacific Time">PST8;PDT,M3.2.0,M11.1.0</listitem>
2815 <listitem name="(UTC -7) Mountain Time">MST7;MDT,M3.2.0,M11.1.0</listitem>
2816 <listitem name="(UTC -6) Central Time">CST6;CDT,M3.2.0,M11.1.0</listitem>
2817 <listitem name="(UTC -5) Eastern Time">EST5;EDT,M3.2.0,M11.1.0</listitem>
2818 <listitem name="(UTC -4) Atlantic Time">AST4;ADT</listitem>
2819 <listitem name="(UTC -3) Brazil, Buenos Aires">GRNLNDST3;GRNLNDDT</listitem>
2820 <listitem name="(UTC -2) Mid-Atlantic">FALKST2;FALKDT</listitem>
2821 <listitem name="(UTC -1) Azores, Cape Verde">AZOREST1;AZOREDT</listitem>
2822 <listitem name="(UTC 0) London, Dublin, Lisbon">GMT0;BST,M3.5.0,M10.5.0</listitem>
2823 <listitem name="(UTC +1) Berlin, Brussels, Paris">CET-1;CEST,M3.5.0,M10.5.0</listitem>
2824 <listitem name="(UTC +2) Athens, Istanbul, South Africa">WET-2;WET,M3.5.0,M10.5.0</listitem>
2825 <listitem name="(UTC +3) Moscow, Baghdad">SAUST-3;SAUDT</listitem>
2826 <listitem name="(UTC +4) Abu Dhabi, Tbilisi, Muscat">WST-4;WDT</listitem>
2827 <listitem name="(UTC +5) Yekaterinburg, Islamabad">PAKST-5;PAKDT</listitem>
2828 <listitem name="(UTC +6) Almaty, Dhaka, Colombo">TASHST-6;TASHDT</listitem>
2829 <listitem name="(UTC +7) Bangkok, Hanoi, Jakarta">THAIST-7;THAIDT</listitem>
2830 <listitem name="(UTC +8) Beijing, Singapore, Hong Kong">TAIST-8;TAIDT</listitem>
2831 <listitem name="(UTC +9) Tokyo, Seoul, Yakutsk">JST-9;JSTDT</listitem>
2832 <listitem name="(UTC +10) Eastern Australia, Guam">EET-10;EETDT</listitem>
2833 <listitem name="(UTC +11) Vladivostok, Solomon Islands">MET-11;METDT</listitem>
2834 <listitem name="(UTC +12) Auckland, Wellington, Fiji">NZST-12;NZDT</listitem>
2835 </listbox>
2836
2837 <text style="text_m_accent">
2838 <placement x="%col1_x_right%" y="%row3a_y%"/>
2839 <text>Select Offset (usually 0): %tw_time_zone_guioffset%</text>
2840 </text>
2841
2842 <button style="button_quarter_width">
2843 <placement x="%col1_x_right%" y="%row5_y%"/>
2844 <text>None</text>
2845 <action function="set">tw_time_zone_guioffset=0</action>
2846 </button>
2847
2848 <button style="button_quarter_width">
2849 <placement x="%btn4_col2_x_right%" y="%row5_y%"/>
2850 <text>15</text>
2851 <action function="set">tw_time_zone_guioffset=15</action>
2852 </button>
2853
2854 <button style="button_quarter_width">
2855 <placement x="%btn4_col3_x_right%" y="%row5_y%"/>
2856 <text>30</text>
2857 <action function="set">tw_time_zone_guioffset=30</action>
2858 </button>
2859
2860 <button style="button_quarter_width">
2861 <placement x="%btn4_col4_x_right%" y="%row5_y%"/>
2862 <text>45</text>
2863 <action function="set">tw_time_zone_guioffset=45</action>
2864 </button>
2865
2866 <checkbox>
2867 <placement x="%col1_x_right%" y="%row7_y%"/>
2868 <font resource="font_m" color="%text_color%"/>
2869 <text>Use daylight savings time (DST)</text>
2870 <data variable="tw_time_zone_guidst"/>
2871 <image checked="checkbox_true" unchecked="checkbox_false"/>
2872 </checkbox>
2873
2874 <text color="%text_color%">
2875 <font resource="font_m"/>
2876 <placement x="%col1_x_right%" y="%row9_y%"/>
2877 <text>Current Time Zone: %tw_time_zone%</text>
2878 </text>
2879
2880 <button>
2881 <highlight color="%highlight_color%"/>
2882 <placement x="%col2_x_right%" y="%row15a_y%"/>
2883 <font resource="font_m" color="%text_button_color%"/>
2884 <text>Set Time Zone</text>
2885 <image resource="main_button_half_width"/>
2886 <action function="setguitimezone"/>
2887 </button>
2888
2889 <action>
2890 <touch key="home"/>
2891 <action function="page">main</action>
2892 </action>
2893
2894 <action>
2895 <touch key="back"/>
2896 <action function="page">main</action>
2897 </action>
2898 </page>
2899
2900 <page name="settings_screen">
2901 <template name="page"/>
2902
2903 <text style="text_l">
2904 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2905 <text>Settings</text>
2906 </text>
2907
2908 <text style="text_m">
2909 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2910 <text>Screen Settings</text>
2911 </text>
2912
2913 <template name="tabs_settings"/>
2914
2915 <fill color="%text_color%">
2916 <placement x="%center_x%" y="%row_tab_y%" w="%tab4_width%" h="%tab_indicator_height%"/>
2917 </fill>
2918
2919 <button>
2920 <placement x="%col1_x_left%" y="%row3a_y%" textplacement="6"/>
2921 <font resource="font_m" color="%text_color%"/>
2922 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
2923 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
2924 <text>Enable screen timeout.</text>
2925 <image resource="checkbox_false"/>
2926 <action function="set">tw_screen_timeout_secs=60</action>
2927 </button>
2928
2929 <button>
2930 <placement x="%col1_x_left%" y="%row3a_y%" textplacement="6"/>
2931 <font resource="font_m" color="%text_color%"/>
2932 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
2933 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
2934 <text>Enable screen timeout.</text>
2935 <image resource="checkbox_true"/>
2936 <action function="set">tw_screen_timeout_secs=0</action>
2937 </button>
2938
2939 <slidervalue>
2940 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
2941 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
2942 <placement x="col1_x_left" y="%row5_y%" w="%content_width%"/>
2943 <text>Screen timeout in seconds:</text>
2944 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
2945 </slidervalue>
2946
2947 <slidervalue>
2948 <condition var1="tw_has_brightnesss_file" var2="1"/>
2949 <placement x="col1_x_left" y="%row10_y%" w="%content_width%"/>
2950 <text>Brightness: %tw_brightness_pct%%</text>
2951 <data variable="tw_brightness_pct" min="10" max="100"/>
2952 <actions>
2953 <action function="set">tw_brightness=%tw_brightness_max%</action>
2954 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
2955 <action function="compute">tw_brightness/100</action>
2956 <action function="setbrightness">%tw_brightness%</action>
2957 </actions>
2958 </slidervalue>
2959
2960 <action>
2961 <touch key="home"/>
2962 <action function="page">main</action>
2963 </action>
2964
2965 <action>
2966 <touch key="back"/>
2967 <action function="page">main</action>
2968 </action>
2969 </page>
2970
2971 <page name="settings_vibration">
2972 <template name="page"/>
2973
2974 <text style="text_l">
2975 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2976 <text>Settings</text>
2977 </text>
2978
2979 <text style="text_m">
2980 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2981 <text>Vibration Settings</text>
2982 </text>
2983
2984 <template name="tabs_settings"/>
2985
2986 <fill color="%text_color%">
2987 <placement x="%tab4_col4_x%" y="%row_tab_y%" w="%tab4_width%" h="%tab_indicator_height%"/>
2988 </fill>
2989
2990 <slidervalue>
2991 <placement x="col1_x_left" y="%row4_y%" w="%content_width%"/>
2992 <text>Button Vibration:</text>
2993 <data variable="tw_button_vibrate" min="0" max="300"/>
2994 </slidervalue>
2995
2996 <slidervalue>
2997 <placement x="col1_x_left" y="%row9_y%" w="%content_width%"/>
2998 <text>Keyboard Vibration:</text>
2999 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3000 </slidervalue>
3001
3002 <slidervalue>
3003 <placement x="col1_x_left" y="%row14_y%" w="%content_width%"/>
3004 <text>Action Vibration:</text>
3005 <data variable="tw_action_vibrate" min="0" max="500"/>
3006 </slidervalue>
3007
3008 <action>
3009 <touch key="home"/>
3010 <action function="page">main</action>
3011 </action>
3012
3013 <action>
3014 <touch key="back"/>
3015 <action function="page">main</action>
3016 </action>
3017 </page>
3018
3019 <page name="advanced">
3020 <template name="page"/>
3021
3022 <text style="text_l">
3023 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3024 <text>Advanced</text>
3025 </text>
3026
3027 <button style="main_button">
3028 <placement x="%col1_x_left%" y="%row2_y%"/>
3029 <text>Copy Log to SD</text>
3030 <actions>
3031 <action function="set">tw_back=advanced</action>
3032 <action function="set">tw_action=copylog</action>
3033 <action function="set">tw_text1=Copy Log to SD Card?</action>
3034 <action function="set">tw_action_text1=Copying Log to SD Card...</action>
3035 <action function="set">tw_complete_text1=Log Copy Complete</action>
3036 <action function="set">tw_slider_text=Swipe to Confirm</action>
3037 <action function="page">confirm_action</action>
3038 </actions>
3039 </button>
3040
3041 <button style="main_button">
3042 <placement x="%center_x%" y="%row2_y%"/>
3043 <text>Fix Permissions</text>
3044 <action function="page">fixperms</action>
3045 </button>
3046
3047 <button style="main_button">
3048 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3049 <placement x="%col1_x_left%" y="%row6a_y%"/>
3050 <text>Partition SD Card</text>
3051 <action function="page">partsdcard</action>
3052 </button>
3053
3054 <button style="main_button">
3055 <placement x="%center_x%" y="%row6a_y%"/>
3056 <text>File Manager</text>
3057 <action function="page">filemanagerlist</action>
3058 </button>
3059
3060 <button style="main_button">
3061 <placement x="%col1_x_left%" y="%row11_y%"/>
3062 <text>Terminal</text>
3063 <action function="page">terminalfolder</action>
3064 </button>
3065
3066 <button style="main_button">
3067 <placement x="%center_x%" y="%row11_y%"/>
3068 <text>Reload Theme</text>
3069 <action function="reload"/>
3070 </button>
3071
3072 <button style="main_button">
3073 <placement x="%col1_x_left%" y="%row15a_y%"/>
3074 <text>ADB Sideload</text>
3075 <action function="page">sideload</action>
3076 </button>
3077
3078 <button style="main_button">
3079 <condition var1="tw_show_dumlock" var2="1"/>
3080 <placement x="%center_x%" y="%row15a_y%"/>
3081 <text>HTC Dumlock</text>
3082 <action function="page">htcdumlock</action>
3083 </button>
3084
3085 <button style="main_button">
3086 <condition var1="tw_has_injecttwrp" var2="1"/>
3087 <placement x="%center_x%" y="%row15a_y%"/>
3088 <text>Re-Inject TWRP</text>
3089 <actions>
3090 <action function="set">tw_back=advanced</action>
3091 <action function="set">tw_action=reinjecttwrp</action>
3092 <action function="set">tw_text1=Re-Inject TWRP?</action>
3093 <action function="set">tw_action_text1=Re-Injecting TWRP...</action>
3094 <action function="set">tw_complete_text1=TWRP Injection Complete</action>
3095 <action function="set">tw_slider_text=Swipe to Confirm</action>
3096 <action function="page">confirm_action</action>
3097 </actions>
3098 </button>
3099
3100 <action>
3101 <touch key="home"/>
3102 <action function="page">main</action>
3103 </action>
3104
3105 <action>
3106 <touch key="back"/>
3107 <action function="page">main</action>
3108 </action>
3109 </page>
3110
3111 <page name="partsdcard">
3112 <template name="page"/>
3113
3114 <text style="text_l">
3115 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3116 <text>Advanced</text>
3117 </text>
3118
3119 <text style="text_m">
3120 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3121 <text>Partition SD Card</text>
3122 </text>
3123
3124 <text style="text_m_fail">
3125 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3126 <text>You will lose all files on your SD card!</text>
3127 </text>
3128
3129 <text style="text_m_fail">
3130 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3131 <text>This action cannot be undone!</text>
3132 </text>
3133
3134 <text style="text_m_accent">
3135 <placement x="%center_x%" y="%row5_y%" placement="5"/>
3136 <text>EXT Size:</text>
3137 </text>
3138
3139 <text style="text_m">
3140 <placement x="%center_x%" y="%row6_y%" placement="5"/>
3141 <text>%tw_sdext_size%</text>
3142 </text>
3143
3144 <button style="button_quarter_width">
3145 <placement x="%btn4_col3_x_left%" y="%row5_y%"/>
3146 <text>-</text>
3147 <action function="addsubtract">tw_sdext_size-128</action>
3148 </button>
3149
3150 <button style="button_quarter_width">
3151 <placement x="%btn4_col2_x_right%" y="%row5_y%"/>
3152 <text>+</text>
3153 <action function="addsubtract">tw_sdext_size+128</action>
3154 </button>
3155
3156 <text style="text_m_accent">
3157 <placement x="%center_x%" y="%row9_y%" placement="5"/>
3158 <text>Swap Size:</text>
3159 </text>
3160
3161 <text style="text_m">
3162 <placement x="%center_x%" y="%row10_y%" placement="5"/>
3163 <text>%tw_swap_size%</text>
3164 </text>
3165
3166 <button style="button_quarter_width">
3167 <placement x="%btn4_col3_x_left%" y="%row9_y%"/>
3168 <text>-</text>
3169 <action function="addsubtract">tw_swap_size-32</action>
3170 </button>
3171
3172 <button style="button_quarter_width">
3173 <placement x="%btn4_col2_x_right%" y="%row9_y%"/>
3174 <text>+</text>
3175 <action function="addsubtract">tw_swap_size+32</action>
3176 </button>
3177
3178 <text style="text_m_accent">
3179 <placement x="%center_x%" y="%row13_y%" placement="5"/>
3180 <text>File System:</text>
3181 </text>
3182
3183 <text style="text_m">
3184 <placement x="%center_x%" y="%row14_y%" placement="5"/>
3185 <text>%tw_sdpart_file_system%</text>
3186 </text>
3187
3188 <button style="button_quarter_width">
3189 <placement x="%btn4_col3_x_left%" y="%row13_y%"/>
3190 <text>EXT3</text>
3191 <action function="set">tw_sdpart_file_system=ext3</action>
3192 </button>
3193
3194 <button style="button_quarter_width">
3195 <placement x="%btn4_col2_x_right%" y="%row13_y%"/>
3196 <text>EXT4</text>
3197 <action function="set">tw_sdpart_file_system=ext4</action>
3198 </button>
3199
3200 <slider style="slider_centered">
3201 <text>Swipe to Partition</text>
3202 <action function="page">partsdcardaction</action>
3203 <actions>
3204 <action function="set">tw_back=partsdcard</action>
3205 <action function="set">tw_action=partitionsd</action>
3206 <action function="set">tw_has_action2=1</action>
3207 <action function="set">tw_action2=set</action>
3208 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
3209 <action function="set">tw_action_text1=Partitioning SD Card...</action>
3210 <action function="set">tw_action_text2=This will take a few minutes.</action>
3211 <action function="set">tw_complete_text1=Partitioning Complete</action>
3212 <action function="page">action_page</action>
3213 </actions>
3214 </slider>
3215
3216 <action>
3217 <touch key="home"/>
3218 <action function="page">main</action>
3219 </action>
3220
3221 <action>
3222 <touch key="back"/>
3223 <action function="page">advanced</action>
3224 </action>
3225 </page>
3226
3227 <page name="htcdumlock">
3228 <template name="page"/>
3229
3230 <text style="text_l">
3231 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3232 <text>Advanced</text>
3233 </text>
3234
3235 <text style="text_m">
3236 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3237 <text>HTC Dumlock</text>
3238 </text>
3239
3240 <button style="main_button_m">
3241 <placement x="%col2_x_left%" y="%row2_y%"/>
3242 <text>Restore Original Boot</text>
3243 <actions>
3244 <action function="set">tw_back=htcdumlock</action>
3245 <action function="set">tw_action=htcdumlockrestoreboot</action>
3246 <action function="set">tw_text1=Restore original boot image?</action>
3247 <action function="set">tw_action_text1=Restoring Original Boot...</action>
3248 <action function="set">tw_complete_text1=Restore Original Boot Complete</action>
3249 <action function="set">tw_slider_text=Swipe to Confirm</action>
3250 <action function="page">confirm_action</action>
3251 </actions>
3252 </button>
3253
3254 <button style="main_button_m">
3255 <placement x="%col2_x_left%" y="%row6a_y%"/>
3256 <text>Reflash Recovery</text>
3257 <actions>
3258 <action function="set">tw_back=htcdumlock</action>
3259 <action function="set">tw_action=htcdumlockreflashrecovery</action>
3260 <action function="set">tw_text1=Reflash recovery to boot?</action>
3261 <action function="set">tw_action_text1=Flashing recovery to boot...</action>
3262 <action function="set">tw_complete_text1=Recovery Flash to Boot Complete</action>
3263 <action function="set">tw_slider_text=Swipe to Confirm</action>
3264 <action function="page">confirm_action</action>
3265 </actions>
3266 </button>
3267
3268 <button style="main_button_m">
3269 <placement x="%col2_x_left%" y="%row11_y%"/>
3270 <text>Install HTC Dumlock</text>
3271 <actions>
3272 <action function="set">tw_back=htcdumlock</action>
3273 <action function="set">tw_action=installhtcdumlock</action>
3274 <action function="set">tw_text1=Install HTC dumlock files to ROM?</action>
3275 <action function="set">tw_action_text1=Installing HTC Dumlock...</action>
3276 <action function="set">tw_complete_text1=HTC Dumlock Install Complete</action>
3277 <action function="set">tw_slider_text=Swipe to Confirm</action>
3278 <action function="page">confirm_action</action>
3279 </actions>
3280 </button>
3281
3282 <action>
3283 <touch key="home"/>
3284 <action function="page">main</action>
3285 </action>
3286
3287 <action>
3288 <touch key="back"/>
3289 <action function="page">advanced</action>
3290 </action>
3291 </page>
3292
3293 <page name="lock">
3294 <background color="%semi_transparent%"/>
3295
3296 <image>
3297 <image resource="unlock_icon"/>
3298 <placement x="%center_x%" y="%row8_y%" placement="4"/>
3299 </image>
3300
3301 <slider style="slider_centered">
3302 <text>Swipe to Unlock</text>
3303 <action function="overlay"/>
3304 </slider>
3305 </page>
3306
3307 <page name="filemanagerlist">
3308 <template name="page"/>
3309
3310 <text style="text_l">
3311 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3312 <text>File Manager</text>
3313 </text>
3314
3315 <text style="text_m">
3316 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3317 <text>Select a File or Folder</text>
3318 </text>
3319
3320 <template name="sort_options"/>
3321
3322 <fileselector>
3323 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
3324 <text>%tw_file_location1%</text>
3325 <filter folders="1" files="1"/>
3326 <path name="tw_file_location1" default="/"/>
3327 <data name="tw_filename1"/>
3328 <selection name="tw_selection1"/>
3329 </fileselector>
3330
3331 <button style="main_button_half_width_low">
3332 <placement x="%col_button_right%" y="%row16a_y%"/>
3333 <text>Select current Folder</text>
3334 <actions>
3335 <action function="set">tw_filename1=tw_file_location1</action>
3336 <action function="set">tw_fm_isfolder=1</action>
3337 <action function="set">tw_fm_type=Folder</action>
3338 <action function="page">filemanageroptions</action>
3339 </actions>
3340 </button>
3341
3342 <action>
3343 <actions>
3344 <action function="set">tw_fm_type=File</action>
3345 <action function="set">tw_fm_isfolder=0</action>
3346 </actions>
3347 </action>
3348
3349 <action>
3350 <touch key="home"/>
3351 <action function="page">main</action>
3352 </action>
3353
3354 <action>
3355 <touch key="back"/>
3356 <action function="page">advanced</action>
3357 </action>
3358
3359 <action>
3360 <condition var1="tw_filename1" op="modified"/>
3361 <action function="page">filemanageroptions</action>
3362 </action>
3363 </page>
3364
3365 <page name="filemanageroptions">
3366 <template name="page"/>
3367
3368 <text style="text_l">
3369 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3370 <text>File Manager</text>
3371 </text>
3372
3373 <text style="text_m">
3374 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3375 <text>Choose Action</text>
3376 </text>
3377
3378 <text style="text_m_accent">
3379 <placement x="%col1_x_left%" y="%row2_y%"/>
3380 <text>%tw_fm_type% selected:</text>
3381 </text>
3382
3383 <text style="text_m">
3384 <placement x="%col1_x_left%" y="%row3_y%"/>
3385 <text>%tw_filename1%</text>
3386 </text>
3387
3388 <button style="main_button_half_width">
3389 <condition var1="tw_fm_isfolder" var2="0"/>
3390 <placement x="%col1_x_left%" y="%row11_y%"/>
3391 <text>Copy File</text>
3392 <actions>
3393 <action function="set">tw_filemanager_command=cp</action>
3394 <action function="set">tw_fm_text1=Copying</action>
3395 <action function="page">choosedestinationfolder</action>
3396 </actions>
3397 </button>
3398
3399 <button style="main_button_half_width">
3400 <condition var1="tw_fm_isfolder" var2="1"/>
3401 <placement x="%col1_x_left%" y="%row11_y%"/>
3402 <text>Copy Folder</text>
3403 <actions>
3404 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; cp -R</action>
3405 <action function="set">tw_fm_text1=Copying</action>
3406 <action function="page">choosedestinationfolder</action>
3407 </actions>
3408 </button>
3409
3410 <button style="main_button_half_width">
3411 <placement x="%col2_x_left%" y="%row11_y%"/>
3412 <text>Move</text>
3413 <actions>
3414 <action function="set">tw_filemanager_command=mv</action>
3415 <action function="set">tw_fm_text1=Moving</action>
3416 <action function="page">choosedestinationfolder</action>
3417 </actions>
3418 </button>
3419
3420 <button style="main_button_half_width">
3421 <placement x="%col2_x_left%" y="%row15a_y%"/>
3422 <text>chmod 755</text>
3423 <actions>
3424 <action function="set">tw_filemanager_command=chmod 755</action>
3425 <action function="set">tw_fm_text1=chmod 755</action>
3426 <action function="set">tw_fm_text2=</action>
3427 <action function="set">tw_fm_text3=</action>
3428 <action function="set">tw_include_text3=0</action>
3429 <action function="set">tw_back=filemanageroptions</action>
3430 <action function="page">filemanagerconfirm</action>
3431 </actions>
3432 </button>
3433
3434 <button style="main_button_half_width">
3435 <placement x="%center_x%" y="%row15a_y%"/>
3436 <text>chmod</text>
3437 <actions>
3438 <action function="set">tw_filemanager_rename=0000</action>
3439 <action function="set">tw_fm_text2=</action>
3440 <action function="set">tw_fm_text3=</action>
3441 <action function="set">tw_include_text3=0</action>
3442 <action function="set">tw_back=filemanageroptions</action>
3443 <action function="page">filemanagerchmod</action>
3444 </actions>
3445 </button>
3446
3447 <button style="main_button_half_width">
3448 <placement x="%col2_x_right%" y="%row11_y%"/>
3449 <text>Delete</text>
3450 <actions>
3451 <action function="set">tw_filemanager_command=rm -rf</action>
3452 <action function="set">tw_fm_text1=Deleting</action>
3453 <action function="set">tw_fm_text2=</action>
3454 <action function="set">tw_fm_text3=</action>
3455 <action function="set">tw_include_text3=0</action>
3456 <action function="set">tw_back=filemanageroptions</action>
3457 <action function="page">filemanagerconfirm</action>
3458 </actions>
3459 </button>
3460
3461 <button style="main_button_half_width">
3462 <condition var1="tw_fm_isfolder" var2="0"/>
3463 <placement x="%center_x%" y="%row11_y%"/>
3464 <text>Rename File</text>
3465 <actions>
3466 <action function="set">tw_filemanager_rename=tw_selection1</action>
3467 <action function="set">tw_fm_text1=Renaming</action>
3468 <action function="set">tw_filemanager_command=mv</action>
3469 <action function="page">filemanagerrenamefile</action>
3470 </actions>
3471 </button>
3472
3473 <button style="main_button_half_width">
3474 <condition var1="tw_fm_isfolder" var2="1"/>
3475 <placement x="%center_x%" y="%row11_y%"/>
3476 <text>Rename Folder</text>
3477 <actions>
3478 <action function="set">tw_filemanager_rename=tw_selection1</action>
3479 <action function="set">tw_fm_text1=Renaming</action>
3480 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
3481 <action function="page">filemanagerrenamefolder</action>
3482 </actions>
3483 </button>
3484
3485 <action>
3486 <touch key="home"/>
3487 <action function="page">main</action>
3488 </action>
3489
3490 <action>
3491 <touch key="back"/>
3492 <action function="page">filemanagerlist</action>
3493 </action>
3494 </page>
3495
3496 <page name="choosedestinationfolder">
3497 <template name="page"/>
3498
3499 <text style="text_l">
3500 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3501 <text>File Manager</text>
3502 </text>
3503
3504 <text style="text_m">
3505 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3506 <text>Select Destination Folder</text>
3507 </text>
3508
3509 <template name="sort_options"/>
3510
3511 <fileselector>
3512 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
3513 <text>%tw_file_location2%</text>
3514 <filter folders="1" files="0"/>
3515 <path name="tw_file_location2" default="/"/>
3516 <data name="tw_filename2"/>
3517 <selection name="tw_selection2"/>
3518 </fileselector>
3519
3520 <button style="main_button_half_width_low">
3521 <placement x="%col_button_right%" y="%row16a_y%"/>
3522 <text>Select current Folder</text>
3523 <actions>
3524 <action function="set">tw_fm_text2=to</action>
3525 <action function="set">tw_fm_text3=%tw_file_location2%</action>
3526 <action function="set">tw_include_text3=1</action>
3527 <action function="set">tw_back=filemanageroptions</action>
3528 <action function="page">filemanagerconfirm</action>
3529 </actions>
3530 </button>
3531
3532 <action>
3533 <touch key="home"/>
3534 <action function="page">main</action>
3535 </action>
3536
3537 <action>
3538 <touch key="back"/>
3539 <action function="page">filemanageroptions</action>
3540 </action>
3541 </page>
3542
3543 <page name="filemanagerrenamefile">
3544 <template name="page"/>
3545
3546 <text style="text_l">
3547 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3548 <text>File Manager</text>
3549 </text>
3550
3551 <text style="text_m">
3552 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3553 <text>Rename %tw_fm_type%</text>
3554 </text>
3555
3556 <text style="text_m_accent">
3557 <placement x="%col1_x_left%" y="%row2_y%"/>
3558 <text>Name:</text>
3559 </text>
3560
3561 <input>
3562 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
3563 <text>%tw_filemanager_rename%</text>
3564 <data name="tw_filemanager_rename"/>
3565 <restrict minlen="1" maxlen="128"/>
3566 <actions>
3567 <action function="set">tw_fm_text2=to</action>
3568 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
3569 <action function="set">tw_include_text3=1</action>
3570 <action function="set">tw_back=filemanageroptions</action>
3571 <action function="page">filemanagerconfirm</action>
3572 </actions>
3573 </input>
3574
3575 <fill color="%accent_color%">
3576 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
3577 </fill>
3578
3579 <button style="main_button_half_width_low">
3580 <placement x="%indent%" y="%row5_y%"/>
3581 <text>Cancel</text>
3582 <action function="page">filemanageroptions</action>
3583 </button>
3584
3585 <template name="keyboardtemplate"/>
3586
3587 <action>
3588 <touch key="home"/>
3589 <action function="page">main</action>
3590 </action>
3591
3592 <action>
3593 <touch key="back"/>
3594 <action function="page">filemanageroptions</action>
3595 </action>
3596 </page>
3597
3598 <page name="filemanagerrenamefolder">
3599 <template name="page"/>
3600
3601 <text style="text_l">
3602 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3603 <text>File Manager</text>
3604 </text>
3605
3606 <text style="text_m">
3607 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3608 <text>Rename %tw_fm_type%</text>
3609 </text>
3610
3611 <text style="text_m_accent">
3612 <placement x="%col1_x_left%" y="%row2_y%"/>
3613 <text>Name:</text>
3614 </text>
3615
3616 <input>
3617 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
3618 <text>%tw_filemanager_rename%</text>
3619 <data name="tw_filemanager_rename"/>
3620 <restrict minlen="1" maxlen="128"/>
3621 <actions>
3622 <action function="set">tw_fm_text2=to</action>
3623 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
3624 <action function="set">tw_include_text3=1</action>
3625 <action function="set">tw_back=filemanageroptions</action>
3626 <action function="page">filemanagerconfirm</action>
3627 </actions>
3628 </input>
3629
3630 <fill color="%accent_color%">
3631 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
3632 </fill>
3633
3634 <button style="main_button_half_width_low">
3635 <placement x="%indent%" y="%row5_y%"/>
3636 <text>Cancel</text>
3637 <action function="page">filemanageroptions</action>
3638 </button>
3639
3640 <template name="keyboardtemplate"/>
3641
3642 <action>
3643 <touch key="home"/>
3644 <action function="page">main</action>
3645 </action>
3646
3647 <action>
3648 <touch key="back"/>
3649 <action function="page">filemanageroptions</action>
3650 </action>
3651 </page>
3652
3653 <page name="filemanagerchmod">
3654 <template name="page"/>
3655
3656 <text style="text_l">
3657 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3658 <text>File Manager</text>
3659 </text>
3660
3661 <text style="text_m">
3662 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3663 <text>Set Permissions</text>
3664 </text>
3665
3666 <text style="text_m_accent">
3667 <placement x="%col1_x_left%" y="%row2_y%"/>
3668 <text>Permissions:</text>
3669 </text>
3670
3671 <input>
3672 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
3673 <text>%tw_filemanager_rename%</text>
3674 <data name="tw_filemanager_rename"/>
3675 <restrict minlen="3" maxlen="4" allow="0123456789"/>
3676 <actions>
3677 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
3678 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
3679 <action function="set">tw_back=filemanageroptions</action>
3680 <action function="page">filemanagerconfirm</action>
3681 </actions>
3682 </input>
3683
3684 <fill color="%accent_color%">
3685 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
3686 </fill>
3687
3688 <button style="main_button_half_width_low">
3689 <placement x="%indent%" y="%row5_y%"/>
3690 <text>Cancel</text>
3691 <action function="page">filemanageroptions</action>
3692 </button>
3693
3694 <template name="keyboardtemplate"/>
3695
3696 <action>
3697 <touch key="home"/>
3698 <action function="page">main</action>
3699 </action>
3700
3701 <action>
3702 <touch key="back"/>
3703 <action function="page">filemanageroptions</action>
3704 </action>
3705 </page>
3706
3707 <page name="filemanagerconfirm">
3708 <template name="page"/>
3709
3710 <text style="text_l">
3711 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3712 <text>File Manager</text>
3713 </text>
3714
3715 <text style="text_m">
3716 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3717 <text>Confirm Action</text>
3718 </text>
3719
3720 <text style="text_m_accent">
3721 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3722 <text>%tw_fm_text1%</text>
3723 </text>
3724
3725 <text style="text_m">
3726 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3727 <text>%tw_filename1%</text>
3728 </text>
3729
3730 <text style="text_m_accent">
3731 <placement x="%center_x%" y="%row5_y%" placement="5"/>
3732 <text>%tw_fm_text2%</text>
3733 </text>
3734
3735 <text style="text_m">
3736 <placement x="%center_x%" y="%row6_y%" placement="5"/>
3737 <text>%tw_fm_text3%</text>
3738 </text>
3739
3740 <text style="text_m">
3741 <placement x="%center_x%" y="%row8_y%" placement="5"/>
3742 <text>Press back button to cancel.</text>
3743 </text>
3744
3745 <slider style="slider_centered">
3746 <text>Swipe to Confirm</text>
3747 <action function="page">filemanageraction</action>
3748 </slider>
3749
3750 <action>
3751 <touch key="back"/>
3752 <action function="page">%tw_back%</action>
3753 </action>
3754
3755 <action>
3756 <touch key="home"/>
3757 <action function="page">main</action>
3758 </action>
3759 </page>
3760
3761 <page name="filemanageraction">
3762 <template name="page"/>
3763
3764 <text style="text_l">
3765 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3766 <text>File Manager</text>
3767 </text>
3768
3769 <text style="text_m">
3770 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3771 <text>%tw_fm_text1%</text>
3772 </text>
3773
3774 <template name="console"/>
3775
3776 <template name="progress_bar"/>
3777
3778 <action>
3779 <conditions>
3780 <condition var1="tw_operation_state" var2="1"/>
3781 <condition var1="tw_operation_status" var2="0"/>
3782 </conditions>
3783 <actions>
3784 <action function="set">tw_back=filemanagerlist</action>
3785 <action function="set">tw_complete_text1=File Operation Complete</action>
3786 <action function="page">action_complete</action>
3787 </actions>
3788 </action>
3789
3790 <action>
3791 <conditions>
3792 <condition var1="tw_operation_state" var2="1"/>
3793 <condition var1="tw_operation_status" op="!=" var2="0"/>
3794 </conditions>
3795 <actions>
3796 <action function="set">tw_complete_text1=File Operation Complete</action>
3797 <action function="page">action_complete</action>
3798 </actions>
3799 </action>
3800
3801 <action>
3802 <condition var1="tw_include_text3" var2="0"/>
3803 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
3804 </action>
3805
3806 <action>
3807 <condition var1="tw_include_text3" var2="1"/>
3808 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
3809 </action>
3810 </page>
3811
3812 <page name="decrypt">
3813 <template name="page"/>
3814
3815 <action>
3816 <condition var1="tw_crypto_pwtype" var2="2"/>
3817 <action function="page">decrypt_pattern</action>
3818 </action>
3819
3820 <text style="text_l">
3821 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3822 <text>Mount</text>
3823 </text>
3824
3825 <text style="text_m">
3826 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3827 <text>Decrypt Data</text>
3828 </text>
3829
3830 <text style="text_m_accent">
3831 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3832 <text>Enter Password:</text>
3833 </text>
3834
3835 <input>
3836 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
3837 <text>%tw_crypto_display%</text>
3838 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
3839 <restrict minlen="1" maxlen="254"/>
3840 <action function="page">trydecrypt</action>
3841 </input>
3842
3843 <fill color="%accent_color%">
3844 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
3845 </fill>
3846
3847 <fill color="%text_fail_color%">
3848 <condition var1="tw_password_fail" var2="1"/>
3849 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
3850 </fill>
3851
3852 <text style="text_m_fail">
3853 <condition var1="tw_password_fail" var2="1"/>
3854 <placement x="%col1_x_left%" y="%row5_y%"/>
3855 <text>Password failed, please try again!</text>
3856 </text>
3857
3858 <button style="main_button_half_width_low">
3859 <placement x="%indent%" y="%row6_y%"/>
3860 <text>Cancel</text>
3861 <actions>
3862 <action function="set">tw_page_done=1</action>
3863 <action function="page">main</action>
3864 </actions>
3865 </button>
3866
3867 <template name="keyboardtemplate"/>
3868 </page>
3869
3870 <page name="decrypt_pattern">
3871 <template name="page"/>
3872
3873 <text style="text_l">
3874 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3875 <text>Mount</text>
3876 </text>
3877
3878 <text style="text_m">
3879 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3880 <text>Decrypt Data</text>
3881 </text>
3882
3883 <text style="text_m_accent">
3884 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3885 <text>Enter Pattern:</text>
3886 </text>
3887
3888 <patternpassword>
3889 <placement x="%pattern_x%" y="%row4_y%" w="%pattern_size%" h="%pattern_size%"/>
3890 <size name="tw_pattern_grid_size" default="3"/>
3891 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
3892 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
3893 <data name="tw_crypto_password"/>
3894 <action function="page">trydecrypt</action>
3895 </patternpassword>
3896
3897 <button style="main_button_half_width">
3898 <placement x="%col2_x_right%" y="%row15a_y%"/>
3899 <text>Cancel</text>
3900 <actions>
3901 <action function="set">tw_page_done=1</action>
3902 <action function="page">main</action>
3903 </actions>
3904 </button>
3905 </page>
3906
3907 <page name="trydecrypt">
3908 <template name="page"/>
3909
3910 <text style="text_l">
3911 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3912 <text>Mount</text>
3913 </text>
3914
3915 <text style="text_m">
3916 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3917 <text>Decrypt Data - Trying Decryption</text>
3918 </text>
3919
3920 <template name="console"/>
3921
3922 <template name="progress_bar"/>
3923
3924 <action>
3925 <action function="decrypt"/>
3926 </action>
3927
3928 <action>
3929 <conditions>
3930 <condition var1="tw_operation_state" var2="1"/>
3931 <condition var1="tw_operation_status" op="!=" var2="0"/>
3932 </conditions>
3933 <actions>
3934 <action function="set">tw_password_fail=1</action>
3935 <action function="page">decrypt</action>
3936 </actions>
3937 </action>
3938
3939 <action>
3940 <conditions>
3941 <condition var1="tw_operation_state" var2="1"/>
3942 <condition var1="tw_operation_status" op="=" var2="0"/>
3943 </conditions>
3944 <actions>
3945 <action function="set">tw_page_done=1</action>
3946 <action function="page">main</action>
3947 </actions>
3948 </action>
3949 </page>
3950
3951 <page name="terminalfolder">
3952 <template name="page"/>
3953
3954 <text style="text_l">
3955 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3956 <text>Terminal Command</text>
3957 </text>
3958
3959 <text style="text_m">
3960 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3961 <text>Browse to Starting Folder</text>
3962 </text>
3963
3964 <template name="sort_options"/>
3965
3966 <fileselector>
3967 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
3968 <text>%tw_terminal_location%</text>
3969 <filter folders="1" files="0"/>
3970 <path name="tw_terminal_location" default="/"/>
3971 <data name="tw_terminal"/>
3972 <selection name="tw_terminal_selection"/>
3973 </fileselector>
3974
3975 <button style="main_button_half_width_low">
3976 <placement x="%col_button_right%" y="%row16a_y%"/>
3977 <text>Select current Folder</text>
3978 <action function="page">terminalcommand</action>
3979 </button>
3980
3981 <action>
3982 <touch key="home"/>
3983 <action function="page">main</action>
3984 </action>
3985
3986 <action>
3987 <touch key="back"/>
3988 <action function="page">advanced</action>
3989 </action>
3990 </page>
3991
3992 <page name="terminalcommand">
3993 <template name="page"/>
3994
3995 <fill color="%background_color%">
3996 <placement x="0" y="%status_height%" w="%screen_width%" h="%header_height%"/>
3997 </fill>
3998
3999 <template name="console_terminal"/>
4000
4001 <input>
4002 <placement x="%col1_x_left%" y="%row8_y%" w="%content_quarter_width%" h="%input_height%"/>
4003 <text>%tw_terminal_command%</text>
4004 <data name="tw_terminal_command"/>
4005 <restrict minlen="1"/>
4006 <action function="terminalcommand">%tw_terminal_command%</action>
4007 </input>
4008
4009 <fill color="%accent_color%">
4010 <placement x="%col1_x_left%" y="row9_y" w="%content_quarter_width%" h="input_line_width" placement="1"/>
4011 </fill>
4012
4013 <button>
4014 <condition var1="tw_terminal_state" var2="1"/>
4015 <highlight color="%highlight_color%"/>
4016 <placement x="%btn4_col4_x_right%" y="%row7a_y%"/>
4017 <font resource="font_m" color="%text_button_color%"/>
4018 <text>Kill</text>
4019 <image resource="tab_4"/>
4020 <action function="killterminal"/>
4021 </button>
4022
4023 <template name="keyboardtemplate"/>
4024
4025 <action>
4026 <touch key="home"/>
4027 <action function="page">main</action>
4028 </action>
4029
4030 <action>
4031 <touch key="back"/>
4032 <action function="page">terminalfolder</action>
4033 </action>
4034 </page>
4035
4036 <page name="sideload">
4037 <template name="page"/>
4038
4039 <text style="text_l">
4040 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4041 <text>Advanced</text>
4042 </text>
4043
4044 <text style="text_m">
4045 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4046 <text>ADB Sideload</text>
4047 </text>
4048
4049 <checkbox>
4050 <placement x="%col1_x_left%" y="%row2_y%"/>
4051 <text>Wipe Dalvik Cache</text>
4052 <data variable="tw_wipe_dalvik"/>
4053 </checkbox>
4054
4055 <checkbox>
4056 <placement x="%col1_x_left%" y="%row3a_y%"/>
4057 <text>Wipe Cache</text>
4058 <data variable="tw_wipe_cache"/>
4059 </checkbox>
4060
4061 <slider style="slider_centered">
4062 <text>Swipe to start Sideload</text>
4063 <action function="page">partsdcardaction</action>
4064 <actions>
4065 <action function="set">tw_back=advanced</action>
4066 <action function="set">tw_action=adbsideload</action>
4067 <action function="set">tw_action_text1=ADB Sideload</action>
4068 <action function="set">tw_action_text2=Usage: adb sideload filename.zip</action>
4069 <action function="set">tw_complete_text1=ADB Sideload Complete</action>
4070 <action function="set">tw_has_cancel=1</action>
4071 <action function="set">tw_show_reboot=1</action>
4072 <action function="set">tw_cancel_action=adbsideloadcancel</action>
4073 <action function="page">action_page</action>
4074 </actions>
4075 </slider>
4076
4077 <action>
4078 <touch key="home"/>
4079 <action function="page">main</action>
4080 </action>
4081
4082 <action>
4083 <touch key="back"/>
4084 <action function="page">advanced</action>
4085 </action>
4086 </page>
4087
4088 <page name="fixperms">
4089 <template name="page"/>
4090
4091 <text style="text_l">
4092 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4093 <text>Advanced</text>
4094 </text>
4095
4096 <text style="text_m">
4097 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4098 <text>Fix Permissions</text>
4099 </text>
4100
4101 <text style="text_m_accent">
4102 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4103 <text>Note: Fixing permissions is rarely needed.</text>
4104 </text>
4105
4106 <checkbox>
4107 <placement x="%col2_x_left%" y="%row4_y%"/>
4108 <text>Also fix SELinux Contexts</text>
4109 <data variable="tw_fixperms_restorecon"/>
4110 </checkbox>
4111
4112 <text style="text_m_fail">
4113 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4114 <text>Fixing SELinux Contexts may cause</text>
4115 </text>
4116
4117 <text style="text_m_fail">
4118 <placement x="%center_x%" y="%row7_y%" placement="5"/>
4119 <text>your device to not boot properly.</text>
4120 </text>
4121
4122 <slider style="slider_centered">
4123 <text>Swipe to Fix Permissions</text>
4124 <actions>
4125 <action function="set">tw_back=advanced</action>
4126 <action function="set">tw_action=fixpermissions</action>
4127 <action function="set">tw_action_text1=Fixing Permissions...</action>
4128 <action function="set">tw_complete_text1=Fix Permissions Complete</action>
4129 <action function="set">tw_slider_text=Swipe to Confirm</action>
4130 <action function="set">tw_show_reboot=1</action>
4131 <action function="page">action_page</action>
4132 </actions>
4133 </slider>
4134
4135 <action>
4136 <touch key="home"/>
4137 <action function="page">main</action>
4138 </action>
4139
4140 <action>
4141 <touch key="back"/>
4142 <action function="page">advanced</action>
4143 </action>
4144 </page>
4145
4146 <page name="installsu">
4147 <template name="page"/>
4148
4149 <text style="text_l">
4150 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4151 <text>Reboot</text>
4152 </text>
4153
4154 <text style="text_m">
4155 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4156 <text>SuperSU Check</text>
4157 </text>
4158
4159 <text style="text_m_accent">
4160 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4161 <text>Your device does not appear to be rooted.</text>
4162 </text>
4163
4164 <text style="text_m">
4165 <placement x="%center_x%" y="%row4_y%" placement="5"/>
4166 <text>Install SuperSU now?</text>
4167 </text>
4168
4169 <text style="text_m">
4170 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4171 <text>This will root your device.</text>
4172 </text>
4173
4174 <button style="main_button_half_width">
4175 <placement x="%col2_x_left%" y="%row15a_y%"/>
4176 <text>Do not Install</text>
4177 <action function="set">tw_page_done=1</action>
4178 </button>
4179
4180 <slider>
4181 <text>Swipe to Install</text>
4182 <actions>
4183 <action function="set">tw_action=installsu</action>
4184 <action function="set">tw_action_text1=Installing SuperSU</action>
4185 <action function="set">tw_action_text2=</action>
4186 <action function="page">singleaction_page</action>
4187 </actions>
4188 </slider>
4189 </page>
4190
4191 <page name="slideout">
4192 <fill color="%background_color%">
4193 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
4194 </fill>
4195
4196 <console>
4197 <placement x="%col1_x_left%" y="%slideout_y%" w="%content_width%" h="%slideout_height%"/>
4198 </console>
4199
4200 <button>
4201 <fill color="%transparent%"/>
4202 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
4203 <action function="overlay"/>
4204 </button>
4205
4206 <action>
4207 <touch key="power+voldown"/>
4208 <action function="screenshot"/>
4209 </action>
4210 </page>
4211
4212 <page name="select_storage">
4213 <fill color="%semi_transparent%">
4214 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
4215 </fill>
4216
4217 <fill color="%background_color%">
4218 <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/>
4219 </fill>
4220
4221 <partitionlist style="partitionlist_storage">
4222 <text>Select Storage</text>
4223 <data name="tw_storage_path"/>
4224 <listtype name="storage"/>
4225 </partitionlist>
4226
4227 <button style="button_third_width">
4228 <placement x="%dialog_button_x%" y="%row13_y%"/>
4229 <text>OK</text>
4230 <actions>
4231 <action function="set">tw_clear_destination=%tw_back%</action>
4232 <action function="overlay"/>
4233 <action function="page">clear_vars</action>
4234 </actions>
4235 </button>
4236
4237 <fill color="#000000">
4238 <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/>
4239 </fill>
4240
4241 <button>
4242 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
4243 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
4244 <image resource="back"/>
4245 <condition var1="tw_busy" var2="0"/>
4246 <actions>
4247 <action function="overlay"/>
4248 <action function="key">%tw_back%</action>
4249 </actions>
4250 </button>
4251
4252 <button>
4253 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
4254 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
4255 <image resource="console"/>
4256 <condition var1="tw_busy" var2="0"/>
4257 <action function="overlay">slideout</action>
4258 </button>
4259
4260 <button>
4261 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
4262 <image resource="home"/>
4263 <condition var1="tw_busy" var2="0"/>
4264 <actions>
4265 <action function="overlay"/>
4266 <action function="key">home</action>
4267 </actions>
4268 </button>
4269
4270 <button>
4271 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
4272 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
4273 <image resource="console"/>
4274 <condition var1="tw_busy" var2="0"/>
4275 <action function="overlay">slideout</action>
4276 </button>
4277
4278 <button>
4279 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
4280 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
4281 <image resource="back"/>
4282 <condition var1="tw_busy" var2="0"/>
4283 <actions>
4284 <action function="overlay"/>
4285 <action function="key">%tw_back%</action>
4286 </actions>
4287 </button>
4288
4289 <action>
4290 <touch key="power+voldown"/>
4291 <action function="screenshot"/>
4292 </action>
4293 </page>
4294 </pages>
4295</recovery>