blob: c75be3c6f69e7c24abc10616974be0a8d03c74cc [file] [log] [blame]
Ethan Yonker780cd392014-07-21 15:24:39 -05001<?xml version="1.0"?>
2
3<recovery>
Ethan Yonker21ff02a2015-02-18 14:35:00 -06004 <styles>
5 <style name="buttontext">
6 <highlight color="%highlight_color%" />
7 <font resource="font" color="%button_text_color%" />
8 </style>
9
10 <style name="button">
11 <style name="buttontext" />
12 <image resource="main_button" />
13 </style>
14
15 <style name="mediumbutton">
16 <style name="buttontext" />
17 <image resource="medium_button" />
18 </style>
19
20 <style name="mediumwidebutton">
21 <style name="buttontext" />
22 <image resource="mediumwide_button" />
23 </style>
24
25 <style name="fillbutton">
26 <style name="buttontext" />
27 <fill color="%button_fill_color%" />
28 </style>
29
30 <style name="rebootsystem">
31 <condition var1="tw_reboot_system" var2="1" />
32 <style name="button" />
33 <text>Reboot System</text>
34 <actions>
35 <action function="set">tw_back=main2</action>
36 <action function="set">tw_action=reboot</action>
37 <action function="set">tw_action_param=system</action>
38 <action function="set">tw_has_action2=0</action>
39 <action function="set">tw_text1=No OS Installed! Are you</action>
40 <action function="set">tw_text2=sure you wish to reboot?</action>
41 <action function="set">tw_text3=</action>
42 <action function="set">tw_text4=</action>
43 <action function="set">tw_action_text1=Rebooting...</action>
44 <action function="set">tw_action_text2=</action>
45 <action function="set">tw_complete_text1=Rebooting...</action>
46 <action function="set">tw_slider_text=Swipe to Reboot</action>
47 <action function="page">rebootcheck</action>
48 </actions>
49 </style>
50
51 <style name="scrolllist">
52 <highlight color="%fileselector_highlight_color%" />
53 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
54 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
55 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
56 <background color="%fileselector_background%" />
57 <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
58 </style>
59
60 <style name="fileselector">
61 <style name="scrolllist" />
62 <icon folder="folder_icon" file="file_icon" />
63 <sort name="tw_gui_sort_order" />
64 </style>
65
66 <style name="partitionlist">
67 <style name="scrolllist" />
68 <icon selected="checkbox_true" unselected="checkbox_false" />
69 </style>
70
71 <style name="text">
72 <font resource="font" color="%text_color%" />
73 </style>
74
75 <style name="checkbox">
76 <font resource="font" color="%text_color%" />
77 <image checked="checkbox_true" unchecked="checkbox_false" />
78 </style>
79
80 <style name="slider">
81 <text>Swipe to Confirm</text>
82 <font resource="font" color="%text_color%" />
Ethan Yonker591b9202015-03-11 11:17:15 -050083 <placement x="%center_x%" y="%slider_y%" placement="5" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -060084 <resource base="slider" used="slider-used" touch="slider-touch" />
85 </style>
86
87 <style name="console">
88 <color foreground="%console_foreground%" background="%console_background%" scroll="%console_scroll%" />
89 <font resource="fixed" />
that8d46c092015-02-26 01:30:04 +010090 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -060091 </style>
92
93 <style name="input">
94 <background color="%input_background_color%" />
95 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
96 <font resource="font" color="%text_color%" />
97 </style>
98
99 <style name="slidervalue">
100 <font resource="font" color="%text_color%" />
101 <colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
102 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%" />
103 </style>
104 </styles>
105
Ethan Yonker780cd392014-07-21 15:24:39 -0500106 <pages>
107 <page name="main">
108 <object type="action">
109 <actions>
110 <action function="set">tw_clear_destination=main2</action>
111 <action function="page">clear_vars</action>
112 </actions>
113 </object>
114 </page>
115
116 <page name="main2">
117 <object type="template" name="header" />
118
119 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500120 <placement x="%col1_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500121 <text>Install</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500122 <actions>
123 <action function="queueclear"></action>
124 <action function="page">install</action>
125 </actions>
126 </object>
127
128 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500129 <placement x="%col2_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500130 <text>Backup</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500131 <action function="page">backup</action>
132 </object>
133
134 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500135 <placement x="%col3_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500136 <text>Restore</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500137 <action function="page">restore</action>
138 </object>
139
140 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500141 <placement x="%col4_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500142 <text>Wipe</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500143 <action function="page">wipe</action>
144 </object>
145
146 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500147 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500148 <text>Mount</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500149 <action function="page">mount</action>
150 </object>
151
152 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500153 <placement x="%col2_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500154 <text>Settings</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500155 <action function="page">settings</action>
156 </object>
157
158 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500159 <placement x="%col3_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500160 <text>Advanced</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500161 <action function="page">advanced</action>
162 </object>
163
164 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500165 <placement x="%col4_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500166 <text>Reboot</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500167 <action function="page">reboot</action>
168 </object>
169
170 <object type="template" name="footer" />
171 </page>
172
173 <page name="install">
174 <object type="template" name="header" />
175
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600176 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500177 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
178 <text>Select Zip to Install</text>
179 </object>
180
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600181 <object type="button" style="fillbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -0500182 <placement x="%button_full_center_x%" y="%zipstorage_text_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500183 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
184 <actions>
185 <action function="set">tw_back=install</action>
186 <action function="page">selectstorage</action>
187 </actions>
188 </object>
189
190 <object type="fileselector">
Ethan Yonker780cd392014-07-21 15:24:39 -0500191 <placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500192 <text>Folders:</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500193 <filter folders="1" files="0" />
194 <path name="tw_zip_location" default="/sdcard" />
195 <data name="select" />
196 </object>
197
198 <object type="fileselector">
Ethan Yonker780cd392014-07-21 15:24:39 -0500199 <placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500200 <text>%tw_zip_location%</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500201 <filter extn=".zip" folders="0" files="1" />
202 <path name="tw_zip_location" />
203 <data name="tw_filename" />
204 <selection name="tw_file" />
205 </object>
206
207 <object type="template" name="sort_options" />
208
Ethan Yonker96af84a2015-01-05 14:58:36 -0600209 <object type="button">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600210 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600211 <text>Images...</text>
Ethan Yonker96af84a2015-01-05 14:58:36 -0600212 <actions>
213 <action function="page">install_image</action>
214 </actions>
215 </object>
216
Ethan Yonker780cd392014-07-21 15:24:39 -0500217 <object type="action">
218 <condition var1="tw_filename" op="modified" />
219 <actions>
220 <action function="queuezip"></action>
221 <action function="page">flash_confirm</action>
222 </actions>
223 </object>
224
225 <object type="action">
226 <touch key="back" />
227 <action function="page">main</action>
228 </object>
229
230 <object type="action">
231 <touch key="home" />
232 <action function="page">main</action>
233 </object>
234
235 <object type="template" name="footer" />
236 </page>
237
238 <page name="flash_confirm">
239 <object type="template" name="header" />
240
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600241 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500242 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
243 <text>WARNING: This operation may install incompatible software and render your device unusable.</text>
244 </object>
245
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600246 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500247 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
248 <text>Folder:</text>
249 </object>
250
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600251 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500252 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
253 <text>%tw_zip_location%</text>
254 </object>
255
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600256 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500257 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
258 <text>File to flash:</text>
259 </object>
260
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600261 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500262 <placement x="%center_x%" y="%row5_text_y%" placement="5" />
263 <text>%tw_file%</text>
264 </object>
265
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600266 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500267 <placement x="%center_x%" y="%row6_text_y%" placement="5" />
268 <text>Press back to cancel adding this zip.</text>
269 </object>
270
271 <object type="checkbox">
272 <placement x="%col2_x%" y="%row7_text_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500273 <text>Zip file signature verification?</text>
274 <data variable="tw_signed_zip_verify" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500275 </object>
276
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600277 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500278 <placement x="%center_x%" y="%row10_text_y%" placement="5" />
279 <text>File %tw_zip_queue_count% of max of 10</text>
280 </object>
281
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600282 <object type="button" style="mediumwidebutton">
Ethan Yonker780cd392014-07-21 15:24:39 -0500283 <condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
284 <placement x="%col2_x%" y="%row5_medium_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500285 <text>Add More Zips</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500286 <action function="page">install</action>
287 </object>
288
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600289 <object type="button" style="mediumwidebutton">
Ethan Yonker780cd392014-07-21 15:24:39 -0500290 <placement x="%col3_x%" y="%row5_medium_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500291 <text>Clear Queue</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500292 <actions>
293 <action function="queueclear"></action>
294 <action function="page">install</action>
295 </actions>
296 </object>
297
298 <object type="slider">
Ethan Yonker780cd392014-07-21 15:24:39 -0500299 <text>Swipe to Confirm Flash</text>
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600300 <action function="flash">flash_zip</action>
Ethan Yonker780cd392014-07-21 15:24:39 -0500301 </object>
302
303 <object type="action">
304 <touch key="back" />
305 <actions>
306 <action function="cancelzip"></action>
307 <action function="page">install</action>
308 </actions>
309 </object>
310
311 <object type="action">
312 <touch key="home" />
313 <action function="page">main</action>
314 </object>
315
316 <object type="template" name="footer" />
317 </page>
318
319 <page name="flash_zip">
320 <object type="template" name="header" />
321
322 <object type="template" name="flash_zip_console" />
323
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600324 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500325 <placement x="%col1_x%" y="%row16_text_y%" />
326 <text>Flashing file %tw_zip_index% of %tw_zip_queue_count%</text>
327 </object>
328
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600329 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500330 <placement x="%col1_x%" y="%row17_text_y%" />
331 <text>%tw_filename%</text>
332 </object>
333
334 <object type="template" name="progress_bar" />
335
336 <object type="action">
337 <condition var1="tw_operation_state" var2="1" />
338 <action function="page">flash_done</action>
339 </object>
340 </page>
341
342 <page name="flash_done">
343 <object type="template" name="header" />
344
345 <object type="template" name="flash_zip_console" />
346
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600347 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500348 <condition var1="tw_operation_status" op="!=" var2="0" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600349 <font resource="font" color="%text_fail_color%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500350 <placement x="%center_x%" y="%row17_text_y%" placement="5" />
351 <text>Failed</text>
352 </object>
353
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600354 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500355 <condition var1="tw_operation_status" var2="0" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600356 <font resource="font" color="%text_success_color%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500357 <placement x="%center_x%" y="%row17_text_y%" placement="5" />
358 <text>Successful</text>
359 </object>
360
361 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500362 <placement x="%col1_x%" y="%slider_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500363 <text>Wipe Cache/Dalvik</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500364 <actions>
365 <action function="set">tw_back=flash_done</action>
366 <action function="set">tw_action=wipe</action>
367 <action function="set">tw_action_param=/cache</action>
368 <action function="set">tw_has_action2=1</action>
369 <action function="set">tw_action2=wipe</action>
370 <action function="set">tw_action2_param=dalvik</action>
Matt Mower82931532015-02-27 14:19:59 -0600371 <action function="set">tw_text1=Wipe Cache &amp; Dalvik?</action>
372 <action function="set">tw_action_text1=Wiping Cache &amp; Dalvik...</action>
373 <action function="set">tw_complete_text1=Cache &amp; Dalvik Wipe Complete</action>
Ethan Yonker780cd392014-07-21 15:24:39 -0500374 <action function="set">tw_slider_text=Swipe to Wipe</action>
375 <action function="page">confirm_action</action>
376 </actions>
377 </object>
378
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600379 <object type="button" style="rebootsystem">
Ethan Yonker780cd392014-07-21 15:24:39 -0500380 <placement x="%col4_x%" y="%slider_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500381 </object>
382
383 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500384 <placement x="%col_center_x%" y="%slider_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500385 <text>Home</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500386 <actions>
387 <action function="set">tw_clear_destination=main2</action>
388 <action function="page">clear_vars</action>
389 </actions>
390 </object>
391
392 <object type="action">
393 <touch key="back" />
394 <actions>
395 <action function="set">tw_clear_destination=install</action>
396 <action function="page">clear_vars</action>
397 </actions>
398 </object>
399
400 <object type="action">
401 <touch key="home" />
402 <actions>
403 <action function="set">tw_clear_destination=main2</action>
404 <action function="page">clear_vars</action>
405 </actions>
406 </object>
407 </page>
408
Ethan Yonker96af84a2015-01-05 14:58:36 -0600409 <page name="install_image">
410 <object type="template" name="header" />
411
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600412 <object type="text">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600413 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
414 <text>Select Image to Flash</text>
415 </object>
416
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600417 <object type="button" style="fillbutton">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600418 <placement x="%button_full_center_x%" y="%zipstorage_text_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600419 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
420 <actions>
421 <action function="set">tw_back=install_image</action>
422 <action function="page">selectstorage</action>
423 </actions>
424 </object>
425
426 <object type="fileselector">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600427 <placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600428 <text>Folders:</text>
Ethan Yonker96af84a2015-01-05 14:58:36 -0600429 <filter folders="1" files="0" />
430 <path name="tw_zip_location" default="/sdcard" />
431 <data name="select" />
432 </object>
433
434 <object type="fileselector">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600435 <placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600436 <text>%tw_zip_location%</text>
Ethan Yonker96af84a2015-01-05 14:58:36 -0600437 <filter extn=".img" folders="0" files="1" />
438 <path name="tw_zip_location" />
439 <data name="tw_filename" />
440 <selection name="tw_file" />
441 </object>
442
443 <object type="template" name="sort_options" />
444
445 <object type="button">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600446 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600447 <text>Zips...</text>
Ethan Yonker96af84a2015-01-05 14:58:36 -0600448 <actions>
449 <action function="page">install</action>
450 </actions>
451 </object>
452
453 <object type="action">
454 <condition var1="tw_filename" op="modified" />
455 <action function="page">flashimage_confirm</action>
456 </object>
457
458 <object type="action">
459 <touch key="back" />
460 <action function="page">install</action>
461 </object>
462
463 <object type="action">
464 <touch key="home" />
465 <action function="page">main</action>
466 </object>
467
468 <object type="template" name="footer" />
469 </page>
470
471 <page name="flashimage_confirm">
472 <object type="template" name="header" />
473
474 <object type="partitionlist">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600475 <placement x="%col2_x%" y="%row1_text_y%" w="%listbox_width%" h="%flash_list_height%" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600476 <text>Select Partition to Flash Image:</text>
477 <icon selected="radio_true" unselected="radio_false" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600478 <data name="tw_flash_partition" />
479 <listtype name="flashimg" />
480 </object>
481
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600482 <object type="text">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600483 <placement x="%center_x%" y="%row8_text_y%" placement="5" />
484 <text>Folder:</text>
485 </object>
486
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600487 <object type="text">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600488 <placement x="%center_x%" y="%row9_text_y%" placement="5" />
489 <text>%tw_zip_location%</text>
490 </object>
491
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600492 <object type="text">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600493 <placement x="%center_x%" y="%row10_text_y%" placement="5" />
494 <text>File to flash:</text>
495 </object>
496
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600497 <object type="text">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600498 <placement x="%center_x%" y="%row11_text_y%" placement="5" />
499 <text>%tw_file%</text>
500 </object>
501
502 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600503 <text>Swipe to Confirm Flash</text>
Ethan Yonker96af84a2015-01-05 14:58:36 -0600504 <actions>
505 <action function="set">tw_back=flashimage_confirm</action>
506 <action function="set">tw_action=flashimage</action>
507 <action function="set">tw_has_action2=0</action>
508 <action function="set">tw_action_text1=Flashing Image...</action>
509 <action function="set">tw_action_text2=</action>
510 <action function="set">tw_complete_text1=Image Flashed</action>
511 <action function="page">action_page</action>
512 </actions>
513 <action function="flashimage"></action>
514 </object>
515
Ethan Yonker96af84a2015-01-05 14:58:36 -0600516 <object type="action">
517 <touch key="back" />
518 <actions>
519 <action function="set">tw_clear_destination=install_image</action>
520 <action function="page">clear_vars</action>
521 </actions>
522 </object>
523
524 <object type="action">
525 <touch key="home" />
526 <actions>
527 <action function="set">tw_clear_destination=main2</action>
528 <action function="page">clear_vars</action>
529 </actions>
530 </object>
531
532 <object type="template" name="footer" />
533 </page>
534
Ethan Yonker780cd392014-07-21 15:24:39 -0500535 <page name="clear_vars">
536 <object type="action">
537 <action function="set">tw_operation_state=0</action>
538 <action function="set">tw_text1=</action>
539 <action function="set">tw_text2=</action>
540 <action function="set">tw_text3=</action>
541 <action function="set">tw_text4=</action>
542 <action function="set">tw_action_text1=</action>
543 <action function="set">tw_action_text2=</action>
544 <action function="set">tw_action_param=</action>
545 <action function="set">tw_has_action2=0</action>
546 <action function="set">tw_action2=</action>
547 <action function="set">tw_action2_param=</action>
548 <action function="set">tw_has_cancel=0</action>
549 <action function="set">tw_cancel_action=</action>
550 <action function="set">tw_cancel_param=</action>
551 <action function="set">tw_show_exclamation=0</action>
552 <action function="set">tw_show_reboot=0</action>
553 <action function="page">%tw_clear_destination%</action>
554 </object>
555 </page>
556
557 <page name="confirm_action">
558 <object type="template" name="header" />
559
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600560 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500561 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
562 <text>%tw_text1%</text>
563 </object>
564
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600565 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500566 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
567 <text>%tw_text2%</text>
568 </object>
569
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600570 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500571 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
572 <text>%tw_text3%</text>
573 </object>
574
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600575 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500576 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
577 <text>%tw_text4%</text>
578 </object>
579
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600580 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500581 <placement x="%center_x%" y="%row12_text_y%" placement="5" />
582 <text>Press back button to cancel.</text>
583 </object>
584
585 <object type="slider">
Ethan Yonker780cd392014-07-21 15:24:39 -0500586 <text>%tw_slider_text%</text>
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600587 <action function="page">action_page</action>
Ethan Yonker780cd392014-07-21 15:24:39 -0500588 </object>
589
590 <object type="action">
591 <touch key="back" />
592 <actions>
593 <action function="set">tw_clear_destination=%tw_back%</action>
594 <action function="page">clear_vars</action>
595 </actions>
596 </object>
597
598 <object type="action">
599 <touch key="home" />
600 <action function="page">main</action>
601 </object>
602
603 <object type="template" name="footer" />
604 </page>
605
606 <page name="action_page">
607 <object type="template" name="header" />
608
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600609 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500610 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
611 <text>%tw_action_text1%</text>
612 </object>
613
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600614 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500615 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
616 <text>%tw_action_text2%</text>
617 </object>
618
619 <object type="template" name="action_page_console" />
620
621 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500622 <condition var1="tw_has_cancel" var2="1" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600623 <placement x="%col_center_x%" y="%cancel_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500624 <text>Cancel</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500625 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
626 </object>
627
628 <object type="template" name="progress_bar" />
629
630 <object type="action">
631 <condition var1="tw_operation_state" var2="1" />
632 <actions>
633 <action function="page">action_complete</action>
634 </actions>
635 </object>
636
637 <object type="action">
638 <condition var1="tw_has_action2" var2="0" />
639 <actions>
640 <action function="%tw_action%">%tw_action_param%</action>
641 </actions>
642 </object>
643
644 <object type="action">
645 <condition var1="tw_has_action2" var2="1" />
646 <actions>
647 <action function="%tw_action%">%tw_action_param%</action>
648 <action function="%tw_action2%">%tw_action2_param%</action>
649 </actions>
650 </object>
651 </page>
652
653 <page name="singleaction_page">
654 <object type="template" name="header" />
655
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600656 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500657 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
658 <text>%tw_action_text1%</text>
659 </object>
660
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600661 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500662 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
663 <text>%tw_action_text2%</text>
664 </object>
665
666 <object type="template" name="action_page_console" />
667
668 <object type="template" name="progress_bar" />
669
670 <object type="action">
671 <condition var1="tw_operation_state" var2="1" />
672 <actions>
673 <action function="set">tw_page_done=1</action>
674 </actions>
675 </object>
676
677 <object type="action">
678 <condition var1="tw_has_action2" var2="0" />
679 <actions>
680 <action function="%tw_action%">%tw_action_param%</action>
681 </actions>
682 </object>
683
684 <object type="action">
685 <condition var1="tw_has_action2" var2="1" />
686 <actions>
687 <action function="%tw_action%">%tw_action_param%</action>
688 <action function="%tw_action2%">%tw_action2_param%</action>
689 </actions>
690 </object>
691 </page>
692
693 <page name="action_complete">
694 <object type="template" name="header" />
695
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600696 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500697 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
698 <text>%tw_complete_text1%</text>
699 </object>
700
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600701 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500702 <condition var1="tw_operation_status" op="!=" var2="0" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600703 <font resource="font" color="%text_fail_color%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500704 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
705 <text>Failed</text>
706 </object>
707
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600708 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500709 <condition var1="tw_operation_status" var2="0" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600710 <font resource="font" color="%text_success_color%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500711 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
712 <text>Successful</text>
713 </object>
714
715 <object type="template" name="action_page_console" />
716
717 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500718 <condition var1="tw_show_reboot" var2="0" />
719 <placement x="%col_center_x%" y="%slider_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500720 <text>Back</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500721 <actions>
722 <action function="set">tw_clear_destination=%tw_back%</action>
723 <action function="page">clear_vars</action>
724 </actions>
725 </object>
726
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600727 <object type="button" style="rebootsystem">
Ethan Yonker780cd392014-07-21 15:24:39 -0500728 <condition var1="tw_show_reboot" var2="1" />
729 <placement x="%col_center_x%" y="%slider_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500730 </object>
731
732 <object type="action">
733 <touch key="home" />
734 <actions>
735 <action function="set">tw_clear_destination=main2</action>
736 <action function="page">clear_vars</action>
737 </actions>
738 </object>
739
740 <object type="action">
741 <touch key="back" />
742 <actions>
743 <action function="set">tw_clear_destination=%tw_back%</action>
744 <action function="page">clear_vars</action>
745 </actions>
746 </object>
747 </page>
748
749 <page name="filecheck">
750 <object type="action">
751 <action function="fileexists">%tw_filecheck%</action>
752 </object>
753
754 <object type="action">
755 <conditions>
756 <condition var1="tw_operation_state" var2="1" />
757 <condition var1="tw_operation_status" var2="0" />
758 </conditions>
759 <actions>
760 <action function="set">tw_fileexists=1</action>
761 <action function="page">%tw_existpage%</action>
762 </actions>
763 </object>
764
765 <object type="action">
766 <conditions>
767 <condition var1="tw_operation_state" var2="1" />
768 <condition var1="tw_operation_status" var2="1" />
769 </conditions>
770 <actions>
771 <action function="set">tw_fileexists=0</action>
772 <action function="page">%tw_notexistpage%</action>
773 </actions>
774 </object>
775 </page>
776
777 <page name="rebootcheck">
778 <object type="action">
Matt Mower82931532015-02-27 14:19:59 -0600779 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500780 <action function="reboot">%tw_action_param%</action>
781 </object>
782
783 <object type="action">
Matt Mower82931532015-02-27 14:19:59 -0600784 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500785 <action function="page">confirm_action</action>
786 </object>
787 </page>
788
789 <page name="reboot">
790 <object type="template" name="header" />
791
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600792 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500793 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
794 <text>Reboot Menu</text>
795 </object>
796
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600797 <object type="button" style="rebootsystem">
Ethan Yonker780cd392014-07-21 15:24:39 -0500798 <placement x="%col1_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500799 <text>System</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500800 </object>
801
802 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500803 <condition var1="tw_reboot_poweroff" var2="1" />
804 <placement x="%col2_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500805 <text>Power Off</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500806 <actions>
807 <action function="set">tw_back=reboot</action>
808 <action function="set">tw_action=reboot</action>
809 <action function="set">tw_action_param=poweroff</action>
810 <action function="set">tw_has_action2=0</action>
811 <action function="set">tw_text1=No OS Installed! Are you</action>
812 <action function="set">tw_text2=sure you wish to power off?</action>
813 <action function="set">tw_action_text1=Turning Off...</action>
814 <action function="set">tw_complete_text1=Turning Off...</action>
815 <action function="set">tw_slider_text=Swipe to Power Off</action>
816 <action function="page">rebootcheck</action>
817 </actions>
818 </object>
819
820 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500821 <condition var1="tw_reboot_recovery" var2="1" />
822 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500823 <text>Recovery</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500824 <actions>
825 <action function="set">tw_back=reboot</action>
826 <action function="set">tw_action=reboot</action>
827 <action function="set">tw_action_param=recovery</action>
828 <action function="set">tw_has_action2=0</action>
829 <action function="set">tw_text1=No OS Installed! Are you</action>
830 <action function="set">tw_text2=sure you wish to reboot?</action>
831 <action function="set">tw_action_text1=Rebooting...</action>
832 <action function="set">tw_complete_text1=Rebooting...</action>
833 <action function="set">tw_slider_text=Swipe to Reboot</action>
834 <action function="page">rebootcheck</action>
835 </actions>
836 </object>
837
838 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500839 <condition var1="tw_reboot_bootloader" var2="1" />
840 <placement x="%col2_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500841 <text>Bootloader</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500842 <actions>
843 <action function="set">tw_back=reboot</action>
844 <action function="set">tw_action=reboot</action>
845 <action function="set">tw_action_param=bootloader</action>
846 <action function="set">tw_has_action2=0</action>
847 <action function="set">tw_text1=No OS Installed! Are you</action>
848 <action function="set">tw_text2=sure you wish to reboot?</action>
849 <action function="set">tw_action_text1=Rebooting...</action>
850 <action function="set">tw_complete_text1=Rebooting...</action>
851 <action function="set">tw_slider_text=Swipe to Reboot</action>
852 <action function="page">rebootcheck</action>
853 </actions>
854 </object>
855
856 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500857 <condition var1="tw_download_mode" var2="1" />
858 <placement x="%col3_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500859 <text>Download</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500860 <actions>
861 <action function="set">tw_back=reboot</action>
862 <action function="set">tw_action=reboot</action>
863 <action function="set">tw_action_param=download</action>
864 <action function="set">tw_has_action2=0</action>
865 <action function="set">tw_text1=No OS Installed! Are you</action>
866 <action function="set">tw_text2=sure you wish to reboot?</action>
867 <action function="set">tw_action_text1=Rebooting...</action>
868 <action function="set">tw_complete_text1=Rebooting...</action>
869 <action function="set">tw_slider_text=Swipe to Reboot</action>
870 <action function="page">rebootcheck</action>
871 </actions>
872 </object>
873
874 <object type="action">
875 <touch key="home" />
876 <action function="page">main</action>
877 </object>
878
879 <object type="action">
880 <touch key="back" />
881 <action function="page">main</action>
882 </object>
883
884 <object type="template" name="footer" />
885 </page>
886
887 <page name="selectstorage">
888 <object type="template" name="header" />
889
890 <object type="partitionlist">
Ethan Yonker780cd392014-07-21 15:24:39 -0500891 <placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500892 <text>Select Storage:</text>
893 <icon selected="radio_true" unselected="radio_false" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500894 <data name="tw_storage_path" />
895 <listtype name="storage" />
896 </object>
897
898 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500899 <placement x="%filemanager_select_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500900 <text>OK</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500901 <actions>
902 <action function="set">tw_clear_destination=%tw_back%</action>
903 <action function="page">clear_vars</action>
904 </actions>
905 </object>
906
907 <object type="action">
908 <touch key="home" />
909 <action function="page">main</action>
910 </object>
911
912 <object type="action">
913 <touch key="back" />
914 <actions>
915 <action function="page">%tw_back%</action>
916 </actions>
917 </object>
918
919 <object type="template" name="footer" />
920 </page>
921
922 <page name="mount">
923 <object type="template" name="header" />
924
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600925 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -0500926 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
927 <text>Mount Menu</text>
928 </object>
929
930 <object type="partitionlist">
Ethan Yonker780cd392014-07-21 15:24:39 -0500931 <placement x="%backup_list_x%" y="%backup_list_y%" w="%backup_list_width%" h="%mount_list_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500932 <text>Select Partitions to Mount:</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500933 <listtype name="mount" />
934 </object>
935
936 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -0500937 <conditions>
938 <condition var1="tw_is_encrypted" var2="1" />
939 <condition var1="tw_is_decrypted" var2="0" />
940 </conditions>
941 <placement x="%col3_x%" y="row1_y" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500942 <text>Decrypt Data</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500943 <action function="page">decrypt</action>
944 </object>
945
946 <object type="button">
947 <condition var1="tw_has_usb_storage" var2="1" />
948 <placement x="%col4_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500949 <text>Mount USB Storage</text>
Ethan Yonker780cd392014-07-21 15:24:39 -0500950 <action function="page">usb_mount</action>
951 </object>
952
953 <object type="button">
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -0400954 <conditions>
955 <condition var1="tw_has_mtp" var2="1" />
956 <condition var1="tw_mtp_enabled" var2="0" />
957 </conditions>
958 <placement x="%col3_x%" y="row1_y" />
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -0400959 <text>Enable MTP</text>
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -0400960 <action function="startmtp"></action>
961 </object>
962
963 <object type="button">
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -0400964 <conditions>
965 <condition var1="tw_has_mtp" var2="1" />
966 <condition var1="tw_mtp_enabled" var2="1" />
967 </conditions>
968 <placement x="%col3_x%" y="row1_y" />
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -0400969 <text>Disable MTP</text>
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -0400970 <action function="stopmtp"></action>
971 </object>
972
973 <object type="button">
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -0400974 <conditions>
975 <condition var1="tw_is_encrypted" var2="1" />
976 <condition var1="tw_is_decrypted" var2="0" />
977 </conditions>
978 <placement x="%col3_x%" y="row1_y" />
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -0400979 <text>Decrypt Data</text>
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -0400980 <action function="page">decrypt</action>
981 </object>
982
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600983 <object type="button" style="fillbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -0500984 <placement x="%col3_x%" y="%backup_storage_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -0500985 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
986 <actions>
987 <action function="set">tw_back=mount</action>
988 <action function="page">selectstorage</action>
989 </actions>
990 </object>
991
Ethan Yonkereb32b1f2015-05-18 10:23:03 -0500992 <object type="button">
993 <placement x="%col3_x%" y="%row10_text_y%" />
994 <font resource="font" color="%text_color%" />
995 <condition var1="tw_mount_system_ro" op="=" var2="0" />
996 <text>Only mount system read-only</text>
997 <image resource="checkbox_false" />
Ethan Yonkerd6966f42015-05-30 14:52:16 -0500998 <action function="mountsystemtoggle">1</action>
Ethan Yonkereb32b1f2015-05-18 10:23:03 -0500999 </object>
1000
1001 <object type="button">
1002 <placement x="%col3_x%" y="%row10_text_y%" />
1003 <font resource="font" color="%text_color%" />
1004 <condition var1="tw_mount_system_ro" op="!=" var2="0" />
1005 <text>Only mount system read-only</text>
1006 <image resource="checkbox_true" />
1007 <actions>
1008 <action function="set">tw_lifetime_writes=2</action>
1009 <action function="page">system_readonly_check</action>
1010 </actions>
1011 </object>
1012
Ethan Yonker780cd392014-07-21 15:24:39 -05001013 <object type="action">
1014 <touch key="home" />
1015 <action function="page">main</action>
1016 </object>
1017
1018 <object type="action">
1019 <touch key="back" />
1020 <action function="page">main</action>
1021 </object>
1022
1023 <object type="template" name="footer" />
1024 </page>
1025
1026 <page name="usb_mount">
1027 <object type="template" name="header" />
1028
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001029 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001030 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001031 <text>USB Storage Mounted -- Be sure to safely remove your device from your computer before unmounting!</text>
1032 </object>
1033
Ethan Yonker780cd392014-07-21 15:24:39 -05001034 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05001035 <placement x="%col_center_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001036 <text>Unmount</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001037 <action function="page">usb_umount</action>
1038 </object>
1039
1040 <object type="action">
1041 <action function="mount">usb</action>
1042 </object>
1043
1044 <object type="template" name="footer" />
1045 </page>
1046
1047 <page name="usb_umount">
1048 <object type="action">
1049 <action function="unmount">usb</action>
1050 </object>
1051
1052 <object type="action">
1053 <action function="page">mount</action>
1054 </object>
1055
1056 <object type="template" name="footer" />
1057 </page>
1058
Ethan Yonkereb32b1f2015-05-18 10:23:03 -05001059 <page name="system_readonly_check">
1060 <object type="action">
1061 <action function="checkpartitionlifetimewrites">/system</action>
1062 </object>
1063
1064 <object type="action">
Ethan Yonkerd6966f42015-05-30 14:52:16 -05001065 <condition var1="tw_lifetime_writes" var2="1" />
1066 <actions>
1067 <action function="mountsystemtoggle">0</action>
1068 <action function="page">mount</action>
1069 </actions>
Ethan Yonkereb32b1f2015-05-18 10:23:03 -05001070 </object>
1071
1072 <object type="action">
Ethan Yonkerd6966f42015-05-30 14:52:16 -05001073 <condition var1="tw_lifetime_writes" var2="0" />
Ethan Yonkereb32b1f2015-05-18 10:23:03 -05001074 <actions>
1075 <action function="set">tw_back=mount</action>
1076 <action function="page">system_readonly</action>
1077 </actions>
1078 </object>
1079 </page>
1080
Ethan Yonker780cd392014-07-21 15:24:39 -05001081 <page name="wipe">
1082 <object type="template" name="header" />
1083
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001084 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001085 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1086 <text>Factory Reset: Wipes Data, Cache, and Dalvik</text>
1087 </object>
1088
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001089 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001090 <condition var1="tw_has_data_media" var2="1" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001091 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1092 <text>(not including internal storage)</text>
1093 </object>
1094
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001095 <object type="text">
Captain Throwbacka7f5ce32014-10-10 09:33:20 -04001096 <conditions>
1097 <condition var1="tw_has_android_secure" var2="1" />
1098 <condition var1="fileexists" var2="/and-sec" />
1099 </conditions>
Captain Throwbacka7f5ce32014-10-10 09:33:20 -04001100 <placement x="%center_x%" y="%row3_text_y%" placement="1" />
1101 <text>Android Secure </text>
1102 </object>
1103
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001104 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001105 <condition var1="tw_has_sdext_partition" var2="1" />
Captain Throwbacka7f5ce32014-10-10 09:33:20 -04001106 <placement x="%center_x%" y="%row3_text_y%" />
1107 <text> SD-EXT</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001108 </object>
1109
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001110 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001111 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
1112 <text>Most of the time this is the only wipe that you need.</text>
1113 </object>
1114
1115 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05001116 <placement x="%col2_x%" y="%wipe_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001117 <text>Advanced Wipe</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001118 <action function="page">advancedwipe</action>
1119 </object>
1120
1121 <object type="button">
Ethan Yonkerd79d9bc2014-12-20 15:38:29 -06001122 <condition var1="tw_has_data_media" var2="1" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001123 <placement x="%col3_x%" y="%wipe_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001124 <text>Format Data</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001125 <actions>
1126 <action function="page">formatdata</action>
1127 </actions>
1128 </object>
1129
Ethan Yonkerd79d9bc2014-12-20 15:38:29 -06001130 <object type="button">
1131 <conditions>
1132 <condition var1="tw_is_encrypted" var2="1" />
1133 <condition var1="tw_has_data_media" var2="0" />
1134 </conditions>
Ethan Yonkerd79d9bc2014-12-20 15:38:29 -06001135 <placement x="%col3_x%" y="%wipe_button_y%" />
Ethan Yonkerd79d9bc2014-12-20 15:38:29 -06001136 <text>Wipe Encryption</text>
Ethan Yonkerd79d9bc2014-12-20 15:38:29 -06001137 <actions>
1138 <action function="set">tw_back=wipe</action>
1139 <action function="set">tw_action=wipe</action>
1140 <action function="set">tw_action_param=DATAMEDIA</action>
1141 <action function="set">tw_has_action2=0</action>
1142 <action function="set">tw_text1=Wipe Encryption from Data?</action>
1143 <action function="set">tw_text2=</action>
1144 <action function="set">tw_action_text1=Formatting Data...</action>
1145 <action function="set">tw_complete_text1=Data Format Complete</action>
1146 <action function="set">tw_slider_text=Swipe to Format Data</action>
1147 <action function="page">confirm_action</action>
1148 </actions>
1149 </object>
1150
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001151 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001152 <placement x="%center_x%" y="%row12_text_y%" placement="5" />
1153 <text>Press back button to cancel.</text>
1154 </object>
1155
1156 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001157 <text>Swipe to Factory Reset</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001158 <actions>
1159 <action function="set">tw_back=wipe</action>
1160 <action function="set">tw_action=wipe</action>
1161 <action function="set">tw_action_param=data</action>
1162 <action function="set">tw_action_text1=Factory Reset...</action>
1163 <action function="set">tw_complete_text1=Factory Reset Complete</action>
1164 <action function="page">action_page</action>
1165 </actions>
1166 </object>
1167
Ethan Yonker780cd392014-07-21 15:24:39 -05001168 <object type="action">
1169 <touch key="home" />
1170 <action function="page">main</action>
1171 </object>
1172
1173 <object type="action">
1174 <touch key="back" />
1175 <action function="page">main</action>
1176 </object>
1177
1178 <object type="template" name="footer" />
1179 </page>
1180
1181 <page name="advancedwipe">
1182 <object type="template" name="header" />
1183
1184 <object type="partitionlist">
Ethan Yonker780cd392014-07-21 15:24:39 -05001185 <placement x="%backup_list_x%" y="%backup_list_y%" w="%backup_list_width%" h="%backup_list_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001186 <text>Select Partitions to Wipe:</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001187 <data name="tw_wipe_list" />
1188 <listtype name="wipe" />
1189 </object>
1190
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001191 <object type="button" style="fillbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -05001192 <placement x="%col3_x%" y="%backup_storage_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001193 <text>Repair or Change File System</text>
1194 <actions>
1195 <action function="checkpartitionlist"></action>
1196 <action function="page">checkpartitionlist</action>
1197 </actions>
1198 </object>
1199
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001200 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001201 <condition var1="partitionlisterror" var2="1" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001202 <font resource="font" color="%text_fail_color%"/>
Ethan Yonker780cd392014-07-21 15:24:39 -05001203 <placement x="%col3_x%" y="%backup_storage_y%" />
1204 <text>Invalid partition selection</text>
1205 </object>
1206
1207 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001208 <text>Swipe to Wipe</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001209 <actions>
1210 <action function="set">tw_back=advancedwipe</action>
1211 <action function="set">tw_action=wipe</action>
1212 <action function="set">tw_action_param=LIST</action>
1213 <action function="set">tw_text1=Wipe Selected Partition(s)?</action>
1214 <action function="set">tw_action_text1=Wiping Partition(s)...</action>
1215 <action function="set">tw_complete_text1=Wipe Complete</action>
1216 <action function="page">action_page</action>
1217 </actions>
1218 </object>
1219
Ethan Yonker780cd392014-07-21 15:24:39 -05001220 <object type="action">
1221 <touch key="home" />
1222 <action function="page">main</action>
1223 </object>
1224
1225 <object type="action">
1226 <touch key="back" />
1227 <action function="page">wipe</action>
1228 </object>
1229
1230 <object type="template" name="footer" />
1231 </page>
1232
1233 <page name="formatdata">
1234 <object type="template" name="header" />
1235
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001236 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001237 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1238 <text>Format Data will wipe all of your apps, backups, pictures,</text>
1239 </object>
1240
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001241 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001242 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1243 <text>videos, media, and removes encryption on internal storage.</text>
1244 </object>
1245
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001246 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001247 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
1248 <text>This cannot be undone. Press back to cancel.</text>
1249 </object>
1250
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001251 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001252 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
1253 <text>Type yes to continue.</text>
1254 </object>
1255
1256 <object type="input">
1257 <placement x="%input_x%" y="%row6_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001258 <text>%tw_confirm_formatdata%</text>
1259 <data name="tw_confirm_formatdata" />
1260 <restrict minlen="3" maxlen="3" allow="yes" />
1261 <action function="page">formatdata_confirm</action>
1262 </object>
1263
1264 <object type="template" name="keyboardtemplate" />
1265
1266 <object type="action">
1267 <touch key="home" />
1268 <action function="page">main</action>
1269 </object>
1270
1271 <object type="action">
1272 <touch key="back" />
1273 <action function="page">wipe</action>
1274 </object>
1275
1276 <object type="template" name="footer" />
1277 </page>
1278
1279 <page name="formatdata_confirm">
1280 <object type="action">
1281 <condition var1="tw_confirm_formatdata" op="=" var2="yes" />
1282 <actions>
1283 <action function="set">tw_back=formatdata</action>
1284 <action function="set">tw_action=wipe</action>
1285 <action function="set">tw_action_param=DATAMEDIA</action>
1286 <action function="set">tw_action_text1=Formatting Data...</action>
1287 <action function="set">tw_complete_text1=Data Format Complete</action>
1288 <action function="page">action_page</action>
1289 </actions>
1290 </object>
1291
1292 <object type="action">
1293 <condition var1="tw_confirm_formatdata" op="!=" var2="yes" />
Matt Mower82931532015-02-27 14:19:59 -06001294 <action function="page">formatdata</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001295 </object>
1296 </page>
1297
1298 <page name="checkpartitionlist">
1299 <object type="action">
1300 <condition var1="tw_check_partition_list" op="=" var2="1" />
1301 <actions>
1302 <action function="set">partitionlisterror=0</action>
1303 <action function="getpartitiondetails"></action>
1304 <action function="page">partitionoptions</action>
1305 </actions>
1306 </object>
1307
1308 <object type="action">
1309 <condition var1="tw_check_partition_list" op="!=" var2="1" />
1310 <actions>
1311 <action function="set">partitionlisterror=1</action>
1312 <action function="set">tw_wipe_list=</action>
1313 <action function="page">advancedwipe</action>
1314 </actions>
1315 </object>
1316 </page>
1317
1318 <page name="partitionoptions">
1319 <object type="template" name="header" />
1320
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001321 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001322 <placement x="%col1_x%" y="%row1_text_y%" />
1323 <text>Partition Options for: %tw_partition_name%</text>
1324 </object>
1325
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001326 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001327 <placement x="%col_right_x%" y="%row1_text_y%" placement="1" />
1328 <text>Mount Point: %tw_partition_mount_point%</text>
1329 </object>
1330
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001331 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001332 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1333 <text>Current file system: %tw_partition_file_system%</text>
1334 </object>
1335
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001336 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001337 <condition var1="tw_partition_is_present" op="!=" var2="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001338 <placement x="%col2_x%" y="%row3_text_y%" />
1339 <text>Present: Yes</text>
1340 </object>
1341
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001342 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001343 <condition var1="tw_partition_is_present" op="=" var2="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001344 <placement x="%col2_x%" y="%row3_text_y%" />
1345 <text>Present: No</text>
1346 </object>
1347
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001348 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001349 <condition var1="tw_partition_removable" op="!=" var2="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001350 <placement x="%col3_x%" y="%row3_text_y%" />
1351 <text>Removable: Yes</text>
1352 </object>
1353
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001354 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001355 <condition var1="tw_partition_removable" op="=" var2="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001356 <placement x="%col3_x%" y="%row3_text_y%" />
1357 <text>Removable: No</text>
1358 </object>
1359
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001360 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001361 <placement x="%col1_x%" y="%row4_text_y%" />
1362 <text>Size: %tw_partition_size%MB</text>
1363 </object>
1364
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001365 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001366 <placement x="%col2_x%" y="%row4_text_y%" />
1367 <text>Used: %tw_partition_used%MB</text>
1368 </object>
1369
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001370 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001371 <placement x="%col3_x%" y="%row4_text_y%" />
1372 <text>Free: %tw_partition_free%MB</text>
1373 </object>
1374
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001375 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001376 <placement x="%col4_x%" y="%row4_text_y%" />
1377 <text>Backup Size: %tw_partition_backup_size%MB</text>
1378 </object>
1379
1380 <object type="button">
Ethan Yonkera2719152015-05-28 09:44:41 -05001381 <condition var1="tw_partition_can_resize" op="=" var2="1" />
1382 <placement x="%col1_x%" y="%row2_y%" />
1383 <text>Resize</text>
1384 <actions>
1385 <action function="set">tw_back=partitionoptions</action>
1386 <action function="set">tw_action=resize</action>
1387 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1388 <action function="set">tw_has_action2=1</action>
1389 <action function="set">tw_action2=getpartitiondetails</action>
1390 <action function="set">tw_text1=Resize %tw_partition_name%?</action>
1391 <action function="set">tw_text2=</action>
1392 <action function="set">tw_action_text1=Resizing...</action>
1393 <action function="set">tw_complete_text1=Resize Complete</action>
1394 <action function="set">tw_slider_text=Swipe to Resize</action>
1395 <action function="page">confirm_action</action>
1396 </actions>
1397 </object>
1398
1399 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05001400 <condition var1="tw_partition_can_repair" op="=" var2="1" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001401 <placement x="%col2_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001402 <text>Repair</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001403 <actions>
1404 <action function="set">tw_back=partitionoptions</action>
1405 <action function="set">tw_action=repair</action>
1406 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1407 <action function="set">tw_has_action2=0</action>
1408 <action function="set">tw_text1=Repair %tw_partition_name%?</action>
1409 <action function="set">tw_text2=</action>
1410 <action function="set">tw_action_text1=Repairing...</action>
1411 <action function="set">tw_complete_text1=Repair Complete</action>
1412 <action function="set">tw_slider_text=Swipe to Repair</action>
1413 <action function="page">confirm_action</action>
1414 </actions>
1415 </object>
1416
1417 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05001418 <placement x="%col3_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001419 <text>Change File System</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001420 <action function="page">selectfilesystem</action>
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">advancedwipe</action>
1431 </object>
1432
1433 <object type="template" name="footer" />
1434 </page>
1435
Dees Troy298c4382014-09-03 14:42:26 +00001436 <page name="refreshfilesystem">
1437 <object type="action">
1438 <condition var1="tw_check_partition_list" op="=" var2="1" />
1439 <actions>
1440 <action function="set">partitionlisterror=0</action>
1441 <action function="getpartitiondetails"></action>
1442 <action function="page">selectfilesystem</action>
1443 </actions>
1444 </object>
1445
1446 <object type="action">
1447 <condition var1="tw_check_partition_list" op="!=" var2="1" />
1448 <actions>
1449 <action function="set">partitionlisterror=1</action>
1450 <action function="set">tw_wipe_list=</action>
1451 <action function="page">advancedwipe</action>
1452 </actions>
1453 </object>
1454 </page>
1455
Ethan Yonker780cd392014-07-21 15:24:39 -05001456 <page name="selectfilesystem">
1457 <object type="template" name="header" />
1458
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001459 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001460 <placement x="%col1_x%" y="%row1_text_y%" />
1461 <text>Change file system for: %tw_partition_name%</text>
1462 </object>
1463
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001464 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001465 <placement x="%col_right_x%" y="%row1_text_y%" placement="1" />
1466 <text>Mount Point: %tw_partition_mount_point%</text>
1467 </object>
1468
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001469 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001470 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1471 <text>Current file system: %tw_partition_file_system%</text>
1472 </object>
1473
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001474 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001475 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1476 <text>Some ROMs or kernels may not support some file systems. Proceed with caution!</text>
1477 </object>
1478
1479 <object type="button">
1480 <condition var1="tw_partition_ext" op="=" var2="1" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001481 <placement x="%col1_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001482 <text>EXT2</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001483 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001484 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001485 <action function="set">tw_action=changefilesystem</action>
1486 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1487 <action function="set">tw_action_new_file_system=ext2</action>
1488 <action function="set">tw_has_action2=0</action>
1489 <action function="set">tw_text1=Change %tw_partition_name% to EXT2?</action>
1490 <action function="set">tw_text2=</action>
1491 <action function="set">tw_action_text1=Formatting...</action>
1492 <action function="set">tw_complete_text1=Format Complete</action>
1493 <action function="set">tw_slider_text=Swipe to Change</action>
1494 <action function="page">confirm_action</action>
1495 </actions>
1496 </object>
1497
1498 <object type="button">
1499 <condition var1="tw_partition_ext" op="=" var2="1" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001500 <placement x="%col2_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001501 <text>EXT3</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001502 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001503 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001504 <action function="set">tw_action=changefilesystem</action>
1505 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1506 <action function="set">tw_action_new_file_system=ext3</action>
1507 <action function="set">tw_has_action2=0</action>
1508 <action function="set">tw_text1=Change %tw_partition_name% to EXT3?</action>
1509 <action function="set">tw_text2=</action>
1510 <action function="set">tw_action_text1=Formatting...</action>
1511 <action function="set">tw_complete_text1=Format Complete</action>
1512 <action function="set">tw_slider_text=Swipe to Change</action>
1513 <action function="page">confirm_action</action>
1514 </actions>
1515 </object>
1516
1517 <object type="button">
1518 <condition var1="tw_partition_ext" op="=" var2="1" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001519 <placement x="%col3_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001520 <text>EXT4</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001521 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001522 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001523 <action function="set">tw_action=changefilesystem</action>
1524 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1525 <action function="set">tw_action_new_file_system=ext4</action>
1526 <action function="set">tw_has_action2=0</action>
1527 <action function="set">tw_text1=Change %tw_partition_name% to EXT4?</action>
1528 <action function="set">tw_text2=</action>
1529 <action function="set">tw_action_text1=Formatting...</action>
1530 <action function="set">tw_complete_text1=Format Complete</action>
1531 <action function="set">tw_slider_text=Swipe to Change</action>
1532 <action function="page">confirm_action</action>
1533 </actions>
1534 </object>
1535
1536 <object type="button">
1537 <condition var1="tw_partition_f2fs" op="=" var2="1" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001538 <placement x="%col4_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001539 <text>F2FS</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001540 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001541 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001542 <action function="set">tw_action=changefilesystem</action>
1543 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1544 <action function="set">tw_action_new_file_system=f2fs</action>
1545 <action function="set">tw_has_action2=0</action>
1546 <action function="set">tw_text1=Change %tw_partition_name% to F2FS?</action>
1547 <action function="set">tw_text2=</action>
1548 <action function="set">tw_action_text1=Formatting...</action>
1549 <action function="set">tw_complete_text1=Format Complete</action>
1550 <action function="set">tw_slider_text=Swipe to Change</action>
1551 <action function="page">confirm_action</action>
1552 </actions>
1553 </object>
1554
1555 <object type="button">
1556 <condition var1="tw_partition_vfat" op="=" var2="1" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001557 <placement x="%col2_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001558 <text>FAT</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001559 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001560 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001561 <action function="set">tw_action=changefilesystem</action>
1562 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1563 <action function="set">tw_action_new_file_system=vfat</action>
1564 <action function="set">tw_has_action2=0</action>
1565 <action function="set">tw_text1=Change %tw_partition_name% to FAT?</action>
1566 <action function="set">tw_text2=</action>
1567 <action function="set">tw_action_text1=Formatting...</action>
1568 <action function="set">tw_complete_text1=Format Complete</action>
1569 <action function="set">tw_slider_text=Swipe to Change</action>
1570 <action function="page">confirm_action</action>
1571 </actions>
1572 </object>
1573
1574 <object type="button">
1575 <condition var1="tw_partition_exfat" op="=" var2="1" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001576 <placement x="%col3_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001577 <text>exFAT</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001578 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001579 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001580 <action function="set">tw_action=changefilesystem</action>
1581 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1582 <action function="set">tw_action_new_file_system=exfat</action>
1583 <action function="set">tw_has_action2=0</action>
1584 <action function="set">tw_text1=Change %tw_partition_name% to exFAT?</action>
1585 <action function="set">tw_text2=</action>
1586 <action function="set">tw_action_text1=Formatting...</action>
1587 <action function="set">tw_complete_text1=Format Complete</action>
1588 <action function="set">tw_slider_text=Swipe to Change</action>
1589 <action function="page">confirm_action</action>
1590 </actions>
1591 </object>
1592
1593 <object type="action">
1594 <touch key="home" />
1595 <action function="page">main</action>
1596 </object>
1597
1598 <object type="action">
1599 <touch key="back" />
1600 <action function="page">partitionoptions</action>
1601 </object>
1602
1603 <object type="template" name="footer" />
1604 </page>
1605
1606 <page name="backup">
1607 <object type="template" name="header" />
1608
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001609 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001610 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1611 <text>Back Up Device</text>
1612 </object>
1613
1614 <object type="partitionlist">
Ethan Yonker780cd392014-07-21 15:24:39 -05001615 <placement x="%backup_list_x%" y="%backup_list_y%" w="%backup_list_width%" h="%backup_list_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001616 <text>Select Partitions to Back Up:</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001617 <data name="tw_backup_list" />
1618 <listtype name="backup" />
1619 </object>
1620
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001621 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001622 <placement x="%col_right_x%" y="%row2_text_y%" placement="1" />
1623 <text>Backup Name: %tw_backup_name%</text>
1624 </object>
1625
1626 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05001627 <placement x="%col3_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001628 <text>Refresh Sizes</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001629 <actions>
1630 <action function="refreshsizes"></action>
1631 <action function="page">backup</action>
1632 </actions>
1633 </object>
1634
1635 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05001636 <placement x="%col4_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001637 <text>Set Backup Name</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001638 <actions>
1639 <action function="set">tw_fileexists=0</action>
1640 <action function="page">backupname1</action>
1641 </actions>
1642 </object>
1643
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001644 <object type="button" style="fillbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -05001645 <placement x="%col3_x%" y="%backup_storage_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001646 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
1647 <actions>
1648 <action function="set">tw_back=backup</action>
1649 <action function="page">selectstorage</action>
1650 </actions>
1651 </object>
1652
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001653 <object type="button" style="fillbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -05001654 <conditions>
1655 <condition var1="tw_include_encrypted_backup" var2="1" />
1656 <condition var1="tw_encrypt_backup" var2="0" />
1657 </conditions>
Ethan Yonker780cd392014-07-21 15:24:39 -05001658 <placement x="%col3_x%" y="%backup_encrypt_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001659 <text>No Encryption</text>
1660 <actions>
1661 <action function="page">backupencryption</action>
1662 </actions>
1663 </object>
1664
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001665 <object type="button" style="fillbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -05001666 <conditions>
1667 <condition var1="tw_include_encrypted_backup" var2="1" />
1668 <condition var1="tw_encrypt_backup" var2="1" />
1669 </conditions>
Ethan Yonker780cd392014-07-21 15:24:39 -05001670 <placement x="%col3_x%" y="%backup_encrypt_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001671 <text>Using Encryption</text>
1672 <actions>
1673 <action function="page">backupencryption</action>
1674 </actions>
1675 </object>
1676
1677 <object type="checkbox">
1678 <placement x="%col3_x%" y="%nandcheck_row6%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001679 <text>Enable Compression (Requires more time)</text>
1680 <data variable="tw_use_compression" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001681 </object>
1682
1683 <object type="checkbox">
1684 <placement x="%col3_x%" y="%nandcheck_row7%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001685 <text>Skip MD5 generation on backups</text>
1686 <data variable="tw_skip_md5_generate" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001687 </object>
1688
bigbiffbf1d6722015-02-14 16:25:59 -05001689 <object type="checkbox">
1690 <placement x="%col3_x%" y="%nandcheck_row8%" />
1691 <font resource="font" color="%text_color%" />
1692 <text>Disable Free Space Check.</text>
1693 <data variable="tw_disable_free_space" />
1694 <image checked="checkbox_true" unchecked="checkbox_false" />
1695 </object>
1696
Ethan Yonker780cd392014-07-21 15:24:39 -05001697 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001698 <text>Swipe to Back Up</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001699 <actions>
1700 <action function="set">tw_operation_state=0</action>
1701 <action function="page">backup_run</action>
1702 </actions>
1703 </object>
1704
Ethan Yonker780cd392014-07-21 15:24:39 -05001705 <object type="action">
1706 <touch key="home" />
1707 <action function="page">main</action>
1708 </object>
1709
1710 <object type="action">
1711 <touch key="back" />
1712 <action function="page">main</action>
1713 </object>
1714
1715 <object type="template" name="footer" />
1716 </page>
1717
1718 <page name="backupname1">
1719 <object type="action">
1720 <condition var1="tw_backup_name" op="=" var2="(Auto Generate)" />
Matt Mower82931532015-02-27 14:19:59 -06001721 <action function="generatebackupname"></action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001722 </object>
1723
1724 <object type="action">
Matt Mower82931532015-02-27 14:19:59 -06001725 <action function="page">backupname2</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05001726 </object>
1727 </page>
1728
1729 <page name="backupname2">
1730 <object type="template" name="header" />
1731
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001732 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001733 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001734 <text>Please Enter a Backup Name</text>
1735 </object>
1736
1737 <object type="input">
1738 <placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001739 <text>%tw_backup_name%</text>
1740 <data name="tw_backup_name" />
1741 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]" />
1742 <actions>
1743 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1744 <action function="set">tw_existpage=backupname2</action>
1745 <action function="set">tw_notexistpage=backup</action>
1746 <action function="page">filecheck</action>
1747 </actions>
1748 </object>
1749
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001750 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001751 <condition var1="tw_fileexists" var2="1" />
1752 <placement x="%center_x%" y="%row5_text_y%" placement="5" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001753 <font resource="font" color="%text_fail_color%"/>
Ethan Yonker780cd392014-07-21 15:24:39 -05001754 <text>A backup with that name already exists!</text>
1755 </object>
1756
1757 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05001758 <placement x="%col2_x%" y="%cancel_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001759 <text>Append Date</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001760 <action function="appenddatetobackupname"></action>
1761 </object>
1762
1763 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05001764 <placement x="%col3_x%" y="%cancel_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001765 <text>Cancel / Clear</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001766 <actions>
1767 <action function="set">tw_backup_name=(Auto Generate)</action>
1768 <action function="page">backup</action>
1769 </actions>
1770 </object>
1771
1772 <object type="template" name="keyboardtemplate" />
1773
1774 <object type="action">
1775 <touch key="home" />
1776 <actions>
1777 <action function="set">tw_backup_name=(Auto Generate)</action>
1778 <action function="page">main</action>
1779 </actions>
1780 </object>
1781
1782 <object type="action">
1783 <touch key="back" />
1784 <actions>
1785 <action function="set">tw_backup_name=(Auto Generate)</action>
1786 <action function="page">backup</action>
1787 </actions>
1788 </object>
1789
1790 <object type="template" name="footer" />
1791 </page>
1792
1793 <page name="backupencryption">
1794 <object type="template" name="header" />
1795
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001796 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001797 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1798 <text>Encrypt your backup? Please enter a password:</text>
1799 </object>
1800
1801 <object type="input">
1802 <placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001803 <text>%tw_backup_encrypt_display%</text>
1804 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display" />
1805 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
1806 <action function="page">backupencryption2</action>
1807 </object>
1808
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001809 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001810 <condition var1="tw_password_not_match" var2="1" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001811 <font resource="font" color="%text_fail_color%"/>
Ethan Yonker780cd392014-07-21 15:24:39 -05001812 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
1813 <text>Passwords Do Not Match</text>
1814 </object>
1815
1816 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05001817 <placement x="%col_center_x%" y="%cancel_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001818 <text>Cancel</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001819 <actions>
1820 <action function="set">tw_encrypt_backup=0</action>
1821 <action function="set">tw_backup_password=</action>
1822 <action function="set">tw_backup_password2=</action>
1823 <action function="set">tw_backup_encrypt_display=</action>
1824 <action function="set">tw_backup_encrypt_display2=</action>
1825 <action function="page">backup</action>
1826 </actions>
1827 </object>
1828
1829 <object type="template" name="keyboardtemplate" />
1830
1831 <object type="action">
1832 <touch key="home" />
1833 <action function="page">main</action>
1834 </object>
1835
1836 <object type="action">
1837 <touch key="back" />
1838 <action function="page">backup</action>
1839 </object>
1840
1841 <object type="template" name="footer" />
1842 </page>
1843
1844 <page name="backupencryption2">
1845 <object type="template" name="header" />
1846
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001847 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001848 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1849 <text>Encrypt your backup? Please Enter Password Again:</text>
1850 </object>
1851
1852 <object type="input">
1853 <placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001854 <text>%tw_backup_encrypt_display2%</text>
1855 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2" />
1856 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
1857 <actions>
1858 <action function="page">checkbackuppassword</action>
1859 </actions>
1860 </object>
1861
1862 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05001863 <placement x="%col_center_x%" y="%cancel_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001864 <text>Cancel</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001865 <actions>
1866 <action function="set">tw_encrypt_backup=0</action>
1867 <action function="set">tw_backup_password=</action>
1868 <action function="set">tw_backup_password2=</action>
1869 <action function="set">tw_backup_encrypt_display=</action>
1870 <action function="set">tw_backup_encrypt_display2=</action>
1871 <action function="page">backup</action>
1872 </actions>
1873 </object>
1874
1875 <object type="template" name="keyboardtemplate" />
1876
1877 <object type="action">
1878 <touch key="home" />
1879 <action function="page">main</action>
1880 </object>
1881
1882 <object type="action">
1883 <touch key="back" />
1884 <action function="page">backup</action>
1885 </object>
1886
1887 <object type="template" name="footer" />
1888 </page>
1889
1890 <page name="checkbackuppassword">
1891 <object type="action">
1892 <condition var1="tw_backup_password2" var2="tw_backup_password" />
1893 <actions>
1894 <action function="set">tw_encrypt_backup=1</action>
1895 <action function="page">backup</action>
1896 </actions>
1897 </object>
1898
1899 <object type="action">
1900 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password" />
1901 <actions>
1902 <action function="set">tw_encrypt_backup=0</action>
1903 <action function="set">tw_password_not_match=1</action>
1904 <action function="set">tw_backup_password=</action>
1905 <action function="set">tw_backup_password2=</action>
1906 <action function="set">tw_backup_encrypt_display=</action>
1907 <action function="set">tw_backup_encrypt_display2=</action>
1908 <action function="page">backupencryption</action>
1909 </actions>
1910 </object>
1911 </page>
1912
1913 <page name="backup_run">
1914 <object type="template" name="header" />
1915
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001916 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001917 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1918 <text>%tw_operation% %tw_partition%</text>
1919 </object>
1920
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001921 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001922 <placement x="%col1_x%" y="%row2_text_y%" />
1923 <text>%tw_file_progress%</text>
1924 </object>
1925
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001926 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05001927 <placement x="%col_right_x%" y="%row2_text_y%" placement="1" />
1928 <text>%tw_size_progress%</text>
1929 </object>
1930
1931 <object type="template" name="action_page_console" />
1932
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001933 <object type="button" style="mediumbutton">
1934 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
bigbiff7abc5fe2015-01-17 16:53:12 -05001935 <text>Cancel</text>
bigbiff7abc5fe2015-01-17 16:53:12 -05001936 <actions>
1937 <action function="cancelbackup"></action>
1938 </actions>
1939 </object>
1940
Ethan Yonker780cd392014-07-21 15:24:39 -05001941 <object type="template" name="progress_bar" />
1942
1943 <object type="action">
1944 <action function="nandroid">backup</action>
1945 </object>
1946
1947 <object type="action">
1948 <condition var1="tw_operation_state" var2="1" />
bigbiff7abc5fe2015-01-17 16:53:12 -05001949 <condition var1="tw_cancel_backup" var2="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001950 <actions>
1951 <action function="set">tw_back=backup</action>
1952 <action function="set">tw_complete_text1=Backup Complete</action>
1953 <action function="set">tw_show_reboot=1</action>
1954 <action function="page">action_complete</action>
1955 </actions>
1956 </object>
1957
bigbiff7abc5fe2015-01-17 16:53:12 -05001958 <object type="action">
1959 <condition var1="tw_operation_state" var2="1" />
1960 <condition var1="tw_cancel_backup" var2="1" />
1961 <actions>
1962 <action function="set">tw_back=backup</action>
1963 <action function="set">tw_complete_text1=Backup Cancelled</action>
1964 <action function="set">tw_show_reboot=1</action>
1965 <action function="page">action_complete</action>
1966 </actions>
1967 </object>
1968
Ethan Yonker780cd392014-07-21 15:24:39 -05001969 <object type="template" name="footer" />
1970 </page>
1971
1972 <page name="restore">
1973 <object type="template" name="header" />
1974
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001975 <object type="button" style="fillbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -05001976 <placement x="%col2_x%" y="%zipstorage_text_y%" w="%fileselector_folderonly_width%" h="%button_fill_quarter_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001977 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
1978 <actions>
1979 <action function="set">tw_back=restore</action>
1980 <action function="page">selectstorage</action>
1981 </actions>
1982 </object>
1983
1984 <object type="fileselector">
Ethan Yonker780cd392014-07-21 15:24:39 -05001985 <placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05001986 <text>Select Package to Restore:</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05001987 <filter folders="1" files="0" nav="0" />
1988 <path name="tw_backups_folder" />
1989 <data name="tw_restore" default="" />
1990 <selection name="tw_restore_name" />
1991 </object>
1992
1993 <object type="template" name="sort_options" />
1994
1995 <object type="action">
1996 <condition var1="tw_restore" op="modified" />
1997 <actions>
1998 <action function="readBackup"></action>
1999 <action function="page">restore_read</action>
2000 </actions>
2001 </object>
2002
2003 <object type="action">
2004 <touch key="home" />
2005 <action function="page">main</action>
2006 </object>
2007
2008 <object type="action">
2009 <touch key="back" />
2010 <action function="page">main</action>
2011 </object>
2012
2013 <object type="template" name="footer" />
2014 </page>
2015
2016 <page name="restore_read">
2017 <object type="action">
2018 <condition var1="tw_restore_encrypted" var2="1" />
2019 <actions>
2020 <action function="set">tw_password_fail=0</action>
2021 <action function="page">restore_decrypt</action>
2022 </actions>
2023 </object>
2024
2025 <object type="action">
2026 <condition var1="tw_restore_encrypted" var2="0" />
2027 <actions>
2028 <action function="page">restore_select</action>
2029 </actions>
2030 </object>
2031 </page>
2032
2033 <page name="restore_decrypt">
2034 <object type="template" name="header" />
2035
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002036 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002037 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2038 <text>Backup encrypted. Please enter your password:</text>
2039 </object>
2040
2041 <object type="input">
2042 <placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002043 <text>%tw_restore_display%</text>
2044 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display" />
2045 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
2046 <actions>
2047 <action function="page">try_restore_decrypt</action>
2048 </actions>
2049 </object>
2050
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002051 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002052 <condition var1="tw_password_fail" var2="1" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002053 <font resource="font" color="%text_fail_color%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002054 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
2055 <text>Password Failed, Please Try Again</text>
2056 </object>
2057
2058 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002059 <placement x="%col2_x%" y="%cancel_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002060 <text>Cancel</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002061 <actions>
2062 <action function="set">tw_page_done=1</action>
2063 <action function="page">restore</action>
2064 </actions>
2065 </object>
2066
2067 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002068 <placement x="%col3_x%" y="%cancel_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002069 <text>Delete</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002070 <actions>
2071 <action function="set">tw_back=restore</action>
2072 <action function="set">tw_action=cmd</action>
Matt Mower82931532015-02-27 14:19:59 -06002073 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf &quot;%tw_restore_name%&quot;</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05002074 <action function="set">tw_text1=Delete Backup? %tw_restore_name%</action>
2075 <action function="set">tw_text2=This cannot be undone!</action>
2076 <action function="set">tw_action_text1=Deleting Backup...</action>
2077 <action function="set">tw_complete_text1=Backup Delete Complete</action>
2078 <action function="set">tw_slider_text=Swipe to Delete</action>
2079 <action function="page">confirm_action</action>
2080 </actions>
2081 </object>
2082
2083 <object type="template" name="keyboardtemplate" />
2084
2085 <object type="action">
2086 <touch key="home" />
2087 <action function="page">main</action>
2088 </object>
2089
2090 <object type="action">
2091 <touch key="back" />
2092 <action function="page">restore</action>
2093 </object>
2094
2095 <object type="template" name="footer" />
2096 </page>
2097
2098 <page name="try_restore_decrypt">
2099 <object type="template" name="header" />
2100
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002101 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002102 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2103 <text>Trying Decryption with Your Password</text>
2104 </object>
2105
2106 <object type="template" name="action_page_console" />
2107
2108 <object type="template" name="progress_bar" />
2109
2110 <object type="action">
2111 <action function="decrypt_backup"></action>
2112 </object>
2113
2114 <object type="action">
2115 <conditions>
2116 <condition var1="tw_operation_state" var2="1" />
2117 <condition var1="tw_operation_status" op="!=" var2="0" />
2118 </conditions>
2119 <actions>
2120 <action function="set">tw_password_fail=1</action>
2121 <action function="page">restore_decrypt</action>
2122 </actions>
2123 </object>
2124
2125 <object type="action">
2126 <conditions>
2127 <condition var1="tw_operation_state" var2="1" />
2128 <condition var1="tw_operation_status" op="=" var2="0" />
2129 </conditions>
2130 <actions>
2131 <action function="set">tw_page_done=1</action>
2132 <action function="page">restore_select</action>
2133 </actions>
2134 </object>
2135 </page>
2136
2137 <page name="restore_select">
2138 <object type="template" name="header" />
2139
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002140 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002141 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2142 <text>Package to Restore: %tw_restore_name%</text>
2143 </object>
2144
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002145 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002146 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
2147 <text>Package Date: %tw_restore_file_date%</text>
2148 </object>
2149
2150 <object type="partitionlist">
Ethan Yonker780cd392014-07-21 15:24:39 -05002151 <placement x="%backup_list_x%" y="%restore_list_y%" w="%backup_list_width%" h="%restore_list_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002152 <text>Select Partitions to Restore:</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002153 <data name="tw_restore_list" selectedlist="tw_restore_selected" />
2154 <listtype name="restore" />
2155 </object>
2156
2157 <object type="checkbox">
2158 <placement x="%col3_x%" y="%nandcheck_row6%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002159 <text>Enable MD5 checking of backup files</text>
2160 <data variable="tw_skip_md5_check" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002161 </object>
2162
2163 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002164 <placement x="%col4_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002165 <text>Rename Backup</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002166 <actions>
2167 <action function="set">tw_backup_rename=</action>
2168 <action function="set">tw_fileexists=0</action>
2169 <action function="page">renamebackup</action>
2170 </actions>
2171 </object>
2172
2173 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002174 <placement x="%col3_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002175 <text>Delete Backup</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002176 <actions>
2177 <action function="set">tw_back=restore</action>
2178 <action function="set">tw_action=cmd</action>
Matt Mower82931532015-02-27 14:19:59 -06002179 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf &quot;%tw_restore_name%&quot;</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05002180 <action function="set">tw_text1=Delete Backup? %tw_restore_name%</action>
2181 <action function="set">tw_text2=This cannot be undone!</action>
2182 <action function="set">tw_action_text1=Deleting Backup...</action>
2183 <action function="set">tw_complete_text1=Backup Delete Complete</action>
2184 <action function="set">tw_slider_text=Swipe to Delete</action>
2185 <action function="page">confirm_action</action>
2186 </actions>
2187 </object>
2188
2189 <object type="slider">
Ethan Yonker780cd392014-07-21 15:24:39 -05002190 <text>Swipe to Restore</text>
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002191 <action function="page">restore_run</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05002192 </object>
2193
2194 <object type="action">
2195 <touch key="home" />
2196 <action function="page">main</action>
2197 </object>
2198
2199 <object type="action">
2200 <touch key="back" />
2201 <action function="page">restore</action>
2202 </object>
2203
2204 <object type="template" name="footer" />
2205 </page>
2206
2207 <page name="renamebackup">
2208 <object type="template" name="header" />
2209
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002210 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002211 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002212 <text>Please Enter a New Backup Name</text>
2213 </object>
2214
2215 <object type="input">
2216 <placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002217 <text>%tw_backup_rename%</text>
2218 <data name="tw_backup_rename" />
2219 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]" />
2220 <actions>
2221 <action function="set">tw_back=restore</action>
2222 <action function="set">tw_action=cmd</action>
Matt Mower82931532015-02-27 14:19:59 -06002223 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; mv &quot;%tw_restore_name%&quot; &quot;%tw_backup_rename%&quot;</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05002224 <action function="set">tw_text1=Rename Backup?</action>
2225 <action function="set">tw_text2=This cannot be undone!</action>
2226 <action function="set">tw_action_text1=Renaming Backup...</action>
2227 <action function="set">tw_complete_text1=Backup Rename Complete</action>
2228 <action function="set">tw_slider_text=Swipe to Rename</action>
2229 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2230 <action function="set">tw_existpage=renamebackup</action>
2231 <action function="set">tw_notexistpage=confirm_action</action>
2232 <action function="page">filecheck</action>
2233 </actions>
2234 </object>
2235
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002236 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002237 <condition var1="tw_fileexists" var2="1" />
2238 <placement x="%center_x%" y="%row5_text_y%" placement="5" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002239 <font resource="font" color="%text_fail_color%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002240 <text>A backup with that name already exists!</text>
2241 </object>
2242
2243 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002244 <placement x="%col_center_x%" y="%cancel_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002245 <text>Cancel</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002246 <action function="page">restore_select</action>
2247 </object>
2248
2249 <object type="template" name="keyboardtemplate" />
2250
2251 <object type="action">
2252 <touch key="home" />
2253 <action function="page">main</action>
2254 </object>
2255
2256 <object type="action">
2257 <touch key="back" />
2258 <action function="page">restore_select</action>
2259 </object>
2260
2261 <object type="template" name="footer" />
2262 </page>
2263
2264 <page name="restore_run">
2265 <object type="template" name="header" />
2266
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002267 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002268 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2269 <text>%tw_operation% %tw_partition%</text>
2270 </object>
2271
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002272 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002273 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
2274 <text>%tw_size_progress%</text>
2275 </object>
2276
2277 <object type="template" name="action_page_console" />
2278
2279 <object type="template" name="progress_bar" />
2280
2281 <object type="action">
2282 <condition var1="tw_operation_state" var2="1" />
2283 <actions>
2284 <action function="set">tw_back=restore_select</action>
2285 <action function="set">tw_complete_text1=Restore Complete</action>
2286 <action function="set">tw_show_reboot=1</action>
2287 <action function="page">action_complete</action>
2288 </actions>
2289 </object>
2290
2291 <object type="action">
2292 <action function="nandroid">restore</action>
2293 </object>
2294 </page>
2295
2296 <page name="settings">
2297 <object type="template" name="header" />
2298
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002299 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002300 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2301 <text>Settings</text>
2302 </object>
2303
2304 <object type="checkbox">
2305 <placement x="%col1_x%" y="%row2_text_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002306 <text>Zip file signature verification?</text>
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002307 <data variable="tw_signed_zip_verify" />>
Ethan Yonker780cd392014-07-21 15:24:39 -05002308 </object>
2309
2310 <object type="checkbox">
2311 <placement x="%col1_x%" y="%row3_text_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002312 <text>Use rm -rf instead of formatting?</text>
2313 <data variable="tw_rm_rf" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002314 </object>
2315
2316 <object type="checkbox">
2317 <placement x="%col1_x%" y="%row4_text_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002318 <text>Skip MD5 generation on backups</text>
2319 <data variable="tw_skip_md5_generate" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002320 </object>
2321
2322 <object type="checkbox">
2323 <placement x="%col1_x%" y="%row5_text_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002324 <text>Enable MD5 checking of backup files</text>
2325 <data variable="tw_skip_md5_check" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002326 </object>
2327
2328 <object type="checkbox">
2329 <placement x="%col1_x%" y="%row6_text_y%" />
Captain Throwback5f4fd8c2014-10-10 10:36:09 -04002330 <text>Use 24-hour clock</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002331 <data variable="tw_military_time" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002332 </object>
2333
2334 <object type="checkbox">
2335 <placement x="%col1_x%" y="%row7_text_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002336 <text>Simulate most actions for theme testing</text>
2337 <data variable="tw_simulate_actions" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002338 </object>
2339
2340 <object type="checkbox">
2341 <condition var1="tw_simulate_actions" var2="1" />
2342 <placement x="%col1_x%" y="%row8_text_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002343 <text>Simulate failure for actions</text>
2344 <data variable="tw_simulate_fail" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002345 </object>
2346
2347 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002348 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002349 <text>Time Zone</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002350 <action function="page">timezone</action>
2351 </object>
2352
2353 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002354 <placement x="%col2_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002355 <text>Restore Defaults</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002356 <action function="restoredefaultsettings"></action>
2357 </object>
2358
2359 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002360 <placement x="%col3_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002361 <text>Vibration Duration</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002362 <action function="page">Vibrate</action>
2363 </object>
2364
2365 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002366 <placement x="%col4_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002367 <text>Screen</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002368 <action function="page">screen</action>
2369 </object>
2370
2371 <object type="action">
2372 <touch key="home" />
2373 <action function="page">main</action>
2374 </object>
2375
2376 <object type="action">
2377 <touch key="back" />
2378 <action function="page">main</action>
2379 </object>
2380
2381 <object type="template" name="footer" />
2382 </page>
2383
2384 <page name="timezone">
2385 <object type="template" name="header" />
2386
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002387 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002388 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2389 <text>Select Time Zone</text>
2390 </object>
2391
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002392 <object type="listbox" style="scrolllist">
Ethan Yonker780cd392014-07-21 15:24:39 -05002393 <placement x="%listbox_x%" y="%listbox_y%" w="%listbox_width%" h="%listbox_tz_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002394 <text>Select Time Zone:</text>
2395 <icon selected="radio_true" unselected="radio_false" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002396 <data name="tw_time_zone_guisel" />
2397 <listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
2398 <listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
2399 <listitem name="(UTC -9) Alaska">AST9;ADT</listitem>
that202e51b2015-03-24 21:07:59 +01002400 <listitem name="(UTC -8) Pacific Time">PST8;PDT,M3.2.0,M11.1.0</listitem>
2401 <listitem name="(UTC -7) Mountain Time">MST7;MDT,M3.2.0,M11.1.0</listitem>
2402 <listitem name="(UTC -6) Central Time">CST6;CDT,M3.2.0,M11.1.0</listitem>
2403 <listitem name="(UTC -5) Eastern Time">EST5;EDT,M3.2.0,M11.1.0</listitem>
Ethan Yonker780cd392014-07-21 15:24:39 -05002404 <listitem name="(UTC -4) Atlantic Time">AST4;ADT</listitem>
2405 <listitem name="(UTC -3) Brazil, Buenos Aires">GRNLNDST3;GRNLNDDT</listitem>
2406 <listitem name="(UTC -2) Mid-Atlantic">FALKST2;FALKDT</listitem>
2407 <listitem name="(UTC -1) Azores, Cape Verde">AZOREST1;AZOREDT</listitem>
that202e51b2015-03-24 21:07:59 +01002408 <listitem name="(UTC 0) London, Dublin, Lisbon">GMT0;BST,M3.5.0,M10.5.0</listitem>
2409 <listitem name="(UTC +1) Berlin, Brussels, Paris">CET-1;CEST,M3.5.0,M10.5.0</listitem>
2410 <listitem name="(UTC +2) Athens, Istanbul, South Africa">WET-2;WET,M3.5.0,M10.5.0</listitem>
Ethan Yonker780cd392014-07-21 15:24:39 -05002411 <listitem name="(UTC +3) Moscow, Baghdad">SAUST-3;SAUDT</listitem>
2412 <listitem name="(UTC +4) Abu Dhabi, Tbilisi, Muscat">WST-4;WDT</listitem>
2413 <listitem name="(UTC +5) Yekaterinburg, Islamabad">PAKST-5;PAKDT</listitem>
2414 <listitem name="(UTC +6) Almaty, Dhaka, Colombo">TASHST-6;TASHDT</listitem>
2415 <listitem name="(UTC +7) Bangkok, Hanoi, Jakarta">THAIST-7;THAIDT</listitem>
2416 <listitem name="(UTC +8) Beijing, Singapore, Hong Kong">TAIST-8;TAIDT</listitem>
2417 <listitem name="(UTC +9) Tokyo, Seoul, Yakutsk">JST-9;JSTDT</listitem>
2418 <listitem name="(UTC +10) Eastern Australia, Guam">EET-10;EETDT</listitem>
2419 <listitem name="(UTC +11) Vladivostok, Solomon Islands">MET-11;METDT</listitem>
2420 <listitem name="(UTC +12) Auckland, Wellington, Fiji">NZST-12;NZDT</listitem>
2421 </object>
2422
2423 <object type="checkbox">
2424 <placement x="%col1_medium_x%" y="%row11_text_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002425 <text>Do you use daylight savings time (DST)?</text>
2426 <data variable="tw_time_zone_guidst" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002427 </object>
2428
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002429 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002430 <placement x="%center_x%" y="%row13_text_y%" placement="5" />
2431 <text>Offset (usually 0): %tw_time_zone_guioffset%</text>
2432 </object>
2433
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002434 <object type="button" style="mediumbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -05002435 <placement x="%col1_medium_x%" y="%row_offsetmedium_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002436 <text>0</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002437 <action function="set">tw_time_zone_guioffset=0</action>
2438 </object>
2439
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002440 <object type="button" style="mediumbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -05002441 <placement x="%col2_medium_x%" y="%row_offsetmedium_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002442 <text>15</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002443 <action function="set">tw_time_zone_guioffset=15</action>
2444 </object>
2445
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002446 <object type="button" style="mediumbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -05002447 <placement x="%col3_medium_x%" y="%row_offsetmedium_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002448 <text>30</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002449 <action function="set">tw_time_zone_guioffset=30</action>
2450 </object>
2451
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002452 <object type="button" style="mediumbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -05002453 <placement x="%col4_medium_x%" y="%row_offsetmedium_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002454 <text>45</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002455 <action function="set">tw_time_zone_guioffset=45</action>
2456 </object>
2457
2458 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002459 <placement x="%col4_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002460 <text>Set Time Zone</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002461 <action function="setguitimezone"></action>
2462 </object>
2463
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002464 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002465 <placement x="%center_x%" y="%row17_text_y%" placement="5" />
2466 <text>Current Time Zone: %tw_time_zone%</text>
2467 </object>
2468
2469 <object type="action">
2470 <touch key="home" />
2471 <action function="page">main</action>
2472 </object>
2473
2474 <object type="action">
2475 <touch key="back" />
2476 <action function="page">settings</action>
2477 </object>
2478
2479 <object type="template" name="footer" />
2480 </page>
2481
2482 <page name="screen">
2483 <object type="template" name="header" />
2484
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002485 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002486 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2487 <text>Screen Settings</text>
2488 </object>
2489
2490 <object type="button">
2491 <placement x="%slidervalue_x%" y="%row3_text_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002492 <condition var1="tw_screen_timeout_secs" op="=" var2="0" />
2493 <condition var1="tw_no_screen_timeout" op="!=" var2="1" />
2494 <text>Enable screen timeout.</text>
2495 <image resource="checkbox_false" />
2496 <action function="set">tw_screen_timeout_secs=60</action>
2497 </object>
2498
2499 <object type="button">
2500 <placement x="%slidervalue_x%" y="%row3_text_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002501 <condition var1="tw_screen_timeout_secs" op="!=" var2="0" />
2502 <condition var1="tw_no_screen_timeout" op="!=" var2="1" />
2503 <text>Enable screen timeout.</text>
2504 <image resource="checkbox_true" />
2505 <action function="set">tw_screen_timeout_secs=0</action>
2506 </object>
2507
2508 <object type="slidervalue">
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002509 <conditions>
2510 <condition var1="tw_screen_timeout_secs" op="!=" var2="0" />
2511 <condition var1="tw_no_screen_timeout" op="!=" var2="1" />
2512 </conditions>
Ethan Yonker780cd392014-07-21 15:24:39 -05002513 <placement x="slidervalue_x" y="%row5_text_y%" w="%slidervalue_w%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002514 <text>Screen timeout in seconds:</text>
2515 <data variable="tw_screen_timeout_secs" min="15" max="300" />
2516 </object>
2517
2518 <object type="slidervalue">
2519 <condition var1="tw_has_brightnesss_file" var2="1" />
2520 <placement x="slidervalue_x" y="%row12_text_y%" w="%slidervalue_w%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002521 <text>Brightness: %tw_brightness_pct%%</text>
2522 <data variable="tw_brightness_pct" min="10" max="100" />
2523 <actions>
2524 <action function="set">tw_brightness=%tw_brightness_max%</action>
2525 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
2526 <action function="compute">tw_brightness/100</action>
xNUTxe85f02d2014-07-18 01:30:58 +02002527 <action function="setbrightness">%tw_brightness%</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05002528 </actions>
2529 </object>
2530
2531 <object type="action">
2532 <touch key="home" />
2533 <action function="page">main</action>
2534 </object>
2535
2536 <object type="action">
2537 <touch key="back" />
2538 <action function="page">settings</action>
2539 </object>
2540
2541 <object type="template" name="footer" />
2542 </page>
2543
2544 <page name="Vibrate">
2545 <object type="template" name="header" />
2546
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002547 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002548 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2549 <text>Vibration Settings :</text>
2550 </object>
2551
2552 <object type="slidervalue">
2553 <placement x="slidervalue_x" y="%row3_text_y%" w="%slidervalue_w%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002554 <text>Button Vibration:</text>
2555 <data variable="tw_button_vibrate" min="0" max="300" />
2556 <colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
2557 </object>
2558
2559 <object type="slidervalue">
2560 <placement x="slidervalue_x" y="%row7_text_y%" w="%slidervalue_w%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002561 <text>Keyboard Vibration:</text>
2562 <data variable="tw_keyboard_vibrate" min="0" max="300" />
2563 <colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
2564 </object>
2565
2566 <object type="slidervalue">
2567 <placement x="slidervalue_x" y="%row11_text_y%" w="%slidervalue_w%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002568 <text>Action Vibration:</text>
2569 <data variable="tw_action_vibrate" min="0" max="500" />
2570 <colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
2571 </object>
2572
2573 <object type="action">
2574 <touch key="home" />
2575 <action function="page">main</action>
2576 </object>
2577
2578 <object type="action">
2579 <touch key="back" />
2580 <action function="page">settings</action>
2581 </object>
2582
2583 <object type="template" name="footer" />
2584 </page>
2585
2586 <page name="advanced">
2587 <object type="template" name="header" />
2588
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002589 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002590 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2591 <text>Advanced</text>
2592 </object>
2593
2594 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002595 <placement x="%col1_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002596 <text>Copy Log to SD</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002597 <actions>
2598 <action function="set">tw_back=advanced</action>
2599 <action function="set">tw_action=copylog</action>
2600 <action function="set">tw_text1=Copy Log to SD Card?</action>
2601 <action function="set">tw_action_text1=Copying Log to SD Card...</action>
2602 <action function="set">tw_complete_text1=Log Copy Complete</action>
2603 <action function="set">tw_slider_text=Swipe to Confirm</action>
2604 <action function="page">confirm_action</action>
2605 </actions>
2606 </object>
2607
2608 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002609 <placement x="%col2_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002610 <text>Fix Permissions</text>
thata3d31fb2014-12-21 22:27:40 +01002611 <action function="page">fixperms</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05002612 </object>
2613
2614 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002615 <placement x="%col3_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002616 <text>Terminal Command</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002617 <action function="page">terminalfolder</action>
2618 </object>
2619
2620 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002621 <placement x="%col4_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002622 <text>ADB Sideload</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002623 <action function="page">sideload</action>
2624 </object>
2625
2626 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002627 <condition var1="tw_allow_partition_sdcard" var2="1" />
2628 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002629 <text>Partition SD Card</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002630 <action function="page">partsdcard</action>
2631 </object>
2632
2633 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002634 <placement x="%col2_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002635 <text>File Manager</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002636 <action function="page">filemanagerlist</action>
2637 </object>
2638
2639 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002640 <placement x="%col3_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002641 <text>Reload Theme</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002642 <action function="reload"></action>
2643 </object>
2644
2645 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002646 <condition var1="tw_show_dumlock" var2="1" />
2647 <placement x="%col4_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002648 <text>HTC Dumlock</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002649 <action function="page">htcdumlock</action>
2650 </object>
2651
2652 <object type="action">
2653 <touch key="home" />
2654 <action function="page">main</action>
2655 </object>
2656
2657 <object type="action">
2658 <touch key="back" />
2659 <action function="page">main</action>
2660 </object>
2661
2662 <object type="template" name="footer" />
2663 </page>
2664
2665 <page name="partsdcard">
2666 <object type="template" name="header" />
2667
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002668 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002669 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2670 <text>Partition SD Card</text>
2671 </object>
2672
2673 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002674 <placement x="%col1_sdext_x%" y="%row1_sdext_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002675 <text></text>
2676 <image resource="minus_button" />
2677 <action function="addsubtract">tw_sdext_size-128</action>
2678 </object>
2679
2680 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002681 <placement x="%col2_sdext_x%" y="%row1_sdext_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002682 <text></text>
2683 <image resource="plus_button" />
2684 <action function="addsubtract">tw_sdext_size+128</action>
2685 </object>
2686
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002687 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002688 <placement x="%center_x%" y="%row_extsize_y%" placement="5" />
2689 <text>EXT Size: %tw_sdext_size%</text>
2690 </object>
2691
2692 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002693 <placement x="%col1_sdext_x%" y="%row2_sdext_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002694 <text></text>
2695 <image resource="minus_button" />
2696 <action function="addsubtract">tw_swap_size-32</action>
2697 </object>
2698
2699 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002700 <placement x="%col2_sdext_x%" y="%row2_sdext_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002701 <text></text>
2702 <image resource="plus_button" />
2703 <action function="addsubtract">tw_swap_size+32</action>
2704 </object>
2705
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002706 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002707 <placement x="%center_x%" y="%row_swapsize_y%" placement="5" />
2708 <text>Swap Size: %tw_swap_size%</text>
2709 </object>
2710
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002711 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002712 <placement x="%center_x%" y="%row8_text_y%" placement="5" />
2713 <text>File system: %tw_sdpart_file_system%</text>
2714 </object>
2715
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002716 <object type="button" style="mediumbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -05002717 <placement x="%col2_medium_x%" y="%row4_medium_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002718 <text>EXT3</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002719 <action function="set">tw_sdpart_file_system=ext3</action>
2720 </object>
2721
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002722 <object type="button" style="mediumbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -05002723 <condition var1="tw_sdext_disable_ext4" var2="0" />
2724 <placement x="%col3_medium_x%" y="%row4_medium_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002725 <text>EXT4</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002726 <action function="set">tw_sdpart_file_system=ext4</action>
2727 </object>
2728
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002729 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002730 <placement x="%center_x%" y="%row12_text_y%" placement="5" />
2731 <text>You will lose all files on your SD card!</text>
2732 </object>
2733
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002734 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002735 <placement x="%center_x%" y="%row13_text_y%" placement="5" />
2736 <text>This action cannot be undone!</text>
2737 </object>
2738
2739 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002740 <text>Swipe to Confirm Partition</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002741 <actions>
2742 <action function="set">tw_back=partsdcard</action>
2743 <action function="set">tw_action=partitionsd</action>
2744 <action function="set">tw_has_action2=1</action>
2745 <action function="set">tw_action2=set</action>
2746 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
2747 <action function="set">tw_action_text1=Partitioning SD Card...</action>
2748 <action function="set">tw_action_text2=This will take a few minutes.</action>
2749 <action function="set">tw_complete_text1=Partitioning Complete</action>
2750 <action function="page">action_page</action>
2751 </actions>
2752 </object>
2753
Ethan Yonker780cd392014-07-21 15:24:39 -05002754 <object type="action">
2755 <touch key="home" />
2756 <action function="page">main</action>
2757 </object>
2758
2759 <object type="action">
2760 <touch key="back" />
2761 <action function="page">advanced</action>
2762 </object>
2763
2764 <object type="template" name="footer" />
2765 </page>
2766
2767
2768 <page name="htcdumlock">
2769 <object type="template" name="header" />
2770
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002771 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002772 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
2773 <text>HTC Dumlock</text>
2774 </object>
2775
2776 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002777 <placement x="%col1_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002778 <text>Restore Original Boot</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002779 <actions>
2780 <action function="set">tw_back=htcdumlock</action>
2781 <action function="set">tw_action=htcdumlockrestoreboot</action>
2782 <action function="set">tw_text1=Restore original boot image?</action>
2783 <action function="set">tw_action_text1=Restoring Original Boot...</action>
2784 <action function="set">tw_complete_text1=Restore Original Boot Complete</action>
2785 <action function="set">tw_slider_text=Swipe to Confirm</action>
2786 <action function="page">confirm_action</action>
2787 </actions>
2788 </object>
2789
2790 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002791 <placement x="%col2_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002792 <text>Reflash Recovery->Boot</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002793 <actions>
2794 <action function="set">tw_back=htcdumlock</action>
2795 <action function="set">tw_action=htcdumlockreflashrecovery</action>
2796 <action function="set">tw_text1=Reflash recovery to boot?</action>
2797 <action function="set">tw_action_text1=Flashing recovery to boot...</action>
2798 <action function="set">tw_complete_text1=Recovery Flash to Boot Complete</action>
2799 <action function="set">tw_slider_text=Swipe to Confirm</action>
2800 <action function="page">confirm_action</action>
2801 </actions>
2802 </object>
2803
2804 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002805 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002806 <text>Install HTC Dumlock</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002807 <actions>
2808 <action function="set">tw_back=htcdumlock</action>
2809 <action function="set">tw_action=installhtcdumlock</action>
2810 <action function="set">tw_text1=Install HTC dumlock files to ROM?</action>
2811 <action function="set">tw_action_text1=Installing HTC Dumlock...</action>
2812 <action function="set">tw_complete_text1=HTC Dumlock Install Complete</action>
2813 <action function="set">tw_slider_text=Swipe to Confirm</action>
2814 <action function="page">confirm_action</action>
2815 </actions>
2816 </object>
2817
2818 <object type="action">
2819 <touch key="home" />
2820 <action function="page">main</action>
2821 </object>
2822
2823 <object type="action">
2824 <touch key="back" />
2825 <action function="page">advanced</action>
2826 </object>
2827
2828 <object type="template" name="footer" />
2829 </page>
2830
2831 <page name="lock">
2832 <background color="#000000A0" />
2833
2834 <object type="image">
2835 <image resource="unlock-icon" />
Ethan Yonker591b9202015-03-11 11:17:15 -05002836 <placement x="%center_x%" y="%lock_y%" placement="4" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002837 </object>
2838
2839 <object type="slider">
Ethan Yonker780cd392014-07-21 15:24:39 -05002840 <text>Swipe to Unlock</text>
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002841 <action function="overlay"></action>
Ethan Yonker780cd392014-07-21 15:24:39 -05002842 </object>
2843 </page>
2844
2845
2846 <page name="filemanagerlist">
2847 <object type="template" name="header" />
2848
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002849 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002850 <placement x="%center_x%" y="%row1_text_y%" placement="5"/>
2851 <text>File Manager: Select a File or Folder</text>
2852 </object>
2853
2854 <object type="fileselector">
Ethan Yonker780cd392014-07-21 15:24:39 -05002855 <placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002856 <text>Folders:</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002857 <filter folders="1" files="0" />
2858 <path name="tw_file_location1" default="/sdcard" />
2859 <data name="select" />
2860 <selection name="tw_selection1" />
2861 </object>
2862
2863 <object type="fileselector">
Ethan Yonker780cd392014-07-21 15:24:39 -05002864 <placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002865 <text>%tw_file_location1%</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002866 <filter folders="0" files="1" />
2867 <path name="tw_file_location1" default="/" />
2868 <data name="tw_filename1" />
2869 <selection name="tw_selection1" />
2870 </object>
2871
2872 <object type="template" name="sort_options" />
2873
2874 <object type="action">
2875 <actions>
2876 <action function="set">tw_fm_type=File</action>
2877 <action function="set">tw_fm_isfolder=0</action>
2878 </actions>
2879 </object>
2880
2881 <object type="action">
2882 <touch key="home" />
2883 <action function="page">main</action>
2884 </object>
2885
2886 <object type="action">
2887 <touch key="back" />
2888 <action function="page">advanced</action>
2889 </object>
2890
2891 <object type="action">
2892 <condition var1="tw_filename1" op="modified" />
2893 <actions>
2894 <action function="page">filemanageroptions</action>
2895 </actions>
2896 </object>
2897
2898 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002899 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002900 <text>Select Folder</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002901 <actions>
2902 <action function="set">tw_filename1=tw_file_location1</action>
2903 <action function="set">tw_fm_isfolder=1</action>
2904 <action function="set">tw_fm_type=Folder</action>
2905 <action function="page">filemanageroptions</action>
2906 </actions>
2907 </object>
2908
2909 <object type="template" name="footer" />
2910 </page>
2911
2912 <page name="filemanageroptions">
2913 <object type="template" name="header" />
2914
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002915 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002916 <placement x="%center_x%" y="%row1_text_y%" placement="5"/>
2917 <text>%tw_fm_type% Selected:</text>
2918 </object>
2919
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002920 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05002921 <placement x="%center_x%" y="%row2_text_y%" placement="5"/>
2922 <text>%tw_filename1%</text>
2923 </object>
2924
2925 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002926 <condition var1="tw_fm_isfolder" var2="0" />
2927 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002928 <text>Copy File</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002929 <actions>
2930 <action function="set">tw_filemanager_command=cp</action>
2931 <action function="set">tw_fm_text1=Copying</action>
2932 <action function="page">choosedestinationfolder</action>
2933 </actions>
2934 </object>
2935
2936 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002937 <condition var1="tw_fm_isfolder" var2="1" />
2938 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002939 <text>Copy Folder</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002940 <actions>
Matt Mower82931532015-02-27 14:19:59 -06002941 <action function="set">tw_filemanager_command=cd &quot;%tw_file_location1%&quot; &amp;&amp; cd .. &amp;&amp; cp -R</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05002942 <action function="set">tw_fm_text1=Copying</action>
2943 <action function="page">choosedestinationfolder</action>
2944 </actions>
2945 </object>
2946
2947 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002948 <placement x="%col2_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002949 <text>Move</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002950 <actions>
2951 <action function="set">tw_filemanager_command=mv</action>
2952 <action function="set">tw_fm_text1=Moving</action>
2953 <action function="page">choosedestinationfolder</action>
2954 </actions>
2955 </object>
2956
2957 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002958 <placement x="%col3_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002959 <text>chmod 755</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002960 <actions>
2961 <action function="set">tw_filemanager_command=chmod 755</action>
2962 <action function="set">tw_fm_text1=chmod 755</action>
2963 <action function="set">tw_fm_text2=</action>
2964 <action function="set">tw_fm_text3=</action>
2965 <action function="set">tw_include_text3=0</action>
2966 <action function="set">tw_back=filemanageroptions</action>
2967 <action function="page">filemanagerconfirm</action>
2968 </actions>
2969 </object>
2970
2971 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002972 <placement x="%col4_x%" y="%row2_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002973 <text>chmod</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002974 <actions>
2975 <action function="set">tw_filemanager_rename=0000</action>
2976 <action function="set">tw_fm_text2=</action>
2977 <action function="set">tw_fm_text3=</action>
2978 <action function="set">tw_include_text3=0</action>
2979 <action function="set">tw_back=filemanageroptions</action>
2980 <action function="page">filemanagerchmod</action>
2981 </actions>
2982 </object>
2983
2984 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002985 <placement x="%col1_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05002986 <text>Delete</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05002987 <actions>
2988 <action function="set">tw_filemanager_command=rm -rf</action>
2989 <action function="set">tw_fm_text1=Deleting</action>
2990 <action function="set">tw_fm_text2=</action>
2991 <action function="set">tw_fm_text3=</action>
2992 <action function="set">tw_include_text3=0</action>
2993 <action function="set">tw_back=filemanageroptions</action>
2994 <action function="page">filemanagerconfirm</action>
2995 </actions>
2996 </object>
2997
2998 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05002999 <condition var1="tw_fm_isfolder" var2="0" />
3000 <placement x="%col4_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003001 <text>Rename File</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003002 <actions>
3003 <action function="set">tw_filemanager_rename=tw_selection1</action>
3004 <action function="set">tw_fm_text1=Renaming</action>
3005 <action function="set">tw_filemanager_command=mv</action>
3006 <action function="page">filemanagerrenamefile</action>
3007 </actions>
3008 </object>
3009
3010 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05003011 <condition var1="tw_fm_isfolder" var2="1" />
3012 <placement x="%col4_x%" y="%row1_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003013 <text>Rename Folder</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003014 <actions>
3015 <action function="set">tw_filemanager_rename=tw_selection1</action>
3016 <action function="set">tw_fm_text1=Renaming</action>
Matt Mower82931532015-02-27 14:19:59 -06003017 <action function="set">tw_filemanager_command=cd &quot;%tw_file_location1%&quot; &amp;&amp; cd .. &amp;&amp; mv</action>
Ethan Yonker780cd392014-07-21 15:24:39 -05003018 <action function="page">filemanagerrenamefolder</action>
3019 </actions>
3020 </object>
3021
3022 <object type="action">
3023 <touch key="home" />
3024 <action function="page">main</action>
3025 </object>
3026
3027 <object type="action">
3028 <touch key="back" />
3029 <action function="page">filemanagerlist</action>
3030 </object>
3031
3032 <object type="template" name="footer" />
3033 </page>
3034
3035 <page name="choosedestinationfolder">
3036 <object type="template" name="header" />
3037
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003038 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003039 <placement x="%center_x%" y="%row1_text_y%" placement="5"/>
Matt Mower82931532015-02-27 14:19:59 -06003040 <text>Browse to Destination Folder &amp; Press Select</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003041 </object>
3042
3043 <object type="fileselector">
Ethan Yonker780cd392014-07-21 15:24:39 -05003044 <placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003045 <text>%tw_file_location2%</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003046 <background color="%fileselector_background%" />
3047 <filter folders="1" files="0" />
3048 <path name="tw_file_location2" default="/sdcard" />
3049 <data name="tw_filename2" />
3050 </object>
3051
3052 <object type="template" name="sort_options" />
3053
3054 <object type="action">
3055 <touch key="home" />
3056 <action function="page">main</action>
3057 </object>
3058
3059 <object type="action">
3060 <touch key="back" />
3061 <action function="page">filemanageroptions</action>
3062 </object>
3063
3064 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05003065 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003066 <text>Select Folder</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003067 <actions>
3068 <action function="set">tw_fm_text2=to</action>
3069 <action function="set">tw_fm_text3=%tw_file_location2%</action>
3070 <action function="set">tw_include_text3=1</action>
3071 <action function="set">tw_back=filemanageroptions</action>
3072 <action function="page">filemanagerconfirm</action>
3073 </actions>
3074 </object>
3075
3076 <object type="template" name="footer" />
3077 </page>
3078
3079 <page name="filemanagerrenamefile">
3080 <object type="template" name="header" />
3081
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003082 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003083 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003084 <font resource="font" color="%text_color%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003085 <text>Please Enter a New %tw_fm_type% Name</text>
3086 </object>
3087
3088 <object type="input">
3089 <placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003090 <text>%tw_filemanager_rename%</text>
3091 <data name="tw_filemanager_rename" />
3092 <restrict minlen="1" maxlen="128" />
3093 <actions>
3094 <action function="set">tw_fm_text2=to</action>
3095 <action function="set">tw_fm_text3=&quot;%tw_file_location1%/%tw_filemanager_rename%&quot;</action>
3096 <action function="set">tw_include_text3=1</action>
3097 <action function="set">tw_back=filemanageroptions</action>
3098 <action function="page">filemanagerconfirm</action>
3099 </actions>
3100 </object>
3101
3102 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05003103 <placement x="%col_center_x%" y="%cancel_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003104 <text>Cancel</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003105 <action function="page">filemanageroptions</action>
3106 </object>
3107
3108 <object type="template" name="keyboardtemplate" />
3109
3110 <object type="action">
3111 <touch key="home" />
3112 <action function="page">main</action>
3113 </object>
3114
3115 <object type="action">
3116 <touch key="back" />
3117 <action function="page">filemanageroptions</action>
3118 </object>
3119
3120 <object type="template" name="footer" />
3121 </page>
3122
3123 <page name="filemanagerrenamefolder">
3124 <object type="template" name="header" />
3125
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003126 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003127 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003128 <text>Please Enter a New %tw_fm_type% Name</text>
3129 </object>
3130
3131 <object type="input">
3132 <placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003133 <text>%tw_filemanager_rename%</text>
3134 <data name="tw_filemanager_rename" />
3135 <restrict minlen="1" maxlen="128" />
3136 <actions>
3137 <action function="set">tw_fm_text2=to</action>
3138 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
3139 <action function="set">tw_include_text3=1</action>
3140 <action function="set">tw_back=filemanageroptions</action>
3141 <action function="page">filemanagerconfirm</action>
3142 </actions>
3143 </object>
3144
3145 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05003146 <placement x="%col_center_x%" y="%cancel_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003147 <text>Cancel</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003148 <action function="page">filemanageroptions</action>
3149 </object>
3150
3151 <object type="template" name="keyboardtemplate" />
3152
3153 <object type="action">
3154 <touch key="home" />
3155 <action function="page">main</action>
3156 </object>
3157
3158 <object type="action">
3159 <touch key="back" />
3160 <action function="page">filemanageroptions</action>
3161 </object>
3162
3163 <object type="template" name="footer" />
3164 </page>
3165
3166 <page name="filemanagerchmod">
3167 <object type="template" name="header" />
3168
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003169 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003170 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003171 <text>Please Enter New Permissions</text>
3172 </object>
3173
3174 <object type="input">
3175 <placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003176 <text>%tw_filemanager_rename%</text>
3177 <data name="tw_filemanager_rename" />
3178 <restrict minlen="3" maxlen="4" allow="0123456789" />
3179 <actions>
3180 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
3181 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
3182 <action function="set">tw_back=filemanageroptions</action>
3183 <action function="page">filemanagerconfirm</action>
3184 </actions>
3185 </object>
3186
3187 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05003188 <placement x="%col_center_x%" y="%cancel_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003189 <text>Cancel</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003190 <action function="page">filemanageroptions</action>
3191 </object>
3192
3193 <object type="template" name="keyboardtemplate" />
3194
3195 <object type="action">
3196 <touch key="home" />
3197 <action function="page">main</action>
3198 </object>
3199
3200 <object type="action">
3201 <touch key="back" />
3202 <action function="page">filemanageroptions</action>
3203 </object>
3204
3205 <object type="template" name="footer" />
3206 </page>
3207
3208 <page name="filemanagerconfirm">
3209 <object type="template" name="header" />
3210
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003211 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003212 <placement x="%center_x%" y="%row1_text_y%" placement="5"/>
3213 <text>%tw_fm_text1%</text>
3214 </object>
3215
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003216 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003217 <placement x="%center_x%" y="%row2_text_y%" placement="5"/>
3218 <text>%tw_filename1%</text>
3219 </object>
3220
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003221 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003222 <placement x="%center_x%" y="%row3_text_y%" placement="5"/>
3223 <text>%tw_fm_text2%</text>
3224 </object>
3225
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003226 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003227 <placement x="%center_x%" y="%row4_text_y%" placement="5"/>
3228 <text>%tw_fm_text3%</text>
3229 </object>
3230
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003231 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003232 <placement x="%center_x%" y="%row10_text_y%" placement="5"/>
3233 <text>Press back button to cancel.</text>
3234 </object>
3235
3236 <object type="slider">
Ethan Yonker780cd392014-07-21 15:24:39 -05003237 <action function="page">filemanageracction</action>
3238 </object>
3239
Ethan Yonker780cd392014-07-21 15:24:39 -05003240 <object type="action">
3241 <touch key="back" />
3242 <action function="page">%tw_back%</action>
3243 </object>
3244
3245 <object type="action">
3246 <touch key="home" />
3247 <action function="page">main</action>
3248 </object>
3249
3250 <object type="template" name="footer" />
3251 </page>
3252
3253 <page name="filemanageracction">
3254 <object type="template" name="header" />
3255
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003256 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003257 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
3258 <text>%tw_fm_text1%</text>
3259 </object>
3260
3261 <object type="template" name="action_page_console" />
3262
3263 <object type="template" name="progress_bar" />
3264
3265 <object type="action">
3266 <conditions>
3267 <condition var1="tw_operation_state" var2="1" />
3268 <condition var1="tw_operation_status" var2="0" />
3269 </conditions>
3270 <actions>
3271 <action function="set">tw_back=filemanagerlist</action>
3272 <action function="set">tw_complete_text1=File Operation Complete</action>
3273 <action function="page">action_complete</action>
3274 </actions>
3275 </object>
3276
3277 <object type="action">
3278 <conditions>
3279 <condition var1="tw_operation_state" var2="1" />
3280 <condition var1="tw_operation_status" op="!=" var2="0" />
3281 </conditions>
3282 <actions>
3283 <action function="set">tw_complete_text1=File Operation Complete</action>
3284 <action function="page">action_complete</action>
3285 </actions>
3286 </object>
3287
3288 <object type="action">
3289 <condition var1="tw_include_text3" var2="0" />
3290 <actions>
3291 <action function="cmd">%tw_filemanager_command% &quot;%tw_filename1%&quot;</action>
3292 </actions>
3293 </object>
3294
3295 <object type="action">
3296 <condition var1="tw_include_text3" var2="1" />
3297 <actions>
3298 <action function="cmd">%tw_filemanager_command% &quot;%tw_filename1%&quot; &quot;%tw_fm_text3%&quot;</action>
3299 </actions>
3300 </object>
3301 </page>
3302
3303 <page name="decrypt">
3304 <object type="template" name="header" />
3305
Vojtech Bocek7e11ac52015-03-05 23:21:49 +01003306 <object type="action">
3307 <condition var1="tw_crypto_pwtype" var2="2" />
3308 <action function="page">decrypt_pattern</action>
3309 </object>
3310
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003311 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003312 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
3313 <text>Please Enter Your Password</text>
3314 </object>
3315
3316 <object type="input">
3317 <placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003318 <text>%tw_crypto_display%</text>
3319 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display" />
3320 <restrict minlen="1" maxlen="254" />
3321 <actions>
3322 <action function="page">trydecrypt</action>
3323 </actions>
3324 </object>
3325
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003326 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003327 <condition var1="tw_password_fail" var2="1" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003328 <font resource="font" color="%text_fail_color%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003329 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
3330 <text>Password Failed, Please Try Again</text>
3331 </object>
3332
3333 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05003334 <placement x="%col_center_x%" y="%cancel_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003335 <text>Cancel</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003336 <actions>
3337 <action function="set">tw_page_done=1</action>
3338 <action function="page">main</action>
3339 </actions>
3340 </object>
3341
3342 <object type="template" name="keyboardtemplate" />
3343
3344 <object type="template" name="footer" />
3345 </page>
3346
Vojtech Bocek7e11ac52015-03-05 23:21:49 +01003347 <page name="decrypt_pattern">
3348 <object type="template" name="header" />
3349
3350 <object type="text">
3351 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
3352 <text>Please Enter Your Pattern</text>
3353 </object>
3354
3355 <object type="text">
3356 <condition var1="tw_password_fail" var2="1" />
3357 <font resource="font" color="%text_fail_color%" />
3358 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
3359 <text>Pattern Failed, Please Try Again</text>
3360 </object>
3361
3362 <object type="patternpassword">
3363 <placement x="%pattern_x%" y="%pattern_y%" w="%pattern_width%" h="%pattern_width%" />
3364 <dot color="%pattern_dot_color%" activecolor="%pattern_dot_color_active%" radius="%pattern_dot_radius%" />
3365 <line color="%pattern_line_color%" width="%pattern_line_width%" />
3366 <data name="tw_crypto_password"/>
3367 <action function="page">trydecrypt</action>
3368 </object>
3369
3370 <object type="button">
3371 <placement x="%col4_x%" y="%cancel_button_y%" />
3372 <text>Cancel</text>
3373 <actions>
3374 <action function="set">tw_page_done=1</action>
3375 <action function="page">main</action>
3376 </actions>
3377 </object>
3378
3379 <object type="template" name="footer" />
3380 </page>
3381
Ethan Yonker780cd392014-07-21 15:24:39 -05003382 <page name="trydecrypt">
3383 <object type="template" name="header" />
3384
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003385 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003386 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
3387 <text>Trying Decryption with Your Password</text>
3388 </object>
3389
3390 <object type="template" name="action_page_console" />
3391
3392 <object type="template" name="progress_bar" />
3393
3394 <object type="action">
3395 <action function="decrypt"></action>
3396 </object>
3397
3398 <object type="action">
3399 <conditions>
3400 <condition var1="tw_operation_state" var2="1" />
3401 <condition var1="tw_operation_status" op="!=" var2="0" />
3402 </conditions>
3403 <actions>
3404 <action function="set">tw_password_fail=1</action>
3405 <action function="page">decrypt</action>
3406 </actions>
3407 </object>
3408
3409 <object type="action">
3410 <conditions>
3411 <condition var1="tw_operation_state" var2="1" />
3412 <condition var1="tw_operation_status" op="=" var2="0" />
3413 </conditions>
3414 <actions>
3415 <action function="set">tw_page_done=1</action>
3416 <action function="page">main</action>
3417 </actions>
3418 </object>
3419 </page>
3420
3421 <page name="terminalfolder">
3422 <object type="template" name="header" />
3423
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003424 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003425 <placement x="%center_x%" y="%row1_text_y%" placement="5"/>
3426 <text>Browse to Starting Folder</text>
3427 </object>
3428
3429 <object type="fileselector">
Ethan Yonker780cd392014-07-21 15:24:39 -05003430 <placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003431 <text>%tw_terminal_location%</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003432 <filter folders="1" files="0" />
3433 <path name="tw_terminal_location" default="/" />
3434 <data name="tw_terminal" />
3435 <selection name="tw_terminal_selection" />
3436 </object>
3437
3438 <object type="template" name="sort_options" />
3439
3440 <object type="action">
3441 <touch key="home" />
3442 <action function="page">main</action>
3443 </object>
3444
3445 <object type="action">
3446 <touch key="back" />
3447 <action function="page">advanced</action>
3448 </object>
3449
3450 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05003451 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003452 <text>Select Folder</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003453 <actions>
3454 <action function="page">terminalcommand</action>
3455 </actions>
3456 </object>
3457
3458 <object type="template" name="footer" />
3459 </page>
3460
3461 <page name="terminalcommand">
3462 <background color="#000000FF" />
3463
3464 <object type="console">
3465 <placement x="%console_x%" y="%terminal_console_y%" w="%console_width%" h="%terminal_console_height%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003466 </object>
3467
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003468 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003469 <placement x="%input_x%" y="%terminal_text_y%" placement="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003470 <text>Starting Path: %tw_terminal_location%</text>
3471 </object>
3472
3473 <object type="input">
3474 <condition var1="tw_terminal_state" var2="0" />
3475 <placement x="%input_x%" y="%terminal_text_y%" w="%terminal_input_width%" h="%input_height%" placement="0" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003476 <text>%tw_terminal_command%</text>
Matt Mower5aa29ab2015-02-25 23:50:55 -06003477 <font resource="fixed" color="%text_color%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003478 <data name="tw_terminal_command" />
3479 <restrict minlen="1" />
3480 <action function="terminalcommand">%tw_terminal_command%</action>
3481 </object>
3482
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003483 <object type="button" style="mediumbutton">
Ethan Yonker780cd392014-07-21 15:24:39 -05003484 <condition var1="tw_terminal_state" var2="1" />
3485 <placement x="%filemanager_select_x%" y="%terminal_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003486 <text>KILL</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003487 <action function="killterminal"></action>
3488 </object>
3489
3490 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05003491 <placement x="%home_button_x%" y="%terminal_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003492 <text></text>
3493 <image resource="home_icon" />
3494 <condition var1="tw_busy" var2="0" />
3495 <action function="key">home</action>
3496 </object>
3497
3498 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05003499 <placement x="%back_button_x%" y="%terminal_button_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003500 <text></text>
3501 <image resource="back_icon" />
3502 <condition var1="tw_busy" var2="0" />
3503 <action function="key">back</action>
3504 </object>
3505
3506 <object type="action">
3507 <touch key="power" />
3508 <action function="overlay">lock</action>
3509 </object>
3510
3511 <object type="action">
3512 <touch key="power+voldown" />
3513 <action function="screenshot" />
3514 </object>
3515
3516 <object type="template" name="keyboardtemplate" />
3517
3518 <object type="action">
3519 <touch key="home" />
3520 <action function="page">main</action>
3521 </object>
3522
3523 <object type="action">
3524 <touch key="back" />
3525 <action function="page">terminalfolder</action>
3526 </object>
3527 </page>
3528
3529 <page name="sideload">
3530 <object type="template" name="header" />
3531
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003532 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003533 <placement x="%center_x%" y="%row1_text_y%" placement="5"/>
3534 <text>ADB Sideload</text>
3535 </object>
3536
3537 <object type="checkbox">
3538 <placement x="%col1_x%" y="%row3_text_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003539 <text>Wipe Dalvik Cache.</text>
3540 <data variable="tw_wipe_dalvik" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003541 </object>
3542
3543 <object type="checkbox">
3544 <placement x="%col1_x%" y="%row4_text_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003545 <text>Wipe Cache.</text>
3546 <data variable="tw_wipe_cache" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003547 </object>
3548
3549 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003550 <text>Swipe to Start Sideload</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003551 <actions>
3552 <action function="set">tw_back=advanced</action>
3553 <action function="set">tw_action=adbsideload</action>
3554 <action function="set">tw_action_text1=ADB Sideload</action>
3555 <action function="set">tw_action_text2=Usage: adb sideload filename.zip</action>
3556 <action function="set">tw_complete_text1=ADB Sideload Complete</action>
3557 <action function="set">tw_has_cancel=1</action>
3558 <action function="set">tw_show_reboot=1</action>
3559 <action function="set">tw_cancel_action=adbsideloadcancel</action>
3560 <action function="page">action_page</action>
3561 </actions>
3562 </object>
3563
Ethan Yonker780cd392014-07-21 15:24:39 -05003564 <object type="action">
3565 <touch key="home" />
3566 <action function="page">main</action>
3567 </object>
3568
3569 <object type="action">
3570 <touch key="back" />
3571 <action function="page">advanced</action>
3572 </object>
3573
3574 <object type="template" name="footer" />
3575 </page>
3576
thata3d31fb2014-12-21 22:27:40 +01003577 <page name="fixperms">
3578 <object type="template" name="header" />
3579
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003580 <object type="text">
thata3d31fb2014-12-21 22:27:40 +01003581 <placement x="%center_x%" y="%row1_text_y%" placement="5"/>
3582 <text>Fix Permissions</text>
3583 </object>
3584
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003585 <object type="text">
thata3d31fb2014-12-21 22:27:40 +01003586 <placement x="%col2_x%" y="%row2_text_y%" />
3587 <text>Note: Fixing permissions is rarely needed.</text>
3588 </object>
3589
3590 <object type="checkbox">
3591 <placement x="%col2_x%" y="%row3_text_y%" />
thata3d31fb2014-12-21 22:27:40 +01003592 <text>Also fix SELinux contexts</text>
3593 <data variable="tw_fixperms_restorecon" />
thata3d31fb2014-12-21 22:27:40 +01003594 </object>
3595
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003596 <object type="text">
thata3d31fb2014-12-21 22:27:40 +01003597 <placement x="%col2_x%" y="%row4_text_y%" />
3598 <text>Fixing SELinux contexts may cause your device to not boot properly.</text>
3599 </object>
3600
3601 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003602 <text>Swipe to Fix Permissions</text>
thata3d31fb2014-12-21 22:27:40 +01003603 <actions>
3604 <action function="set">tw_back=advanced</action>
3605 <action function="set">tw_action=fixpermissions</action>
3606 <action function="set">tw_action_text1=Fixing Permissions...</action>
3607 <action function="set">tw_complete_text1=Fix Permissions Complete</action>
3608 <action function="set">tw_slider_text=Swipe to Confirm</action>
3609 <action function="set">tw_show_reboot=1</action>
3610 <action function="page">action_page</action>
3611 </actions>
3612 </object>
3613
thata3d31fb2014-12-21 22:27:40 +01003614 <object type="action">
3615 <touch key="home" />
3616 <action function="page">main</action>
3617 </object>
3618
3619 <object type="action">
3620 <touch key="back" />
3621 <action function="page">advanced</action>
3622 </object>
3623
3624 <object type="template" name="footer" />
3625 </page>
3626
Ethan Yonker780cd392014-07-21 15:24:39 -05003627 <page name="installsu">
3628 <object type="template" name="header" />
3629
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003630 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003631 <placement x="%center_x%" y="%row1_text_y%" placement="5"/>
3632 <text>Install SuperSU?</text>
3633 </object>
3634
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003635 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003636 <placement x="%center_x%" y="%row2_text_y%" placement="5"/>
3637 <text>Your device does not appear to be rooted.</text>
3638 </object>
3639
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003640 <object type="text">
Ethan Yonker780cd392014-07-21 15:24:39 -05003641 <placement x="%center_x%" y="%row3_text_y%" placement="5"/>
3642 <text>Install SuperSU now? This will root your device.</text>
3643 </object>
3644
3645 <object type="button">
Ethan Yonker780cd392014-07-21 15:24:39 -05003646 <placement x="%col_center_x%" y="%row2_medium_y%" />
Ethan Yonker780cd392014-07-21 15:24:39 -05003647 <text>Do Not Install</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003648 <action function="set">tw_page_done=1</action>
3649 </object>
3650
3651 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003652 <text>Swipe to Install</text>
Ethan Yonker780cd392014-07-21 15:24:39 -05003653 <actions>
3654 <action function="set">tw_action=installsu</action>
3655 <action function="set">tw_action_text1=Installing SuperSU</action>
3656 <action function="set">tw_action_text2=</action>
3657 <action function="page">singleaction_page</action>
3658 </actions>
3659 </object>
Ethan Yonker780cd392014-07-21 15:24:39 -05003660 </page>
Ethan Yonkereb32b1f2015-05-18 10:23:03 -05003661
3662 <page name="system_readonly">
3663 <object type="template" name="header" />
3664
3665 <object type="text">
3666 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
Ethan Yonker961d20e2015-06-29 14:00:03 -05003667 <text>Keep System Read Only?</text>
Ethan Yonkereb32b1f2015-05-18 10:23:03 -05003668 </object>
3669
3670 <object type="text">
3671 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
3672 <text>TWRP can leave your system partition unmodified to make it easier for you to take official updates.</text>
3673 </object>
3674
3675 <object type="text">
3676 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
3677 <text>TWRP will be unable to prevent the stock ROM from replacing TWRP and will not offer to root your device.</text>
3678 </object>
3679
3680 <object type="text">
3681 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
3682 <text>Installing zips or performing adb operations may still modify the system partition.</text>
3683 </object>
3684
3685 <object type="checkbox">
3686 <condition var1="tw_is_encrypted" var2="0" />
3687 <placement x="%col1_x%" y="%row5_text_y%" />
3688 <text>Never show this screen during boot again</text>
3689 <data variable="tw_never_show_system_ro_page" />
3690 </object>
3691
3692 <object type="button">
3693 <placement x="%col_center_x%" y="%row7_text_y%" />
3694 <text>Keep Read Only</text>
3695 <actions>
Ethan Yonkerd6966f42015-05-30 14:52:16 -05003696 <action function="mountsystemtoggle">1</action>
Ethan Yonkereb32b1f2015-05-18 10:23:03 -05003697 <action function="set">tw_page_done=1</action>
3698 <action function="page">%tw_back%</action>
3699 </actions>
3700 </object>
3701
3702 <object type="slider">
3703 <text>Swipe to Allow Modifications</text>
3704 <actions>
Ethan Yonkerd6966f42015-05-30 14:52:16 -05003705 <action function="mountsystemtoggle">0</action>
Ethan Yonkereb32b1f2015-05-18 10:23:03 -05003706 <action function="set">tw_page_done=1</action>
3707 <action function="page">%tw_back%</action>
3708 </actions>
3709 </object>
3710
3711 <object type="template" name="footer" />
3712 </page>
Ethan Yonker780cd392014-07-21 15:24:39 -05003713 </pages>
3714</recovery>