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