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