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