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