blob: eb6d9ddd657d2c1c91d67e91494e0ae0fa275898 [file] [log] [blame]
Ethan Yonker780cd392014-07-21 15:24:39 -05001<?xml version="1.0"?>
2
3<recovery>
4 <pages>
5 <page name="main">
6 <object type="action">
7 <actions>
8 <action function="set">tw_clear_destination=main2</action>
9 <action function="page">clear_vars</action>
10 </actions>
11 </object>
12 </page>
13
14 <page name="main2">
15 <object type="template" name="header" />
16
17 <object type="button">
18 <highlight color="%highlight_color%" />
19 <placement x="%col1_x%" y="%row1_y%" />
20 <font resource="font" color="%button_text_color%" />
21 <text>Install</text>
22 <image resource="main_button" />
23 <actions>
24 <action function="queueclear"></action>
25 <action function="page">install</action>
26 </actions>
27 </object>
28
29 <object type="button">
30 <highlight color="%highlight_color%" />
31 <placement x="%col2_x%" y="%row1_y%" />
32 <font resource="font" color="%button_text_color%" />
33 <text>Backup</text>
34 <image resource="main_button" />
35 <action function="page">backup</action>
36 </object>
37
38 <object type="button">
39 <highlight color="%highlight_color%" />
40 <placement x="%col3_x%" y="%row1_y%" />
41 <font resource="font" color="%button_text_color%" />
42 <text>Restore</text>
43 <image resource="main_button" />
44 <action function="page">restore</action>
45 </object>
46
47 <object type="button">
48 <highlight color="%highlight_color%" />
49 <placement x="%col4_x%" y="%row1_y%" />
50 <font resource="font" color="%button_text_color%" />
51 <text>Wipe</text>
52 <image resource="main_button" />
53 <action function="page">wipe</action>
54 </object>
55
56 <object type="button">
57 <highlight color="%highlight_color%" />
58 <placement x="%col1_x%" y="%row2_y%" />
59 <font resource="font" color="%button_text_color%" />
60 <text>Mount</text>
61 <image resource="main_button" />
62 <action function="page">mount</action>
63 </object>
64
65 <object type="button">
66 <highlight color="%highlight_color%" />
67 <placement x="%col2_x%" y="%row2_y%" />
68 <font resource="font" color="%button_text_color%" />
69 <text>Settings</text>
70 <image resource="main_button" />
71 <action function="page">settings</action>
72 </object>
73
74 <object type="button">
75 <highlight color="%highlight_color%" />
76 <placement x="%col3_x%" y="%row2_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="%col4_x%" y="%row2_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
95 <page name="install">
96 <object type="template" name="header" />
97
98 <object type="text" color="%text_color%">
99 <font resource="font" />
100 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
101 <text>Select Zip to Install</text>
102 </object>
103
104 <object type="button">
105 <highlight color="%highlight_color%" />
106 <fill color="%button_fill_color%" />
107 <placement x="%button_full_center_x%" y="%zipstorage_text_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
108 <font resource="font" color="%button_text_color%" />
109 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
110 <actions>
111 <action function="set">tw_back=install</action>
112 <action function="page">selectstorage</action>
113 </actions>
114 </object>
115
116 <object type="fileselector">
117 <highlight color="%fileselector_highlight_color%" />
118 <placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
119 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
120 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
121 <text>Folders:</text>
122 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
123 <sort name="tw_gui_sort_order" />
124 <icon folder="folder_icon" file="file_icon" />
125 <background color="%fileselector_background%" />
126 <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
127 <filter folders="1" files="0" />
128 <path name="tw_zip_location" default="/sdcard" />
129 <data name="select" />
130 </object>
131
132 <object type="fileselector">
133 <highlight color="%fileselector_highlight_color%" />
134 <placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
135 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
136 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
137 <text>%tw_zip_location%</text>
138 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
139 <sort name="tw_gui_sort_order" />
140 <icon folder="folder_icon" file="file_icon" />
141 <background color="%fileselector_background%" />
142 <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
143 <filter extn=".zip" folders="0" files="1" />
144 <path name="tw_zip_location" />
145 <data name="tw_filename" />
146 <selection name="tw_file" />
147 </object>
148
149 <object type="template" name="sort_options" />
150
Ethan Yonker96af84a2015-01-05 14:58:36 -0600151 <object type="button">
152 <highlight color="%highlight_color%" />
153 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
154 <font resource="font" color="%button_text_color%" />
155 <text>Images...</text>
156 <image resource="main_button" />
157 <actions>
158 <action function="page">install_image</action>
159 </actions>
160 </object>
161
Ethan Yonker780cd392014-07-21 15:24:39 -0500162 <object type="action">
163 <condition var1="tw_filename" op="modified" />
164 <actions>
165 <action function="queuezip"></action>
166 <action function="page">flash_confirm</action>
167 </actions>
168 </object>
169
170 <object type="action">
171 <touch key="back" />
172 <action function="page">main</action>
173 </object>
174
175 <object type="action">
176 <touch key="home" />
177 <action function="page">main</action>
178 </object>
179
180 <object type="template" name="footer" />
181 </page>
182
183 <page name="flash_confirm">
184 <object type="template" name="header" />
185
186 <object type="text" color="%text_color%">
187 <font resource="font" />
188 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
189 <text>WARNING: This operation may install incompatible software and render your device unusable.</text>
190 </object>
191
192 <object type="text" color="%text_color%">
193 <font resource="font" />
194 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
195 <text>Folder:</text>
196 </object>
197
198 <object type="text" color="%text_color%">
199 <font resource="font" />
200 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
201 <text>%tw_zip_location%</text>
202 </object>
203
204 <object type="text" color="%text_color%">
205 <font resource="font" />
206 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
207 <text>File to flash:</text>
208 </object>
209
210 <object type="text" color="%text_color%">
211 <font resource="font" />
212 <placement x="%center_x%" y="%row5_text_y%" placement="5" />
213 <text>%tw_file%</text>
214 </object>
215
216 <object type="text" color="%text_color%">
217 <font resource="font" />
218 <placement x="%center_x%" y="%row6_text_y%" placement="5" />
219 <text>Press back to cancel adding this zip.</text>
220 </object>
221
222 <object type="checkbox">
223 <placement x="%col2_x%" y="%row7_text_y%" />
224 <font resource="font" color="%text_color%" />
225 <text>Zip file signature verification?</text>
226 <data variable="tw_signed_zip_verify" />
227 <image checked="checkbox_true" unchecked="checkbox_false" />
228 </object>
229
230 <object type="text" color="%text_color%">
231 <font resource="font" />
232 <placement x="%center_x%" y="%row10_text_y%" placement="5" />
233 <text>File %tw_zip_queue_count% of max of 10</text>
234 </object>
235
236 <object type="button">
237 <highlight color="%highlight_color%" />
238 <condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
239 <placement x="%col2_x%" y="%row5_medium_y%" />
240 <font resource="font" color="%button_text_color%" />
241 <text>Add More Zips</text>
242 <image resource="mediumwide_button" />
243 <action function="page">install</action>
244 </object>
245
246 <object type="button">
247 <highlight color="%highlight_color%" />
248 <placement x="%col3_x%" y="%row5_medium_y%" />
249 <font resource="font" color="%button_text_color%" />
250 <text>Clear Queue</text>
251 <image resource="mediumwide_button" />
252 <actions>
253 <action function="queueclear"></action>
254 <action function="page">install</action>
255 </actions>
256 </object>
257
258 <object type="slider">
259 <placement x="%slider_x%" y="%slider_y%" />
260 <resource base="slider" used="slider-used" touch="slider-touch" />
261 <action function="flash">flash_zip</action>
262 </object>
263
264 <object type="text" color="%text_color%">
265 <font resource="font" />
266 <placement x="%center_x%" y="%slider_text_y%" placement="4" />
267 <text>Swipe to Confirm Flash</text>
268 </object>
269
270 <object type="action">
271 <touch key="back" />
272 <actions>
273 <action function="cancelzip"></action>
274 <action function="page">install</action>
275 </actions>
276 </object>
277
278 <object type="action">
279 <touch key="home" />
280 <action function="page">main</action>
281 </object>
282
283 <object type="template" name="footer" />
284 </page>
285
286 <page name="flash_zip">
287 <object type="template" name="header" />
288
289 <object type="template" name="flash_zip_console" />
290
291 <object type="text" color="%text_color%">
292 <font resource="font" />
293 <placement x="%col1_x%" y="%row16_text_y%" />
294 <text>Flashing file %tw_zip_index% of %tw_zip_queue_count%</text>
295 </object>
296
297 <object type="text" color="%text_color%">
298 <font resource="font" />
299 <placement x="%col1_x%" y="%row17_text_y%" />
300 <text>%tw_filename%</text>
301 </object>
302
303 <object type="template" name="progress_bar" />
304
305 <object type="action">
306 <condition var1="tw_operation_state" var2="1" />
307 <action function="page">flash_done</action>
308 </object>
309 </page>
310
311 <page name="flash_done">
312 <object type="template" name="header" />
313
314 <object type="template" name="flash_zip_console" />
315
316 <object type="text" color="%text_fail_color%">
317 <condition var1="tw_operation_status" op="!=" var2="0" />
318 <font resource="font" />
319 <placement x="%center_x%" y="%row17_text_y%" placement="5" />
320 <text>Failed</text>
321 </object>
322
323 <object type="text" color="%text_success_color%">
324 <condition var1="tw_operation_status" var2="0" />
325 <font resource="font" />
326 <placement x="%center_x%" y="%row17_text_y%" placement="5" />
327 <text>Successful</text>
328 </object>
329
330 <object type="button">
331 <highlight color="%highlight_color%" />
332 <placement x="%col1_x%" y="%slider_y%" />
333 <font resource="font" color="%button_text_color%" />
334 <text>Wipe Cache/Dalvik</text>
335 <image resource="main_button" />
336 <actions>
337 <action function="set">tw_back=flash_done</action>
338 <action function="set">tw_action=wipe</action>
339 <action function="set">tw_action_param=/cache</action>
340 <action function="set">tw_has_action2=1</action>
341 <action function="set">tw_action2=wipe</action>
342 <action function="set">tw_action2_param=dalvik</action>
343 <action function="set">tw_text1=Wipe Cache & Dalvik?</action>
344 <action function="set">tw_action_text1=Wiping Cache & Dalvik...</action>
345 <action function="set">tw_complete_text1=Cache & Dalvik Wipe Complete</action>
346 <action function="set">tw_slider_text=Swipe to Wipe</action>
347 <action function="page">confirm_action</action>
348 </actions>
349 </object>
350
351 <object type="button">
352 <highlight color="%highlight_color%" />
353 <condition var1="tw_reboot_system" var2="1" />
354 <placement x="%col4_x%" y="%slider_y%" />
355 <font resource="font" color="%button_text_color%" />
356 <text>Reboot System</text>
357 <image resource="main_button" />
358 <actions>
359 <action function="set">tw_back=main2</action>
360 <action function="set">tw_action=reboot</action>
361 <action function="set">tw_action_param=system</action>
362 <action function="set">tw_has_action2=0</action>
363 <action function="set">tw_text1=No OS Installed! Are you</action>
364 <action function="set">tw_text2=sure you wish to reboot?</action>
365 <action function="set">tw_text3=</action>
366 <action function="set">tw_text4=</action>
367 <action function="set">tw_action_text1=Rebooting...</action>
368 <action function="set">tw_action_text2=</action>
369 <action function="set">tw_complete_text1=Rebooting...</action>
370 <action function="set">tw_slider_text=Swipe to Reboot</action>
371 <action function="page">rebootcheck</action>
372 </actions>
373 </object>
374
375 <object type="button">
376 <highlight color="%highlight_color%" />
377 <placement x="%col_center_x%" y="%slider_y%" />
378 <font resource="font" color="%button_text_color%" />
379 <text>Home</text>
380 <image resource="main_button" />
381 <actions>
382 <action function="set">tw_clear_destination=main2</action>
383 <action function="page">clear_vars</action>
384 </actions>
385 </object>
386
387 <object type="action">
388 <touch key="back" />
389 <actions>
390 <action function="set">tw_clear_destination=install</action>
391 <action function="page">clear_vars</action>
392 </actions>
393 </object>
394
395 <object type="action">
396 <touch key="home" />
397 <actions>
398 <action function="set">tw_clear_destination=main2</action>
399 <action function="page">clear_vars</action>
400 </actions>
401 </object>
402 </page>
403
Ethan Yonker96af84a2015-01-05 14:58:36 -0600404 <page name="install_image">
405 <object type="template" name="header" />
406
407 <object type="text" color="%text_color%">
408 <font resource="font" />
409 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
410 <text>Select Image to Flash</text>
411 </object>
412
413 <object type="button">
414 <highlight color="%highlight_color%" />
415 <fill color="%button_fill_color%" />
416 <placement x="%button_full_center_x%" y="%zipstorage_text_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
417 <font resource="font" color="%button_text_color%" />
418 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
419 <actions>
420 <action function="set">tw_back=install_image</action>
421 <action function="page">selectstorage</action>
422 </actions>
423 </object>
424
425 <object type="fileselector">
426 <highlight color="%fileselector_highlight_color%" />
427 <placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
428 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
429 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
430 <text>Folders:</text>
431 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
432 <sort name="tw_gui_sort_order" />
433 <icon folder="folder_icon" file="file_icon" />
434 <background color="%fileselector_background%" />
435 <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
436 <filter folders="1" files="0" />
437 <path name="tw_zip_location" default="/sdcard" />
438 <data name="select" />
439 </object>
440
441 <object type="fileselector">
442 <highlight color="%fileselector_highlight_color%" />
443 <placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
444 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
445 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
446 <text>%tw_zip_location%</text>
447 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
448 <sort name="tw_gui_sort_order" />
449 <icon folder="folder_icon" file="file_icon" />
450 <background color="%fileselector_background%" />
451 <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
452 <filter extn=".img" folders="0" files="1" />
453 <path name="tw_zip_location" />
454 <data name="tw_filename" />
455 <selection name="tw_file" />
456 </object>
457
458 <object type="template" name="sort_options" />
459
460 <object type="button">
461 <highlight color="%highlight_color%" />
462 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
463 <font resource="font" color="%button_text_color%" />
464 <text>Zips...</text>
465 <image resource="main_button" />
466 <actions>
467 <action function="page">install</action>
468 </actions>
469 </object>
470
471 <object type="action">
472 <condition var1="tw_filename" op="modified" />
473 <action function="page">flashimage_confirm</action>
474 </object>
475
476 <object type="action">
477 <touch key="back" />
478 <action function="page">install</action>
479 </object>
480
481 <object type="action">
482 <touch key="home" />
483 <action function="page">main</action>
484 </object>
485
486 <object type="template" name="footer" />
487 </page>
488
489 <page name="flashimage_confirm">
490 <object type="template" name="header" />
491
492 <object type="partitionlist">
493 <highlight color="%fileselector_highlight_color%" />
494 <placement x="%col2_x%" y="%row1_text_y%" w="%listbox_width%" h="%flash_list_height%" />
495 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
496 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
497 <text>Select Partition to Flash Image:</text>
498 <icon selected="radio_true" unselected="radio_false" />
499 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
500 <background color="%listbox_background%" />
501 <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
502 <data name="tw_flash_partition" />
503 <listtype name="flashimg" />
504 </object>
505
506 <object type="text" color="%text_color%">
507 <font resource="font" />
508 <placement x="%center_x%" y="%row8_text_y%" placement="5" />
509 <text>Folder:</text>
510 </object>
511
512 <object type="text" color="%text_color%">
513 <font resource="font" />
514 <placement x="%center_x%" y="%row9_text_y%" placement="5" />
515 <text>%tw_zip_location%</text>
516 </object>
517
518 <object type="text" color="%text_color%">
519 <font resource="font" />
520 <placement x="%center_x%" y="%row10_text_y%" placement="5" />
521 <text>File to flash:</text>
522 </object>
523
524 <object type="text" color="%text_color%">
525 <font resource="font" />
526 <placement x="%center_x%" y="%row11_text_y%" placement="5" />
527 <text>%tw_file%</text>
528 </object>
529
530 <object type="slider">
531 <placement x="%slider_x%" y="%slider_y%" placement="5" />
532 <resource base="slider" used="slider-used" touch="slider-touch" />
533 <actions>
534 <action function="set">tw_back=flashimage_confirm</action>
535 <action function="set">tw_action=flashimage</action>
536 <action function="set">tw_has_action2=0</action>
537 <action function="set">tw_action_text1=Flashing Image...</action>
538 <action function="set">tw_action_text2=</action>
539 <action function="set">tw_complete_text1=Image Flashed</action>
540 <action function="page">action_page</action>
541 </actions>
542 <action function="flashimage"></action>
543 </object>
544
545 <object type="text" color="%text_color%">
546 <font resource="font" />
547 <placement x="%center_x%" y="%slider_text_y%" placement="4" />
548 <text>Swipe to Confirm Flash</text>
549 </object>
550
551 <object type="action">
552 <touch key="back" />
553 <actions>
554 <action function="set">tw_clear_destination=install_image</action>
555 <action function="page">clear_vars</action>
556 </actions>
557 </object>
558
559 <object type="action">
560 <touch key="home" />
561 <actions>
562 <action function="set">tw_clear_destination=main2</action>
563 <action function="page">clear_vars</action>
564 </actions>
565 </object>
566
567 <object type="template" name="footer" />
568 </page>
569
Ethan Yonker780cd392014-07-21 15:24:39 -0500570 <page name="clear_vars">
571 <object type="action">
572 <action function="set">tw_operation_state=0</action>
573 <action function="set">tw_text1=</action>
574 <action function="set">tw_text2=</action>
575 <action function="set">tw_text3=</action>
576 <action function="set">tw_text4=</action>
577 <action function="set">tw_action_text1=</action>
578 <action function="set">tw_action_text2=</action>
579 <action function="set">tw_action_param=</action>
580 <action function="set">tw_has_action2=0</action>
581 <action function="set">tw_action2=</action>
582 <action function="set">tw_action2_param=</action>
583 <action function="set">tw_has_cancel=0</action>
584 <action function="set">tw_cancel_action=</action>
585 <action function="set">tw_cancel_param=</action>
586 <action function="set">tw_show_exclamation=0</action>
587 <action function="set">tw_show_reboot=0</action>
588 <action function="page">%tw_clear_destination%</action>
589 </object>
590 </page>
591
592 <page name="confirm_action">
593 <object type="template" name="header" />
594
595 <object type="text" color="%text_color%">
596 <font resource="font" />
597 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
598 <text>%tw_text1%</text>
599 </object>
600
601 <object type="text" color="%text_color%">
602 <font resource="font" />
603 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
604 <text>%tw_text2%</text>
605 </object>
606
607 <object type="text" color="%text_color%">
608 <font resource="font" />
609 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
610 <text>%tw_text3%</text>
611 </object>
612
613 <object type="text" color="%text_color%">
614 <font resource="font" />
615 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
616 <text>%tw_text4%</text>
617 </object>
618
619 <object type="text" color="%text_color%">
620 <font resource="font" />
621 <placement x="%center_x%" y="%row12_text_y%" placement="5" />
622 <text>Press back button to cancel.</text>
623 </object>
624
625 <object type="slider">
626 <placement x="%slider_x%" y="%slider_y%" />
627 <resource base="slider" used="slider-used" touch="slider-touch" />
628 <action function="page">action_page</action>
629 </object>
630
631 <object type="text" color="%text_color%">
632 <font resource="font" />
633 <placement x="%center_x%" y="%slider_text_y%" placement="4" />
634 <text>%tw_slider_text%</text>
635 </object>
636
637 <object type="action">
638 <touch key="back" />
639 <actions>
640 <action function="set">tw_clear_destination=%tw_back%</action>
641 <action function="page">clear_vars</action>
642 </actions>
643 </object>
644
645 <object type="action">
646 <touch key="home" />
647 <action function="page">main</action>
648 </object>
649
650 <object type="template" name="footer" />
651 </page>
652
653 <page name="action_page">
654 <object type="template" name="header" />
655
656 <object type="text" color="%text_color%">
657 <font resource="font" />
658 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
659 <text>%tw_action_text1%</text>
660 </object>
661
662 <object type="text" color="%text_color%">
663 <font resource="font" />
664 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
665 <text>%tw_action_text2%</text>
666 </object>
667
668 <object type="template" name="action_page_console" />
669
670 <object type="button">
671 <highlight color="%highlight_color%" />
672 <condition var1="tw_has_cancel" var2="1" />
bigbiff7abc5fe2015-01-17 16:53:12 -0500673 <placement x="%col_center_x%" y="%cancel_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500674 <font resource="font" color="%button_text_color%" />
675 <text>Cancel</text>
676 <image resource="main_button" />
677 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
678 </object>
679
680 <object type="template" name="progress_bar" />
681
682 <object type="action">
683 <condition var1="tw_operation_state" var2="1" />
684 <actions>
685 <action function="page">action_complete</action>
686 </actions>
687 </object>
688
689 <object type="action">
690 <condition var1="tw_has_action2" var2="0" />
691 <actions>
692 <action function="%tw_action%">%tw_action_param%</action>
693 </actions>
694 </object>
695
696 <object type="action">
697 <condition var1="tw_has_action2" var2="1" />
698 <actions>
699 <action function="%tw_action%">%tw_action_param%</action>
700 <action function="%tw_action2%">%tw_action2_param%</action>
701 </actions>
702 </object>
703 </page>
704
705 <page name="singleaction_page">
706 <object type="template" name="header" />
707
708 <object type="text" color="%text_color%">
709 <font resource="font" />
710 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
711 <text>%tw_action_text1%</text>
712 </object>
713
714 <object type="text" color="%text_color%">
715 <font resource="font" />
716 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
717 <text>%tw_action_text2%</text>
718 </object>
719
720 <object type="template" name="action_page_console" />
721
722 <object type="template" name="progress_bar" />
723
724 <object type="action">
725 <condition var1="tw_operation_state" var2="1" />
726 <actions>
727 <action function="set">tw_page_done=1</action>
728 </actions>
729 </object>
730
731 <object type="action">
732 <condition var1="tw_has_action2" var2="0" />
733 <actions>
734 <action function="%tw_action%">%tw_action_param%</action>
735 </actions>
736 </object>
737
738 <object type="action">
739 <condition var1="tw_has_action2" var2="1" />
740 <actions>
741 <action function="%tw_action%">%tw_action_param%</action>
742 <action function="%tw_action2%">%tw_action2_param%</action>
743 </actions>
744 </object>
745 </page>
746
747 <page name="action_complete">
748 <object type="template" name="header" />
749
750 <object type="text" color="%text_color%">
751 <font resource="font" />
752 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
753 <text>%tw_complete_text1%</text>
754 </object>
755
756 <object type="text" color="%text_fail_color%">
757 <condition var1="tw_operation_status" op="!=" var2="0" />
758 <font resource="font" />
759 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
760 <text>Failed</text>
761 </object>
762
763 <object type="text" color="%text_success_color%">
764 <condition var1="tw_operation_status" var2="0" />
765 <font resource="font" />
766 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
767 <text>Successful</text>
768 </object>
769
770 <object type="template" name="action_page_console" />
771
772 <object type="button">
773 <highlight color="%highlight_color%" />
774 <condition var1="tw_show_reboot" var2="0" />
775 <placement x="%col_center_x%" y="%slider_y%" />
776 <font resource="font" color="%button_text_color%" />
777 <text>Back</text>
778 <image resource="main_button" />
779 <actions>
780 <action function="set">tw_clear_destination=%tw_back%</action>
781 <action function="page">clear_vars</action>
782 </actions>
783 </object>
784
785 <object type="button">
786 <highlight color="%highlight_color%" />
787 <condition var1="tw_show_reboot" var2="1" />
788 <placement x="%col_center_x%" y="%slider_y%" />
789 <font resource="font" color="%button_text_color%" />
790 <text>Reboot System</text>
791 <image resource="main_button" />
792 <actions>
793 <action function="set">tw_back=main2</action>
794 <action function="set">tw_action=reboot</action>
795 <action function="set">tw_action_param=system</action>
796 <action function="set">tw_has_action2=0</action>
797 <action function="set">tw_text1=No OS Installed! Are you</action>
798 <action function="set">tw_text2=sure you wish to reboot?</action>
799 <action function="set">tw_text3=</action>
800 <action function="set">tw_text4=</action>
801 <action function="set">tw_action_text1=Rebooting...</action>
802 <action function="set">tw_action_text2=</action>
803 <action function="set">tw_complete_text1=Rebooting...</action>
804 <action function="set">tw_slider_text=Swipe to Reboot</action>
805 <action function="page">rebootcheck</action>
806 </actions>
807 </object>
808
809 <object type="action">
810 <touch key="home" />
811 <actions>
812 <action function="set">tw_clear_destination=main2</action>
813 <action function="page">clear_vars</action>
814 </actions>
815 </object>
816
817 <object type="action">
818 <touch key="back" />
819 <actions>
820 <action function="set">tw_clear_destination=%tw_back%</action>
821 <action function="page">clear_vars</action>
822 </actions>
823 </object>
824 </page>
825
826 <page name="filecheck">
827 <object type="action">
828 <action function="fileexists">%tw_filecheck%</action>
829 </object>
830
831 <object type="action">
832 <conditions>
833 <condition var1="tw_operation_state" var2="1" />
834 <condition var1="tw_operation_status" var2="0" />
835 </conditions>
836 <actions>
837 <action function="set">tw_fileexists=1</action>
838 <action function="page">%tw_existpage%</action>
839 </actions>
840 </object>
841
842 <object type="action">
843 <conditions>
844 <condition var1="tw_operation_state" var2="1" />
845 <condition var1="tw_operation_status" var2="1" />
846 </conditions>
847 <actions>
848 <action function="set">tw_fileexists=0</action>
849 <action function="page">%tw_notexistpage%</action>
850 </actions>
851 </object>
852 </page>
853
854 <page name="rebootcheck">
855 <object type="action">
856 <condition var1="tw_backup_system_size" op=">=" var2="%tw_min_system%" />
857 <action function="reboot">%tw_action_param%</action>
858 </object>
859
860 <object type="action">
861 <condition var1="tw_backup_system_size" op="<" var2="%tw_min_system%" />
862 <action function="page">confirm_action</action>
863 </object>
864 </page>
865
866 <page name="reboot">
867 <object type="template" name="header" />
868
869 <object type="text" color="%text_color%">
870 <font resource="font" />
871 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
872 <text>Reboot Menu</text>
873 </object>
874
875 <object type="button">
876 <highlight color="%highlight_color%" />
877 <condition var1="tw_reboot_system" var2="1" />
878 <placement x="%col1_x%" y="%row1_y%" />
879 <font resource="font" color="%button_text_color%" />
880 <text>System</text>
881 <image resource="main_button" />
882 <actions>
883 <action function="set">tw_back=reboot</action>
884 <action function="set">tw_action=reboot</action>
885 <action function="set">tw_action_param=system</action>
886 <action function="set">tw_has_action2=0</action>
887 <action function="set">tw_text1=No OS Installed! Are you</action>
888 <action function="set">tw_text2=sure you wish to reboot?</action>
889 <action function="set">tw_action_text1=Rebooting...</action>
890 <action function="set">tw_complete_text1=Rebooting...</action>
891 <action function="set">tw_slider_text=Swipe to Reboot</action>
892 <action function="page">rebootcheck</action>
893 </actions>
894 </object>
895
896 <object type="button">
897 <highlight color="%highlight_color%" />
898 <condition var1="tw_reboot_poweroff" var2="1" />
899 <placement x="%col2_x%" y="%row1_y%" />
900 <font resource="font" color="%button_text_color%" />
901 <text>Power Off</text>
902 <image resource="main_button" />
903 <actions>
904 <action function="set">tw_back=reboot</action>
905 <action function="set">tw_action=reboot</action>
906 <action function="set">tw_action_param=poweroff</action>
907 <action function="set">tw_has_action2=0</action>
908 <action function="set">tw_text1=No OS Installed! Are you</action>
909 <action function="set">tw_text2=sure you wish to power off?</action>
910 <action function="set">tw_action_text1=Turning Off...</action>
911 <action function="set">tw_complete_text1=Turning Off...</action>
912 <action function="set">tw_slider_text=Swipe to Power Off</action>
913 <action function="page">rebootcheck</action>
914 </actions>
915 </object>
916
917 <object type="button">
918 <highlight color="%highlight_color%" />
919 <condition var1="tw_reboot_recovery" var2="1" />
920 <placement x="%col1_x%" y="%row2_y%" />
921 <font resource="font" color="%button_text_color%" />
922 <text>Recovery</text>
923 <image resource="main_button" />
924 <actions>
925 <action function="set">tw_back=reboot</action>
926 <action function="set">tw_action=reboot</action>
927 <action function="set">tw_action_param=recovery</action>
928 <action function="set">tw_has_action2=0</action>
929 <action function="set">tw_text1=No OS Installed! Are you</action>
930 <action function="set">tw_text2=sure you wish to reboot?</action>
931 <action function="set">tw_action_text1=Rebooting...</action>
932 <action function="set">tw_complete_text1=Rebooting...</action>
933 <action function="set">tw_slider_text=Swipe to Reboot</action>
934 <action function="page">rebootcheck</action>
935 </actions>
936 </object>
937
938 <object type="button">
939 <highlight color="%highlight_color%" />
940 <condition var1="tw_reboot_bootloader" var2="1" />
941 <placement x="%col2_x%" y="%row2_y%" />
942 <font resource="font" color="%button_text_color%" />
943 <text>Bootloader</text>
944 <image resource="main_button" />
945 <actions>
946 <action function="set">tw_back=reboot</action>
947 <action function="set">tw_action=reboot</action>
948 <action function="set">tw_action_param=bootloader</action>
949 <action function="set">tw_has_action2=0</action>
950 <action function="set">tw_text1=No OS Installed! Are you</action>
951 <action function="set">tw_text2=sure you wish to reboot?</action>
952 <action function="set">tw_action_text1=Rebooting...</action>
953 <action function="set">tw_complete_text1=Rebooting...</action>
954 <action function="set">tw_slider_text=Swipe to Reboot</action>
955 <action function="page">rebootcheck</action>
956 </actions>
957 </object>
958
959 <object type="button">
960 <highlight color="%highlight_color%" />
961 <condition var1="tw_download_mode" var2="1" />
962 <placement x="%col3_x%" y="%row2_y%" />
963 <font resource="font" color="%button_text_color%" />
964 <text>Download</text>
965 <image resource="main_button" />
966 <actions>
967 <action function="set">tw_back=reboot</action>
968 <action function="set">tw_action=reboot</action>
969 <action function="set">tw_action_param=download</action>
970 <action function="set">tw_has_action2=0</action>
971 <action function="set">tw_text1=No OS Installed! Are you</action>
972 <action function="set">tw_text2=sure you wish to reboot?</action>
973 <action function="set">tw_action_text1=Rebooting...</action>
974 <action function="set">tw_complete_text1=Rebooting...</action>
975 <action function="set">tw_slider_text=Swipe to Reboot</action>
976 <action function="page">rebootcheck</action>
977 </actions>
978 </object>
979
980 <object type="action">
981 <touch key="home" />
982 <action function="page">main</action>
983 </object>
984
985 <object type="action">
986 <touch key="back" />
987 <action function="page">main</action>
988 </object>
989
990 <object type="template" name="footer" />
991 </page>
992
993 <page name="selectstorage">
994 <object type="template" name="header" />
995
996 <object type="partitionlist">
997 <highlight color="%fileselector_highlight_color%" />
998 <placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
999 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
1000 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
1001 <text>Select Storage:</text>
1002 <icon selected="radio_true" unselected="radio_false" />
1003 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
1004 <background color="%listbox_background%" />
1005 <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
1006 <data name="tw_storage_path" />
1007 <listtype name="storage" />
1008 </object>
1009
1010 <object type="button">
1011 <highlight color="%highlight_color%" />
1012 <placement x="%filemanager_select_x%" y="%row2_y%" />
1013 <font resource="font" color="%button_text_color%" />
1014 <text>OK</text>
1015 <image resource="main_button" />
1016 <actions>
1017 <action function="set">tw_clear_destination=%tw_back%</action>
1018 <action function="page">clear_vars</action>
1019 </actions>
1020 </object>
1021
1022 <object type="action">
1023 <touch key="home" />
1024 <action function="page">main</action>
1025 </object>
1026
1027 <object type="action">
1028 <touch key="back" />
1029 <actions>
1030 <action function="page">%tw_back%</action>
1031 </actions>
1032 </object>
1033
1034 <object type="template" name="footer" />
1035 </page>
1036
1037 <page name="mount">
1038 <object type="template" name="header" />
1039
1040 <object type="text" color="%text_color%">
1041 <font resource="font" />
1042 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1043 <text>Mount Menu</text>
1044 </object>
1045
1046 <object type="partitionlist">
1047 <highlight color="%fileselector_highlight_color%" />
1048 <placement x="%backup_list_x%" y="%backup_list_y%" w="%backup_list_width%" h="%mount_list_height%" />
1049 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
1050 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
1051 <text>Select Partitions to Mount:</text>
1052 <icon selected="checkbox_true" unselected="checkbox_false" />
1053 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
1054 <background color="%listbox_background%" />
1055 <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
1056 <listtype name="mount" />
1057 </object>
1058
1059 <object type="button">
1060 <highlight color="%highlight_color%" />
1061 <conditions>
1062 <condition var1="tw_is_encrypted" var2="1" />
1063 <condition var1="tw_is_decrypted" var2="0" />
1064 </conditions>
1065 <placement x="%col3_x%" y="row1_y" />
1066 <font resource="font" color="%button_text_color%" />
1067 <text>Decrypt Data</text>
1068 <image resource="main_button" />
1069 <action function="page">decrypt</action>
1070 </object>
1071
1072 <object type="button">
1073 <condition var1="tw_has_usb_storage" var2="1" />
1074 <placement x="%col4_x%" y="%row1_y%" />
1075 <font resource="font" color="%button_text_color%" />
1076 <text>Mount USB Storage</text>
1077 <image resource="main_button" />
1078 <action function="page">usb_mount</action>
1079 </object>
1080
1081 <object type="button">
1082 <highlight color="%highlight_color%" />
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -04001083 <conditions>
1084 <condition var1="tw_has_mtp" var2="1" />
1085 <condition var1="tw_mtp_enabled" var2="0" />
1086 </conditions>
1087 <placement x="%col3_x%" y="row1_y" />
1088 <font resource="font" color="%button_text_color%" />
1089 <text>Enable MTP</text>
1090 <image resource="main_button" />
1091 <action function="startmtp"></action>
1092 </object>
1093
1094 <object type="button">
1095 <highlight color="%highlight_color%" />
1096 <conditions>
1097 <condition var1="tw_has_mtp" var2="1" />
1098 <condition var1="tw_mtp_enabled" var2="1" />
1099 </conditions>
1100 <placement x="%col3_x%" y="row1_y" />
1101 <font resource="font" color="%button_text_color%" />
1102 <text>Disable MTP</text>
1103 <image resource="main_button" />
1104 <action function="stopmtp"></action>
1105 </object>
1106
1107 <object type="button">
1108 <highlight color="%highlight_color%" />
1109 <conditions>
1110 <condition var1="tw_is_encrypted" var2="1" />
1111 <condition var1="tw_is_decrypted" var2="0" />
1112 </conditions>
1113 <placement x="%col3_x%" y="row1_y" />
1114 <font resource="font" color="%button_text_color%" />
1115 <text>Decrypt Data</text>
1116 <image resource="main_button" />
1117 <action function="page">decrypt</action>
1118 </object>
1119
1120 <object type="button">
1121 <highlight color="%highlight_color%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001122 <fill color="%button_fill_color%" />
1123 <placement x="%col3_x%" y="%backup_storage_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
1124 <font resource="font" color="%button_text_color%" />
1125 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
1126 <actions>
1127 <action function="set">tw_back=mount</action>
1128 <action function="page">selectstorage</action>
1129 </actions>
1130 </object>
1131
1132 <object type="action">
1133 <touch key="home" />
1134 <action function="page">main</action>
1135 </object>
1136
1137 <object type="action">
1138 <touch key="back" />
1139 <action function="page">main</action>
1140 </object>
1141
1142 <object type="template" name="footer" />
1143 </page>
1144
1145 <page name="usb_mount">
1146 <object type="template" name="header" />
1147
1148 <object type="text" color="%text_color%">
1149 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1150 <font resource="font" />
1151 <text>USB Storage Mounted -- Be sure to safely remove your device from your computer before unmounting!</text>
1152 </object>
1153
1154 <object type="text" color="%text_color%">
1155 <placement x="%col1_x%" y="%row2_text_y%" />
1156 <font resource="font" />
1157 <text></text>
1158 </object>
1159
1160 <object type="button">
1161 <highlight color="%highlight_color%" />
1162 <placement x="%col_center_x%" y="%row1_y%" />
1163 <font resource="font" color="%button_text_color%" />
1164 <text>Unmount</text>
1165 <image resource="main_button" />
1166 <action function="page">usb_umount</action>
1167 </object>
1168
1169 <object type="action">
1170 <action function="mount">usb</action>
1171 </object>
1172
1173 <object type="template" name="footer" />
1174 </page>
1175
1176 <page name="usb_umount">
1177 <object type="action">
1178 <action function="unmount">usb</action>
1179 </object>
1180
1181 <object type="action">
1182 <action function="page">mount</action>
1183 </object>
1184
1185 <object type="template" name="footer" />
1186 </page>
1187
1188 <page name="wipe">
1189 <object type="template" name="header" />
1190
1191 <object type="text" color="%text_color%">
1192 <font resource="font" />
1193 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1194 <text>Factory Reset: Wipes Data, Cache, and Dalvik</text>
1195 </object>
1196
1197 <object type="text" color="%text_color%">
Ethan Yonker780cd392014-07-21 15:24:39 -05001198 <condition var1="tw_has_data_media" var2="1" />
1199 <font resource="font" />
1200 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1201 <text>(not including internal storage)</text>
1202 </object>
1203
1204 <object type="text" color="%text_color%">
Captain Throwbacka7f5ce32014-10-10 09:33:20 -04001205 <conditions>
1206 <condition var1="tw_has_android_secure" var2="1" />
1207 <condition var1="fileexists" var2="/and-sec" />
1208 </conditions>
1209 <font resource="font" />
1210 <placement x="%center_x%" y="%row3_text_y%" placement="1" />
1211 <text>Android Secure </text>
1212 </object>
1213
1214 <object type="text" color="%text_color%">
Ethan Yonker780cd392014-07-21 15:24:39 -05001215 <condition var1="tw_has_sdext_partition" var2="1" />
1216 <font resource="font" />
Captain Throwbacka7f5ce32014-10-10 09:33:20 -04001217 <placement x="%center_x%" y="%row3_text_y%" />
1218 <text> SD-EXT</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001219 </object>
1220
1221 <object type="text" color="%text_color%">
1222 <font resource="font" />
1223 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
1224 <text>Most of the time this is the only wipe that you need.</text>
1225 </object>
1226
1227 <object type="button">
1228 <highlight color="%highlight_color%" />
1229 <placement x="%col2_x%" y="%wipe_button_y%" />
1230 <font resource="font" color="%button_text_color%" />
1231 <text>Advanced Wipe</text>
1232 <image resource="main_button" />
1233 <action function="page">advancedwipe</action>
1234 </object>
1235
1236 <object type="button">
Ethan Yonkerd79d9bc2014-12-20 15:38:29 -06001237 <condition var1="tw_has_data_media" var2="1" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001238 <highlight color="%highlight_color%" />
1239 <placement x="%col3_x%" y="%wipe_button_y%" />
1240 <font resource="font" color="%button_text_color%" />
1241 <text>Format Data</text>
1242 <image resource="main_button" />
1243 <actions>
1244 <action function="page">formatdata</action>
1245 </actions>
1246 </object>
1247
Ethan Yonkerd79d9bc2014-12-20 15:38:29 -06001248 <object type="button">
1249 <conditions>
1250 <condition var1="tw_is_encrypted" var2="1" />
1251 <condition var1="tw_has_data_media" var2="0" />
1252 </conditions>
1253 <highlight color="%highlight_color%" />
1254 <placement x="%col3_x%" y="%wipe_button_y%" />
1255 <font resource="font" color="%button_text_color%" />
1256 <text>Wipe Encryption</text>
1257 <image resource="main_button" />
1258 <actions>
1259 <action function="set">tw_back=wipe</action>
1260 <action function="set">tw_action=wipe</action>
1261 <action function="set">tw_action_param=DATAMEDIA</action>
1262 <action function="set">tw_has_action2=0</action>
1263 <action function="set">tw_text1=Wipe Encryption from Data?</action>
1264 <action function="set">tw_text2=</action>
1265 <action function="set">tw_action_text1=Formatting Data...</action>
1266 <action function="set">tw_complete_text1=Data Format Complete</action>
1267 <action function="set">tw_slider_text=Swipe to Format Data</action>
1268 <action function="page">confirm_action</action>
1269 </actions>
1270 </object>
1271
Ethan Yonker780cd392014-07-21 15:24:39 -05001272 <object type="text" color="%text_color%">
1273 <font resource="font" />
1274 <placement x="%center_x%" y="%row12_text_y%" placement="5" />
1275 <text>Press back button to cancel.</text>
1276 </object>
1277
1278 <object type="slider">
1279 <placement x="%slider_x%" y="%slider_y%" />
1280 <resource base="slider" used="slider-used" touch="slider-touch" />
1281 <actions>
1282 <action function="set">tw_back=wipe</action>
1283 <action function="set">tw_action=wipe</action>
1284 <action function="set">tw_action_param=data</action>
1285 <action function="set">tw_action_text1=Factory Reset...</action>
1286 <action function="set">tw_complete_text1=Factory Reset Complete</action>
1287 <action function="page">action_page</action>
1288 </actions>
1289 </object>
1290
1291 <object type="text" color="%text_color%">
1292 <font resource="font" />
1293 <placement x="%center_x%" y="%slider_text_y%" placement="4" />
1294 <text>Swipe to Factory Reset</text>
1295 </object>
1296
1297 <object type="action">
1298 <touch key="home" />
1299 <action function="page">main</action>
1300 </object>
1301
1302 <object type="action">
1303 <touch key="back" />
1304 <action function="page">main</action>
1305 </object>
1306
1307 <object type="template" name="footer" />
1308 </page>
1309
1310 <page name="advancedwipe">
1311 <object type="template" name="header" />
1312
1313 <object type="partitionlist">
1314 <highlight color="%fileselector_highlight_color%" />
1315 <placement x="%backup_list_x%" y="%backup_list_y%" w="%backup_list_width%" h="%backup_list_height%" />
1316 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
1317 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
1318 <text>Select Partitions to Wipe:</text>
1319 <icon selected="checkbox_true" unselected="checkbox_false" />
1320 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
1321 <background color="%listbox_background%" />
1322 <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
1323 <data name="tw_wipe_list" />
1324 <listtype name="wipe" />
1325 </object>
1326
1327 <object type="button">
1328 <highlight color="%highlight_color%" />
1329 <fill color="%button_fill_color%" />
1330 <placement x="%col3_x%" y="%backup_storage_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
1331 <font resource="font" color="%button_text_color%" />
1332 <text>Repair or Change File System</text>
1333 <actions>
1334 <action function="checkpartitionlist"></action>
1335 <action function="page">checkpartitionlist</action>
1336 </actions>
1337 </object>
1338
1339 <object type="text" color="%text_fail_color%">
1340 <condition var1="partitionlisterror" var2="1" />
1341 <font resource="font" />
1342 <placement x="%col3_x%" y="%backup_storage_y%" />
1343 <text>Invalid partition selection</text>
1344 </object>
1345
1346 <object type="slider">
1347 <placement x="%slider_x%" y="%slider_y%" />
1348 <resource base="slider" used="slider-used" touch="slider-touch" />
1349 <actions>
1350 <action function="set">tw_back=advancedwipe</action>
1351 <action function="set">tw_action=wipe</action>
1352 <action function="set">tw_action_param=LIST</action>
1353 <action function="set">tw_text1=Wipe Selected Partition(s)?</action>
1354 <action function="set">tw_action_text1=Wiping Partition(s)...</action>
1355 <action function="set">tw_complete_text1=Wipe Complete</action>
1356 <action function="page">action_page</action>
1357 </actions>
1358 </object>
1359
1360 <object type="text" color="%text_color%">
1361 <font resource="font" />
1362 <placement x="%center_x%" y="%slider_text_y%" placement="4" />
1363 <text>Swipe to Wipe</text>
1364 </object>
1365
1366 <object type="action">
1367 <touch key="home" />
1368 <action function="page">main</action>
1369 </object>
1370
1371 <object type="action">
1372 <touch key="back" />
1373 <action function="page">wipe</action>
1374 </object>
1375
1376 <object type="template" name="footer" />
1377 </page>
1378
1379 <page name="formatdata">
1380 <object type="template" name="header" />
1381
1382 <object type="text" color="%text_color%">
1383 <font resource="font" />
1384 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1385 <text>Format Data will wipe all of your apps, backups, pictures,</text>
1386 </object>
1387
1388 <object type="text" color="%text_color%">
1389 <font resource="font" />
1390 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1391 <text>videos, media, and removes encryption on internal storage.</text>
1392 </object>
1393
1394 <object type="text" color="%text_color%">
1395 <font resource="font" />
1396 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
1397 <text>This cannot be undone. Press back to cancel.</text>
1398 </object>
1399
1400 <object type="text" color="%text_color%">
1401 <font resource="font" />
1402 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
1403 <text>Type yes to continue.</text>
1404 </object>
1405
1406 <object type="input">
1407 <placement x="%input_x%" y="%row6_text_y%" w="%input_width%" h="%input_height%" placement="0" />
1408 <background color="%input_background_color%" />
1409 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
1410 <font resource="font" color="%text_color%" />
1411 <text>%tw_confirm_formatdata%</text>
1412 <data name="tw_confirm_formatdata" />
1413 <restrict minlen="3" maxlen="3" allow="yes" />
1414 <action function="page">formatdata_confirm</action>
1415 </object>
1416
1417 <object type="template" name="keyboardtemplate" />
1418
1419 <object type="action">
1420 <touch key="home" />
1421 <action function="page">main</action>
1422 </object>
1423
1424 <object type="action">
1425 <touch key="back" />
1426 <action function="page">wipe</action>
1427 </object>
1428
1429 <object type="template" name="footer" />
1430 </page>
1431
1432 <page name="formatdata_confirm">
1433 <object type="action">
1434 <condition var1="tw_confirm_formatdata" op="=" var2="yes" />
1435 <actions>
1436 <action function="set">tw_back=formatdata</action>
1437 <action function="set">tw_action=wipe</action>
1438 <action function="set">tw_action_param=DATAMEDIA</action>
1439 <action function="set">tw_action_text1=Formatting Data...</action>
1440 <action function="set">tw_complete_text1=Data Format Complete</action>
1441 <action function="page">action_page</action>
1442 </actions>
1443 </object>
1444
1445 <object type="action">
1446 <condition var1="tw_confirm_formatdata" op="!=" var2="yes" />
1447 <action function="page">formatdata</function>
1448 </object>
1449 </page>
1450
1451 <page name="checkpartitionlist">
1452 <object type="action">
1453 <condition var1="tw_check_partition_list" op="=" var2="1" />
1454 <actions>
1455 <action function="set">partitionlisterror=0</action>
1456 <action function="getpartitiondetails"></action>
1457 <action function="page">partitionoptions</action>
1458 </actions>
1459 </object>
1460
1461 <object type="action">
1462 <condition var1="tw_check_partition_list" op="!=" var2="1" />
1463 <actions>
1464 <action function="set">partitionlisterror=1</action>
1465 <action function="set">tw_wipe_list=</action>
1466 <action function="page">advancedwipe</action>
1467 </actions>
1468 </object>
1469 </page>
1470
1471 <page name="partitionoptions">
1472 <object type="template" name="header" />
1473
1474 <object type="text" color="%text_color%">
1475 <font resource="font" />
1476 <placement x="%col1_x%" y="%row1_text_y%" />
1477 <text>Partition Options for: %tw_partition_name%</text>
1478 </object>
1479
1480 <object type="text" color="%text_color%">
1481 <font resource="font" />
1482 <placement x="%col_right_x%" y="%row1_text_y%" placement="1" />
1483 <text>Mount Point: %tw_partition_mount_point%</text>
1484 </object>
1485
1486 <object type="text" color="%text_color%">
1487 <font resource="font" />
1488 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1489 <text>Current file system: %tw_partition_file_system%</text>
1490 </object>
1491
1492 <object type="text" color="%text_color%">
1493 <condition var1="tw_partition_is_present" op="!=" var2="0" />
1494 <font resource="font" />
1495 <placement x="%col2_x%" y="%row3_text_y%" />
1496 <text>Present: Yes</text>
1497 </object>
1498
1499 <object type="text" color="%text_color%">
1500 <condition var1="tw_partition_is_present" op="=" var2="0" />
1501 <font resource="font" />
1502 <placement x="%col2_x%" y="%row3_text_y%" />
1503 <text>Present: No</text>
1504 </object>
1505
1506 <object type="text" color="%text_color%">
1507 <condition var1="tw_partition_removable" op="!=" var2="0" />
1508 <font resource="font" />
1509 <placement x="%col3_x%" y="%row3_text_y%" />
1510 <text>Removable: Yes</text>
1511 </object>
1512
1513 <object type="text" color="%text_color%">
1514 <condition var1="tw_partition_removable" op="=" var2="0" />
1515 <font resource="font" />
1516 <placement x="%col3_x%" y="%row3_text_y%" />
1517 <text>Removable: No</text>
1518 </object>
1519
1520 <object type="text" color="%text_color%">
1521 <font resource="font" />
1522 <placement x="%col1_x%" y="%row4_text_y%" />
1523 <text>Size: %tw_partition_size%MB</text>
1524 </object>
1525
1526 <object type="text" color="%text_color%">
1527 <font resource="font" />
1528 <placement x="%col2_x%" y="%row4_text_y%" />
1529 <text>Used: %tw_partition_used%MB</text>
1530 </object>
1531
1532 <object type="text" color="%text_color%">
1533 <font resource="font" />
1534 <placement x="%col3_x%" y="%row4_text_y%" />
1535 <text>Free: %tw_partition_free%MB</text>
1536 </object>
1537
1538 <object type="text" color="%text_color%">
1539 <font resource="font" />
1540 <placement x="%col4_x%" y="%row4_text_y%" />
1541 <text>Backup Size: %tw_partition_backup_size%MB</text>
1542 </object>
1543
1544 <object type="button">
1545 <condition var1="tw_partition_can_repair" op="=" var2="1" />
1546 <highlight color="%highlight_color%" />
1547 <placement x="%col2_x%" y="%row2_y%" />
1548 <font resource="font" color="%button_text_color%" />
1549 <text>Repair</text>
1550 <image resource="main_button" />
1551 <actions>
1552 <action function="set">tw_back=partitionoptions</action>
1553 <action function="set">tw_action=repair</action>
1554 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1555 <action function="set">tw_has_action2=0</action>
1556 <action function="set">tw_text1=Repair %tw_partition_name%?</action>
1557 <action function="set">tw_text2=</action>
1558 <action function="set">tw_action_text1=Repairing...</action>
1559 <action function="set">tw_complete_text1=Repair Complete</action>
1560 <action function="set">tw_slider_text=Swipe to Repair</action>
1561 <action function="page">confirm_action</action>
1562 </actions>
1563 </object>
1564
1565 <object type="button">
1566 <highlight color="%highlight_color%" />
1567 <placement x="%col3_x%" y="%row2_y%" />
1568 <font resource="font" color="%button_text_color%" />
1569 <text>Change File System</text>
1570 <image resource="main_button" />
1571 <action function="page">selectfilesystem</action>
1572 </object>
1573
1574 <object type="action">
1575 <touch key="home" />
1576 <action function="page">main</action>
1577 </object>
1578
1579 <object type="action">
1580 <touch key="back" />
1581 <action function="page">advancedwipe</action>
1582 </object>
1583
1584 <object type="template" name="footer" />
1585 </page>
1586
Dees Troy298c4382014-09-03 14:42:26 +00001587 <page name="refreshfilesystem">
1588 <object type="action">
1589 <condition var1="tw_check_partition_list" op="=" var2="1" />
1590 <actions>
1591 <action function="set">partitionlisterror=0</action>
1592 <action function="getpartitiondetails"></action>
1593 <action function="page">selectfilesystem</action>
1594 </actions>
1595 </object>
1596
1597 <object type="action">
1598 <condition var1="tw_check_partition_list" op="!=" var2="1" />
1599 <actions>
1600 <action function="set">partitionlisterror=1</action>
1601 <action function="set">tw_wipe_list=</action>
1602 <action function="page">advancedwipe</action>
1603 </actions>
1604 </object>
1605 </page>
1606
Ethan Yonker780cd392014-07-21 15:24:39 -05001607 <page name="selectfilesystem">
1608 <object type="template" name="header" />
1609
1610 <object type="text" color="%text_color%">
1611 <font resource="font" />
1612 <placement x="%col1_x%" y="%row1_text_y%" />
1613 <text>Change file system for: %tw_partition_name%</text>
1614 </object>
1615
1616 <object type="text" color="%text_color%">
1617 <font resource="font" />
1618 <placement x="%col_right_x%" y="%row1_text_y%" placement="1" />
1619 <text>Mount Point: %tw_partition_mount_point%</text>
1620 </object>
1621
1622 <object type="text" color="%text_color%">
1623 <font resource="font" />
1624 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1625 <text>Current file system: %tw_partition_file_system%</text>
1626 </object>
1627
1628 <object type="text" color="%text_color%">
1629 <font resource="font" />
1630 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1631 <text>Some ROMs or kernels may not support some file systems. Proceed with caution!</text>
1632 </object>
1633
1634 <object type="button">
1635 <condition var1="tw_partition_ext" op="=" var2="1" />
1636 <highlight color="%highlight_color%" />
1637 <placement x="%col1_x%" y="%row1_y%" />
1638 <font resource="font" color="%button_text_color%" />
1639 <text>EXT2</text>
1640 <image resource="main_button" />
1641 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001642 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001643 <action function="set">tw_action=changefilesystem</action>
1644 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1645 <action function="set">tw_action_new_file_system=ext2</action>
1646 <action function="set">tw_has_action2=0</action>
1647 <action function="set">tw_text1=Change %tw_partition_name% to EXT2?</action>
1648 <action function="set">tw_text2=</action>
1649 <action function="set">tw_action_text1=Formatting...</action>
1650 <action function="set">tw_complete_text1=Format Complete</action>
1651 <action function="set">tw_slider_text=Swipe to Change</action>
1652 <action function="page">confirm_action</action>
1653 </actions>
1654 </object>
1655
1656 <object type="button">
1657 <condition var1="tw_partition_ext" op="=" var2="1" />
1658 <highlight color="%highlight_color%" />
1659 <placement x="%col2_x%" y="%row1_y%" />
1660 <font resource="font" color="%button_text_color%" />
1661 <text>EXT3</text>
1662 <image resource="main_button" />
1663 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001664 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001665 <action function="set">tw_action=changefilesystem</action>
1666 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1667 <action function="set">tw_action_new_file_system=ext3</action>
1668 <action function="set">tw_has_action2=0</action>
1669 <action function="set">tw_text1=Change %tw_partition_name% to EXT3?</action>
1670 <action function="set">tw_text2=</action>
1671 <action function="set">tw_action_text1=Formatting...</action>
1672 <action function="set">tw_complete_text1=Format Complete</action>
1673 <action function="set">tw_slider_text=Swipe to Change</action>
1674 <action function="page">confirm_action</action>
1675 </actions>
1676 </object>
1677
1678 <object type="button">
1679 <condition var1="tw_partition_ext" op="=" var2="1" />
1680 <highlight color="%highlight_color%" />
1681 <placement x="%col3_x%" y="%row1_y%" />
1682 <font resource="font" color="%button_text_color%" />
1683 <text>EXT4</text>
1684 <image resource="main_button" />
1685 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001686 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001687 <action function="set">tw_action=changefilesystem</action>
1688 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1689 <action function="set">tw_action_new_file_system=ext4</action>
1690 <action function="set">tw_has_action2=0</action>
1691 <action function="set">tw_text1=Change %tw_partition_name% to EXT4?</action>
1692 <action function="set">tw_text2=</action>
1693 <action function="set">tw_action_text1=Formatting...</action>
1694 <action function="set">tw_complete_text1=Format Complete</action>
1695 <action function="set">tw_slider_text=Swipe to Change</action>
1696 <action function="page">confirm_action</action>
1697 </actions>
1698 </object>
1699
1700 <object type="button">
1701 <condition var1="tw_partition_f2fs" op="=" var2="1" />
1702 <highlight color="%highlight_color%" />
1703 <placement x="%col4_x%" y="%row1_y%" />
1704 <font resource="font" color="%button_text_color%" />
1705 <text>F2FS</text>
1706 <image resource="main_button" />
1707 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001708 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001709 <action function="set">tw_action=changefilesystem</action>
1710 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1711 <action function="set">tw_action_new_file_system=f2fs</action>
1712 <action function="set">tw_has_action2=0</action>
1713 <action function="set">tw_text1=Change %tw_partition_name% to F2FS?</action>
1714 <action function="set">tw_text2=</action>
1715 <action function="set">tw_action_text1=Formatting...</action>
1716 <action function="set">tw_complete_text1=Format Complete</action>
1717 <action function="set">tw_slider_text=Swipe to Change</action>
1718 <action function="page">confirm_action</action>
1719 </actions>
1720 </object>
1721
1722 <object type="button">
1723 <condition var1="tw_partition_vfat" op="=" var2="1" />
1724 <highlight color="%highlight_color%" />
1725 <placement x="%col2_x%" y="%row2_y%" />
1726 <font resource="font" color="%button_text_color%" />
1727 <text>FAT</text>
1728 <image resource="main_button" />
1729 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001730 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001731 <action function="set">tw_action=changefilesystem</action>
1732 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1733 <action function="set">tw_action_new_file_system=vfat</action>
1734 <action function="set">tw_has_action2=0</action>
1735 <action function="set">tw_text1=Change %tw_partition_name% to FAT?</action>
1736 <action function="set">tw_text2=</action>
1737 <action function="set">tw_action_text1=Formatting...</action>
1738 <action function="set">tw_complete_text1=Format Complete</action>
1739 <action function="set">tw_slider_text=Swipe to Change</action>
1740 <action function="page">confirm_action</action>
1741 </actions>
1742 </object>
1743
1744 <object type="button">
1745 <condition var1="tw_partition_exfat" op="=" var2="1" />
1746 <highlight color="%highlight_color%" />
1747 <placement x="%col3_x%" y="%row2_y%" />
1748 <font resource="font" color="%button_text_color%" />
1749 <text>exFAT</text>
1750 <image resource="main_button" />
1751 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001752 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001753 <action function="set">tw_action=changefilesystem</action>
1754 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1755 <action function="set">tw_action_new_file_system=exfat</action>
1756 <action function="set">tw_has_action2=0</action>
1757 <action function="set">tw_text1=Change %tw_partition_name% to exFAT?</action>
1758 <action function="set">tw_text2=</action>
1759 <action function="set">tw_action_text1=Formatting...</action>
1760 <action function="set">tw_complete_text1=Format Complete</action>
1761 <action function="set">tw_slider_text=Swipe to Change</action>
1762 <action function="page">confirm_action</action>
1763 </actions>
1764 </object>
1765
1766 <object type="action">
1767 <touch key="home" />
1768 <action function="page">main</action>
1769 </object>
1770
1771 <object type="action">
1772 <touch key="back" />
1773 <action function="page">partitionoptions</action>
1774 </object>
1775
1776 <object type="template" name="footer" />
1777 </page>
1778
1779 <page name="backup">
1780 <object type="template" name="header" />
1781
1782 <object type="text" color="%text_color%">
1783 <font resource="font" />
1784 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1785 <text>Back Up Device</text>
1786 </object>
1787
1788 <object type="partitionlist">
1789 <highlight color="%fileselector_highlight_color%" />
1790 <placement x="%backup_list_x%" y="%backup_list_y%" w="%backup_list_width%" h="%backup_list_height%" />
1791 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
1792 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
1793 <text>Select Partitions to Back Up:</text>
1794 <icon selected="checkbox_true" unselected="checkbox_false" />
1795 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
1796 <background color="%listbox_background%" />
1797 <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
1798 <data name="tw_backup_list" />
1799 <listtype name="backup" />
1800 </object>
1801
1802 <object type="text" color="%text_color%">
1803 <font resource="font" />
1804 <placement x="%col_right_x%" y="%row2_text_y%" placement="1" />
1805 <text>Backup Name: %tw_backup_name%</text>
1806 </object>
1807
1808 <object type="button">
1809 <highlight color="%highlight_color%" />
1810 <placement x="%col3_x%" y="%row1_y%" />
1811 <font resource="font" color="%button_text_color%" />
1812 <text>Refresh Sizes</text>
1813 <image resource="main_button" />
1814 <actions>
1815 <action function="refreshsizes"></action>
1816 <action function="page">backup</action>
1817 </actions>
1818 </object>
1819
1820 <object type="button">
1821 <highlight color="%highlight_color%" />
1822 <placement x="%col4_x%" y="%row1_y%" />
1823 <font resource="font" color="%button_text_color%" />
1824 <text>Set Backup Name</text>
1825 <image resource="main_button" />
1826 <actions>
1827 <action function="set">tw_fileexists=0</action>
1828 <action function="page">backupname1</action>
1829 </actions>
1830 </object>
1831
1832 <object type="button">
1833 <highlight color="%highlight_color%" />
1834 <fill color="%button_fill_color%" />
1835 <placement x="%col3_x%" y="%backup_storage_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
1836 <font resource="font" color="%button_text_color%" />
1837 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
1838 <actions>
1839 <action function="set">tw_back=backup</action>
1840 <action function="page">selectstorage</action>
1841 </actions>
1842 </object>
1843
1844 <object type="button">
1845 <conditions>
1846 <condition var1="tw_include_encrypted_backup" var2="1" />
1847 <condition var1="tw_encrypt_backup" var2="0" />
1848 </conditions>
1849 <highlight color="%highlight_color%" />
1850 <fill color="%button_fill_color%" />
1851 <placement x="%col3_x%" y="%backup_encrypt_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
1852 <font resource="font" color="%button_text_color%" />
1853 <text>No Encryption</text>
1854 <actions>
1855 <action function="page">backupencryption</action>
1856 </actions>
1857 </object>
1858
1859 <object type="button">
1860 <conditions>
1861 <condition var1="tw_include_encrypted_backup" var2="1" />
1862 <condition var1="tw_encrypt_backup" var2="1" />
1863 </conditions>
1864 <highlight color="%highlight_color%" />
1865 <fill color="%button_fill_color%" />
1866 <placement x="%col3_x%" y="%backup_encrypt_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
1867 <font resource="font" color="%button_text_color%" />
1868 <text>Using Encryption</text>
1869 <actions>
1870 <action function="page">backupencryption</action>
1871 </actions>
1872 </object>
1873
1874 <object type="checkbox">
1875 <placement x="%col3_x%" y="%nandcheck_row6%" />
1876 <font resource="font" color="%text_color%" />
1877 <text>Enable Compression (Requires more time)</text>
1878 <data variable="tw_use_compression" />
1879 <image checked="checkbox_true" unchecked="checkbox_false" />
1880 </object>
1881
1882 <object type="checkbox">
1883 <placement x="%col3_x%" y="%nandcheck_row7%" />
1884 <font resource="font" color="%text_color%" />
1885 <text>Skip MD5 generation on backups</text>
1886 <data variable="tw_skip_md5_generate" />
1887 <image checked="checkbox_true" unchecked="checkbox_false" />
1888 </object>
1889
1890 <object type="slider">
1891 <placement x="%slider_x%" y="%slider_y%" />
1892 <resource base="slider" used="slider-used" touch="slider-touch" />
1893 <actions>
1894 <action function="set">tw_operation_state=0</action>
1895 <action function="page">backup_run</action>
1896 </actions>
1897 </object>
1898
1899 <object type="text" color="%text_color%">
1900 <font resource="font" />
1901 <placement x="%center_x%" y="%slider_text_y%" placement="4" />
1902 <text>Swipe to Back Up</text>
1903 </object>
1904
1905 <object type="action">
1906 <touch key="home" />
1907 <action function="page">main</action>
1908 </object>
1909
1910 <object type="action">
1911 <touch key="back" />
1912 <action function="page">main</action>
1913 </object>
1914
1915 <object type="template" name="footer" />
1916 </page>
1917
1918 <page name="backupname1">
1919 <object type="action">
1920 <condition var1="tw_backup_name" op="=" var2="(Auto Generate)" />
1921 <action function="generatebackupname"></function>
1922 </object>
1923
1924 <object type="action">
1925 <action function="page">backupname2</function>
1926 </object>
1927 </page>
1928
1929 <page name="backupname2">
1930 <object type="template" name="header" />
1931
1932 <object type="text" color="%text_color%">
1933 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1934 <font resource="font" />
1935 <text>Please Enter a Backup Name</text>
1936 </object>
1937
1938 <object type="input">
1939 <placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
1940 <background color="%input_background_color%" />
1941 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
1942 <font resource="font" color="%text_color%" />
1943 <text>%tw_backup_name%</text>
1944 <data name="tw_backup_name" />
1945 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]" />
1946 <actions>
1947 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1948 <action function="set">tw_existpage=backupname2</action>
1949 <action function="set">tw_notexistpage=backup</action>
1950 <action function="page">filecheck</action>
1951 </actions>
1952 </object>
1953
1954 <object type="text" color="%text_fail_color%">
1955 <condition var1="tw_fileexists" var2="1" />
1956 <placement x="%center_x%" y="%row5_text_y%" placement="5" />
1957 <font resource="font" />
1958 <text>A backup with that name already exists!</text>
1959 </object>
1960
1961 <object type="button">
1962 <highlight color="%highlight_color%" />
1963 <placement x="%col2_x%" y="%cancel_button_y%" />
1964 <font resource="font" color="%button_text_color%" />
1965 <text>Append Date</text>
1966 <image resource="main_button" />
1967 <action function="appenddatetobackupname"></action>
1968 </object>
1969
1970 <object type="button">
1971 <highlight color="%highlight_color%" />
1972 <placement x="%col3_x%" y="%cancel_button_y%" />
1973 <font resource="font" color="%button_text_color%" />
1974 <text>Cancel / Clear</text>
1975 <image resource="main_button" />
1976 <actions>
1977 <action function="set">tw_backup_name=(Auto Generate)</action>
1978 <action function="page">backup</action>
1979 </actions>
1980 </object>
1981
1982 <object type="template" name="keyboardtemplate" />
1983
1984 <object type="action">
1985 <touch key="home" />
1986 <actions>
1987 <action function="set">tw_backup_name=(Auto Generate)</action>
1988 <action function="page">main</action>
1989 </actions>
1990 </object>
1991
1992 <object type="action">
1993 <touch key="back" />
1994 <actions>
1995 <action function="set">tw_backup_name=(Auto Generate)</action>
1996 <action function="page">backup</action>
1997 </actions>
1998 </object>
1999
2000 <object type="template" name="footer" />
2001 </page>
2002
2003 <page name="backupencryption">
2004 <object type="template" name="header" />
2005
2006 <object type="text" color="%text_color%">
2007 <font resource="font" />
2008 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2009 <text>Encrypt your backup? Please enter a password:</text>
2010 </object>
2011
2012 <object type="input">
2013 <placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
2014 <background color="%input_background_color%" />
2015 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
2016 <font resource="font" color="%text_color%" />
2017 <text>%tw_backup_encrypt_display%</text>
2018 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display" />
2019 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
2020 <action function="page">backupencryption2</action>
2021 </object>
2022
2023 <object type="text" color="%text_fail_color%">
2024 <condition var1="tw_password_not_match" var2="1" />
2025 <font resource="font" />
2026 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
2027 <text>Passwords Do Not Match</text>
2028 </object>
2029
2030 <object type="button">
2031 <highlight color="%highlight_color%" />
2032 <placement x="%col_center_x%" y="%cancel_button_y%" />
2033 <font resource="font" color="%button_text_color%" />
2034 <text>Cancel</text>
2035 <image resource="main_button" />
2036 <actions>
2037 <action function="set">tw_encrypt_backup=0</action>
2038 <action function="set">tw_backup_password=</action>
2039 <action function="set">tw_backup_password2=</action>
2040 <action function="set">tw_backup_encrypt_display=</action>
2041 <action function="set">tw_backup_encrypt_display2=</action>
2042 <action function="page">backup</action>
2043 </actions>
2044 </object>
2045
2046 <object type="template" name="keyboardtemplate" />
2047
2048 <object type="action">
2049 <touch key="home" />
2050 <action function="page">main</action>
2051 </object>
2052
2053 <object type="action">
2054 <touch key="back" />
2055 <action function="page">backup</action>
2056 </object>
2057
2058 <object type="template" name="footer" />
2059 </page>
2060
2061 <page name="backupencryption2">
2062 <object type="template" name="header" />
2063
2064 <object type="text" color="%text_color%">
2065 <font resource="font" />
2066 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2067 <text>Encrypt your backup? Please Enter Password Again:</text>
2068 </object>
2069
2070 <object type="input">
2071 <placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
2072 <background color="%input_background_color%" />
2073 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
2074 <font resource="font" color="%text_color%" />
2075 <text>%tw_backup_encrypt_display2%</text>
2076 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2" />
2077 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
2078 <actions>
2079 <action function="page">checkbackuppassword</action>
2080 </actions>
2081 </object>
2082
2083 <object type="button">
2084 <highlight color="%highlight_color%" />
2085 <placement x="%col_center_x%" y="%cancel_button_y%" />
2086 <font resource="font" color="%button_text_color%" />
2087 <text>Cancel</text>
2088 <image resource="main_button" />
2089 <actions>
2090 <action function="set">tw_encrypt_backup=0</action>
2091 <action function="set">tw_backup_password=</action>
2092 <action function="set">tw_backup_password2=</action>
2093 <action function="set">tw_backup_encrypt_display=</action>
2094 <action function="set">tw_backup_encrypt_display2=</action>
2095 <action function="page">backup</action>
2096 </actions>
2097 </object>
2098
2099 <object type="template" name="keyboardtemplate" />
2100
2101 <object type="action">
2102 <touch key="home" />
2103 <action function="page">main</action>
2104 </object>
2105
2106 <object type="action">
2107 <touch key="back" />
2108 <action function="page">backup</action>
2109 </object>
2110
2111 <object type="template" name="footer" />
2112 </page>
2113
2114 <page name="checkbackuppassword">
2115 <object type="action">
2116 <condition var1="tw_backup_password2" var2="tw_backup_password" />
2117 <actions>
2118 <action function="set">tw_encrypt_backup=1</action>
2119 <action function="page">backup</action>
2120 </actions>
2121 </object>
2122
2123 <object type="action">
2124 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password" />
2125 <actions>
2126 <action function="set">tw_encrypt_backup=0</action>
2127 <action function="set">tw_password_not_match=1</action>
2128 <action function="set">tw_backup_password=</action>
2129 <action function="set">tw_backup_password2=</action>
2130 <action function="set">tw_backup_encrypt_display=</action>
2131 <action function="set">tw_backup_encrypt_display2=</action>
2132 <action function="page">backupencryption</action>
2133 </actions>
2134 </object>
2135 </page>
2136
2137 <page name="backup_run">
2138 <object type="template" name="header" />
2139
2140 <object type="text" color="%text_color%">
2141 <font resource="font" />
2142 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2143 <text>%tw_operation% %tw_partition%</text>
2144 </object>
2145
2146 <object type="text" color="%text_color%">
2147 <font resource="font" />
2148 <placement x="%col1_x%" y="%row2_text_y%" />
2149 <text>%tw_file_progress%</text>
2150 </object>
2151
2152 <object type="text" color="%text_color%">
2153 <font resource="font" />
2154 <placement x="%col_right_x%" y="%row2_text_y%" placement="1" />
2155 <text>%tw_size_progress%</text>
2156 </object>
2157
2158 <object type="template" name="action_page_console" />
2159
bigbiff7abc5fe2015-01-17 16:53:12 -05002160 <object type="button">
2161 <highlight color="%highlight_color%" />
2162 <placement x="%col_center_medium_x%" y="%row3_y%" />
2163 <font resource="font" color="%button_text_color%" />
2164 <text>Cancel</text>
2165 <image resource="medium_button" />
2166 <actions>
2167 <action function="cancelbackup"></action>
2168 </actions>
2169 </object>
2170
Ethan Yonker780cd392014-07-21 15:24:39 -05002171 <object type="template" name="progress_bar" />
2172
2173 <object type="action">
2174 <action function="nandroid">backup</action>
2175 </object>
2176
2177 <object type="action">
2178 <condition var1="tw_operation_state" var2="1" />
bigbiff7abc5fe2015-01-17 16:53:12 -05002179 <condition var1="tw_cancel_backup" var2="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002180 <actions>
2181 <action function="set">tw_back=backup</action>
2182 <action function="set">tw_complete_text1=Backup Complete</action>
2183 <action function="set">tw_show_reboot=1</action>
2184 <action function="page">action_complete</action>
2185 </actions>
2186 </object>
2187
bigbiff7abc5fe2015-01-17 16:53:12 -05002188 <object type="action">
2189 <condition var1="tw_operation_state" var2="1" />
2190 <condition var1="tw_cancel_backup" var2="1" />
2191 <actions>
2192 <action function="set">tw_back=backup</action>
2193 <action function="set">tw_complete_text1=Backup Cancelled</action>
2194 <action function="set">tw_show_reboot=1</action>
2195 <action function="page">action_complete</action>
2196 </actions>
2197 </object>
2198
Ethan Yonker780cd392014-07-21 15:24:39 -05002199 <object type="template" name="footer" />
2200 </page>
2201
2202 <page name="restore">
2203 <object type="template" name="header" />
2204
2205 <object type="button">
2206 <highlight color="%highlight_color%" />
2207 <fill color="%button_fill_color%" />
2208 <placement x="%col2_x%" y="%zipstorage_text_y%" w="%fileselector_folderonly_width%" h="%button_fill_quarter_height%" />
2209 <font resource="font" color="%button_text_color%" />
2210 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
2211 <actions>
2212 <action function="set">tw_back=restore</action>
2213 <action function="page">selectstorage</action>
2214 </actions>
2215 </object>
2216
2217 <object type="fileselector">
2218 <highlight color="%fileselector_highlight_color%" />
2219 <placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
2220 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
2221 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
2222 <text>Select Package to Restore:</text>
2223 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
2224 <sort name="tw_gui_sort_order" />
2225 <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
2226 <icon folder="folder_icon" file="file_icon" />
2227 <background color="%fileselector_background%" />
2228 <filter folders="1" files="0" nav="0" />
2229 <path name="tw_backups_folder" />
2230 <data name="tw_restore" default="" />
2231 <selection name="tw_restore_name" />
2232 </object>
2233
2234 <object type="template" name="sort_options" />
2235
2236 <object type="action">
2237 <condition var1="tw_restore" op="modified" />
2238 <actions>
2239 <action function="readBackup"></action>
2240 <action function="page">restore_read</action>
2241 </actions>
2242 </object>
2243
2244 <object type="action">
2245 <touch key="home" />
2246 <action function="page">main</action>
2247 </object>
2248
2249 <object type="action">
2250 <touch key="back" />
2251 <action function="page">main</action>
2252 </object>
2253
2254 <object type="template" name="footer" />
2255 </page>
2256
2257 <page name="restore_read">
2258 <object type="action">
2259 <condition var1="tw_restore_encrypted" var2="1" />
2260 <actions>
2261 <action function="set">tw_password_fail=0</action>
2262 <action function="page">restore_decrypt</action>
2263 </actions>
2264 </object>
2265
2266 <object type="action">
2267 <condition var1="tw_restore_encrypted" var2="0" />
2268 <actions>
2269 <action function="page">restore_select</action>
2270 </actions>
2271 </object>
2272 </page>
2273
2274 <page name="restore_decrypt">
2275 <object type="template" name="header" />
2276
2277 <object type="text" color="%text_color%">
2278 <font resource="font" />
2279 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2280 <text>Backup encrypted. Please enter your password:</text>
2281 </object>
2282
2283 <object type="input">
2284 <placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
2285 <background color="%input_background_color%" />
2286 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
2287 <font resource="font" color="%text_color%" />
2288 <text>%tw_restore_display%</text>
2289 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display" />
2290 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
2291 <actions>
2292 <action function="page">try_restore_decrypt</action>
2293 </actions>
2294 </object>
2295
2296 <object type="text" color="%text_fail_color%">
2297 <condition var1="tw_password_fail" var2="1" />
2298 <font resource="font" />
2299 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
2300 <text>Password Failed, Please Try Again</text>
2301 </object>
2302
2303 <object type="button">
2304 <highlight color="%highlight_color%" />
2305 <placement x="%col2_x%" y="%cancel_button_y%" />
2306 <font resource="font" color="%button_text_color%" />
2307 <text>Cancel</text>
2308 <image resource="main_button" />
2309 <actions>
2310 <action function="set">tw_page_done=1</action>
2311 <action function="page">restore</action>
2312 </actions>
2313 </object>
2314
2315 <object type="button">
2316 <highlight color="%highlight_color%" />
2317 <placement x="%col3_x%" y