blob: fe6167155aba0de32e1c38bf1f6bfcc6b8d7a9eb [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%" />
Ethan Yonker751a85e2014-12-12 16:59:10 -06001044 <placement x="%col1_x%" y="%wipe_button_row1%" w="%button_fill_full_width%" h="%button_fill_half_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001045 <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%" />
Ethan Yonker751a85e2014-12-12 16:59:10 -06001497 <placement x="%col1_x%" y="%row1_header_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001498 <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
bigbiff7abc5fe2015-01-17 16:53:12 -05001870 <object type="button">
1871 <highlight color="%highlight_color%" />
1872 <placement x="%col_center_medium_x%" y="%row4_y%" />
1873 <font resource="font" color="%button_text_color%" />
1874 <text>Cancel</text>
1875 <image resource="medium_button" />
1876 <actions>
1877 <action function="cancelbackup"></action>
1878 </actions>
1879 </object>
1880
Ethan Yonker780cd392014-07-21 15:24:39 -05001881 <object type="template" name="progress_bar" />
1882
1883 <object type="action">
1884 <action function="nandroid">backup</action>
1885 </object>
1886
1887 <object type="action">
1888 <condition var1="tw_operation_state" var2="1" />
bigbiff7abc5fe2015-01-17 16:53:12 -05001889 <condition var1="tw_cancel_backup" var2="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001890 <actions>
1891 <action function="set">tw_back=backup</action>
1892 <action function="set">tw_complete_text1=Backup Complete</action>
1893 <action function="set">tw_show_reboot=1</action>
1894 <action function="page">action_complete</action>
1895 </actions>
1896 </object>
bigbiff7abc5fe2015-01-17 16:53:12 -05001897
1898 <object type="action">
1899 <condition var1="tw_operation_state" var2="1" />
1900 <condition var1="tw_cancel_backup" var2="1" />
1901 <actions>
1902 <action function="set">tw_back=backup</action>
1903 <action function="set">tw_complete_text1=Backup Cancelled</action>
1904 <action function="set">tw_show_reboot=1</action>
1905 <action function="page">action_complete</action>
1906 </actions>
1907 </object>
Ethan Yonker780cd392014-07-21 15:24:39 -05001908 </page>
1909
1910 <page name="restore">
1911 <object type="template" name="header" />
1912
1913 <object type="button">
1914 <highlight color="%highlight_color%" />
1915 <fill color="%button_fill_color%" />
1916 <placement x="%col1_x%" y="%row1_header_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
1917 <font resource="font" color="%button_text_color%" />
1918 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
1919 <actions>
1920 <action function="set">tw_back=restore</action>
1921 <action function="page">selectstorage</action>
1922 </actions>
1923 </object>
1924
1925 <object type="fileselector">
1926 <highlight color="%fileselector_highlight_color%" />
1927 <placement x="%fileselector_x%" y="%row2_text_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
1928 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
1929 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
1930 <text>Select Package to Restore:</text>
1931 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
1932 <sort name="tw_gui_sort_order" />
1933 <icon folder="folder_icon" file="file_icon" />
1934 <background color="%fileselector_background%" />
1935 <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
1936 <filter folders="1" files="0" nav="0" />
1937 <path name="tw_backups_folder" />
1938 <data name="tw_restore" default="" />
1939 <selection name="tw_restore_name" />
1940 </object>
1941
1942 <object type="template" name="sort_options" />
1943
1944 <object type="action">
1945 <condition var1="tw_restore" op="modified" />
1946 <actions>
1947 <action function="readBackup"></action>
1948 <action function="page">restore_read</action>
1949 </actions>
1950 </object>
1951
1952 <object type="action">
1953 <touch key="home" />
1954 <action function="page">main</action>
1955 </object>
1956
1957 <object type="action">
1958 <touch key="back" />
1959 <action function="page">main</action>
1960 </object>
1961
1962 <object type="template" name="footer" />
1963 </page>
1964
1965 <page name="restore_read">
1966 <object type="action">
1967 <condition var1="tw_restore_encrypted" var2="1" />
1968 <actions>
1969 <action function="set">tw_password_fail=0</action>
1970 <action function="page">restore_decrypt</action>
1971 </actions>
1972 </object>
1973
1974 <object type="action">
1975 <condition var1="tw_restore_encrypted" var2="0" />
1976 <actions>
1977 <action function="page">restore_select</action>
1978 </actions>
1979 </object>
1980 </page>
1981
1982 <page name="restore_decrypt">
1983 <object type="template" name="header" />
1984
1985 <object type="text" color="%text_color%">
1986 <font resource="font" />
1987 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
1988 <text>Backup Encrypted</text>
1989 </object>
1990
1991 <object type="text" color="%text_color%">
1992 <font resource="font" />
1993 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1994 <text>Please Enter Your Password:</text>
1995 </object>
1996
1997 <object type="input">
1998 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
1999 <background color="%input_background_color%" />
2000 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
2001 <font resource="font" color="%text_color%" />
2002 <text>%tw_restore_display%</text>
2003 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display" />
2004 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
2005 <actions>
2006 <action function="page">try_restore_decrypt</action>
2007 </actions>
2008 </object>
2009
2010 <object type="text" color="%text_fail_color%">
2011 <condition var1="tw_password_fail" var2="1" />
2012 <font resource="font" />
2013 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
2014 <text>Password Failed, Please Try Again</text>
2015 </object>
2016
2017 <object type="button">
2018 <highlight color="%highlight_color%" />
2019 <placement x="%col1_x%" y="%row2_y%" />
2020 <font resource="font" color="%button_text_color%" />
2021 <text>Cancel</text>
2022 <image resource="main_button" />
2023 <actions>
2024 <action function="set">tw_page_done=1</action>
2025 <action function="page">restore</action>
2026 </actions>
2027 </object>
2028
2029 <object type="button">
2030 <highlight color="%highlight_color%" />
2031 <placement x="%col2_x%" y="%row2_y%" />
2032 <font resource="font" color="%button_text_color%" />
2033 <text>Delete</text>
2034 <image resource="main_button" />
2035 <actions>
2036 <action function="set">tw_back=restore</action>
2037 <action function="set">tw_action=cmd</action>
2038 <action function="set">tw_action_param=cd %tw_backups_folder% && rm -rf &quot;%tw_restore_name%&quot;</action>
2039 <action function="set">tw_text1=Delete Backup? %tw_restore_name%</action>
2040 <action function="set">tw_text2=This cannot be undone!</action>
2041 <action function="set">tw_action_text1=Deleting Backup...</action>
2042 <action function="set">tw_complete_text1=Backup Delete Complete</action>
2043 <action function="set">tw_slider_text=Swipe to Delete</action>
2044 <action function="page">confirm_action</action>
2045 </actions>
2046 </object>
2047
2048 <object type="template" name="keyboardtemplate" />
2049
2050 <object type="action">
2051 <touch key="home" />
2052 <action function="page">main</action>
2053 </object>
2054
2055 <object type="action">
2056 <touch key="back" />
2057 <action function="page">restore</action>
2058 </object>
2059
2060 <object type="template" name="footer" />
2061 </page>
2062
2063 <page name="try_restore_decrypt">
2064 <object type="template" name="header" />
2065
2066 <object type="text" color="%text_color%">
2067 <font resource="font" />
2068 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2069 <text>Trying Decryption with Your Password</text>
2070 </object>
2071
2072 <object type="template" name="action_page_console" />
2073
2074 <object type="template" name="progress_bar" />
2075
2076 <object type="action">
2077 <action function="decrypt_backup"></action>
2078 </object>
2079
2080 <object type="action">
2081 <conditions>
2082 <condition var1="tw_operation_state" var2="1" />
2083 <condition var1="tw_operation_status" op="!=" var2="0" />
2084 </conditions>
2085 <actions>
2086 <action function="set">tw_password_fail=1</action>
2087 <action function="page">restore_decrypt</action>
2088 </actions>
2089 </object>
2090
2091 <object type="action">
2092 <conditions>
2093 <condition var1="tw_operation_state" var2="1" />
2094 <condition var1="tw_operation_status" op="=" var2="0" />
2095 </conditions>
2096 <actions>
2097 <action function="set">tw_page_done=1</action>
2098 <action function="page">restore_select</action>
2099 </actions>
2100 </object>
2101 </page>
2102
2103 <page name="restore_select">
2104 <object type="template" name="header" />
2105
2106 <object type="partitionlist">
2107 <highlight color="%fileselector_highlight_color%" />
2108 <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%backup_list_height%" />
2109 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
2110 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
2111 <text>Restoring: %tw_restore_name%</text>
2112 <icon selected="checkbox_true" unselected="checkbox_false" />
2113 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
2114 <background color="%listbox_background%" />
2115 <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
2116 <data name="tw_restore_list" selectedlist="tw_restore_selected" />
2117 <listtype name="restore" />
2118 </object>
2119
2120 <object type="button">
2121 <highlight color="%highlight_color%" />
2122 <fill color="%button_fill_color%" />
2123 <placement x="%col1_x%" y="%backup_button_row1%" w="%button_fill_main_width%" h="%button_fill_quarter_height%" />
2124 <font resource="font" color="%button_text_color%" />
2125 <text>Rename Backup</text>
2126 <actions>
2127 <action function="set">tw_backup_rename=</action>
2128 <action function="set">tw_fileexists=0</action>
2129 <action function="page">renamebackup</action>
2130 </actions>
2131 </object>
2132
2133 <object type="button">
2134 <highlight color="%highlight_color%" />
2135 <fill color="%button_fill_color%" />
2136 <placement x="%col2_x%" y="%backup_button_row1%" w="%button_fill_main_width%" h="%button_fill_quarter_height%" />
2137 <font resource="font" color="%button_text_color%" />
2138 <text>Delete Backup</text>
2139 <actions>
2140 <action function="set">tw_back=restore</action>
2141 <action function="set">tw_action=cmd</action>
2142 <action function="set">tw_action_param=cd %tw_backups_folder% && rm -rf &quot;%tw_restore_name%&quot;</action>
2143 <action function="set">tw_text1=Delete Backup? %tw_restore_name%</action>
2144 <action function="set">tw_text2=This cannot be undone!</action>
2145 <action function="set">tw_action_text1=Deleting Backup...</action>
2146 <action function="set">tw_complete_text1=Backup Delete Complete</action>
2147 <action function="set">tw_slider_text=Swipe to Delete</action>
2148 <action function="page">confirm_action</action>
2149 </actions>
2150 </object>
2151
2152 <object type="checkbox">
2153 <placement x="%col1_x%" y="%row15_text_y%" />
2154 <font resource="font" color="%text_color%" />
2155 <text>Enable MD5 verification of backup files.</text>
2156 <data variable="tw_skip_md5_check" />
2157 <image checked="checkbox_true" unchecked="checkbox_false" />
2158 </object>
2159
2160 <object type="text" color="%text_color%">
2161 <font resource="font" />
2162 <placement x="%center_x%" y="%row16_text_y%" placement="5" />
2163 <text>Package Date: %tw_restore_file_date%</text>
2164 </object>
2165
2166 <object type="slider">
2167 <placement x="%slider_x%" y="%slider_y%" />
2168 <resource base="slider" used="slider-used" touch="slider-touch" />
2169 <action function="page">restore_run</action>
2170 </object>
2171
2172 <object type="text" color="%text_color%">
2173 <font resource="font" />
2174 <placement x="%center_x%" y="%slider_text_y%" placement="4" />
2175 <text>Swipe to Restore</text>
2176 </object>
2177
2178 <object type="action">
2179 <touch key="home" />
2180 <action function="page">main</action>
2181 </object>
2182
2183 <object type="action">
2184 <touch key="back" />
2185 <action function="page">restore</action>
2186 </object>
2187
2188 <object type="template" name="footer" />
2189 </page>
2190
2191 <page name="renamebackup">
2192 <object type="template" name="header" />
2193
2194 <object type="text" color="%text_color%">
2195 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2196 <font resource="font" />
2197 <text>Please Enter a New Backup Name</text>
2198 </object>
2199
2200 <object type="input">
2201 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
2202 <background color="%input_background_color%" />
2203 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
2204 <font resource="font" color="%text_color%" />
2205 <text>%tw_backup_rename%</text>
2206 <data name="tw_backup_rename" />
2207 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]" />
2208 <actions>
2209 <action function="set">tw_back=restore</action>
2210 <action function="set">tw_action=cmd</action>
2211 <action function="set">tw_action_param=cd %tw_backups_folder% && mv &quot;%tw_restore_name%&quot; &quot;%tw_backup_rename%&quot;</action>
2212 <action function="set">tw_text1=Rename Backup?</action>
2213 <action function="set">tw_text2=This cannot be undone!</action>
2214 <action function="set">tw_action_text1=Renaming Backup...</action>
2215 <action function="set">tw_complete_text1=Backup Rename Complete</action>
2216 <action function="set">tw_slider_text=Swipe to Rename</action>
2217 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2218 <action function="set">tw_existpage=renamebackup</action>
2219 <action function="set">tw_notexistpage=confirm_action</action>
2220 <action function="page">filecheck</action>
2221 </actions>
2222 </object>
2223
2224 <object type="text" color="%text_fail_color%">
2225 <condition var1="tw_fileexists" var2="1" />
2226 <placement x="%center_x%" y="%row5_text_y%" placement="5" />
2227 <font resource="font" />
2228 <text>A backup with that name already exists!</text>
2229 </object>
2230
2231 <object type="button">
2232 <highlight color="%highlight_color%" />
2233 <placement x="%col_center_x%" y="%row2_y%" />
2234 <font resource="font" color="%button_text_color%" />
2235 <text>Cancel</text>
2236 <image resource="main_button" />
2237 <action function="page">restore_select</action>
2238 </object>
2239
2240 <object type="template" name="keyboardtemplate" />
2241
2242 <object type="action">
2243 <touch key="home" />
2244 <action function="page">main</action>
2245 </object>
2246
2247 <object type="action">
2248 <touch key="back" />
2249 <action function="page">restore_select</action>
2250 </object>
2251
2252 <object type="template" name="footer" />
2253 </page>
2254
2255 <page name="restore_run">
2256 <object type="template" name="header" />
2257
2258 <object type="text" color="%text_color%">
2259 <font resource="font" />
2260 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2261 <text>%tw_operation% %tw_partition%</text>
2262 </object>
2263
2264 <object type="text" color="%text_color%">
2265 <font resource="font" />
2266 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
2267 <text>%tw_size_progress%</text>
2268 </object>
2269
2270 <object type="template" name="action_page_console" />
2271
2272 <object type="template" name="progress_bar" />
2273
2274 <object type="action">
2275 <condition var1="tw_operation_state" var2="1" />
2276 <actions>
2277 <action function="set">tw_back=restore_select</action>
2278 <action function="set">tw_complete_text1=Restore Complete</action>
2279 <action function="set">tw_show_reboot=1</action>
2280 <action function="page">action_complete</action>
2281 </actions>
2282 </object>
2283
2284 <object type="action">
2285 <action function="nandroid">restore</action>
2286 </object>
2287 </page>
2288
2289 <page name="selectstorage">
2290 <object type="template" name="header" />
2291
2292 <object type="partitionlist">
2293 <highlight color="%fileselector_highlight_color%" />
2294 <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%storage_list_height%" />
2295 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
2296 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
2297 <text>Select Storage:</text>
2298 <icon selected="radio_true" unselected="radio_false" />
2299 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
2300 <background color="%listbox_background%" />
2301 <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
2302 <data name="tw_storage_path" />
2303 <listtype name="storage" />
2304 </object>
2305
2306 <object type="button">
2307 <highlight color="%highlight_color%" />
2308 <placement x="%col_center_x%" y="%row4_y%" />
2309 <font resource="font" color="%button_text_color%" />
2310 <text>OK</text>
2311 <image resource="main_button" />
2312 <actions>
2313 <action function="set">tw_clear_destination=%tw_back%</action>
2314 <action function="page">clear_vars</action>
2315 </actions>
2316 </object>
2317
2318 <object type="action">
2319 <touch key="home" />
2320 <action function="page">main</action>
2321 </object>
2322
2323 <object type="action">
2324 <touch key="back" />
2325 <actions>
2326 <action function="page">%tw_back%</action>
2327 </actions>
2328 </object>
2329
2330 <object type="template" name="footer" />
2331 </page>
2332
2333 <page name="mount">
2334 <object type="template" name="header" />
2335
2336 <object type="partitionlist">
2337 <highlight color="%fileselector_highlight_color%" />
2338 <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%mount_list_height%" />
2339 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
2340 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
2341 <text>Select Partitions to Mount:</text>
2342 <icon selected="checkbox_true" unselected="checkbox_false" />
2343 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
2344 <background color="%listbox_background%" />
2345 <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
2346 <listtype name="mount" />
2347 </object>
2348
2349 <object type="button">
2350 <highlight color="%highlight_color%" />
2351 <fill color="%button_fill_color%" />
2352 <placement x="%col1_x%" y="%mount_storage_row%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
2353 <font resource="font" color="%button_text_color%" />
2354 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
2355 <actions>
2356 <action function="set">tw_back=mount</action>
2357 <action function="page">selectstorage</action>
2358 </actions>
2359 </object>
2360
2361 <object type="button">
2362 <highlight color="%highlight_color%" />
2363 <condition var1="tw_has_usb_storage" var2="1" />
2364 <placement x="%col1_x%" y="row4_y" />
2365 <font resource="font" color="%button_text_color%" />
2366 <text>Mount USB Storage</text>
2367 <image resource="main_button" />
2368 <action function="page">usb_mount</action>
2369 </object>
2370
2371 <object type="button">
2372 <highlight color="%highlight_color%" />
2373 <conditions>
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -04002374 <condition var1="tw_has_mtp" var2="1" />
2375 <condition var1="tw_mtp_enabled" var2="0" />
2376 </conditions>
2377 <placement x="%col2_x%" y="row4_y" />
2378 <font resource="font" color="%button_text_color%" />
2379 <text>Enable MTP</text>
2380 <image resource="main_button" />
2381 <action function="startmtp"></action>
2382 </object>
2383
2384 <object type="button">
2385 <highlight color="%highlight_color%" />
2386 <conditions>
2387 <condition var1="tw_has_mtp" var2="1" />
2388 <condition var1="tw_mtp_enabled" var2="1" />
2389 </conditions>
2390 <placement x="%col2_x%" y="row4_y" />
2391 <font resource="font" color="%button_text_color%" />
2392 <text>Disable MTP</text>
2393 <image resource="main_button" />
2394 <action function="stopmtp"></action>
2395 </object>
2396
2397 <object type="button">
2398 <highlight color="%highlight_color%" />
2399 <conditions>
Ethan Yonker780cd392014-07-21 15:24:39 -05002400 <condition var1="tw_is_encrypted" var2="1" />
2401 <condition var1="tw_is_decrypted" var2="0" />
2402 </conditions>
2403 <placement x="%col2_x%" y="row4_y" />
2404 <font resource="font" color="%button_text_color%" />
2405 <text>Decrypt Data</text>
2406 <image resource="main_button" />
2407 <action function="page">decrypt</action>
2408 </object>
2409
2410 <object type="action">
2411 <touch key="home" />
2412 <action function="page">main</action>
2413 </object>
2414
2415 <object type="action">
2416 <touch key="back" />
2417 <action function="page">main</action>
2418 </object>
2419
2420 <object type="template" name="footer" />
2421 </page>
2422
2423 <page name="usb_mount">
2424 <object type="template" name="header" />
2425
2426 <object type="text" color="%text_color%">
2427 <font resource="font" />
2428 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2429 <text>USB Storage Mounted</text>
2430 </object>
2431
2432 <object type="text" color="%text_color%">
2433 <placement x="%col1_x%" y="%row1_text_y%" />
2434 <font resource="font" />
2435 <text>Be sure to safely remove your device</text>
2436 </object>
2437
2438 <object type="text" color="%text_color%">
2439 <placement x="%col1_x%" y="%row2_text_y%" />
2440 <font resource="font" />
2441 <text>from your computer before unmounting!</text>
2442 </object>
2443
2444 <object type="button">
2445 <highlight color="%highlight_color%" />
2446 <placement x="%col1_x%" y="%row3_y%" />
2447 <font resource="font" color="%button_text_color%" />
2448 <text>Unmount</text>
2449 <image resource="main_button" />
2450 <action function="page">usb_umount</action>
2451 </object>
2452
2453 <object type="action">
2454 <action function="mount">usb</action>
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -04002455 <action function="set">tw_busy=1</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05002456 </object>
2457
2458 <object type="template" name="footer" />
2459 </page>
2460
2461 <page name="usb_umount">
2462 <object type="action">
2463 <action function="unmount">usb</action>
2464 </object>
2465
2466 <object type="action">
2467 <action function="page">mount</action>
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -04002468 <action function="set">tw_busy=0</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05002469 </object>
2470 </page>
2471
2472 <page name="reboot">
2473 <object type="template" name="header" />
2474
2475 <object type="text" color="%text_color%">
2476 <font resource="font" />
2477 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2478 <text>Reboot Menu</text>
2479 </object>
2480
2481 <object type="button">
2482 <highlight color="%highlight_color%" />
2483 <condition var1="tw_reboot_system" var2="1" />
2484 <placement x="%col1_x%" y="%row1_y%" />
2485 <font resource="font" color="%button_text_color%" />
2486 <text>System</text>
2487 <image resource="main_button" />
2488 <actions>
2489 <action function="set">tw_back=reboot</action>
2490 <action function="set">tw_action=reboot</action>
2491 <action function="set">tw_action_param=system</action>
2492 <action function="set">tw_has_action2=0</action>
2493 <action function="set">tw_text1=No OS Installed! Are you</action>
2494 <action function="set">tw_text2=sure you wish to reboot?</action>
2495 <action function="set">tw_action_text1=Rebooting...</action>
2496 <action function="set">tw_complete_text1=Rebooting...</action>
2497 <action function="set">tw_slider_text=Swipe to Reboot</action>
2498 <action function="page">rebootcheck</action>
2499 </actions>
2500 </object>
2501
2502 <object type="button">
2503 <highlight color="%highlight_color%" />
2504 <condition var1="tw_reboot_poweroff" var2="1" />
2505 <placement x="%col2_x%" y="%row1_y%" />
2506 <font resource="font" color="%button_text_color%" />
2507 <text>Power Off</text>
2508 <image resource="main_button" />
2509 <actions>
2510 <action function="set">tw_back=reboot</action>
2511 <action function="set">tw_action=reboot</action>
2512 <action function="set">tw_action_param=poweroff</action>
2513 <action function="set">tw_has_action2=0</action>
2514 <action function="set">tw_text1=No OS Installed! Are you</action>
2515 <action function="set">tw_text2=sure you wish to power off?</action>
2516 <action function="set">tw_action_text1=Turning Off...</action>
2517 <action function="set">tw_complete_text1=Turning Off...</action>
2518 <action function="set">tw_slider_text=Swipe to Power Off</action>
2519 <action function="page">rebootcheck</action>
2520 </actions>
2521 </object>
2522
2523 <object type="button">
2524 <highlight color="%highlight_color%" />
2525 <condition var1="tw_reboot_recovery" var2="1" />
2526 <placement x="%col1_x%" y="%row2_y%" />
2527 <font resource="font" color="%button_text_color%" />
2528 <text>Recovery</text>
2529 <image resource="main_button" />
2530 <actions>
2531 <action function="set">tw_back=reboot</action>
2532 <action function="set">tw_action=reboot</action>
2533 <action function="set">tw_action_param=recovery</action>
2534 <action function="set">tw_has_action2=0</action>
2535 <action function="set">tw_text1=No OS Installed! Are you</action>
2536 <action function="set">tw_text2=sure you wish to reboot?</action>
2537 <action function="set">tw_action_text1=Rebooting...</action>
2538 <action function="set">tw_complete_text1=Rebooting...</action>
2539 <action function="set">tw_slider_text=Swipe to Reboot</action>
2540 <action function="page">rebootcheck</action>
2541 </actions>
2542 </object>
2543
2544 <object type="button">
2545 <highlight color="%highlight_color%" />
2546 <condition var1="tw_reboot_bootloader" var2="1" />
2547 <placement x="%col2_x%" y="%row2_y%" />
2548 <font resource="font" color="%button_text_color%" />
2549 <text>Bootloader</text>
2550 <image resource="main_button" />
2551 <actions>
2552 <action function="set">tw_back=reboot</action>
2553 <action function="set">tw_action=reboot</action>
2554 <action function="set">tw_action_param=bootloader</action>
2555 <action function="set">tw_has_action2=0</action>
2556 <action function="set">tw_text1=No OS Installed! Are you</action>
2557 <action function="set">tw_text2=sure you wish to reboot?</action>
2558 <action function="set">tw_action_text1=Rebooting...</action>
2559 <action function="set">tw_complete_text1=Rebooting...</action>
2560 <action function="set">tw_slider_text=Swipe to Reboot</action>
2561 <action function="page">rebootcheck</action>
2562 </actions>
2563 </object>
2564
2565 <object type="button">
2566 <highlight color="%highlight_color%" />
2567 <condition var1="tw_download_mode" var2="1" />
2568 <placement x="%col1_x%" y="%row3_y%" />
2569 <font resource="font" color="%button_text_color%" />
2570 <text>Download</text>
2571 <image resource="main_button" />
2572 <actions>
2573 <action function="set">tw_back=reboot</action>
2574 <action function="set">tw_action=reboot</action>
2575 <action function="set">tw_action_param=download</action>
2576 <action function="set">tw_has_action2=0</action>
2577 <action function="set">tw_text1=No OS Installed! Are you</action>
2578 <action function="set">tw_text2=sure you wish to reboot?</action>
2579 <action function="set">tw_action_text1=Rebooting...</action>
2580 <action function="set">tw_complete_text1=Rebooting...</action>
2581 <action function="set">tw_slider_text=Swipe to Reboot</action>
2582 <action function="page">rebootcheck</action>
2583 </actions>
2584 </object>
2585
2586 <object type="action">
2587 <touch key="home" />
2588 <action function="page">main</action>
2589 </object>
2590
2591 <object type="action">
2592 <touch key="back" />
2593 <action function="page">main</action>
2594 </object>
2595
2596 <object type="template" name="footer" />
2597 </page>
2598
2599 <page name="settings">
2600 <object type="template" name="header" />
2601
2602 <object type="text" color="%text_color%">
2603 <font resource="font" />
2604 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2605 <text>Settings</text>
2606 </object>
2607
2608 <object type="checkbox">
2609 <placement x="%col1_x%" y="%row1_text_y%" />
2610 <font resource="font" color="%text_color%" />
2611 <text>Zip file signature verification.</text>
2612 <data variable="tw_signed_zip_verify" />
2613 <image checked="checkbox_true" unchecked="checkbox_false" />
2614 </object>
2615
2616 <object type="checkbox">
2617 <placement x="%col1_x%" y="%row2_text_y%" />
2618 <font resource="font" color="%text_color%" />
2619 <text>Use rm -rf instead of formatting.</text>
2620 <data variable="tw_rm_rf" />
2621 <image checked="checkbox_true" unchecked="checkbox_false" />
2622 </object>
2623
2624 <object type="checkbox">
2625 <placement x="%col1_x%" y="%row3_text_y%" />
2626 <font resource="font" color="%text_color%" />
2627 <text>Skip MD5 generation during backup.</text>
2628 <data variable="tw_skip_md5_generate" />
2629 <image checked="checkbox_true" unchecked="checkbox_false" />
2630 </object>
2631
2632 <object type="checkbox">
2633 <placement x="%col1_x%" y="%row4_text_y%" />
2634 <font resource="font" color="%text_color%" />
2635 <text>Enable MD5 verification of backup files.</text>
2636 <data variable="tw_skip_md5_check" />
2637 <image checked="checkbox_true" unchecked="checkbox_false" />
2638 </object>
2639
2640 <object type="checkbox">
2641 <placement x="%col1_x%" y="%row5_text_y%" />
2642 <font resource="font" color="%text_color%" />
Captain Throwback5f4fd8c2014-10-10 10:36:09 -04002643 <text>Use 24-hour clock.</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002644 <data variable="tw_military_time" />
2645 <image checked="checkbox_true" unchecked="checkbox_false" />
2646 </object>
2647
2648 <object type="checkbox">
2649 <placement x="%col1_x%" y="%row6_text_y%" />
2650 <font resource="font" color="%text_color%" />
2651 <text>Simulate actions for theme testing.</text>
2652 <data variable="tw_simulate_actions" />
2653 <image checked="checkbox_true" unchecked="checkbox_false" />
2654 </object>
2655
2656 <object type="checkbox">
2657 <condition var1="tw_simulate_actions" var2="1" />
2658 <placement x="%col1_x%" y="%row7_text_y%" />
2659 <font resource="font" color="%text_color%" />
2660 <text>Simulate failure for actions.</text>
2661 <data variable="tw_simulate_fail" />
2662 <image checked="checkbox_true" unchecked="checkbox_false" />
2663 </object>
2664
2665 <object type="button">
2666 <highlight color="%highlight_color%" />
2667 <placement x="%col1_x%" y="%row3_y%" />
2668 <font resource="font" color="%button_text_color%" />
2669 <text>Time Zone</text>
2670 <image resource="main_button" />
2671 <action function="page">timezone</action>
2672 </object>
2673
2674 <object type="button">
2675 <highlight color="%highlight_color%" />
2676 <placement x="%col2_x%" y="%row3_y%" />
2677 <font resource="font" color="%button_text_color%" />
2678 <text>Screen</text>
2679 <image resource="main_button" />
2680 <action function="page">screen</action>
2681 </object>
2682
2683 <object type="button">
2684 <highlight color="%highlight_color%" />
2685 <placement x="%col1_x%" y="%row4_y%" />
2686 <font resource="font" color="%button_text_color%" />
2687 <text>Restore Defaults</text>
2688 <image resource="main_button" />
2689 <action function="restoredefaultsettings"></action>
2690 </object>
2691
2692 <object type="button">
2693 <highlight color="%highlight_color%" />
2694 <placement x="%col2_x%" y="%row4_y%" />
2695 <font resource="font" color="%button_text_color%" />
2696 <text>Vibration Duration</text>
2697 <image resource="main_button" />
2698 <action function="page">Vibrate</action>
2699 </object>
2700
2701 <object type="action">
2702 <touch key="home" />
2703 <action function="page">main</action>
2704 </object>
2705
2706 <object type="action">
2707 <touch key="back" />
2708 <action function="page">main</action>
2709 </object>
2710
2711 <object type="template" name="footer" />
2712 </page>
2713
2714 <page name="timezone">
2715 <object type="template" name="header" />
2716
2717 <object type="listbox">
2718 <highlight color="%fileselector_highlight_color%" />
2719 <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%listbox_tz_height%" />
2720 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
2721 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
2722 <text>Select Time Zone:</text>
2723 <icon selected="radio_true" unselected="radio_false" />
2724 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
2725 <background color="%listbox_background%" />
2726 <font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
2727 <data name="tw_time_zone_guisel" />
2728 <listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
2729 <listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
2730 <listitem name="(UTC -9) Alaska">AST9;ADT</listitem>
2731 <listitem name="(UTC -8) Pacific Time">PST8;PDT</listitem>
2732 <listitem name="(UTC -7) Mountain Time">MST7;MDT</listitem>
2733 <listitem name="(UTC -6) Central Time">CST6;CDT</listitem>
2734 <listitem name="(UTC -5) Eastern Time">EST5;EDT</listitem>
2735 <listitem name="(UTC -4) Atlantic Time">AST4;ADT</listitem>
2736 <listitem name="(UTC -3) Brazil, Buenos Aires">GRNLNDST3;GRNLNDDT</listitem>
2737 <listitem name="(UTC -2) Mid-Atlantic">FALKST2;FALKDT</listitem>
2738 <listitem name="(UTC -1) Azores, Cape Verde">AZOREST1;AZOREDT</listitem>
2739 <listitem name="(UTC 0) London, Dublin, Lisbon">GMT0;BST</listitem>
2740 <listitem name="(UTC +1) Berlin, Brussels, Paris">NFT-1;DFT</listitem>
2741 <listitem name="(UTC +2) Athens, Istanbul, South Africa">WET-2;WET</listitem>
2742 <listitem name="(UTC +3) Moscow, Baghdad">SAUST-3;SAUDT</listitem>
2743 <listitem name="(UTC +4) Abu Dhabi, Tbilisi, Muscat">WST-4;WDT</listitem>
2744 <listitem name="(UTC +5) Yekaterinburg, Islamabad">PAKST-5;PAKDT</listitem>
2745 <listitem name="(UTC +6) Almaty, Dhaka, Colombo">TASHST-6;TASHDT</listitem>
2746 <listitem name="(UTC +7) Bangkok, Hanoi, Jakarta">THAIST-7;THAIDT</listitem>
2747 <listitem name="(UTC +8) Beijing, Singapore, Hong Kong">TAIST-8;TAIDT</listitem>
2748 <listitem name="(UTC +9) Tokyo, Seoul, Yakutsk">JST-9;JSTDT</listitem>
2749 <listitem name="(UTC +10) Eastern Australia, Guam">EET-10;EETDT</listitem>
2750 <listitem name="(UTC +11) Vladivostok, Solomon Islands">MET-11;METDT</listitem>
2751 <listitem name="(UTC +12) Auckland, Wellington, Fiji">NZST-12;NZDT</listitem>
2752 </object>
2753
2754 <object type="checkbox">
2755 <placement x="%col1_x%" y="%row_dst_text_y%" />
2756 <font resource="font" color="%text_color%" />
2757 <text>Do you use daylight savings time (DST)?</text>
2758 <data variable="tw_time_zone_guidst" />
2759 <image checked="checkbox_true" unchecked="checkbox_false" />
2760 </object>
2761
2762 <object type="text" color="%text_color%">
2763 <font resource="font" />
2764 <placement x="%center_x%" y="%row_offset_text_y%" placement="5" />
2765 <text>Offset (usually 0): %tw_time_zone_guioffset%</text>
2766 </object>
2767
2768 <object type="button">
2769 <highlight color="%highlight_color%" />
2770 <placement x="%col1_medium_x%" y="%row_offset_medium_y%" />
2771 <font resource="font" color="%button_text_color%" />
2772 <text>None</text>
2773 <image resource="medium_button" />
2774 <action function="set">tw_time_zone_guioffset=0</action>
2775 </object>
2776
2777 <object type="button">
2778 <highlight color="%highlight_color%" />
2779 <placement x="%col2_medium_x%" y="%row_offset_medium_y%" />
2780 <font resource="font" color="%button_text_color%" />
2781 <text>15</text>
2782 <image resource="medium_button" />
2783 <action function="set">tw_time_zone_guioffset=15</action>
2784 </object>
2785
2786 <object type="button">
2787 <highlight color="%highlight_color%" />
2788 <placement x="%col3_medium_x%" y="%row_offset_medium_y%" />
2789 <font resource="font" color="%button_text_color%" />
2790 <text>30</text>
2791 <image resource="medium_button" />
2792 <action function="set">tw_time_zone_guioffset=30</action>
2793 </object>
2794
2795 <object type="button">
2796 <highlight color="%highlight_color%" />
2797 <placement x="%col4_medium_x%" y="%row_offset_medium_y%" />
2798 <font resource="font" color="%button_text_color%" />
2799 <text>45</text>
2800 <image resource="medium_button" />
2801 <action function="set">tw_time_zone_guioffset=45</action>
2802 </object>
2803
2804 <object type="button">
2805 <highlight color="%highlight_color%" />
2806 <placement x="%col_center_x%" y="%tz_set_y%" />
2807 <font resource="font" color="%button_text_color%" />
2808 <text>Set Time Zone</text>
2809 <image resource="main_button" />
2810 <action function="setguitimezone"></action>
2811 </object>
2812
2813 <object type="text" color="%text_color%">
2814 <font resource="font" />
2815 <placement x="%center_x%" y="%tz_current_y%" placement="5" />
2816 <text>Current Time Zone: %tw_time_zone%</text>
2817 </object>
2818
2819 <object type="action">
2820 <touch key="home" />
2821 <action function="page">main</action>
2822 </object>
2823
2824 <object type="action">
2825 <touch key="back" />
2826 <action function="page">settings</action>
2827 </object>
2828
2829 <object type="template" name="footer" />
2830 </page>
2831
2832 <page name="screen">
2833 <object type="template" name="header" />
2834
2835 <object type="text" color="%text_color%">
2836 <font resource="font" />
2837 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2838 <text>Screen Settings</text>
2839 </object>
2840
2841 <object type="button">
2842 <placement x="%col1_x%" y="%row2_text_y%" />
2843 <font resource="font" color="%text_color%" />
2844 <condition var1="tw_screen_timeout_secs" op="=" var2="0" />
2845 <condition var1="tw_no_screen_timeout" op="!=" var2="1" />
2846 <text>Enable screen timeout.</text>
2847 <image resource="checkbox_false" />
2848 <action function="set">tw_screen_timeout_secs=60</action>
2849 </object>
2850
2851 <object type="button">
2852 <placement x="%col1_x%" y="%row2_text_y%" />
2853 <font resource="font" color="%text_color%" />
2854 <condition var1="tw_screen_timeout_secs" op="!=" var2="0" />
2855 <condition var1="tw_no_screen_timeout" op="!=" var2="1" />
2856 <text>Enable screen timeout.</text>
2857 <image resource="checkbox_true" />
2858 <action function="set">tw_screen_timeout_secs=0</action>
2859 </object>
2860
2861 <object type="slidervalue">
2862 <condition var1="tw_screen_timeout_secs" op="!=" var2="0" />
2863 <condition var1="tw_no_screen_timeout" op="!=" var2="1" />
2864 <placement x="col1_x" y="%row4_text_y%" w="%slidervalue_w%" />
2865 <font resource="font" color="%text_color%" />
2866 <colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
2867 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%" />
2868 <text>Screen timeout in seconds:</text>
2869 <data variable="tw_screen_timeout_secs" min="15" max="300" />
2870 </object>
2871
2872 <object type="slidervalue">
2873 <condition var1="tw_has_brightnesss_file" var2="1" />
2874 <placement x="col1_x" y="%row12_text_y%" w="%slidervalue_w%" />
2875 <font resource="font" color="%text_color%" />
2876 <colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
2877 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%" />
2878 <text>Brightness: %tw_brightness_pct%%</text>
2879 <data variable="tw_brightness_pct" min="10" max="100" />
2880 <actions>
2881 <action function="set">tw_brightness=%tw_brightness_max%</action>
2882 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
2883 <action function="compute">tw_brightness/100</action>
xNUTxe85f02d2014-07-18 01:30:58 +02002884 <action function="setbrightness">%tw_brightness%</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05002885 </actions>
2886 </object>
2887
2888 <object type="action">
2889 <touch key="home" />
2890 <action function="page">main</action>
2891 </object>
2892
2893 <object type="action">
2894 <touch key="back" />
2895 <action function="page">settings</action>
2896 </object>
2897
2898 <object type="template" name="footer" />
2899 </page>
2900
2901 <page name="Vibrate">
2902 <object type="template" name="header" />
2903
2904 <object type="text" color="%text_color%">
2905 <font resource="font" />
2906 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2907 <text>Vibration Settings :</text>
2908 </object>
2909
2910 <object type="slidervalue">
2911 <placement x="col1_x" y="%row4_text_y%" w="%slidervalue_w%" />
2912 <font resource="font" color="%text_color%" />
2913 <text>Button Vibration:</text>
2914 <data variable="tw_button_vibrate" min="0" max="300" />
2915 <colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
2916 </object>
2917
2918 <object type="slidervalue">
2919 <placement x="col1_x" y="%row8_text_y%" w="%slidervalue_w%" />
2920 <font resource="font" color="%text_color%" />
2921 <text>Keyboard Vibration:</text>
2922 <data variable="tw_keyboard_vibrate" min="0" max="300" />
2923 <colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
2924 </object>
2925
2926 <object type="slidervalue">
2927 <placement x="col1_x" y="%row12_text_y%" w="%slidervalue_w%" />
2928 <font resource="font" color="%text_color%" />
2929 <text>Action Vibration:</text>
2930 <data variable="tw_action_vibrate" min="0" max="500" />
2931 <colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
2932 </object>
2933
2934 <object type="action">
2935 <touch key="home" />
2936 <action function="page">main</action>
2937 </object>
2938
2939 <object type="action">
2940 <touch key="back" />
2941 <action function="page">settings</action>
2942 </object>
2943
2944 <object type="template" name="footer" />
2945 </page>
2946
2947 <page name="advanced">
2948 <object type="template" name="header" />
2949
2950 <object type="text" color="%text_color%">
2951 <font resource="font" />
2952 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2953 <text>Advanced</text>
2954 </object>
2955
2956 <object type="button">
2957 <highlight color="%highlight_color%" />
2958 <placement x="%col1_x%" y="%row1_y%" />
2959 <font resource="font" color="%button_text_color%" />
2960 <text>Copy Log to SD</text>
2961 <image resource="main_button" />
2962 <actions>
2963 <action function="set">tw_back=advanced</action>
2964 <action function="set">tw_action=copylog</action>
2965 <action function="set">tw_text1=Copy Log to SD Card?</action>
2966 <action function="set">tw_action_text1=Copying Log to SD Card...</action>
2967 <action function="set">tw_complete_text1=Log Copy Complete</action>
2968 <action function="set">tw_slider_text=Swipe to Confirm</action>
2969 <action function="page">confirm_action</action>
2970 </actions>
2971 </object>
2972
2973 <object type="button">
2974 <highlight color="%highlight_color%" />
2975 <placement x="%col2_x%" y="%row1_y%" />
2976 <font resource="font" color="%button_text_color%" />
2977 <text>Fix Permissions</text>
2978 <image resource="main_button" />
thata3d31fb2014-12-21 22:27:40 +01002979 <action function="page">fixperms</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05002980 </object>
2981
2982 <object type="button">
2983 <highlight color="%highlight_color%" />
2984 <condition var1="tw_allow_partition_sdcard" var2="1" />
2985 <placement x="%col1_x%" y="%row2_y%" />
2986 <font resource="font" color="%button_text_color%" />
2987 <text>Partition SD Card</text>
2988 <image resource="main_button" />
2989 <action function="page">partsdcard</action>
2990 </object>
2991
2992 <object type="button">
2993 <highlight color="%highlight_color%" />
2994 <placement x="%col2_x%" y="%row2_y%" />
2995 <font resource="font" color="%button_text_color%" />
2996 <text>File Manager</text>
2997 <image resource="main_button" />
2998 <action function="page">filemanagerlist</action>
2999 </object>
3000
3001 <object type="button">
3002 <highlight color="%highlight_color%" />
3003 <placement x="%col1_x%" y="%row3_y%" />
3004 <font resource="font" color="%button_text_color%" />
3005 <text>Terminal Command</text>
3006 <image resource="main_button" />
3007 <action function="page">terminalfolder</action>
3008 </object>
3009
3010 <object type="button">
3011 <highlight color="%highlight_color%" />
3012 <placement x="%col2_x%" y="%row3_y%" />
3013 <font resource="font" color="%button_text_color%" />
3014 <text>Reload Theme</text>
3015 <image resource="main_button" />
3016 <action function="reload"></action>
3017 </object>
3018
3019 <object type="button">
3020 <highlight color="%highlight_color%" />
3021 <placement x="%col1_x%" y="%row4_y%" />
3022 <font resource="font" color="%button_text_color%" />
3023 <text>ADB Sideload</text>
3024 <image resource="main_button" />
3025 <action function="page">sideload</action>
3026 </object>
3027
3028 <object type="button">
3029 <highlight color="%highlight_color%" />
3030 <condition var1="tw_show_dumlock" var2="1" />
3031 <placement x="%col2_x%" y="%row4_y%" />
3032 <font resource="font" color="%button_text_color%" />
3033 <text>HTC Dumlock</text>
3034 <image resource="main_button" />
3035 <action function="page">htcdumlock</action>
3036 </object>
3037
3038 <object type="button">
3039 <highlight color="%highlight_color%" />
3040 <condition var1="tw_has_injecttwrp" var2="1" />
3041 <placement x="%col2_x%" y="%row4_y%" />
3042 <font resource="font" color="%button_text_color%" />
3043 <text>Re-Inject TWRP</text>
3044 <image resource="main_button" />
3045 <actions>
3046 <action function="set">tw_back=advanced</action>
3047 <action function="set">tw_action=reinjecttwrp</action>
3048 <action function="set">tw_text1=Re-Inject TWRP?</action>
3049 <action function="set">tw_action_text1=Re-Injecting TWRP...</action>
3050 <action function="set">tw_complete_text1=TWRP Injection Complete</action>
3051 <action function="set">tw_slider_text=Swipe to Confirm</action>
3052 <action function="page">confirm_action</action>
3053 </actions>
3054 </object>
3055
3056 <object type="action">
3057 <touch key="home" />
3058 <action function="page">main</action>
3059 </object>
3060
3061 <object type="action">
3062 <touch key="back" />
3063 <action function="page">main</action>
3064 </object>
3065
3066 <object type="template" name="footer" />
3067 </page>
3068
3069 <page name="partsdcard">
3070 <object type="template" name="header" />
3071
3072 <object type="text" color="%text_color%">
3073 <font resource="font" />
3074 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
3075 <text>Partition SD Card</text>
3076 </object>
3077
3078 <object type="button">
3079 <highlight color="%highlight_color%" />
3080 <placement x="%col1_x%" y="%row1_y%" />
3081 <font resource="font" color="%button_text_color%" />
3082 <text></text>
3083 <image resource="minus_button" />
3084 <action function="addsubtract">tw_sdext_size-128</action>
3085 </object>
3086
3087 <object type="button">
3088 <highlight color="%highlight_color%" />
3089 <placement x="%sd_plus_x%" y="%row1_y%" />
3090 <font resource="font" color="%button_text_color%" />
3091 <text></text>
3092 <image resource="plus_button" />
3093 <action function="addsubtract">tw_sdext_size+128</action>
3094 </object>
3095
3096 <object type="text" color="%text_color%">
3097 <font resource="font" />
3098 <placement x="%sdext_text_x%" y="%sdext_text_y%" />
3099 <text>EXT Size: %tw_sdext_size%</text>
3100 </object>
3101
3102 <object type="button">
3103 <highlight color="%highlight_color%" />
3104 <placement x="%col1_x%" y="%sdswap_button_y%" />
3105 <font resource="font" color="%button_text_color%" />
3106 <text></text>
3107 <image resource="minus_button" />
3108 <action function="addsubtract">tw_swap_size-32</action>
3109 </object>
3110
3111 <object type="button">
3112 <highlight color="%highlight_color%" />
3113 <placement x="%sd_plus_x%" y="%sdswap_button_y%" />
3114 <font resource="font" color="%button_text_color%" />
3115 <text></text>
3116 <image resource="plus_button" />
3117 <action function="addsubtract">tw_swap_size+32</action>
3118 </object>
3119
3120 <object type="text" color="%text_color%">
3121 <font resource="font" />
3122 <placement x="%sdswap_text_x%" y="%sdswap_text_y%" />
3123 <text>Swap Size: %tw_swap_size%</text>
3124 </object>
3125
3126 <object type="text" color="%text_color%">
3127 <font resource="font" />
3128 <placement x="%col1_x%" y="%sdfilesystem_text_y%" />
3129 <text>File system: %tw_sdpart_file_system%</text>
3130 </object>
3131
3132 <object type="button">
3133 <highlight color="%highlight_color%" />
3134 <placement x="%col1_x%" y="%sdfilesystem_button_y%" />
3135 <font resource="font" color="%button_text_color%" />
3136 <text>EXT3</text>
3137 <image resource="main_button" />
3138 <action function="set">tw_sdpart_file_system=ext3</action>
3139 </object>
3140
3141 <object type="button">
3142 <highlight color="%highlight_color%" />
3143 <condition var1="tw_sdext_disable_ext4" var2="0" />
3144 <placement x="%col2_x%" y="%sdfilesystem_button_y%" />
3145 <font resource="font" color="%button_text_color%" />
3146 <text>EXT4</text>
3147 <image resource="main_button" />
3148 <action function="set">tw_sdpart_file_system=ext4</action>
3149 </object>
3150
3151 <object type="text" color="%text_color%">
3152 <font resource="font" />
3153 <placement x="%col1_x%" y="%row12_text_y%" />
3154 <text>You will lose all files on your SD card!</text>
3155 </object>
3156
3157 <object type="text" color="%text_color%">
3158 <font resource="font" />
3159 <placement x="%col1_x%" y="%row13_text_y%" />
3160 <text>This action cannot be undone!</text>
3161 </object>
3162
3163 <object type="slider">
3164 <placement x="%slider_x%" y="%slider_y%" />
3165 <resource base="slider" used="slider-used" touch="slider-touch" />
3166 <action function="page">partsdcardaction</action>
3167 <actions>
3168 <action function="set">tw_back=partsdcard</action>
3169 <action function="set">tw_action=partitionsd</action>
3170 <action function="set">tw_has_action2=1</action>
3171 <action function="set">tw_action2=set</action>
3172 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
3173 <action function="set">tw_action_text1=Partitioning SD Card...</action>
3174 <action function="set">tw_action_text2=This will take a few minutes.</action>
3175 <action function="set">tw_complete_text1=Partitioning Complete</action>
3176 <action function="page">action_page</action>
3177 </actions>
3178 </object>
3179
3180 <object type="text" color="%text_color%">
3181 <font resource="font" />
3182 <placement x="%center_x%" y="%slider_text_y%" placement="4" />
3183 <text>Swipe to Partition</text>
3184 </object>
3185
3186 <object type="action">
3187 <touch key="home" />
3188 <action function="page">main</action>
3189 </object>
3190
3191 <object type="action">
3192 <touch key="back" />
3193 <action function="page">advanced</action>
3194 </object>
3195
3196 <object type="template" name="footer" />
3197 </page>
3198
3199 <page name="htcdumlock">
3200 <object type="template" name="header" />
3201
3202 <object type="text" color="%text_color%">
3203 <font resource="font" />
3204 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
3205 <text>HTC Dumlock</text>
3206 </object>
3207
3208 <object type="button">
3209 <highlight color="%highlight_color%" />
3210 <condition var1="tw_show_dumlock" var2="1" />
3211 <placement x="%col1_x%" y="%row1_y%" />
3212 <font resource="font" color="%button_text_color%" />
3213 <text>Restore Original Boot</text>
3214 <image resource="main_button" />
3215 <actions>
3216 <action function="set">tw_back=htcdumlock</action>
3217 <action function="set">tw_action=htcdumlockrestoreboot</action>
3218 <action function="set">tw_text1=Restore original boot image?</action>
3219 <action function="set">tw_action_text1=Restoring Original Boot...</action>
3220 <action function="set">tw_complete_text1=Restore Original Boot Complete</action>
3221 <action function="set">tw_slider_text=Swipe to Confirm</action>
3222 <action function="page">confirm_action</action>
3223 </actions>
3224 </object>
3225
3226 <object type="button">
3227 <highlight color="%highlight_color%" />
3228 <condition var1="tw_show_dumlock" var2="1" />
3229 <placement x="%col2_x%" y="%row1_y%" />
3230 <font resource="font" color="%button_text_color%" />
3231 <text>Reflash Recovery</text>
3232 <image resource="main_button" />
3233 <actions>
3234 <action function="set">tw_back=htcdumlock</action>
3235 <action function="set">tw_action=htcdumlockreflashrecovery</action>
3236 <action function="set">tw_text1=Reflash recovery to boot?</action>
3237 <action function="set">tw_action_text1=Flashing recovery to boot...</action>
3238 <action function="set">tw_complete_text1=Recovery Flash to Boot Complete</action>
3239 <action function="set">tw_slider_text=Swipe to Confirm</action>
3240 <action function="page">confirm_action</action>
3241 </actions>
3242 </object>
3243
3244 <object type="button">
3245 <highlight color="%highlight_color%" />
3246 <condition var1="tw_show_dumlock" var2="1" />
3247 <placement x="%col1_x%" y="%row2_y%" />
3248 <font resource="font" color="%button_text_color%" />
3249 <text>Install HTC Dumlock</text>
3250 <image resource="main_button" />
3251 <actions>
3252 <action function="set">tw_back=htcdumlock</action>
3253 <action function="set">tw_action=installhtcdumlock</action>
3254 <action function="set">tw_text1=Install HTC dumlock files to ROM?</action>
3255 <action function="set">tw_action_text1=Installing HTC Dumlock...</action>
3256 <action function="set">tw_complete_text1=HTC Dumlock Install Complete</action>
3257 <action function="set">tw_slider_text=Swipe to Confirm</action>
3258 <action function="page">confirm_action</action>
3259 </actions>
3260 </object>
3261
3262 <object type="action">
3263 <touch key="home" />
3264 <action function="page">main</action>
3265 </object>
3266
3267 <object type="action">
3268 <touch key="back" />
3269 <action function="page">advanced</action>
3270 </object>
3271
3272 <object type="template" name="footer" />
3273 </page>
3274
3275 <page name="lock">
3276 <background color="#000000A0" />
3277
3278 <object type="image">
3279 <image resource="unlock-icon" />
3280 <placement x="%lock_x%" y="%lock_y%" />
3281 </object>
3282
3283 <object type="slider">
3284 <placement x="%slider_x%" y="%slider_y%" />
3285 <resource base="slider" used="slider-used" touch="slider-touch" />
3286 <action function="overlay"></action>
3287 </object>
3288
3289 <object type="text" color="%text_color%">
3290 <font resource="font" />
3291 <placement x="%center_x%" y="%slider_text_y%" placement="4" />
3292 <text>Swipe to Unlock</text>
3293 </object>
3294 </page>
3295
3296 <page name="filemanagerlist">
3297 <object type="template" name="header" />
3298
3299 <object type="text" color="%text_color%">
3300 <font resource="font" />
3301 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
3302 <text>File Manager: Select a File or Folder</text>
3303 </object>
3304
3305 <object type="fileselector">
3306 <highlight color="%fileselector_highlight_color%" />
3307 <placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
3308 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
3309 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
3310 <text>%tw_file_location1%</text>
3311 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
3312 <sort name="tw_gui_sort_order" />
3313 <icon folder="folder_icon" file="file_icon" />
3314 <background color="%fileselector_background%" />
3315 <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
3316 <folders="1" files="1" />
3317 <path name="tw_file_location1" default="/" />
3318 <data name="tw_filename1" />
3319 <selection name="tw_selection1" />
3320 </object>
3321
3322 <object type="template" name="sort_options" />
3323
3324 <object type="action">
3325 <actions>
3326 <action function="set">tw_fm_type=File</action>
3327 <action function="set">tw_fm_isfolder=0</action>
3328 </actions>
3329 </object>
3330
3331 <object type="action">
3332 <touch key="home" />
3333 <action function="page">main</action>
3334 </object>
3335
3336 <object type="action">
3337 <touch key="back" />
3338 <action function="page">advanced</action>
3339 </object>
3340
3341 <object type="action">
3342 <condition var1="tw_filename1" op="modified" />
3343 <actions>
3344 <action function="page">filemanageroptions</action>
3345 </actions>
3346 </object>
3347
3348 <object type="button">
3349 <highlight color="%highlight_color%" />
3350 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
3351 <font resource="font" color="%button_text_color%" />
3352 <text>Select</text>
3353 <image resource="medium_button" />
3354 <actions>
3355 <action function="set">tw_filename1=tw_file_location1</action>
3356 <action function="set">tw_fm_isfolder=1</action>
3357 <action function="set">tw_fm_type=Folder</action>
3358 <action function="page">filemanageroptions</action>
3359 </actions>
3360 </object>
3361
3362 <object type="template" name="footer" />
3363 </page>
3364
3365 <page name="filemanageroptions">
3366 <object type="template" name="header" />
3367
3368 <object type="text" color="%text_color%">
3369 <font resource="font" />
3370 <placement x="%center_x%" y="%row1_text_y%" placement="5"/>
3371 <text>%tw_fm_type% Selected:</text>
3372 </object>
3373
3374 <object type="text" color="%text_color%">
3375 <font resource="font" />
3376 <placement x="%center_x%" y="%row2_text_y%" placement="5"/>
3377 <text>%tw_filename1%</text>
3378 </object>
3379
3380 <object type="button">
3381 <highlight color="%highlight_color%" />
3382 <condition var1="tw_fm_isfolder" var2="0" />
3383 <placement x="%col1_x%" y="%row2_y%" />
3384 <font resource="font" color="%button_text_color%" />
3385 <text>Copy File</text>
3386 <image resource="main_button" />
3387 <actions>
3388 <action function="set">tw_filemanager_command=cp</action>
3389 <action function="set">tw_fm_text1=Copying</action>
3390 <action function="page">choosedestinationfolder</action>
3391 </actions>
3392 </object>
3393
3394 <object type="button">
3395 <highlight color="%highlight_color%" />
3396 <condition var1="tw_fm_isfolder" var2="1" />
3397 <placement x="%col1_x%" y="%row2_y%" />
3398 <font resource="font" color="%button_text_color%" />
3399 <text>Copy Folder</text>
3400 <image resource="main_button" />
3401 <actions>
3402 <action function="set">tw_filemanager_command=cd &quot;%tw_file_location1%&quot; && cd .. && cp -R</action>
3403 <action function="set">tw_fm_text1=Copying</action>
3404 <action function="page">choosedestinationfolder</action>
3405 </actions>
3406 </object>
3407
3408 <object type="button">
3409 <highlight color="%highlight_color%" />
3410 <placement x="%col2_x%" y="%row2_y%" />
3411 <font resource="font" color="%button_text_color%" />
3412 <text>Move</text>
3413 <image resource="main_button" />
3414 <actions>
3415 <action function="set">tw_filemanager_command=mv</action>
3416 <action function="set">tw_fm_text1=Moving</action>
3417 <action function="page">choosedestinationfolder</action>
3418 </actions>
3419 </object>
3420
3421 <object type="button">
3422 <highlight color="%highlight_color%" />
3423 <placement x="%col1_x%" y="%row3_y%" />
3424 <font resource="font" color="%button_text_color%" />
3425 <text>chmod 755</text>
3426 <image resource="main_button" />
3427 <actions>
3428 <action function="set">tw_filemanager_command=chmod 755</action>
3429 <action function="set">tw_fm_text1=chmod 755</action>
3430 <action function="set">tw_fm_text2=</action>
3431 <action function="set">tw_fm_text3=</action>
3432 <action function="set">tw_include_text3=0</action>
3433 <action function="set">tw_back=filemanageroptions</action>
3434 <action function="page">filemanagerconfirm</action>
3435 </actions>
3436 </object>
3437
3438 <object type="button">
3439 <highlight color="%highlight_color%" />
3440 <placement x="%col2_x%" y="%row3_y%" />
3441 <font resource="font" color="%button_text_color%" />
3442 <text>chmod</text>
3443 <image resource="main_button" />
3444 <actions>
3445 <action function="set">tw_filemanager_rename=0000</action>
3446 <action function="set">tw_fm_text2=</action>
3447 <action function="set">tw_fm_text3=</action>
3448 <action function="set">tw_include_text3=0</action>
3449 <action function="set">tw_back=filemanageroptions</action>
3450 <action function="page">filemanagerchmod</action>
3451 </actions>
3452 </object>
3453
3454 <object type="button">
3455 <highlight color="%highlight_color%" />
3456 <placement x="%col1_x%" y="%row4_y%" />
3457 <font resource="font" color="%button_text_color%" />
3458 <text>Delete</text>
3459 <image resource="main_button" />
3460 <actions>
3461 <action function="set">tw_filemanager_command=rm -rf</action>
3462 <action function="set">tw_fm_text1=Deleting</action>
3463 <action function="set">tw_fm_text2=</action>
3464 <action function="set">tw_fm_text3=</action>
3465 <action function="set">tw_include_text3=0</action>
3466 <action function="set">tw_back=filemanageroptions</action>
3467 <action function="page">filemanagerconfirm</action>
3468 </actions>
3469 </object>
3470
3471 <object type="button">
3472 <highlight color="%highlight_color%" />
3473 <condition var1="tw_fm_isfolder" var2="0" />
3474 <placement x="%col2_x%" y="%row4_y%" />
3475 <font resource="font" color="%button_text_color%" />
3476 <text>Rename File</text>
3477 <image resource="main_button" />
3478 <actions>
3479 <action function="set">tw_filemanager_rename=tw_selection1</action>
3480 <action function="set">tw_fm_text1=Renaming</action>
3481 <action function="set">tw_filemanager_command=mv</action>
3482 <action function="page">filemanagerrenamefile</action>
3483 </actions>
3484 </object>
3485
3486 <object type="button">
3487 <highlight color="%highlight_color%" />
3488 <condition var1="tw_fm_isfolder" var2="1" />
3489 <placement x="%col2_x%" y="%row4_y%" />
3490 <font resource="font" color="%button_text_color%" />
3491 <text>Rename Folder</text>
3492 <image resource="main_button" />
3493 <actions>
3494 <action function="set">tw_filemanager_rename=tw_selection1</action>
3495 <action function="set">tw_fm_text1=Renaming</action>
3496 <action function="set">tw_filemanager_command=cd &quot;%tw_file_location1%&quot; && cd .. && mv</action>
3497 <action function="page">filemanagerrenamefolder</action>
3498 </actions>
3499 </object>
3500
3501 <object type="action">
3502 <touch key="home" />
3503 <action function="page">main</action>
3504 </object>
3505
3506 <object type="action">
3507 <touch key="back" />
3508 <action function="page">filemanagerlist</action>
3509 </object>
3510
3511 <object type="template" name="footer" />
3512 </page>
3513
3514 <page name="choosedestinationfolder">
3515 <object type="template" name="header" />
3516
3517 <object type="text" color="%text_color%">
3518 <font resource="font" />
3519 <placement x="%center_x%" y="%row1_header_y%" placement="5"/>
3520 <text>Browse to Destination Folder & Press Select</text>
3521 </object>
3522
3523 <object type="fileselector">
3524 <highlight color="%fileselector_highlight_color%" />
3525 <placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
3526 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
3527 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
3528 <text>%tw_file_location2%</text>
3529 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
3530 <sort name="tw_gui_sort_order" />
3531 <icon folder="folder_icon" file="file_icon" />
3532 <background color="%fileselector_background%" />
3533 <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
3534 <filter folders="1" files="0" />
3535 <path name="tw_file_location2" default="/" />
3536 <data name="tw_filename2" />
3537 <selection name="tw_selection2" />
3538 </object>
3539
3540 <object type="template" name="sort_options" />
3541
3542 <object type="action">
3543 <touch key="home" />
3544 <action function="page">main</action>
3545 </object>
3546
3547 <object type="action">
3548 <touch key="back" />
3549 <action function="page">filemanageroptions</action>
3550 </object>
3551
3552 <object type="button">
3553 <highlight color="%highlight_color%" />
3554 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
3555 <font resource="font" color="%button_text_color%" />
3556 <text>Select</text>
3557 <image resource="medium_button" />
3558 <actions>
3559 <action function="set">tw_fm_text2=to</action>
3560 <action function="set">tw_fm_text3=%tw_file_location2%</action>
3561 <action function="set">tw_include_text3=1</action>
3562 <action function="set">tw_back=filemanageroptions</action>
3563 <action function="page">filemanagerconfirm</action>
3564 </actions>
3565 </object>
3566
3567 <object type="template" name="footer" />
3568 </page>
3569
3570 <page name="filemanagerrenamefile">
3571 <object type="template" name="header" />
3572
3573 <object type="text" color="%text_color%">
3574 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
3575 <font resource="font" />
3576 <text>Please Enter a New %tw_fm_type% Name</text>
3577 </object>
3578
3579 <object type="input">
3580 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
3581 <background color="%input_background_color%" />
3582 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
3583 <font resource="font" color="%text_color%" />
3584 <text>%tw_filemanager_rename%</text>
3585 <data name="tw_filemanager_rename" />
3586 <restrict minlen="1" maxlen="128" />
3587 <actions>
3588 <action function="set">tw_fm_text2=to</action>
3589 <action function="set">tw_fm_text3=&quot;%tw_file_location1%/%tw_filemanager_rename%&quot;</action>
3590 <action function="set">tw_include_text3=1</action>
3591 <action function="set">tw_back=filemanageroptions</action>
3592 <action function="page">filemanagerconfirm</action>
3593 </actions>
3594 </object>
3595
3596 <object type="button">
3597 <highlight color="%highlight_color%" />
3598 <placement x="%col_center_x%" y="%row2_y%" />
3599 <font resource="font" color="%button_text_color%" />
3600 <text>Cancel</text>
3601 <image resource="main_button" />
3602 <action function="page">filemanageroptions</action>
3603 </object>
3604
3605 <object type="template" name="keyboardtemplate" />
3606
3607 <object type="action">
3608 <touch key="home" />
3609 <action function="page">main</action>
3610 </object>
3611
3612 <object type="action">
3613 <touch key="back" />
3614 <action function="page">filemanageroptions</action>
3615 </object>
3616
3617 <object type="template" name="footer" />
3618 </page>
3619
3620 <page name="filemanagerrenamefolder">
3621 <object type="template" name="header" />
3622
3623 <object type="text" color="%text_color%">
3624 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
3625 <font resource="font" />
3626 <text>Please Enter a New %tw_fm_type% Name</text>
3627 </object>
3628
3629 <object type="input">
3630 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
3631 <background color="%input_background_color%" />
3632 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
3633 <font resource="font" color="%text_color%" />
3634 <text>%tw_filemanager_rename%</text>
3635 <data name="tw_filemanager_rename" />
3636 <restrict minlen="1" maxlen="128" />
3637 <actions>
3638 <action function="set">tw_fm_text2=to</action>
3639 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
3640 <action function="set">tw_include_text3=1</action>
3641 <action function="set">tw_back=filemanageroptions</action>
3642 <action function="page">filemanagerconfirm</action>
3643 </actions>
3644 </object>
3645
3646 <object type="button">
3647 <highlight color="%highlight_color%" />
3648 <placement x="%col_center_x%" y="%row2_y%" />
3649 <font resource="font" color="%button_text_color%" />
3650 <text>Cancel</text>
3651 <image resource="main_button" />
3652 <action function="page">filemanageroptions</action>
3653 </object>
3654
3655 <object type="template" name="keyboardtemplate" />
3656
3657 <object type="action">
3658 <touch key="home" />
3659 <action function="page">main</action>
3660 </object>
3661
3662 <object type="action">
3663 <touch key="back" />
3664 <action function="page">filemanageroptions</action>
3665 </object>
3666
3667 <object type="template" name="footer" />
3668 </page>
3669
3670 <page name="filemanagerchmod">
3671 <object type="template" name="header" />
3672
3673 <object type="text" color="%text_color%">
3674 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
3675 <font resource="font" />
3676 <text>Please Enter New Permissions</text>
3677 </object>
3678
3679 <object type="input">
3680 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
3681 <background color="%input_background_color%" />
3682 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
3683 <font resource="font" color="%text_color%" />
3684 <text>%tw_filemanager_rename%</text>
3685 <data name="tw_filemanager_rename" />
3686 <restrict minlen="3" maxlen="4" allow="0123456789" />
3687 <actions>
3688 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
3689 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
3690 <action function="set">tw_back=filemanageroptions</action>
3691 <action function="page">filemanagerconfirm</action>
3692 </actions>
3693 </object>
3694
3695 <object type="button">
3696 <highlight color="%highlight_color%" />
3697 <placement x="%col_center_x%" y="%row2_y%" />
3698 <font resource="font" color="%button_text_color%" />
3699 <text>Cancel</text>
3700 <image resource="main_button" />
3701 <action function="page">filemanageroptions</action>
3702 </object>
3703
3704 <object type="template" name="keyboardtemplate" />
3705
3706 <object type="action">
3707 <touch key="home" />
3708 <action function="page">main</action>
3709 </object>
3710
3711 <object type="action">
3712 <touch key="back" />
3713 <action function="page">filemanageroptions</action>
3714 </object>
3715
3716 <object type="template" name="footer" />
3717 </page>
3718
3719 <page name="filemanagerconfirm">
3720 <object type="template" name="header" />
3721
3722 <object type="text" color="%text_color%">
3723 <font resource="font" />
3724 <placement x="%center_x%" y="%row1_text_y%" placement="5"/>
3725 <text>%tw_fm_text1%</text>
3726 </object>
3727
3728 <object type="text" color="%text_color%">
3729 <font resource="font" />
3730 <placement x="%center_x%" y="%row2_text_y%" placement="5"/>
3731 <text>%tw_filename1%</text>
3732 </object>
3733
3734 <object type="text" color="%text_color%">
3735 <font resource="font" />
3736 <placement x="%center_x%" y="%row3_text_y%" placement="5"/>
3737 <text>%tw_fm_text2%</text>
3738 </object>
3739
3740 <object type="text" color="%text_color%">
3741 <font resource="font" />
3742 <placement x="%center_x%" y="%row4_text_y%" placement="5"/>
3743 <text>%tw_fm_text3%</text>
3744 </object>
3745
3746 <object type="text" color="%text_color%">
3747 <font resource="font" />
3748 <placement x="%center_x%" y="%row10_text_y%" placement="5"/>
3749 <text>Press back button to cancel.</text>
3750 </object>
3751
3752 <object type="slider">
3753 <placement x="%slider_x%" y="%slider_y%" />
3754 <resource base="slider" used="slider-used" touch="slider-touch" />
3755 <action function="page">filemanageracction</action>
3756 </object>
3757
3758 <object type="text" color="%text_color%">
3759 <font resource="font" />
3760 <placement x="%center_x%" y="%slider_text_y%" placement="4" />
3761 <text>Swipe to Confirm</text>
3762 </object>
3763
3764 <object type="action">
3765 <touch key="back" />
3766 <action function="page">%tw_back%</action>
3767 </object>
3768
3769 <object type="action">
3770 <touch key="home" />
3771 <action function="page">main</action>
3772 </object>
3773
3774 <object type="template" name="footer" />
3775 </page>
3776
3777 <page name="filemanageracction">
3778 <object type="template" name="header" />
3779
3780 <object type="text" color="%text_color%">
3781
3782 <font resource="font" />
3783 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
3784 <text>%tw_fm_text1%</text>
3785 </object>
3786
3787 <object type="template" name="action_page_console" />
3788
3789 <object type="template" name="progress_bar" />
3790
3791 <object type="action">
3792 <conditions>
3793 <condition var1="tw_operation_state" var2="1" />
3794 <condition var1="tw_operation_status" var2="0" />
3795 </conditions>
3796 <actions>
3797 <action function="set">tw_back=filemanagerlist</action>
3798 <action function="set">tw_complete_text1=File Operation Complete</action>
3799 <action function="page">action_complete</action>
3800 </actions>
3801 </object>
3802
3803 <object type="action">
3804 <conditions>
3805 <condition var1="tw_operation_state" var2="1" />
3806 <condition var1="tw_operation_status" op="!=" var2="0" />
3807 </conditions>
3808 <actions>
3809 <action function="set">tw_complete_text1=File Operation Complete</action>
3810 <action function="page">action_complete</action>
3811 </actions>
3812 </object>
3813
3814 <object type="action">
3815 <condition var1="tw_include_text3" var2="0" />
3816 <actions>
3817 <action function="cmd">%tw_filemanager_command% &quot;%tw_filename1%&quot;</action>
3818 </actions>
3819 </object>
3820
3821 <object type="action">
3822 <condition var1="tw_include_text3" var2="1" />
3823 <actions>
3824 <action function="cmd">%tw_filemanager_command% &quot;%tw_filename1%&quot; &quot;%tw_fm_text3%&quot;</action>
3825 </actions>
3826 </object>
3827 </page>
3828
3829 <page name="decrypt">
3830 <object type="template" name="header" />
3831
3832 <object type="text" color="%text_color%">
3833 <font resource="font" />
3834 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
3835 <text>Please Enter Your Password</text>
3836 </object>
3837
3838 <object type="input">
3839 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
3840 <background color="%input_background_color%" />
3841 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
3842 <font resource="font" color="%text_color%" />
3843 <text>%tw_crypto_display%</text>
3844 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display" />
3845 <restrict minlen="1" maxlen="254" />
3846 <actions>
3847 <action function="page">trydecrypt</action>
3848 </actions>
3849 </object>
3850
3851 <object type="text" color="%text_fail_color%">
3852 <condition var1="tw_password_fail" var2="1" />
3853 <font resource="font" />
3854 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
3855 <text>Password Failed, Please Try Again</text>
3856 </object>
3857
3858 <object type="button">
3859 <highlight color="%highlight_color%" />
3860 <placement x="%col_center_x%" y="%row2_y%" />
3861 <font resource="font" color="%button_text_color%" />
3862 <text>Cancel</text>
3863 <image resource="main_button" />
3864 <actions>
3865 <action function="set">tw_page_done=1</action>
3866 <action function="page">main</action>
3867 </actions>
3868 </object>
3869
3870 <object type="template" name="keyboardtemplate" />
3871
3872 <object type="template" name="footer" />
3873 </page>
3874
3875 <page name="trydecrypt">
3876 <object type="template" name="header" />
3877
3878 <object type="text" color="%text_color%">
3879 <font resource="font" />
3880 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
3881 <text>Trying Decryption with Your Password</text>
3882 </object>
3883
3884 <object type="template" name="action_page_console" />
3885
3886 <object type="template" name="progress_bar" />
3887
3888 <object type="action">
3889 <action function="decrypt"></action>
3890 </object>
3891
3892 <object type="action">
3893 <conditions>
3894 <condition var1="tw_operation_state" var2="1" />
3895 <condition var1="tw_operation_status" op="!=" var2="0" />
3896 </conditions>
3897 <actions>
3898 <action function="set">tw_password_fail=1</action>
3899 <action function="page">decrypt</action>
3900 </actions>
3901 </object>
3902
3903 <object type="action">
3904 <conditions>
3905 <condition var1="tw_operation_state" var2="1" />
3906 <condition var1="tw_operation_status" op="=" var2="0" />
3907 </conditions>
3908 <actions>
3909 <action function="set">tw_page_done=1</action>
3910 <action function="page">main</action>
3911 </actions>
3912 </object>
3913 </page>
3914
3915 <page name="terminalfolder">
3916 <object type="template" name="header" />
3917
3918 <object type="text" color="%text_color%">
3919 <font resource="font" />
3920 <placement x="%center_x%" y="%row1_header_y%" placement="5"/>
3921 <text>Browse to Starting Folder</text>
3922 </object>
3923
3924 <object type="fileselector">
3925 <highlight color="%fileselector_highlight_color%" />
3926 <placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
3927 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
3928 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
3929 <text>%tw_terminal_location%</text>
3930 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
3931 <sort name="tw_gui_sort_order" />
3932 <icon folder="folder_icon" file="file_icon" />
3933 <background color="%fileselector_background%" />
3934 <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
3935 <filter folders="1" files="0" />
3936 <path name="tw_terminal_location" default="/" />
3937 <data name="tw_terminal" />
3938 <selection name="tw_terminal_selection" />
3939 </object>
3940
3941 <object type="template" name="sort_options" />
3942
3943 <object type="action">
3944 <touch key="home" />
3945 <action function="page">main</action>
3946 </object>
3947
3948 <object type="action">
3949 <touch key="back" />
3950 <action function="page">advanced</action>
3951 </object>
3952
3953 <object type="button">
3954 <highlight color="%highlight_color%" />
3955 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
3956 <font resource="font" color="%button_text_color%" />
3957 <text>Select</text>
3958 <image resource="medium_button" />
3959 <actions>
3960 <action function="page">terminalcommand</action>
3961 </actions>
3962 </object>
3963
3964 <object type="template" name="footer" />
3965 </page>
3966
3967 <page name="terminalcommand">
3968 <object type="template" name="header" />
3969
3970 <object type="console">
3971 <placement x="%console_x%" y="0" w="%console_width%" h="%terminal_console_height%" />
3972 <color foreground="%console_foreground%" background="%console_background%" scroll="%console_scroll%" />
3973 <font resource="fixed" />
3974 </object>
3975
3976 <object type="text" color="%text_color%">
3977 <placement x="%col1_x%" y="%terminal_text_y%" placement="0" />
3978 <font resource="font" />
3979 <text>Starting Path: %tw_terminal_location%</text>
3980 </object>
3981
3982 <object type="input">
3983 <condition var1="tw_terminal_state" var2="0" />
3984 <placement x="%col1_x%" y="%terminal_text_y%" w="%input_width%" h="%input_height%" placement="0" />
3985 <background color="%input_background_color%" />
3986 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
3987 <font resource="font" color="%text_color%" />
3988 <text>%tw_terminal_command%</text>
3989 <data name="tw_terminal_command" />
3990 <restrict minlen="1" />
3991 <action function="terminalcommand">%tw_terminal_command%</action>
3992 </object>
3993
3994 <object type="button">
3995 <highlight color="%highlight_color%" />
3996 <condition var1="tw_terminal_state" var2="1" />
3997 <placement x="%filemanager_select_x%" y="%terminal_button_y%" />
3998 <font resource="font" color="%button_text_color%" />
3999 <text>KILL</text>
4000 <image resource="medium_button" />
4001 <action function="killterminal"></action>
4002 </object>
4003
4004 <object type="template" name="keyboardtemplate" />
4005
4006 <object type="action">
4007 <touch key="home" />
4008 <action function="page">main</action>
4009 </object>
4010
4011 <object type="action">
4012 <touch key="back" />
4013 <action function="page">terminalfolder</action>
4014 </object>
4015 </page>
4016
4017 <page name="sideload">
4018 <object type="template" name="header" />
4019
4020 <object type="text" color="%text_color%">
4021 <font resource="font" />
4022 <placement x="%center_x%" y="%row1_header_y%" placement="5"/>
4023 <text>ADB Sideload</text>
4024 </object>
4025
4026 <object type="checkbox">
4027 <placement x="%col1_x%" y="%row2_text_y%" />
4028 <font resource="font" color="%text_color%" />
4029 <text>Wipe Dalvik Cache.</text>
4030 <data variable="tw_wipe_dalvik" />
4031 <image checked="checkbox_true" unchecked="checkbox_false" />
4032 </object>
4033
4034 <object type="checkbox">
4035 <placement x="%col1_x%" y="%row3_text_y%" />
4036 <font resource="font" color="%text_color%" />
4037 <text>Wipe Cache.</text>
4038 <data variable="tw_wipe_cache" />
4039 <image checked="checkbox_true" unchecked="checkbox_false" />
4040 </object>
4041
4042 <object type="slider">
4043 <placement x="%slider_x%" y="%slider_y%" />
4044 <resource base="slider" used="slider-used" touch="slider-touch" />
4045 <actions>
4046 <action function="set">tw_back=advanced</action>
4047 <action function="set">tw_action=adbsideload</action>
4048 <action function="set">tw_action_text1=ADB Sideload</action>
4049 <action function="set">tw_action_text2=Usage: adb sideload filename.zip</action>
4050 <action function="set">tw_complete_text1=ADB Sideload Complete</action>
4051 <action function="set">tw_has_cancel=1</action>
4052 <action function="set">tw_show_reboot=1</action>
4053 <action function="set">tw_cancel_action=adbsideloadcancel</action>
4054 <action function="page">action_page</action>
4055 </actions>
4056 </object>
4057
4058 <object type="text" color="%text_color%">
4059 <font resource="font" />
4060 <placement x="%center_x%" y="%slider_text_y%" placement="4" />
4061 <text>Swipe to Start Sideload</text>
4062 </object>
4063
4064 <object type="action">
4065 <touch key="home" />
4066 <action function="page">main</action>
4067 </object>
4068
4069 <object type="action">
4070 <touch key="back" />
4071 <action function="page">advanced</action>
4072 </object>
4073
4074 <object type="template" name="footer" />
4075 </page>
4076
thata3d31fb2014-12-21 22:27:40 +01004077 <page name="fixperms">
4078 <object type="template" name="header" />
4079
4080 <object type="text" color="%text_color%">
4081 <font resource="font" />
4082 <placement x="%center_x%" y="%row1_header_y%" placement="5"/>
4083 <text>Fix Permissions</text>
4084 </object>
4085
4086 <object type="text" color="%text_color%">
4087 <font resource="font" />
4088 <placement x="%col1_x%" y="%row2_text_y%" />
4089 <text>Note: Fixing permissions is rarely needed.</text>
4090 </object>
4091
4092 <object type="checkbox">
4093 <placement x="%col1_x%" y="%row3_text_y%" />
4094 <font resource="font" color="%text_color%" />
4095 <text>Also fix SELinux contexts</text>
4096 <data variable="tw_fixperms_restorecon" />
4097 <image checked="checkbox_true" unchecked="checkbox_false" />
4098 </object>
4099
4100 <object type="text" color="%text_color%">
4101 <font resource="font" />
4102 <placement x="%col1_x%" y="%row4_text_y%" />
4103 <text>Fixing SELinux contexts may cause</text>
4104 </object>
4105
4106 <object type="text" color="%text_color%">
4107 <font resource="font" />
4108 <placement x="%col1_x%" y="%row5_text_y%" />
4109 <text>your device to not boot properly.</text>
4110 </object>
4111
4112 <object type="slider">
4113 <placement x="%slider_x%" y="%slider_y%" />
4114 <resource base="slider" used="slider-used" touch="slider-touch" />
4115 <actions>
4116 <action function="set">tw_back=advanced</action>
4117 <action function="set">tw_action=fixpermissions</action>
4118 <action function="set">tw_action_text1=Fixing Permissions...</action>
4119 <action function="set">tw_complete_text1=Fix Permissions Complete</action>
4120 <action function="set">tw_slider_text=Swipe to Confirm</action>
4121 <action function="set">tw_show_reboot=1</action>
4122 <action function="page">action_page</action>
4123 </actions>
4124 </object>
4125
4126 <object type="text" color="%text_color%">
4127 <font resource="font" />
4128 <placement x="%center_x%" y="%slider_text_y%" placement="4" />
4129 <text>Swipe to Fix Permissions</text>
4130 </object>
4131
4132 <object type="action">
4133 <touch key="home" />
4134 <action function="page">main</action>
4135 </object>
4136
4137 <object type="action">
4138 <touch key="back" />
4139 <action function="page">advanced</action>
4140 </object>
4141
4142 <object type="template" name="footer" />
4143 </page>
4144
Ethan Yonker780cd392014-07-21 15:24:39 -05004145 <page name="installsu">
4146 <object type="template" name="header" />
4147
4148 <object type="text" color="%text_color%">
4149 <font resource="font" />
4150 <placement x="%center_x%" y="%row1_header_y%" placement="5"/>
4151 <text>Install SuperSU?</text>
4152 </object>
4153
4154 <object type="text" color="%text_color%">
4155 <font resource="font" />
4156 <placement x="%center_x%" y="%row2_text_y%" placement="5"/>
4157 <text>Your device does not appear to be rooted.</text>
4158 </object>
4159
4160 <object type="text" color="%text_color%">
4161 <font resource="font" />
4162 <placement x="%center_x%" y="%row3_text_y%" placement="5"/>
4163 <text>Install SuperSU now?</text>
4164 </object>
4165
4166 <object type="text" color="%text_color%">
4167 <font resource="font" />
4168 <placement x="%center_x%" y="%row4_text_y%" placement="5"/>
4169 <text>This will root your device.</text>
4170 </object>
4171
4172 <object type="button">
4173 <highlight color="%highlight_color%" />
4174 <placement x="%col_center_x%" y="%row3_y%" />
4175 <font resource="font" color="%button_text_color%" />
4176 <text>Do Not Install</text>
4177 <image resource="main_button" />
4178 <action function="set">tw_page_done=1</action>
4179 </object>
4180
4181 <object type="slider">
4182 <placement x="%slider_x%" y="%slider_y%" />
4183 <resource base="slider" used="slider-used" touch="slider-touch" />
4184 <actions>
4185 <action function="set">tw_action=installsu</action>
4186 <action function="set">tw_action_text1=Installing SuperSU</action>
4187 <action function="set">tw_action_text2=</action>
4188 <action function="page">singleaction_page</action>
4189 </actions>
4190 </object>
4191
4192 <object type="text" color="%text_color%">
4193 <font resource="font" />
4194 <placement x="%center_x%" y="%slider_text_y%" placement="4" />
4195 <text>Swipe to Install</text>
4196 </object>
4197 </page>
4198 </pages>
4199</recovery>