blob: 1d4e2907fc59f2191b8a6cf75dab3245209049ac [file] [log] [blame]
Ethan Yonkerd9b72002014-07-30 08:46:28 -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="fillbutton">
21 <style name="buttontext" />
22 <fill color="%button_fill_color%" />
23 </style>
24
25 <style name="rebootsystem">
26 <condition var1="tw_reboot_system" var2="1" />
27 <style name="button" />
28 <text>Reboot System</text>
29 <actions>
30 <action function="set">tw_back=main2</action>
31 <action function="set">tw_action=reboot</action>
32 <action function="set">tw_action_param=system</action>
33 <action function="set">tw_has_action2=0</action>
34 <action function="set">tw_text1=No OS Installed! Are you</action>
35 <action function="set">tw_text2=sure you wish to reboot?</action>
36 <action function="set">tw_text3=</action>
37 <action function="set">tw_text4=</action>
38 <action function="set">tw_action_text1=Rebooting...</action>
39 <action function="set">tw_action_text2=</action>
40 <action function="set">tw_complete_text1=Rebooting...</action>
41 <action function="set">tw_slider_text=Swipe to Reboot</action>
42 <action function="page">rebootcheck</action>
43 </actions>
44 </style>
45
46 <style name="scrolllist">
47 <highlight color="%fileselector_highlight_color%" />
48 <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
49 <fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
50 <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
51 <background color="%fileselector_background%" />
52 <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
53 </style>
54
55 <style name="fileselector">
56 <style name="scrolllist" />
57 <icon folder="folder_icon" file="file_icon" />
58 <sort name="tw_gui_sort_order" />
59 </style>
60
61 <style name="partitionlist">
62 <style name="scrolllist" />
63 <icon selected="checkbox_true" unselected="checkbox_false" />
64 </style>
65
66 <style name="text">
67 <font resource="font" color="%text_color%" />
68 </style>
69
70 <style name="checkbox">
71 <font resource="font" color="%text_color%" />
72 <image checked="checkbox_true" unchecked="checkbox_false" />
73 </style>
74
75 <style name="slider">
76 <text>Swipe to Confirm</text>
77 <font resource="font" color="%text_color%" />
78 <placement x="%slider_x%" y="%slider_y%" placement="5" />
79 <resource base="slider" used="slider-used" touch="slider-touch" />
80 </style>
81
82 <style name="console">
83 <color foreground="%console_foreground%" background="%console_background%" scroll="%console_scroll%" />
84 <font resource="fixed" />
85 </style>
86
87 <style name="input">
88 <background color="%input_background_color%" />
89 <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
90 <font resource="font" color="%text_color%" />
91 </style>
92
93 <style name="slidervalue">
94 <font resource="font" color="%text_color%" />
95 <colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
96 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%" />
97 </style>
98 </styles>
99
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500100 <pages>
101 <page name="main">
102 <object type="action">
103 <actions>
104 <action function="set">tw_clear_destination=main2</action>
105 <action function="page">clear_vars</action>
106 </actions>
107 </object>
108 </page>
109
110 <page name="main2">
111 <object type="template" name="twrpheader" />
112
113 <object type="template" name="header" />
114
115 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500116 <placement x="%col1_x%" y="%row1_home_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500117 <text>Install</text>
Ethan Yonker96af84a2015-01-05 14:58:36 -0600118 <action function="page">install_select</action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500119 </object>
120
121 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500122 <placement x="%col2_x%" y="%row1_home_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500123 <text>Wipe</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500124 <action function="page">wipe</action>
125 </object>
126
127 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500128 <placement x="%col1_x%" y="%row2_home_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500129 <text>Backup</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500130 <action function="page">backup</action>
131 </object>
132
133 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500134 <placement x="%col2_x%" y="%row2_home_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500135 <text>Restore</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500136 <action function="page">restore</action>
137 </object>
138
139 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500140 <placement x="%col1_x%" y="%row3_home_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500141 <text>Mount</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500142 <action function="page">mount</action>
143 </object>
144
145 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500146 <placement x="%col2_x%" y="%row3_home_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500147 <text>Settings</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500148 <action function="page">settings</action>
149 </object>
150
151
152 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500153 <placement x="%col1_x%" y="%row4_home_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500154 <text>Advanced</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500155 <action function="page">advanced</action>
156 </object>
157
158 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500159 <placement x="%col2_x%" y="%row4_home_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500160 <text>Reboot</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500161 <action function="page">reboot</action>
162 </object>
163
164 <object type="template" name="footer" />
165 </page>
166
Ethan Yonker96af84a2015-01-05 14:58:36 -0600167 <page name="install_select">
168 <object type="template" name="twrpheader" />
169
170 <object type="template" name="header" />
171
172 <object type="button">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600173 <placement x="%col1_x%" y="%row1_home_y%" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600174 <text>Install Zips</text>
Ethan Yonker96af84a2015-01-05 14:58:36 -0600175 <actions>
176 <action function="queueclear"></action>
177 <action function="page">install</action>
178 </actions>
179 </object>
180
181 <object type="button">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600182 <placement x="%col2_x%" y="%row1_home_y%" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600183 <text>Install Images</text>
Ethan Yonker96af84a2015-01-05 14:58:36 -0600184 <action function="page">install_image</action>
185 </object>
186
187 <object type="action">
188 <touch key="back" />
189 <action function="page">main</action>
190 </object>
191
192 <object type="action">
193 <touch key="home" />
194 <action function="page">main</action>
195 </object>
196
197 <object type="template" name="footer" />
198 </page>
199
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500200 <page name="install">
201 <object type="template" name="header" />
202
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600203 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500204 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
205 <text>Select Zip to Install</text>
206 </object>
207
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600208 <object type="button" style="fillbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500209 <placement x="%col1_x%" y="%row1_text_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500210 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
211 <actions>
212 <action function="set">tw_back=install</action>
213 <action function="page">selectstorage</action>
214 </actions>
215 </object>
216
217 <object type="fileselector">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500218 <placement x="%fileselector_x%" y="%fileselector_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500219 <text>%tw_zip_location%</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500220 <filter extn=".zip" folders="1" files="1" />
221 <path name="tw_zip_location" default="/sdcard" />
222 <data name="tw_filename" />
223 <selection name="tw_file" />
224 </object>
225
226 <object type="template" name="sort_options" />
227
228 <object type="action">
229 <condition var1="tw_filename" op="modified" />
230 <actions>
231 <action function="queuezip"></action>
232 <action function="page">flash_confirm</action>
233 </actions>
234 </object>
235
236 <object type="action">
237 <touch key="back" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600238 <action function="page">install_select</action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500239 </object>
240
241 <object type="action">
242 <touch key="home" />
243 <action function="page">main</action>
244 </object>
245
246 <object type="template" name="footer" />
247 </page>
248
249 <page name="flash_confirm">
250 <object type="template" name="header" />
251
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600252 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500253 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
254 <text>This operation may install incompatible</text>
255 </object>
256
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600257 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500258 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
259 <text>software and render your device unusable.</text>
260 </object>
261
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600262 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500263 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
264 <text>Folder and File:</text>
265 </object>
266
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600267 <object type="text">
268 <font resource="mediumfont" color="%text_color%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500269 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
270 <text>%tw_zip_location%</text>
271 </object>
272
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600273 <object type="text">
274 <font resource="mediumfont" color="%text_color%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500275 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
276 <text>%tw_file%</text>
277 </object>
278
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600279 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500280 <placement x="%center_x%" y="%row5_text_y%" placement="5" />
281 <text>Press back to cancel adding this zip.</text>
282 </object>
283
284 <object type="checkbox">
285 <placement x="%col1_x%" y="%row6_text_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500286 <text>Zip file signature verification.</text>
287 <data variable="tw_signed_zip_verify" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500288 </object>
289
290 <object type="checkbox">
291 <condition var1="tw_has_injecttwrp" var2="1" />
292 <placement x="%col1_x%" y="%row7_text_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500293 <text>Inject TWRP after install.</text>
294 <data variable="tw_inject_after_zip" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500295 </object>
296
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600297 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500298 <placement x="%center_x%" y="%row11_text_y%" placement="5" />
299 <text>File %tw_zip_queue_count% of max of 10</text>
300 </object>
301
302 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600303 <text>Swipe to Confirm Flash</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500304 <action function="flash">flash_zip</action>
305 </object>
306
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500307 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500308 <condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
309 <placement x="%col1_x%" y="%row_queue_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500310 <text>Add More Zips</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500311 <action function="page">install</action>
312 </object>
313
314 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500315 <placement x="%col2_x%" y="%row_queue_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500316 <text>Clear Zip Queue</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500317 <actions>
318 <action function="queueclear"></action>
319 <action function="page">install</action>
320 </actions>
321 </object>
322
323 <object type="action">
324 <touch key="back" />
325 <actions>
326 <action function="cancelzip"></action>
327 <action function="page">install</action>
328 </actions>
329 </object>
330
331 <object type="action">
332 <touch key="home" />
333 <action function="page">main</action>
334 </object>
335 </page>
336
337 <page name="flash_zip">
338 <object type="template" name="header" />
339
340 <object type="console">
341 <placement x="%console_x%" y="%row1_y%" w="%console_width%" h="%console_install_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500342 </object>
343
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600344 <object type="text">
345 <placement x="%center_x%" y="%row10_text_y%" placement="5" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500346 <text>Flashing file %tw_zip_index% of %tw_zip_queue_count%</text>
347 </object>
348
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600349 <object type="text">
350 <font resource="mediumfont" color="%text_color%"/>
351 <placement x="%center_x%" y="%row11_text_y%" placement="5" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500352 <text>%tw_filename%</text>
353 </object>
354
355 <object type="template" name="progress_bar" />
356
357 <object type="action">
358 <condition var1="tw_operation_state" var2="1" />
359 <action function="page">flash_done</action>
360 </object>
361 </page>
362
363 <page name="flash_done">
364 <object type="template" name="header" />
365
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600366 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500367 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
368 <text>Zip Install Complete</text>
369 </object>
370
371 <object type="console">
372 <placement x="%console_x%" y="%row1_y%" w="%console_width%" h="%console_installdone_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500373 </object>
374
375 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500376 <placement x="%col1_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500377 <text>Wipe cache/dalvik</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500378 <actions>
379 <action function="set">tw_back=flash_done</action>
380 <action function="set">tw_action=wipe</action>
381 <action function="set">tw_action_param=/cache</action>
382 <action function="set">tw_has_action2=1</action>
383 <action function="set">tw_action2=wipe</action>
384 <action function="set">tw_action2_param=dalvik</action>
385 <action function="set">tw_text1=Wipe Cache & Dalvik?</action>
386 <action function="set">tw_action_text1=Wiping Cache & Dalvik...</action>
387 <action function="set">tw_complete_text1=Cache & Dalvik Wipe Complete</action>
388 <action function="set">tw_slider_text=Swipe to Wipe</action>
389 <action function="page">confirm_action</action>
390 </actions>
391 </object>
392
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600393 <object type="button" style="rebootsystem">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500394 <placement x="%col2_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500395 </object>
396
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600397 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500398 <condition var1="tw_operation_status" op="!=" var2="0" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600399 <font resource="font" color="%text_fail_color%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500400 <placement x="%center_x%" y="%zip_status_y%" placement="5" />
401 <text>Failed</text>
402 </object>
403
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600404 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500405 <condition var1="tw_operation_status" var2="0" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600406 <font resource="font" color="%text_success_color%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500407 <placement x="%center_x%" y="%zip_status_y%" placement="5" />
408 <text>Successful</text>
409 </object>
410
411 <object type="action">
412 <touch key="back" />
413 <actions>
414 <action function="set">tw_clear_destination=install</action>
415 <action function="page">clear_vars</action>
416 </actions>
417 </object>
418
419 <object type="action">
420 <touch key="home" />
421 <actions>
422 <action function="set">tw_clear_destination=main2</action>
423 <action function="page">clear_vars</action>
424 </actions>
425 </object>
426 </page>
427
Ethan Yonker96af84a2015-01-05 14:58:36 -0600428 <page name="install_image">
429 <object type="template" name="header" />
430
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600431 <object type="text">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600432 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
433 <text>Select Image to Install</text>
434 </object>
435
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600436 <object type="button" style="fillbutton">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600437 <placement x="%col1_x%" y="%row1_text_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600438 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
439 <actions>
440 <action function="set">tw_back=install_image</action>
441 <action function="page">selectstorage</action>
442 </actions>
443 </object>
444
445 <object type="fileselector">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600446 <placement x="%fileselector_x%" y="%row3_text_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600447 <text>%tw_zip_location%</text>
Ethan Yonker96af84a2015-01-05 14:58:36 -0600448 <filter extn=".img" folders="1" files="1" />
449 <path name="tw_zip_location" default="/sdcard" />
450 <data name="tw_filename" />
451 <selection name="tw_file" />
452 </object>
453
454 <object type="template" name="sort_options" />
455
456 <object type="action">
457 <condition var1="tw_filename" op="modified" />
458 <action function="page">flashimage_confirm</action>
459 </object>
460
461 <object type="action">
462 <touch key="back" />
463 <action function="page">install_select</action>
464 </object>
465
466 <object type="action">
467 <touch key="home" />
468 <action function="page">main</action>
469 </object>
470
471 <object type="template" name="footer" />
472 </page>
473
474 <page name="flashimage_confirm">
475 <object type="template" name="header" />
476
477 <object type="partitionlist">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600478 <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%flash_list_height%" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600479 <text>Select Partition to Flash Image:</text>
480 <icon selected="radio_true" unselected="radio_false" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600481 <data name="tw_flash_partition" />
482 <listtype name="flashimg" />
483 </object>
484
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600485 <object type="text">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600486 <placement x="%center_x%" y="%row8_text_y%" placement="5" />
487 <text>Folder:</text>
488 </object>
489
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600490 <object type="text">
491 <font resource="mediumfont" color="%text_color%" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600492 <placement x="%center_x%" y="%row9_text_y%" placement="5" />
493 <text>%tw_zip_location%</text>
494 </object>
495
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600496 <object type="text">
Ethan Yonker96af84a2015-01-05 14:58:36 -0600497 <placement x="%center_x%" y="%row10_text_y%" placement="5" />
498 <text>File to flash:</text>
499 </object>
500
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600501 <object type="text" >
502 <font resource="mediumfont" color="%text_color%" />
Ethan Yonker96af84a2015-01-05 14:58:36 -0600503 <placement x="%center_x%" y="%row11_text_y%" placement="5" />
504 <text>%tw_file%</text>
505 </object>
506
507 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600508 <text>Swipe to Confirm Flash</text>
Ethan Yonker96af84a2015-01-05 14:58:36 -0600509 <actions>
510 <action function="set">tw_back=flashimage_confirm</action>
511 <action function="set">tw_action=flashimage</action>
512 <action function="set">tw_has_action2=0</action>
513 <action function="set">tw_action_text1=Flashing Image...</action>
514 <action function="set">tw_action_text2=</action>
515 <action function="set">tw_complete_text1=Image Flashed</action>
516 <action function="page">action_page</action>
517 </actions>
518 <action function="flashimage"></action>
519 </object>
520
Ethan Yonker96af84a2015-01-05 14:58:36 -0600521 <object type="action">
522 <touch key="back" />
523 <actions>
524 <action function="set">tw_clear_destination=install_image</action>
525 <action function="page">clear_vars</action>
526 </actions>
527 </object>
528
529 <object type="action">
530 <touch key="home" />
531 <actions>
532 <action function="set">tw_clear_destination=main2</action>
533 <action function="page">clear_vars</action>
534 </actions>
535 </object>
536 </page>
537
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500538 <page name="clear_vars">
539 <object type="action">
540 <action function="set">tw_operation_state=0</action>
541 <action function="set">tw_text1=</action>
542 <action function="set">tw_text2=</action>
543 <action function="set">tw_text3=</action>
544 <action function="set">tw_text4=</action>
545 <action function="set">tw_action_text1=</action>
546 <action function="set">tw_action_text2=</action>
547 <action function="set">tw_action_param=</action>
548 <action function="set">tw_has_action2=0</action>
549 <action function="set">tw_action2=</action>
550 <action function="set">tw_action2_param=</action>
551 <action function="set">tw_has_cancel=0</action>
552 <action function="set">tw_cancel_action=</action>
553 <action function="set">tw_cancel_param=</action>
554 <action function="set">tw_show_exclamation=0</action>
555 <action function="set">tw_show_reboot=0</action>
556 <action function="page">%tw_clear_destination%</action>
557 </object>
558 </page>
559
560 <page name="confirm_action">
561 <object type="template" name="header" />
562
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600563 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500564 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
565 <text>%tw_text1%</text>
566 </object>
567
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600568 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500569 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
570 <text>%tw_text2%</text>
571 </object>
572
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600573 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500574 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
575 <text>%tw_text3%</text>
576 </object>
577
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600578 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500579 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
580 <text>%tw_text4%</text>
581 </object>
582
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600583 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500584 <placement x="%center_x%" y="%row15_text_y%" placement="5" />
585 <text>Press back button to cancel.</text>
586 </object>
587
588 <object type="slider">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500589 <text>%tw_slider_text%</text>
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600590 <action function="page">action_page</action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500591 </object>
592
593 <object type="action">
594 <touch key="back" />
595 <actions>
596 <action function="set">tw_clear_destination=%tw_back%</action>
597 <action function="page">clear_vars</action>
598 </actions>
599 </object>
600
601 <object type="action">
602 <touch key="home" />
603 <action function="page">main</action>
604 </object>
605 </page>
606
607 <page name="action_page">
608 <object type="template" name="header" />
609
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600610 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500611 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
612 <text>%tw_action_text1%</text>
613 </object>
614
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600615 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500616 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
617 <text>%tw_action_text2%</text>
618 </object>
619
620 <object type="template" name="action_page_console" />
621
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600622 <object type="button" style="mediumbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500623 <condition var1="tw_has_cancel" var2="1" />
624 <placement x="%col_center_medium_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500625 <text>Cancel</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500626 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
627 </object>
628
629 <object type="template" name="progress_bar" />
630
631 <object type="action">
632 <condition var1="tw_operation_state" var2="1" />
633 <actions>
634 <action function="page">action_complete</action>
635 </actions>
636 </object>
637
638 <object type="action">
639 <condition var1="tw_has_action2" var2="0" />
640 <actions>
641 <action function="%tw_action%">%tw_action_param%</action>
642 </actions>
643 </object>
644
645 <object type="action">
646 <condition var1="tw_has_action2" var2="1" />
647 <actions>
648 <action function="%tw_action%">%tw_action_param%</action>
649 <action function="%tw_action2%">%tw_action2_param%</action>
650 </actions>
651 </object>
652 </page>
653
654 <page name="singleaction_page">
655 <object type="template" name="header" />
656
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600657 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500658 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
659 <text>%tw_action_text1%</text>
660 </object>
661
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600662 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500663 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
664 <text>%tw_action_text2%</text>
665 </object>
666
667 <object type="template" name="action_page_console" />
668
669 <object type="template" name="progress_bar" />
670
671 <object type="action">
672 <condition var1="tw_operation_state" var2="1" />
673 <actions>
674 <action function="set">tw_page_done=1</action>
675 </actions>
676 </object>
677
678 <object type="action">
679 <condition var1="tw_has_action2" var2="0" />
680 <actions>
681 <action function="%tw_action%">%tw_action_param%</action>
682 </actions>
683 </object>
684
685 <object type="action">
686 <condition var1="tw_has_action2" var2="1" />
687 <actions>
688 <action function="%tw_action%">%tw_action_param%</action>
689 <action function="%tw_action2%">%tw_action2_param%</action>
690 </actions>
691 </object>
692 </page>
693
694 <page name="action_complete">
695 <object type="template" name="header" />
696
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600697 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500698 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
699 <text>%tw_complete_text1%</text>
700 </object>
701
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600702 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500703 <condition var1="tw_operation_status" op="!=" var2="0" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600704 <font resource="font" color="%text_fail_color%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500705 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
706 <text>Failed</text>
707 </object>
708
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600709 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500710 <condition var1="tw_operation_status" var2="0" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600711 <font resource="font" color="%text_success_color%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500712 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
713 <text>Successful</text>
714 </object>
715
716 <object type="template" name="action_page_console" />
717
718 <object type="action">
719 <touch key="home" />
720 <actions>
721 <action function="set">tw_clear_destination=main2</action>
722 <action function="page">clear_vars</action>
723 </actions>
724 </object>
725
726 <object type="action">
727 <touch key="back" />
728 <actions>
729 <action function="set">tw_clear_destination=%tw_back%</action>
730 <action function="page">clear_vars</action>
731 </actions>
732 </object>
733 </page>
734
735 <page name="filecheck">
736 <object type="action">
737 <action function="fileexists">%tw_filecheck%</action>
738 </object>
739
740 <object type="action">
741 <conditions>
742 <condition var1="tw_operation_state" var2="1" />
743 <condition var1="tw_operation_status" var2="0" />
744 </conditions>
745 <actions>
746 <action function="set">tw_fileexists=1</action>
747 <action function="page">%tw_existpage%</action>
748 </actions>
749 </object>
750
751 <object type="action">
752 <conditions>
753 <condition var1="tw_operation_state" var2="1" />
754 <condition var1="tw_operation_status" var2="1" />
755 </conditions>
756 <actions>
757 <action function="set">tw_fileexists=0</action>
758 <action function="page">%tw_notexistpage%</action>
759 </actions>
760 </object>
761 </page>
762
763 <page name="rebootcheck">
764 <object type="action">
765 <condition var1="tw_backup_system_size" op=">=" var2="%tw_min_system%" />
766 <action function="reboot">%tw_action_param%</action>
767 </object>
768
769 <object type="action">
770 <condition var1="tw_backup_system_size" op="<" var2="%tw_min_system%" />
771 <action function="page">confirm_action</action>
772 </object>
773 </page>
774
775 <page name="wipe">
776 <object type="template" name="header" />
777
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600778 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500779 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
780 <text>Factory Reset</text>
781 </object>
782
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600783 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500784 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
785 <text>Wipes Data, Cache, and Dalvik</text>
786 </object>
787
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600788 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500789 <condition var1="tw_has_data_media" var2="1" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500790 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
791 <text>(not including internal storage)</text>
792 </object>
793
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600794 <object type="text">
Captain Throwbacka7f5ce32014-10-10 09:33:20 -0400795 <conditions>
796 <condition var1="tw_has_android_secure" var2="1" />
797 <condition var1="fileexists" var2="/and-sec" />
798 </conditions>
Captain Throwbacka7f5ce32014-10-10 09:33:20 -0400799 <placement x="%col2_x%" y="%row4_text_y%" placement="1" />
800 <text>Android Secure </text>
801 </object>
802
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600803 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500804 <condition var1="tw_has_sdext_partition" var2="1" />
Captain Throwbacka7f5ce32014-10-10 09:33:20 -0400805 <placement x="%col2_x%" y="%row4_text_y%" />
806 <text> SD-EXT</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500807 </object>
808
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600809 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500810 <placement x="%center_x%" y="%row5_text_y%" placement="5" />
811 <text>Most of the time this is</text>
812 </object>
813
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600814 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500815 <placement x="%center_x%" y="%row6_text_y%" placement="5" />
816 <text>the only wipe that you need.</text>
817 </object>
818
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600819 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500820 <placement x="%center_x%" y="%row16_text_y%" placement="5" />
821 <text>Press back button to cancel.</text>
822 </object>
823
824 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500825 <placement x="%col1_x%" y="%wipe_button_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500826 <text>Advanced Wipe</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500827 <actions>
828 <action function="set">partitionlisterror=0</action>
829 <action function="page">advancedwipe</action>
830 </actions>
831 </object>
832
833 <object type="button">
Ethan Yonkerd79d9bc2014-12-20 15:38:29 -0600834 <condition var1="tw_has_data_media" var2="1" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500835 <placement x="%col2_x%" y="%wipe_button_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500836 <text>Format Data</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500837 <actions>
838 <action function="page">formatdata</action>
839 </actions>
840 </object>
841
Ethan Yonkerd79d9bc2014-12-20 15:38:29 -0600842 <object type="button">
843 <conditions>
844 <condition var1="tw_is_encrypted" var2="1" />
845 <condition var1="tw_has_data_media" var2="0" />
846 </conditions>
Ethan Yonkerd79d9bc2014-12-20 15:38:29 -0600847 <placement x="%col2_x%" y="%wipe_button_y%" />
Ethan Yonkerd79d9bc2014-12-20 15:38:29 -0600848 <text>Wipe Encryption</text>
Ethan Yonkerd79d9bc2014-12-20 15:38:29 -0600849 <actions>
850 <action function="set">tw_back=wipe</action>
851 <action function="set">tw_action=wipe</action>
852 <action function="set">tw_action_param=DATAMEDIA</action>
853 <action function="set">tw_has_action2=0</action>
854 <action function="set">tw_text1=Wipe Encryption from Data?</action>
855 <action function="set">tw_text2=</action>
856 <action function="set">tw_action_text1=Formatting Data...</action>
857 <action function="set">tw_complete_text1=Data Format Complete</action>
858 <action function="set">tw_slider_text=Swipe to Format Data</action>
859 <action function="page">confirm_action</action>
860 </actions>
861 </object>
862
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500863 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600864 <text>Swipe to Factory Reset</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500865 <actions>
866 <action function="set">tw_back=wipe</action>
867 <action function="set">tw_action=wipe</action>
868 <action function="set">tw_action_param=data</action>
869 <action function="set">tw_action_text1=Factory Reset...</action>
870 <action function="set">tw_complete_text1=Factory Reset Complete</action>
871 <action function="page">action_page</action>
872 </actions>
873 </object>
874
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500875 <object type="action">
876 <touch key="back" />
877 <action function="page">main</action>
878 </object>
879
880 <object type="action">
881 <touch key="home" />
882 <action function="page">main</action>
883 </object>
884 </page>
885
886 <page name="advancedwipe">
887 <object type="template" name="header" />
888
889 <object type="action">
890 <action function="set">tw_wipe_list=</action>
891 </object>
892
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600893 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500894 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
895 <text>Wipe Menu</text>
896 </object>
897
898 <object type="partitionlist">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500899 <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%wipe_list_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500900 <text>Select Partitions to Wipe:</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500901 <data name="tw_wipe_list" />
902 <listtype name="wipe" />
903 </object>
904
905 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600906 <text>Swipe to Wipe</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500907 <actions>
908 <action function="set">tw_back=advancedwipe</action>
909 <action function="set">tw_action=wipe</action>
910 <action function="set">tw_action_param=LIST</action>
911 <action function="set">tw_text1=Wipe Selected Partition(s)?</action>
912 <action function="set">tw_action_text1=Wiping Partition(s)...</action>
913 <action function="set">tw_complete_text1=Wipe Complete</action>
914 <action function="page">action_page</action>
915 </actions>
916 </object>
917
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600918 <object type="button" style="fillbutton">
Ethan Yonker751a85e2014-12-12 16:59:10 -0600919 <placement x="%col1_x%" y="%wipe_button_row1%" w="%button_fill_full_width%" h="%button_fill_half_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500920 <text>Repair or Change File System</text>
921 <actions>
922 <action function="checkpartitionlist"></action>
923 <action function="page">checkpartitionlist</action>
924 </actions>
925 </object>
926
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600927 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500928 <condition var1="partitionlisterror" var2="1" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600929 <font resource="font" color="%text_fail_color%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500930 <placement x="%center_x%" y="%invalid_partition_y%" placement="5" />
931 <text>Invalid partition selection</text>
932 </object>
933
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500934 <object type="action">
935 <touch key="home" />
936 <action function="page">main</action>
937 </object>
938
939 <object type="action">
940 <touch key="back" />
941 <action function="page">wipe</action>
942 </object>
943 </page>
944
945 <page name="formatdata">
946 <object type="template" name="header" />
947
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600948 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500949 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
950 <text>Format Data will wipe all of your apps,</text>
951 </object>
952
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600953 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500954 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
955 <text>backups, pictures, videos, media, and</text>
956 </object>
957
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600958 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500959 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
960 <text>removes encryption on internal storage.</text>
961 </object>
962
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600963 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500964 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
965 <text>This cannot be undone. Press back to cancel.</text>
966 </object>
967
Ethan Yonker21ff02a2015-02-18 14:35:00 -0600968 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500969 <placement x="%center_x%" y="%row4_text_y%" placement="5" />
970 <text>Type yes to continue.</text>
971 </object>
972
973 <object type="input">
974 <placement x="%col1_x%" y="%row6_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -0500975 <text>%tw_confirm_formatdata%</text>
976 <data name="tw_confirm_formatdata" />
977 <restrict minlen="3" maxlen="3" allow="yes" />
978 <action function="page">formatdata_confirm</action>
979 </object>
980
981 <object type="template" name="keyboardtemplate" />
982
983 <object type="action">
984 <touch key="home" />
985 <action function="page">main</action>
986 </object>
987
988 <object type="action">
989 <touch key="back" />
990 <action function="page">wipe</action>
991 </object>
992
993 <object type="template" name="footer" />
994 </page>
995
996 <page name="formatdata_confirm">
997 <object type="action">
998 <condition var1="tw_confirm_formatdata" op="=" var2="yes" />
999 <actions>
1000 <action function="set">tw_back=formatdata</action>
1001 <action function="set">tw_action=wipe</action>
1002 <action function="set">tw_action_param=DATAMEDIA</action>
1003 <action function="set">tw_action_text1=Formatting Data...</action>
1004 <action function="set">tw_complete_text1=Data Format Complete</action>
1005 <action function="page">action_page</action>
1006 </actions>
1007 </object>
1008
1009 <object type="action">
1010 <condition var1="tw_confirm_formatdata" op="!=" var2="yes" />
1011 <action function="page">formatdata</function>
1012 </object>
1013 </page>
1014
1015 <page name="checkpartitionlist">
1016 <object type="action">
1017 <condition var1="tw_check_partition_list" op="=" var2="1" />
1018 <actions>
1019 <action function="set">partitionlisterror=0</action>
1020 <action function="getpartitiondetails"></action>
1021 <action function="page">partitionoptions</action>
1022 </actions>
1023 </object>
1024
1025 <object type="action">
1026 <condition var1="tw_check_partition_list" op="!=" var2="1" />
1027 <actions>
1028 <action function="set">partitionlisterror=1</action>
1029 <action function="set">tw_wipe_list=</action>
1030 <action function="page">advancedwipe</action>
1031 </actions>
1032 </object>
1033 </page>
1034
1035 <page name="partitionoptions">
1036 <object type="template" name="header" />
1037
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001038 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001039 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
1040 <text>Partition Options for: %tw_partition_name%</text>
1041 </object>
1042
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001043 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001044 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1045 <text>Mount Point: %tw_partition_mount_point%</text>
1046 </object>
1047
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001048 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001049 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1050 <text>Current file system: %tw_partition_file_system%</text>
1051 </object>
1052
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001053 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001054 <condition var1="tw_partition_is_present" op="!=" var2="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001055 <placement x="%col1_x%" y="%row3_text_y%" />
1056 <text>Present: Yes</text>
1057 </object>
1058
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001059 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001060 <condition var1="tw_partition_is_present" op="=" var2="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001061 <placement x="%col1_x%" y="%row3_text_y%" />
1062 <text>Present: No</text>
1063 </object>
1064
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001065 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001066 <condition var1="tw_partition_removable" op="!=" var2="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001067 <placement x="%col2_x%" y="%row3_text_y%" />
1068 <text>Removable: Yes</text>
1069 </object>
1070
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001071 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001072 <condition var1="tw_partition_removable" op="=" var2="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001073 <placement x="%col2_x%" y="%row3_text_y%" />
1074 <text>Removable: No</text>
1075 </object>
1076
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001077 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001078 <placement x="%col1_x%" y="%row4_text_y%" />
1079 <text>Size: %tw_partition_size%MB</text>
1080 </object>
1081
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001082 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001083 <placement x="%col2_x%" y="%row4_text_y%" />
1084 <text>Used: %tw_partition_used%MB</text>
1085 </object>
1086
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001087 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001088 <placement x="%col1_x%" y="%row5_text_y%" />
1089 <text>Free: %tw_partition_free%MB</text>
1090 </object>
1091
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001092 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001093 <placement x="%col2_x%" y="%row5_text_y%" />
1094 <text>Backup Size: %tw_partition_backup_size%MB</text>
1095 </object>
1096
1097 <object type="button">
1098 <condition var1="tw_partition_can_repair" op="=" var2="1" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001099 <placement x="%col1_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001100 <text>Repair</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001101 <actions>
1102 <action function="set">tw_back=partitionoptions</action>
1103 <action function="set">tw_action=repair</action>
1104 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1105 <action function="set">tw_has_action2=0</action>
1106 <action function="set">tw_text1=Repair %tw_partition_name%?</action>
1107 <action function="set">tw_text2=</action>
1108 <action function="set">tw_action_text1=Repairing...</action>
1109 <action function="set">tw_complete_text1=Repair Complete</action>
1110 <action function="set">tw_slider_text=Swipe to Repair</action>
1111 <action function="page">confirm_action</action>
1112 </actions>
1113 </object>
1114
1115 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001116 <placement x="%col2_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001117 <text>Change File Sys</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001118 <action function="page">selectfilesystem</action>
1119 </object>
1120
1121 <object type="action">
1122 <touch key="home" />
1123 <action function="page">main</action>
1124 </object>
1125
1126 <object type="action">
1127 <touch key="back" />
1128 <action function="page">advancedwipe</action>
1129 </object>
1130
1131 <object type="template" name="footer" />
1132 </page>
1133
Dees Troy298c4382014-09-03 14:42:26 +00001134 <page name="refreshfilesystem">
1135 <object type="action">
1136 <condition var1="tw_check_partition_list" op="=" var2="1" />
1137 <actions>
1138 <action function="set">partitionlisterror=0</action>
1139 <action function="getpartitiondetails"></action>
1140 <action function="page">selectfilesystem</action>
1141 </actions>
1142 </object>
1143
1144 <object type="action">
1145 <condition var1="tw_check_partition_list" op="!=" var2="1" />
1146 <actions>
1147 <action function="set">partitionlisterror=1</action>
1148 <action function="set">tw_wipe_list=</action>
1149 <action function="page">advancedwipe</action>
1150 </actions>
1151 </object>
1152 </page>
1153
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001154 <page name="selectfilesystem">
1155 <object type="template" name="header" />
1156
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001157 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001158 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
1159 <text>Change file system for: %tw_partition_name%</text>
1160 </object>
1161
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001162 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001163 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1164 <text>Mount Point: %tw_partition_mount_point%</text>
1165 </object>
1166
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001167 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001168 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1169 <text>Current file system: %tw_partition_file_system%</text>
1170 </object>
1171
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001172 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001173 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
1174 <text>Proceed with caution!</text>
1175 </object>
1176
1177 <object type="button">
1178 <condition var1="tw_partition_ext" op="=" var2="1" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001179 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001180 <text>EXT2</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001181 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001182 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001183 <action function="set">tw_action=changefilesystem</action>
1184 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1185 <action function="set">tw_action_new_file_system=ext2</action>
1186 <action function="set">tw_has_action2=0</action>
1187 <action function="set">tw_text1=Change %tw_partition_name% to EXT2?</action>
1188 <action function="set">tw_text2=</action>
1189 <action function="set">tw_action_text1=Formatting...</action>
1190 <action function="set">tw_complete_text1=Format Complete</action>
1191 <action function="set">tw_slider_text=Swipe to Change</action>
1192 <action function="page">confirm_action</action>
1193 </actions>
1194 </object>
1195
1196 <object type="button">
1197 <condition var1="tw_partition_ext" op="=" var2="1" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001198 <placement x="%col2_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001199 <text>EXT3</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001200 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001201 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001202 <action function="set">tw_action=changefilesystem</action>
1203 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1204 <action function="set">tw_action_new_file_system=ext3</action>
1205 <action function="set">tw_has_action2=0</action>
1206 <action function="set">tw_text1=Change %tw_partition_name% to EXT3?</action>
1207 <action function="set">tw_text2=</action>
1208 <action function="set">tw_action_text1=Formatting...</action>
1209 <action function="set">tw_complete_text1=Format Complete</action>
1210 <action function="set">tw_slider_text=Swipe to Change</action>
1211 <action function="page">confirm_action</action>
1212 </actions>
1213 </object>
1214
1215 <object type="button">
1216 <condition var1="tw_partition_ext" op="=" var2="1" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001217 <placement x="%col1_x%" y="%row3_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001218 <text>EXT4</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001219 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001220 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001221 <action function="set">tw_action=changefilesystem</action>
1222 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1223 <action function="set">tw_action_new_file_system=ext4</action>
1224 <action function="set">tw_has_action2=0</action>
1225 <action function="set">tw_text1=Change %tw_partition_name% to EXT4?</action>
1226 <action function="set">tw_text2=</action>
1227 <action function="set">tw_action_text1=Formatting...</action>
1228 <action function="set">tw_complete_text1=Format Complete</action>
1229 <action function="set">tw_slider_text=Swipe to Change</action>
1230 <action function="page">confirm_action</action>
1231 </actions>
1232 </object>
1233
1234 <object type="button">
1235 <condition var1="tw_partition_f2fs" op="=" var2="1" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001236 <placement x="%col2_x%" y="%row3_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001237 <text>F2FS</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001238 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001239 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001240 <action function="set">tw_action=changefilesystem</action>
1241 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1242 <action function="set">tw_action_new_file_system=f2fs</action>
1243 <action function="set">tw_has_action2=0</action>
1244 <action function="set">tw_text1=Change %tw_partition_name% to F2FS?</action>
1245 <action function="set">tw_text2=</action>
1246 <action function="set">tw_action_text1=Formatting...</action>
1247 <action function="set">tw_complete_text1=Format Complete</action>
1248 <action function="set">tw_slider_text=Swipe to Change</action>
1249 <action function="page">confirm_action</action>
1250 </actions>
1251 </object>
1252
1253 <object type="button">
1254 <condition var1="tw_partition_vfat" op="=" var2="1" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001255 <placement x="%col1_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001256 <text>FAT</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001257 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001258 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001259 <action function="set">tw_action=changefilesystem</action>
1260 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1261 <action function="set">tw_action_new_file_system=vfat</action>
1262 <action function="set">tw_has_action2=0</action>
1263 <action function="set">tw_text1=Change %tw_partition_name% to FAT?</action>
1264 <action function="set">tw_text2=</action>
1265 <action function="set">tw_action_text1=Formatting...</action>
1266 <action function="set">tw_complete_text1=Format Complete</action>
1267 <action function="set">tw_slider_text=Swipe to Change</action>
1268 <action function="page">confirm_action</action>
1269 </actions>
1270 </object>
1271
1272 <object type="button">
1273 <condition var1="tw_partition_exfat" op="=" var2="1" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001274 <placement x="%col2_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001275 <text>exFAT</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001276 <actions>
Dees Troy298c4382014-09-03 14:42:26 +00001277 <action function="set">tw_back=refreshfilesystem</action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001278 <action function="set">tw_action=changefilesystem</action>
1279 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1280 <action function="set">tw_action_new_file_system=exfat</action>
1281 <action function="set">tw_has_action2=0</action>
1282 <action function="set">tw_text1=Change %tw_partition_name% to exFAT?</action>
1283 <action function="set">tw_text2=</action>
1284 <action function="set">tw_action_text1=Formatting...</action>
1285 <action function="set">tw_complete_text1=Format Complete</action>
1286 <action function="set">tw_slider_text=Swipe to Change</action>
1287 <action function="page">confirm_action</action>
1288 </actions>
1289 </object>
1290
1291 <object type="action">
1292 <touch key="home" />
1293 <action function="page">main</action>
1294 </object>
1295
1296 <object type="action">
1297 <touch key="back" />
1298 <action function="page">partitionoptions</action>
1299 </object>
1300
1301 <object type="template" name="footer" />
1302 </page>
1303
1304 <page name="backup">
1305 <object type="template" name="header" />
1306
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001307 <object type="button" style="fillbutton">
Ethan Yonker751a85e2014-12-12 16:59:10 -06001308 <placement x="%col1_x%" y="%row1_header_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001309 <text>Backup Name: %tw_backup_name%</text>
1310 <actions>
1311 <action function="set">tw_fileexists=0</action>
1312 <action function="page">backupname1</action>
1313 </actions>
1314 </object>
1315
1316 <object type="partitionlist">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001317 <placement x="%listbox_x%" y="%backup_list_y%" w="%listbox_width%" h="%backup_list_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001318 <text>Select Partitions to Back Up:</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001319 <data name="tw_backup_list" />
1320 <listtype name="backup" />
1321 </object>
1322
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001323 <object type="button" style="fillbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001324 <placement x="%col2_x%" y="%backup_button_row1%" w="%button_fill_main_width%" h="%button_fill_quarter_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001325 <text>More...</text>
1326 <action function="page">backupoptions</action>
1327 </object>
1328
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001329 <object type="button" style="fillbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001330 <placement x="%col1_x%" y="%backup_button_row2%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001331 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
1332 <actions>
1333 <action function="set">tw_back=backup</action>
1334 <action function="page">selectstorage</action>
1335 </actions>
1336 </object>
1337
1338 <object type="checkbox">
1339 <placement x="%col1_x%" y="%backup_button_row1%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001340 <text>Compression</text>
1341 <data variable="tw_use_compression" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001342 </object>
1343
1344 <object type="slider">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001345 <text>Swipe to Back Up</text>
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001346 <action function="page">backup_run</action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001347 </object>
1348
1349 <object type="action">
1350 <touch key="home" />
1351 <action function="page">main</action>
1352 </object>
1353
1354 <object type="action">
1355 <touch key="back" />
1356 <action function="page">main</action>
1357 </object>
1358 </page>
1359
1360 <page name="backupoptions">
1361 <object type="template" name="header" />
1362
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001363 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001364 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
1365 <text>More Backup Options</text>
1366 </object>
1367
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001368 <object type="button" style="fillbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001369 <conditions>
1370 <condition var1="tw_include_encrypted_backup" var2="1" />
1371 <condition var1="tw_encrypt_backup" var2="0" />
1372 </conditions>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001373 <placement x="%col1_x%" y="%row6_text_y%" w="%button_fill_main_width%" h="%button_fill_quarter_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001374 <text>No Encryption</text>
1375 <actions>
1376 <action function="page">backupencryption</action>
1377 </actions>
1378 </object>
1379
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001380 <object type="button" style="fillbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001381 <conditions>
1382 <condition var1="tw_include_encrypted_backup" var2="1" />
1383 <condition var1="tw_encrypt_backup" var2="1" />
1384 </conditions>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001385 <placement x="%col1_x%" y="%row6_text_y%" w="%button_fill_main_width%" h="%button_fill_quarter_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001386 <text>Using Encryption</text>
1387 <actions>
1388 <action function="set">tw_password_not_match=0</action>
1389 <action function="page">backupencryption</action>
1390 </actions>
1391 </object>
1392
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001393 <object type="button" style="fillbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001394 <placement x="%col2_x%" y="%row6_text_y%" w="%button_fill_main_width%" h="%button_fill_quarter_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001395 <text>Refresh Sizes</text>
1396 <actions>
1397 <action function="refreshsizes"></action>
1398 <action function="page">backupoptions</action>
1399 </actions>
1400 </object>
1401
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001402 <object type="button" style="fillbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001403 <placement x="%col1_x%" y="%backup_button_row2%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001404 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
1405 <actions>
1406 <action function="set">tw_back=backupotions</action>
1407 <action function="page">selectstorage</action>
1408 </actions>
1409 </object>
1410
1411 <object type="checkbox">
1412 <placement x="%col1_x%" y="%row2_text_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001413 <text>Enable compression.</text>
1414 <data variable="tw_use_compression" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001415 </object>
1416
1417 <object type="checkbox">
1418 <placement x="%col1_x%" y="%row4_text_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001419 <text>Skip MD5 generation during backup.</text>
1420 <data variable="tw_skip_md5_generate" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001421 </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">backup</action>
1431 </object>
1432 </page>
1433
1434 <page name="backupname1">
1435 <object type="action">
1436 <condition var1="tw_backup_name" op="=" var2="(Auto Generate)" />
1437 <action function="generatebackupname"></function>
1438 </object>
1439
1440 <object type="action">
1441 <action function="page">backupname2</function>
1442 </object>
1443 </page>
1444
1445 <page name="backupname2">
1446 <object type="template" name="header" />
1447
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001448 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001449 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001450 <text>Please Enter a Backup Name</text>
1451 </object>
1452
1453 <object type="input">
1454 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001455 <text>%tw_backup_name%</text>
1456 <data name="tw_backup_name" />
1457 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]" />
1458 <actions>
1459 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1460 <action function="set">tw_existpage=backupname2</action>
1461 <action function="set">tw_notexistpage=backup</action>
1462 <action function="page">filecheck</action>
1463 </actions>
1464 </object>
1465
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001466 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001467 <condition var1="tw_fileexists" var2="1" />
1468 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001469 <font resource="font" color="%text_fail_color%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001470 <text>A backup with that name already exists!</text>
1471 </object>
1472
1473 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001474 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001475 <text>Append Date</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001476 <action function="appenddatetobackupname"></action>
1477 </object>
1478
1479 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001480 <placement x="%col2_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001481 <text>Cancel</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001482 <actions>
1483 <action function="set">tw_backup_name=(Auto Generate)</action>
1484 <action function="page">backup</action>
1485 </actions>
1486 </object>
1487
1488 <object type="template" name="keyboardtemplate" />
1489
1490 <object type="action">
1491 <touch key="home" />
1492 <actions>
1493 <action function="set">tw_backup_name=(Auto Generate)</action>
1494 <action function="page">main</action>
1495 </actions>
1496 </object>
1497
1498 <object type="action">
1499 <touch key="back" />
1500 <actions>
1501 <action function="set">tw_backup_name=(Auto Generate)</action>
1502 <action function="page">backup</action>
1503 </actions>
1504 </object>
1505
1506 <object type="template" name="footer" />
1507 </page>
1508
1509 <page name="backupencryption">
1510 <object type="template" name="header" />
1511
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001512 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001513 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
1514 <text>Encrypt your backup?</text>
1515 </object>
1516
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001517 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001518 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1519 <text>Please Enter A Password:</text>
1520 </object>
1521
1522 <object type="input">
1523 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001524 <text>%tw_backup_encrypt_display%</text>
1525 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display" />
1526 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
1527 <action function="page">backupencryption2</action>
1528 </object>
1529
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001530 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001531 <condition var1="tw_password_not_match" var2="1" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001532 <font resource="font" color="%text_fail_color%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001533 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1534 <text>Passwords Do Not Match</text>
1535 </object>
1536
1537 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001538 <placement x="%col_center_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001539 <text>Cancel</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001540 <actions>
1541 <action function="set">tw_encrypt_backup=0</action>
1542 <action function="set">tw_backup_password=</action>
1543 <action function="set">tw_backup_password2=</action>
1544 <action function="set">tw_backup_encrypt_display=</action>
1545 <action function="set">tw_backup_encrypt_display2=</action>
1546 <action function="page">backupoptions</action>
1547 </actions>
1548 </object>
1549
1550 <object type="template" name="keyboardtemplate" />
1551
1552 <object type="action">
1553 <touch key="home" />
1554 <action function="page">main</action>
1555 </object>
1556
1557 <object type="action">
1558 <touch key="back" />
1559 <action function="page">backupoptions</action>
1560 </object>
1561
1562 <object type="template" name="footer" />
1563 </page>
1564
1565 <page name="backupencryption2">
1566 <object type="template" name="header" />
1567
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001568 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001569 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
1570 <text>Encrypt your backup?</text>
1571 </object>
1572
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001573 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001574 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1575 <text>Please Enter Password Again:</text>
1576 </object>
1577
1578 <object type="input">
1579 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001580 <text>%tw_backup_encrypt_display2%</text>
1581 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2" />
1582 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
1583 <actions>
1584 <action function="page">checkbackuppassword</action>
1585 </actions>
1586 </object>
1587
1588 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001589 <placement x="%col_center_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001590 <text>Cancel</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001591 <actions>
1592 <action function="set">tw_encrypt_backup=0</action>
1593 <action function="set">tw_backup_password=</action>
1594 <action function="set">tw_backup_password2=</action>
1595 <action function="set">tw_backup_encrypt_display=</action>
1596 <action function="set">tw_backup_encrypt_display2=</action>
1597 <action function="page">backupoptions</action>
1598 </actions>
1599 </object>
1600
1601 <object type="template" name="keyboardtemplate" />
1602
1603 <object type="action">
1604 <touch key="home" />
1605 <action function="page">main</action>
1606 </object>
1607
1608 <object type="action">
1609 <touch key="back" />
1610 <action function="page">backupoptions</action>
1611 </object>
1612
1613 <object type="template" name="footer" />
1614 </page>
1615
1616 <page name="checkbackuppassword">
1617 <object type="action">
1618 <condition var1="tw_backup_password2" var2="tw_backup_password" />
1619 <actions>
1620 <action function="set">tw_encrypt_backup=1</action>
1621 <action function="page">backupoptions</action>
1622 </actions>
1623 </object>
1624
1625 <object type="action">
1626 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password" />
1627 <actions>
1628 <action function="set">tw_encrypt_backup=0</action>
1629 <action function="set">tw_password_not_match=1</action>
1630 <action function="set">tw_backup_password=</action>
1631 <action function="set">tw_backup_password2=</action>
1632 <action function="set">tw_backup_encrypt_display=</action>
1633 <action function="set">tw_backup_encrypt_display2=</action>
1634 <action function="page">backupencryption</action>
1635 </actions>
1636 </object>
1637 </page>
1638
1639 <page name="backup_run">
1640 <object type="template" name="header" />
1641
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001642 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001643 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1644 <text>%tw_operation% %tw_partition%</text>
1645 </object>
1646
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001647 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001648 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1649 <text>%tw_file_progress%</text>
1650 </object>
1651
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001652 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001653 <placement x="%center_x%" y="%row3_text_y%" placement="5" />
1654 <text>%tw_size_progress%</text>
1655 </object>
1656
1657 <object type="template" name="action_page_console" />
1658
bigbiff7abc5fe2015-01-17 16:53:12 -05001659
1660
1661 <object type="template" name="progress_bar" />
1662
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001663 <object type="button" style="mediumbutton">
bigbiff7abc5fe2015-01-17 16:53:12 -05001664 <placement x="%col_center_medium_x%" y="%row4_y%" />
bigbiff7abc5fe2015-01-17 16:53:12 -05001665 <text>Cancel</text>
bigbiff7abc5fe2015-01-17 16:53:12 -05001666 <actions>
1667 <action function="cancelbackup"></action>
1668 </actions>
1669 </object>
1670
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001671 <object type="template" name="progress_bar" />
1672
1673 <object type="action">
1674 <action function="nandroid">backup</action>
1675 </object>
1676
1677 <object type="action">
1678 <condition var1="tw_operation_state" var2="1" />
bigbiff7abc5fe2015-01-17 16:53:12 -05001679 <condition var1="tw_cancel_backup" var2="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001680 <actions>
1681 <action function="set">tw_back=backup</action>
1682 <action function="set">tw_complete_text1=Backup Complete</action>
1683 <action function="set">tw_show_reboot=1</action>
1684 <action function="page">action_complete</action>
1685 </actions>
1686 </object>
bigbiff7abc5fe2015-01-17 16:53:12 -05001687
1688 <object type="action">
1689 <condition var1="tw_operation_state" var2="1" />
1690 <condition var1="tw_cancel_backup" var2="1" />
1691 <actions>
1692 <action function="set">tw_back=backup</action>
1693 <action function="set">tw_complete_text1=Backup Cancelled</action>
1694 <action function="set">tw_show_reboot=1</action>
1695 <action function="page">action_complete</action>
1696 </actions>
1697 </object>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001698 </page>
1699
1700 <page name="restore">
1701 <object type="template" name="header" />
1702
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001703 <object type="button" style="fillbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001704 <placement x="%col1_x%" y="%row1_header_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001705 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
1706 <actions>
1707 <action function="set">tw_back=restore</action>
1708 <action function="page">selectstorage</action>
1709 </actions>
1710 </object>
1711
1712 <object type="fileselector">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001713 <placement x="%fileselector_x%" y="%row2_text_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001714 <text>Select Package to Restore:</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001715 <filter folders="1" files="0" nav="0" />
1716 <path name="tw_backups_folder" />
1717 <data name="tw_restore" default="" />
1718 <selection name="tw_restore_name" />
1719 </object>
1720
1721 <object type="template" name="sort_options" />
1722
1723 <object type="action">
1724 <condition var1="tw_restore" op="modified" />
1725 <actions>
1726 <action function="readBackup"></action>
1727 <action function="page">restore_read</action>
1728 </actions>
1729 </object>
1730
1731 <object type="action">
1732 <touch key="home" />
1733 <action function="page">main</action>
1734 </object>
1735
1736 <object type="action">
1737 <touch key="back" />
1738 <action function="page">main</action>
1739 </object>
1740
1741 <object type="template" name="footer" />
1742 </page>
1743
1744 <page name="restore_read">
1745 <object type="action">
1746 <condition var1="tw_restore_encrypted" var2="1" />
1747 <actions>
1748 <action function="set">tw_password_fail=0</action>
1749 <action function="page">restore_decrypt</action>
1750 </actions>
1751 </object>
1752
1753 <object type="action">
1754 <condition var1="tw_restore_encrypted" var2="0" />
1755 <actions>
1756 <action function="page">restore_select</action>
1757 </actions>
1758 </object>
1759 </page>
1760
1761 <page name="restore_decrypt">
1762 <object type="template" name="header" />
1763
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001764 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001765 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
1766 <text>Backup Encrypted</text>
1767 </object>
1768
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001769 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001770 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1771 <text>Please Enter Your Password:</text>
1772 </object>
1773
1774 <object type="input">
1775 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001776 <text>%tw_restore_display%</text>
1777 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display" />
1778 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
1779 <actions>
1780 <action function="page">try_restore_decrypt</action>
1781 </actions>
1782 </object>
1783
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001784 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001785 <condition var1="tw_password_fail" var2="1" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001786 <font resource="font" color="%text_fail_color%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001787 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1788 <text>Password Failed, Please Try Again</text>
1789 </object>
1790
1791 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001792 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001793 <text>Cancel</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001794 <actions>
1795 <action function="set">tw_page_done=1</action>
1796 <action function="page">restore</action>
1797 </actions>
1798 </object>
1799
1800 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001801 <placement x="%col2_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001802 <text>Delete</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001803 <actions>
1804 <action function="set">tw_back=restore</action>
1805 <action function="set">tw_action=cmd</action>
1806 <action function="set">tw_action_param=cd %tw_backups_folder% && rm -rf &quot;%tw_restore_name%&quot;</action>
1807 <action function="set">tw_text1=Delete Backup? %tw_restore_name%</action>
1808 <action function="set">tw_text2=This cannot be undone!</action>
1809 <action function="set">tw_action_text1=Deleting Backup...</action>
1810 <action function="set">tw_complete_text1=Backup Delete Complete</action>
1811 <action function="set">tw_slider_text=Swipe to Delete</action>
1812 <action function="page">confirm_action</action>
1813 </actions>
1814 </object>
1815
1816 <object type="template" name="keyboardtemplate" />
1817
1818 <object type="action">
1819 <touch key="home" />
1820 <action function="page">main</action>
1821 </object>
1822
1823 <object type="action">
1824 <touch key="back" />
1825 <action function="page">restore</action>
1826 </object>
1827
1828 <object type="template" name="footer" />
1829 </page>
1830
1831 <page name="try_restore_decrypt">
1832 <object type="template" name="header" />
1833
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001834 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001835 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1836 <text>Trying Decryption with Your Password</text>
1837 </object>
1838
1839 <object type="template" name="action_page_console" />
1840
1841 <object type="template" name="progress_bar" />
1842
1843 <object type="action">
1844 <action function="decrypt_backup"></action>
1845 </object>
1846
1847 <object type="action">
1848 <conditions>
1849 <condition var1="tw_operation_state" var2="1" />
1850 <condition var1="tw_operation_status" op="!=" var2="0" />
1851 </conditions>
1852 <actions>
1853 <action function="set">tw_password_fail=1</action>
1854 <action function="page">restore_decrypt</action>
1855 </actions>
1856 </object>
1857
1858 <object type="action">
1859 <conditions>
1860 <condition var1="tw_operation_state" var2="1" />
1861 <condition var1="tw_operation_status" op="=" var2="0" />
1862 </conditions>
1863 <actions>
1864 <action function="set">tw_page_done=1</action>
1865 <action function="page">restore_select</action>
1866 </actions>
1867 </object>
1868 </page>
1869
1870 <page name="restore_select">
1871 <object type="template" name="header" />
1872
1873 <object type="partitionlist">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001874 <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%restore_list_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001875 <text>Restoring: %tw_restore_name%</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001876 <data name="tw_restore_list" selectedlist="tw_restore_selected" />
1877 <listtype name="restore" />
1878 </object>
1879
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001880 <object type="button" style="fillbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001881 <placement x="%col1_x%" y="%backup_button_row2%" w="%button_fill_main_width%" h="%button_fill_quarter_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001882 <text>Rename Backup</text>
1883 <actions>
1884 <action function="set">tw_backup_rename=</action>
1885 <action function="set">tw_fileexists=0</action>
1886 <action function="page">renamebackup</action>
1887 </actions>
1888 </object>
1889
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001890 <object type="button" style="fillbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001891 <placement x="%col2_x%" y="%backup_button_row2%" w="%button_fill_main_width%" h="%button_fill_quarter_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001892 <text>Delete Backup</text>
1893 <actions>
1894 <action function="set">tw_back=restore</action>
1895 <action function="set">tw_action=cmd</action>
1896 <action function="set">tw_action_param=cd %tw_backups_folder% && rm -rf &quot;%tw_restore_name%&quot;</action>
1897 <action function="set">tw_text1=Delete Backup? %tw_restore_name%</action>
1898 <action function="set">tw_text2=This cannot be undone!</action>
1899 <action function="set">tw_action_text1=Deleting Backup...</action>
1900 <action function="set">tw_complete_text1=Backup Delete Complete</action>
1901 <action function="set">tw_slider_text=Swipe to Delete</action>
1902 <action function="page">confirm_action</action>
1903 </actions>
1904 </object>
1905
1906 <object type="checkbox">
1907 <placement x="%col1_x%" y="%backup_button_row1%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001908 <text>Enable MD5 verification of backup.</text>
1909 <data variable="tw_skip_md5_check" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001910 </object>
1911
1912 <object type="slider">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001913 <text>Swipe to Restore</text>
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001914 <action function="page">restore_run</action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001915 </object>
1916
1917 <object type="action">
1918 <touch key="home" />
1919 <action function="page">main</action>
1920 </object>
1921
1922 <object type="action">
1923 <touch key="back" />
1924 <action function="page">restore</action>
1925 </object>
1926 </page>
1927
1928 <page name="renamebackup">
1929 <object type="template" name="header" />
1930
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001931 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001932 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001933 <text>Please Enter a New Backup Name</text>
1934 </object>
1935
1936 <object type="input">
1937 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001938 <text>%tw_backup_rename%</text>
1939 <data name="tw_backup_rename" />
1940 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]" />
1941 <actions>
1942 <action function="set">tw_back=restore</action>
1943 <action function="set">tw_action=cmd</action>
1944 <action function="set">tw_action_param=cd %tw_backups_folder% && mv &quot;%tw_restore_name%&quot; &quot;%tw_backup_rename%&quot;</action>
1945 <action function="set">tw_text1=Rename Backup?</action>
1946 <action function="set">tw_text2=This cannot be undone!</action>
1947 <action function="set">tw_action_text1=Renaming Backup...</action>
1948 <action function="set">tw_complete_text1=Backup Rename Complete</action>
1949 <action function="set">tw_slider_text=Swipe to Rename</action>
1950 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
1951 <action function="set">tw_existpage=renamebackup</action>
1952 <action function="set">tw_notexistpage=confirm_action</action>
1953 <action function="page">filecheck</action>
1954 </actions>
1955 </object>
1956
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001957 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001958 <condition var1="tw_fileexists" var2="1" />
1959 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001960 <font resource="font" color="%text_fail_color%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001961 <text>A backup with that name already exists!</text>
1962 </object>
1963
1964 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001965 <placement x="%col_center_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001966 <text>Cancel</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001967 <action function="page">restore_select</action>
1968 </object>
1969
1970 <object type="template" name="keyboardtemplate" />
1971
1972 <object type="action">
1973 <touch key="home" />
1974 <action function="page">main</action>
1975 </object>
1976
1977 <object type="action">
1978 <touch key="back" />
1979 <action function="page">restore_select</action>
1980 </object>
1981
1982 <object type="template" name="footer" />
1983 </page>
1984
1985 <page name="restore_run">
1986 <object type="template" name="header" />
1987
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001988 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001989 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
1990 <text>%tw_operation% %tw_partition%</text>
1991 </object>
1992
Ethan Yonker21ff02a2015-02-18 14:35:00 -06001993 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05001994 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
1995 <text>%tw_size_progress%</text>
1996 </object>
1997
1998 <object type="template" name="action_page_console" />
1999
2000 <object type="template" name="progress_bar" />
2001
2002 <object type="action">
2003 <condition var1="tw_operation_state" var2="1" />
2004 <actions>
2005 <action function="set">tw_back=restore_select</action>
2006 <action function="set">tw_complete_text1=Restore Complete</action>
2007 <action function="set">tw_show_reboot=1</action>
2008 <action function="page">action_complete</action>
2009 </actions>
2010 </object>
2011
2012 <object type="action">
2013 <action function="nandroid">restore</action>
2014 </object>
2015 </page>
2016
2017 <page name="selectstorage">
2018 <object type="template" name="header" />
2019
2020 <object type="partitionlist">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002021 <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%storage_list_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002022 <text>Select Storage:</text>
2023 <icon selected="radio_true" unselected="radio_false" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002024 <data name="tw_storage_path" />
2025 <listtype name="storage" />
2026 </object>
2027
2028 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002029 <placement x="%col_center_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002030 <text>OK</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002031 <actions>
2032 <action function="set">tw_clear_destination=%tw_back%</action>
2033 <action function="page">clear_vars</action>
2034 </actions>
2035 </object>
2036
2037 <object type="action">
2038 <touch key="home" />
2039 <action function="page">main</action>
2040 </object>
2041
2042 <object type="action">
2043 <touch key="back" />
2044 <actions>
2045 <action function="page">%tw_back%</action>
2046 </actions>
2047 </object>
2048
2049 <object type="template" name="footer" />
2050 </page>
2051
2052 <page name="mount">
2053 <object type="template" name="header" />
2054
2055 <object type="partitionlist">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002056 <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%mount_list_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002057 <text>Select Partitions to Mount:</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002058 <listtype name="mount" />
2059 </object>
2060
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002061 <object type="button" style="fillbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002062 <placement x="%col1_x%" y="%mount_storage_row%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002063 <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
2064 <actions>
2065 <action function="set">tw_back=mount</action>
2066 <action function="page">selectstorage</action>
2067 </actions>
2068 </object>
2069
2070 <object type="button">
Ethan Yonker3d49ea72014-08-04 09:14:12 -05002071 <condition var1="tw_has_usb_storage" var2="1" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002072 <placement x="%col1_x%" y="row4_y" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002073 <text>USB Storage</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002074 <action function="page">usb_mount</action>
2075 </object>
2076
2077 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002078 <conditions>
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -04002079 <condition var1="tw_has_mtp" var2="1" />
2080 <condition var1="tw_mtp_enabled" var2="0" />
2081 </conditions>
2082 <placement x="%col2_x%" y="row4_y" />
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -04002083 <text>Enable MTP</text>
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -04002084 <action function="startmtp"></action>
2085 </object>
2086
2087 <object type="button">
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -04002088 <conditions>
2089 <condition var1="tw_has_mtp" var2="1" />
2090 <condition var1="tw_mtp_enabled" var2="1" />
2091 </conditions>
2092 <placement x="%col2_x%" y="row4_y" />
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -04002093 <text>Disable MTP</text>
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -04002094 <action function="stopmtp"></action>
2095 </object>
2096
2097 <object type="button">
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -04002098 <conditions>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002099 <condition var1="tw_is_encrypted" var2="1" />
2100 <condition var1="tw_is_decrypted" var2="0" />
2101 </conditions>
2102 <placement x="%col2_x%" y="row4_y" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002103 <text>Decrypt Data</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002104 <action function="page">decrypt</action>
2105 </object>
2106
2107 <object type="action">
2108 <touch key="home" />
2109 <action function="page">main</action>
2110 </object>
2111
2112 <object type="action">
2113 <touch key="back" />
2114 <action function="page">main</action>
2115 </object>
2116
2117 <object type="template" name="footer" />
2118 </page>
2119
2120 <page name="usb_mount">
2121 <object type="template" name="header" />
2122
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002123 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002124 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2125 <text>USB Storage Mounted</text>
2126 </object>
2127
2128 <object type="text" color="%text_color%">
2129 <placement x="%col1_x%" y="%row1_text_y%" />
2130 <font resource="font" />
2131 <text>Be sure to safely remove your device</text>
2132 </object>
2133
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002134 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002135 <placement x="%col1_x%" y="%row2_text_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002136 <text>from your computer before unmounting!</text>
2137 </object>
2138
2139 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002140 <placement x="%col1_x%" y="%row3_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002141 <text>Unmount</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002142 <action function="page">usb_umount</action>
2143 </object>
2144
2145 <object type="action">
2146 <action function="mount">usb</action>
2147 </object>
2148
2149 <object type="template" name="footer" />
2150 </page>
2151
2152 <page name="usb_umount">
2153 <object type="action">
2154 <action function="unmount">usb</action>
2155 </object>
2156
2157 <object type="action">
2158 <action function="page">mount</action>
2159 </object>
2160 </page>
2161
2162 <page name="reboot">
2163 <object type="template" name="header" />
2164
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002165 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002166 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2167 <text>Reboot Menu</text>
2168 </object>
2169
Ethan Yonker72b90ab2015-02-23 08:35:48 -06002170 <object type="button" style="rebootsystem">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002171 <placement x="%col1_x%" y="%row1_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002172 <text>System</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002173 </object>
2174
2175 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002176 <condition var1="tw_reboot_poweroff" var2="1" />
2177 <placement x="%col2_x%" y="%row1_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002178 <text>Power Off</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002179 <actions>
2180 <action function="set">tw_back=reboot</action>
2181 <action function="set">tw_action=reboot</action>
2182 <action function="set">tw_action_param=poweroff</action>
2183 <action function="set">tw_has_action2=0</action>
2184 <action function="set">tw_text1=No OS Installed! Are you</action>
2185 <action function="set">tw_text2=sure you wish to power off?</action>
2186 <action function="set">tw_action_text1=Turning Off...</action>
2187 <action function="set">tw_complete_text1=Turning Off...</action>
2188 <action function="set">tw_slider_text=Swipe to Power Off</action>
2189 <action function="page">rebootcheck</action>
2190 </actions>
2191 </object>
2192
2193 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002194 <condition var1="tw_reboot_recovery" var2="1" />
2195 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002196 <text>Recovery</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002197 <actions>
2198 <action function="set">tw_back=reboot</action>
2199 <action function="set">tw_action=reboot</action>
2200 <action function="set">tw_action_param=recovery</action>
2201 <action function="set">tw_has_action2=0</action>
2202 <action function="set">tw_text1=No OS Installed! Are you</action>
2203 <action function="set">tw_text2=sure you wish to reboot?</action>
2204 <action function="set">tw_action_text1=Rebooting...</action>
2205 <action function="set">tw_complete_text1=Rebooting...</action>
2206 <action function="set">tw_slider_text=Swipe to Reboot</action>
2207 <action function="page">rebootcheck</action>
2208 </actions>
2209 </object>
2210
2211 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002212 <condition var1="tw_reboot_bootloader" var2="1" />
2213 <placement x="%col2_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002214 <text>Bootloader</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002215 <actions>
2216 <action function="set">tw_back=reboot</action>
2217 <action function="set">tw_action=reboot</action>
2218 <action function="set">tw_action_param=bootloader</action>
2219 <action function="set">tw_has_action2=0</action>
2220 <action function="set">tw_text1=No OS Installed! Are you</action>
2221 <action function="set">tw_text2=sure you wish to reboot?</action>
2222 <action function="set">tw_action_text1=Rebooting...</action>
2223 <action function="set">tw_complete_text1=Rebooting...</action>
2224 <action function="set">tw_slider_text=Swipe to Reboot</action>
2225 <action function="page">rebootcheck</action>
2226 </actions>
2227 </object>
2228
2229 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002230 <condition var1="tw_download_mode" var2="1" />
2231 <placement x="%col1_x%" y="%row3_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002232 <text>Download</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002233 <actions>
2234 <action function="set">tw_back=reboot</action>
2235 <action function="set">tw_action=reboot</action>
2236 <action function="set">tw_action_param=download</action>
2237 <action function="set">tw_has_action2=0</action>
2238 <action function="set">tw_text1=No OS Installed! Are you</action>
2239 <action function="set">tw_text2=sure you wish to reboot?</action>
2240 <action function="set">tw_action_text1=Rebooting...</action>
2241 <action function="set">tw_complete_text1=Rebooting...</action>
2242 <action function="set">tw_slider_text=Swipe to Reboot</action>
2243 <action function="page">rebootcheck</action>
2244 </actions>
2245 </object>
2246
2247 <object type="action">
2248 <touch key="home" />
2249 <action function="page">main</action>
2250 </object>
2251
2252 <object type="action">
2253 <touch key="back" />
2254 <action function="page">main</action>
2255 </object>
2256
2257 <object type="template" name="footer" />
2258 </page>
2259
2260 <page name="settings">
2261 <object type="template" name="header" />
2262
2263 <object type="checkbox">
2264 <placement x="%col1_x%" y="%row1_header_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002265 <text>Zip file signature verification.</text>
2266 <data variable="tw_signed_zip_verify" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002267 </object>
2268
2269 <object type="checkbox">
2270 <placement x="%col1_x%" y="%row1_text_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002271 <text>Use rm -rf instead of formatting.</text>
2272 <data variable="tw_rm_rf" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002273 </object>
2274
2275 <object type="checkbox">
2276 <placement x="%col1_x%" y="%row2_text_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002277 <text>Skip MD5 generation during backup.</text>
2278 <data variable="tw_skip_md5_generate" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002279 </object>
2280
2281 <object type="checkbox">
2282 <placement x="%col1_x%" y="%row3_text_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002283 <text>Enable MD5 verification of backup files.</text>
2284 <data variable="tw_skip_md5_check" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002285 </object>
2286
2287 <object type="checkbox">
2288 <placement x="%col1_x%" y="%row4_text_y%" />
Captain Throwback5f4fd8c2014-10-10 10:36:09 -04002289 <text>Use 24-hour clock.</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002290 <data variable="tw_military_time" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002291 </object>
2292
2293 <object type="checkbox">
2294 <placement x="%col1_x%" y="%row5_text_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002295 <text>Simulate actions for theme testing.</text>
2296 <data variable="tw_simulate_actions" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002297 </object>
2298
2299 <object type="checkbox">
2300 <condition var1="tw_simulate_actions" var2="1" />
2301 <placement x="%col1_x%" y="%row6_text_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002302 <text>Simulate failure for actions.</text>
2303 <data variable="tw_simulate_fail" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002304 </object>
2305
2306 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002307 <placement x="%col1_x%" y="%row3_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002308 <text>Time Zone</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002309 <action function="page">timezone</action>
2310 </object>
2311
2312 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002313 <placement x="%col2_x%" y="%row3_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002314 <text>Screen</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002315 <action function="page">screen</action>
2316 </object>
2317
2318 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002319 <placement x="%col1_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002320 <text>Restore Defaults</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002321 <action function="restoredefaultsettings"></action>
2322 </object>
2323
2324 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002325 <placement x="%col2_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002326 <text>Vibration</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002327 <action function="page">vibrate</action>
2328 </object>
2329
2330 <object type="action">
2331 <touch key="home" />
2332 <action function="page">main</action>
2333 </object>
2334
2335 <object type="action">
2336 <touch key="back" />
2337 <action function="page">main</action>
2338 </object>
2339
2340 <object type="template" name="footer" />
2341 </page>
2342
2343 <page name="timezone">
2344 <object type="template" name="header" />
2345
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002346 <object type="listbox" style="scrolllist">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002347 <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%listbox_tz_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002348 <text>Select Time Zone:</text>
2349 <icon selected="radio_true" unselected="radio_false" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002350 <data name="tw_time_zone_guisel" />
2351 <listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
2352 <listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
2353 <listitem name="(UTC -9) Alaska">AST9;ADT</listitem>
2354 <listitem name="(UTC -8) Pacific Time">PST8;PDT</listitem>
2355 <listitem name="(UTC -7) Mountain Time">MST7;MDT</listitem>
2356 <listitem name="(UTC -6) Central Time">CST6;CDT</listitem>
2357 <listitem name="(UTC -5) Eastern Time">EST5;EDT</listitem>
2358 <listitem name="(UTC -4) Atlantic Time">AST4;ADT</listitem>
2359 <listitem name="(UTC -3) Brazil, Buenos Aires">GRNLNDST3;GRNLNDDT</listitem>
2360 <listitem name="(UTC -2) Mid-Atlantic">FALKST2;FALKDT</listitem>
2361 <listitem name="(UTC -1) Azores, Cape Verde">AZOREST1;AZOREDT</listitem>
2362 <listitem name="(UTC 0) London, Dublin, Lisbon">GMT0;BST</listitem>
2363 <listitem name="(UTC +1) Berlin, Brussels, Paris">NFT-1;DFT</listitem>
2364 <listitem name="(UTC +2) Athens, Istanbul, South Africa">WET-2;WET</listitem>
2365 <listitem name="(UTC +3) Moscow, Baghdad">SAUST-3;SAUDT</listitem>
2366 <listitem name="(UTC +4) Abu Dhabi, Tbilisi, Muscat">WST-4;WDT</listitem>
2367 <listitem name="(UTC +5) Yekaterinburg, Islamabad">PAKST-5;PAKDT</listitem>
2368 <listitem name="(UTC +6) Almaty, Dhaka, Colombo">TASHST-6;TASHDT</listitem>
2369 <listitem name="(UTC +7) Bangkok, Hanoi, Jakarta">THAIST-7;THAIDT</listitem>
2370 <listitem name="(UTC +8) Beijing, Singapore, Hong Kong">TAIST-8;TAIDT</listitem>
2371 <listitem name="(UTC +9) Tokyo, Seoul, Yakutsk">JST-9;JSTDT</listitem>
2372 <listitem name="(UTC +10) Eastern Australia, Guam">EET-10;EETDT</listitem>
2373 <listitem name="(UTC +11) Vladivostok, Solomon Islands">MET-11;METDT</listitem>
2374 <listitem name="(UTC +12) Auckland, Wellington, Fiji">NZST-12;NZDT</listitem>
2375 </object>
2376
2377 <object type="checkbox">
2378 <placement x="%col1_x%" y="%row_dst_text_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002379 <text>Do you use daylight savings time (DST)?</text>
2380 <data variable="tw_time_zone_guidst" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002381 </object>
2382
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002383 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002384 <placement x="%center_x%" y="%row_offset_text_y%" placement="5" />
2385 <text>Offset (usually 0): %tw_time_zone_guioffset%</text>
2386 </object>
2387
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002388 <object type="button" style="mediumbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002389 <placement x="%col1_medium_x%" y="%row_offset_medium_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002390 <text>None</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002391 <action function="set">tw_time_zone_guioffset=0</action>
2392 </object>
2393
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002394 <object type="button" style="mediumbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002395 <placement x="%col2_medium_x%" y="%row_offset_medium_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002396 <text>15</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002397 <action function="set">tw_time_zone_guioffset=15</action>
2398 </object>
2399
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002400 <object type="button" style="mediumbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002401 <placement x="%col3_medium_x%" y="%row_offset_medium_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002402 <text>30</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002403 <action function="set">tw_time_zone_guioffset=30</action>
2404 </object>
2405
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002406 <object type="button" style="mediumbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002407 <placement x="%col4_medium_x%" y="%row_offset_medium_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002408 <text>45</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002409 <action function="set">tw_time_zone_guioffset=45</action>
2410 </object>
2411
2412 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002413 <placement x="%col_center_x%" y="%tz_set_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002414 <text>Set Time Zone</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002415 <action function="setguitimezone"></action>
2416 </object>
2417
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002418 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002419 <placement x="%center_x%" y="%tz_current_y%" placement="5" />
2420 <text>Current Time Zone: %tw_time_zone%</text>
2421 </object>
2422
2423 <object type="action">
2424 <touch key="home" />
2425 <action function="page">main</action>
2426 </object>
2427
2428 <object type="action">
2429 <touch key="back" />
2430 <action function="page">settings</action>
2431 </object>
2432 </page>
2433
2434 <page name="screen">
2435 <object type="template" name="header" />
2436
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002437 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002438 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2439 <text>Screen Settings</text>
2440 </object>
2441
2442 <object type="button">
2443 <placement x="%col1_x%" y="%row2_text_y%" />
2444 <font resource="font" color="%text_color%" />
2445 <condition var1="tw_screen_timeout_secs" op="=" var2="0" />
2446 <condition var1="tw_no_screen_timeout" op="!=" var2="1" />
2447 <text>Enable screen timeout.</text>
2448 <image resource="checkbox_false" />
2449 <action function="set">tw_screen_timeout_secs=60</action>
2450 </object>
2451
2452 <object type="button">
2453 <placement x="%col1_x%" y="%row2_text_y%" />
2454 <font resource="font" color="%text_color%" />
2455 <condition var1="tw_screen_timeout_secs" op="!=" var2="0" />
2456 <condition var1="tw_no_screen_timeout" op="!=" var2="1" />
2457 <text>Enable screen timeout.</text>
2458 <image resource="checkbox_true" />
2459 <action function="set">tw_screen_timeout_secs=0</action>
2460 </object>
2461
2462 <object type="slidervalue">
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002463 <conditions>
2464 <condition var1="tw_screen_timeout_secs" op="!=" var2="0" />
2465 <condition var1="tw_no_screen_timeout" op="!=" var2="1" />
2466 </conditions>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002467 <placement x="col1_x" y="%row4_text_y%" w="%slidervalue_w%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002468 <text>Screen timeout in seconds:</text>
2469 <data variable="tw_screen_timeout_secs" min="15" max="300" />
2470 </object>
2471
2472 <object type="slidervalue">
2473 <condition var1="tw_has_brightnesss_file" var2="1" />
2474 <placement x="col1_x" y="%row8_text_y%" w="%slidervalue_w%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002475 <text>Brightness: %tw_brightness_pct%%</text>
2476 <data variable="tw_brightness_pct" min="10" max="100" />
2477 <actions>
2478 <action function="set">tw_brightness=%tw_brightness_max%</action>
2479 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
2480 <action function="compute">tw_brightness/100</action>
xNUTxe85f02d2014-07-18 01:30:58 +02002481 <action function="setbrightness">%tw_brightness%</action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002482 </actions>
2483 </object>
2484
2485 <object type="action">
2486 <touch key="home" />
2487 <action function="page">main</action>
2488 </object>
2489
2490 <object type="action">
2491 <touch key="back" />
2492 <action function="page">settings</action>
2493 </object>
2494
2495 <object type="template" name="footer" />
2496 </page>
2497
2498 <page name="vibrate">
2499 <object type="template" name="header" />
2500
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002501 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002502 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2503 <text>Vibration Settings :</text>
2504 </object>
2505
2506 <object type="slidervalue">
2507 <placement x="col1_x" y="%row1_text_y%" w="%slidervalue_w%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002508 <text>Button Vibration:</text>
2509 <data variable="tw_button_vibrate" min="0" max="300" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002510 </object>
2511
2512 <object type="slidervalue">
2513 <placement x="col1_x" y="%row5_text_y%" w="%slidervalue_w%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002514 <text>Keyboard Vibration:</text>
2515 <data variable="tw_keyboard_vibrate" min="0" max="300" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002516 </object>
2517
2518 <object type="slidervalue">
2519 <placement x="col1_x" y="%row9_text_y%" w="%slidervalue_w%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002520 <text>Action Vibration:</text>
2521 <data variable="tw_action_vibrate" min="0" max="500" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002522 </object>
2523
2524 <object type="action">
2525 <touch key="home" />
2526 <action function="page">main</action>
2527 </object>
2528
2529 <object type="action">
2530 <touch key="back" />
2531 <action function="page">settings</action>
2532 </object>
2533
2534 <object type="template" name="footer" />
2535 </page>
2536
2537 <page name="advanced">
2538 <object type="template" name="header" />
2539
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002540 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002541 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2542 <text>Advanced</text>
2543 </object>
2544
2545 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002546 <placement x="%col1_x%" y="%row1_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002547 <text>Copy Log to SD</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002548 <actions>
2549 <action function="set">tw_back=advanced</action>
2550 <action function="set">tw_action=copylog</action>
2551 <action function="set">tw_text1=Copy Log to SD Card?</action>
2552 <action function="set">tw_action_text1=Copying Log to SD Card...</action>
2553 <action function="set">tw_complete_text1=Log Copy Complete</action>
2554 <action function="set">tw_slider_text=Swipe to Confirm</action>
2555 <action function="page">confirm_action</action>
2556 </actions>
2557 </object>
2558
2559 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002560 <placement x="%col2_x%" y="%row1_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002561 <text>Fix Permissions</text>
thata3d31fb2014-12-21 22:27:40 +01002562 <action function="page">fixperms</action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002563 </object>
2564
2565 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002566 <condition var1="tw_allow_partition_sdcard" var2="1" />
2567 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002568 <text>Partition SD Card</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002569 <action function="page">partsdcard</action>
2570 </object>
2571
2572 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002573 <placement x="%col2_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002574 <text>File Manager</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002575 <action function="page">filemanagerlist</action>
2576 </object>
2577
2578 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002579 <placement x="%col1_x%" y="%row3_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002580 <text>Terminal Command</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002581 <action function="page">terminalfolder</action>
2582 </object>
2583
2584 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002585 <placement x="%col2_x%" y="%row3_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002586 <text>Reload Theme</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002587 <action function="reload"></action>
2588 </object>
2589
2590 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002591 <placement x="%col1_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002592 <text>ADB Sideload</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002593 <action function="page">sideload</action>
2594 </object>
2595
2596 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002597 <condition var1="tw_show_dumlock" var2="1" />
2598 <placement x="%col2_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002599 <text>HTC Dumlock</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002600 <action function="page">htcdumlock</action>
2601 </object>
2602
2603 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002604 <condition var1="tw_has_injecttwrp" var2="1" />
2605 <placement x="%col2_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002606 <text>Re-Inject TWRP</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002607 <actions>
2608 <action function="set">tw_back=advanced</action>
2609 <action function="set">tw_action=reinjecttwrp</action>
2610 <action function="set">tw_text1=Re-Inject TWRP?</action>
2611 <action function="set">tw_action_text1=Re-Injecting TWRP...</action>
2612 <action function="set">tw_complete_text1=TWRP Injection Complete</action>
2613 <action function="set">tw_slider_text=Swipe to Confirm</action>
2614 <action function="page">confirm_action</action>
2615 </actions>
2616 </object>
2617
2618 <object type="action">
2619 <touch key="home" />
2620 <action function="page">main</action>
2621 </object>
2622
2623 <object type="action">
2624 <touch key="back" />
2625 <action function="page">main</action>
2626 </object>
2627
2628 <object type="template" name="footer" />
2629 </page>
2630
2631 <page name="partsdcard">
2632 <object type="template" name="header" />
2633
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002634 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002635 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2636 <text>Partition SD Card</text>
2637 </object>
2638
2639 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002640 <placement x="%col1_x%" y="%row1_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002641 <text></text>
2642 <image resource="minus_button" />
2643 <action function="addsubtract">tw_sdext_size-128</action>
2644 </object>
2645
2646 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002647 <placement x="%sd_plus_x%" y="%row1_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002648 <text></text>
2649 <image resource="plus_button" />
2650 <action function="addsubtract">tw_sdext_size+128</action>
2651 </object>
2652
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002653 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002654 <placement x="%sdext_text_x%" y="%sdext_text_y%" />
2655 <text>EXT Size: %tw_sdext_size%</text>
2656 </object>
2657
2658 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002659 <placement x="%col1_x%" y="%sdswap_button_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002660 <text></text>
2661 <image resource="minus_button" />
2662 <action function="addsubtract">tw_swap_size-32</action>
2663 </object>
2664
2665 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002666 <placement x="%sd_plus_x%" y="%sdswap_button_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002667 <text></text>
2668 <image resource="plus_button" />
2669 <action function="addsubtract">tw_swap_size+32</action>
2670 </object>
2671
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002672 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002673 <placement x="%sdswap_text_x%" y="%sdswap_text_y%" />
2674 <text>Swap Size: %tw_swap_size%</text>
2675 </object>
2676
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002677 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002678 <placement x="%col1_x%" y="%sdfilesystem_text_y%" />
2679 <text>File system: %tw_sdpart_file_system%</text>
2680 </object>
2681
2682 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002683 <placement x="%col1_x%" y="%sdfilesystem_button_y%" />
2684 <font resource="font" color="%button_text_color%" />
2685 <text>EXT3</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002686 <action function="set">tw_sdpart_file_system=ext3</action>
2687 </object>
2688
2689 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002690 <condition var1="tw_sdext_disable_ext4" var2="0" />
2691 <placement x="%col2_x%" y="%sdfilesystem_button_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002692 <text>EXT4</text>
2693 <image resource="main_button" />
2694 <action function="set">tw_sdpart_file_system=ext4</action>
2695 </object>
2696
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002697 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002698 <placement x="%col1_x%" y="%row10_text_y%" />
2699 <text>You will lose all files on your SD card!</text>
2700 </object>
2701
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002702 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002703 <placement x="%col1_x%" y="%row11_text_y%" />
2704 <text>This action cannot be undone!</text>
2705 </object>
2706
2707 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002708 <text>Swipe to Partition</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002709 <actions>
2710 <action function="set">tw_back=partsdcard</action>
2711 <action function="set">tw_action=partitionsd</action>
2712 <action function="set">tw_has_action2=1</action>
2713 <action function="set">tw_action2=set</action>
2714 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
2715 <action function="set">tw_action_text1=Partitioning SD Card...</action>
2716 <action function="set">tw_action_text2=This will take a few minutes.</action>
2717 <action function="set">tw_complete_text1=Partitioning Complete</action>
2718 <action function="page">action_page</action>
2719 </actions>
2720 </object>
2721
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002722 <object type="action">
2723 <touch key="home" />
2724 <action function="page">main</action>
2725 </object>
2726
2727 <object type="action">
2728 <touch key="back" />
2729 <action function="page">advanced</action>
2730 </object>
2731 </page>
2732
2733 <page name="htcdumlock">
2734 <object type="template" name="header" />
2735
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002736 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002737 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2738 <text>HTC Dumlock</text>
2739 </object>
2740
2741 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002742 <placement x="%col1_x%" y="%row1_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002743 <text>Restore Original Boot</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002744 <actions>
2745 <action function="set">tw_back=htcdumlock</action>
2746 <action function="set">tw_action=htcdumlockrestoreboot</action>
2747 <action function="set">tw_text1=Restore original boot image?</action>
2748 <action function="set">tw_action_text1=Restoring Original Boot...</action>
2749 <action function="set">tw_complete_text1=Restore Original Boot Complete</action>
2750 <action function="set">tw_slider_text=Swipe to Confirm</action>
2751 <action function="page">confirm_action</action>
2752 </actions>
2753 </object>
2754
2755 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002756 <placement x="%col2_x%" y="%row1_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002757 <text>Reflash Recovery</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002758 <actions>
2759 <action function="set">tw_back=htcdumlock</action>
2760 <action function="set">tw_action=htcdumlockreflashrecovery</action>
2761 <action function="set">tw_text1=Reflash recovery to boot?</action>
2762 <action function="set">tw_action_text1=Flashing recovery to boot...</action>
2763 <action function="set">tw_complete_text1=Recovery Flash to Boot Complete</action>
2764 <action function="set">tw_slider_text=Swipe to Confirm</action>
2765 <action function="page">confirm_action</action>
2766 </actions>
2767 </object>
2768
2769 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002770 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002771 <text>Install HTC Dumlock</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002772 <actions>
2773 <action function="set">tw_back=htcdumlock</action>
2774 <action function="set">tw_action=installhtcdumlock</action>
2775 <action function="set">tw_text1=Install HTC dumlock files to ROM?</action>
2776 <action function="set">tw_action_text1=Installing HTC Dumlock...</action>
2777 <action function="set">tw_complete_text1=HTC Dumlock Install Complete</action>
2778 <action function="set">tw_slider_text=Swipe to Confirm</action>
2779 <action function="page">confirm_action</action>
2780 </actions>
2781 </object>
2782
2783 <object type="action">
2784 <touch key="home" />
2785 <action function="page">main</action>
2786 </object>
2787
2788 <object type="action">
2789 <touch key="back" />
2790 <action function="page">advanced</action>
2791 </object>
2792
2793 <object type="template" name="footer" />
2794 </page>
2795
2796 <page name="lock">
2797 <background color="#000000A0" />
2798
2799 <object type="image">
2800 <image resource="unlock-icon" />
2801 <placement x="%lock_x%" y="%lock_y%" />
2802 </object>
2803
2804 <object type="slider">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002805 <text>Swipe to Unlock</text>
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002806 <action function="overlay"></action>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002807 </object>
2808 </page>
2809
2810 <page name="filemanagerlist">
2811 <object type="template" name="header" />
2812
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002813 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002814 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
2815 <text>File Manager: Select a File or Folder</text>
2816 </object>
2817
2818 <object type="fileselector">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002819 <placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002820 <text>%tw_file_location1%</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002821 <folders="1" files="1" />
2822 <path name="tw_file_location1" default="/" />
2823 <data name="tw_filename1" />
2824 <selection name="tw_selection1" />
2825 </object>
2826
2827 <object type="template" name="sort_options" />
2828
2829 <object type="action">
2830 <actions>
2831 <action function="set">tw_fm_type=File</action>
2832 <action function="set">tw_fm_isfolder=0</action>
2833 </actions>
2834 </object>
2835
2836 <object type="action">
2837 <touch key="home" />
2838 <action function="page">main</action>
2839 </object>
2840
2841 <object type="action">
2842 <touch key="back" />
2843 <action function="page">advanced</action>
2844 </object>
2845
2846 <object type="action">
2847 <condition var1="tw_filename1" op="modified" />
2848 <actions>
2849 <action function="page">filemanageroptions</action>
2850 </actions>
2851 </object>
2852
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002853 <object type="button" style="mediumbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002854 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002855 <text>Select</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002856 <actions>
2857 <action function="set">tw_filename1=tw_file_location1</action>
2858 <action function="set">tw_fm_isfolder=1</action>
2859 <action function="set">tw_fm_type=Folder</action>
2860 <action function="page">filemanageroptions</action>
2861 </actions>
2862 </object>
2863 </page>
2864
2865 <page name="filemanageroptions">
2866 <object type="template" name="header" />
2867
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002868 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002869 <placement x="%center_x%" y="%row1_text_y%" placement="5"/>
2870 <text>%tw_fm_type% Selected:</text>
2871 </object>
2872
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002873 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002874 <placement x="%center_x%" y="%row2_text_y%" placement="5"/>
2875 <text>%tw_filename1%</text>
2876 </object>
2877
2878 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002879 <condition var1="tw_fm_isfolder" var2="0" />
2880 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002881 <text>Copy File</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002882 <actions>
2883 <action function="set">tw_filemanager_command=cp</action>
2884 <action function="set">tw_fm_text1=Copying</action>
2885 <action function="page">choosedestinationfolder</action>
2886 </actions>
2887 </object>
2888
2889 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002890 <condition var1="tw_fm_isfolder" var2="1" />
2891 <placement x="%col1_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002892 <text>Copy Folder</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002893 <actions>
2894 <action function="set">tw_filemanager_command=cd &quot;%tw_file_location1%&quot; && cd .. && cp -R</action>
2895 <action function="set">tw_fm_text1=Copying</action>
2896 <action function="page">choosedestinationfolder</action>
2897 </actions>
2898 </object>
2899
2900 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002901 <placement x="%col2_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002902 <text>Move</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002903 <actions>
2904 <action function="set">tw_filemanager_command=mv</action>
2905 <action function="set">tw_fm_text1=Moving</action>
2906 <action function="page">choosedestinationfolder</action>
2907 </actions>
2908 </object>
2909
2910 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002911 <placement x="%col1_x%" y="%row3_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002912 <text>chmod 755</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002913 <actions>
2914 <action function="set">tw_filemanager_command=chmod 755</action>
2915 <action function="set">tw_fm_text1=chmod 755</action>
2916 <action function="set">tw_fm_text2=</action>
2917 <action function="set">tw_fm_text3=</action>
2918 <action function="set">tw_include_text3=0</action>
2919 <action function="set">tw_back=filemanageroptions</action>
2920 <action function="page">filemanagerconfirm</action>
2921 </actions>
2922 </object>
2923
2924 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002925 <placement x="%col2_x%" y="%row3_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002926 <text>chmod</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002927 <actions>
2928 <action function="set">tw_filemanager_rename=0000</action>
2929 <action function="set">tw_fm_text2=</action>
2930 <action function="set">tw_fm_text3=</action>
2931 <action function="set">tw_include_text3=0</action>
2932 <action function="set">tw_back=filemanageroptions</action>
2933 <action function="page">filemanagerchmod</action>
2934 </actions>
2935 </object>
2936
2937 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002938 <placement x="%col1_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002939 <text>Delete</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002940 <actions>
2941 <action function="set">tw_filemanager_command=rm -rf</action>
2942 <action function="set">tw_fm_text1=Deleting</action>
2943 <action function="set">tw_fm_text2=</action>
2944 <action function="set">tw_fm_text3=</action>
2945 <action function="set">tw_include_text3=0</action>
2946 <action function="set">tw_back=filemanageroptions</action>
2947 <action function="page">filemanagerconfirm</action>
2948 </actions>
2949 </object>
2950
2951 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002952 <condition var1="tw_fm_isfolder" var2="0" />
2953 <placement x="%col2_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002954 <text>Rename File</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002955 <actions>
2956 <action function="set">tw_filemanager_rename=tw_selection1</action>
2957 <action function="set">tw_fm_text1=Renaming</action>
2958 <action function="set">tw_filemanager_command=mv</action>
2959 <action function="page">filemanagerrenamefile</action>
2960 </actions>
2961 </object>
2962
2963 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002964 <condition var1="tw_fm_isfolder" var2="1" />
2965 <placement x="%col2_x%" y="%row4_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002966 <text>Rename Folder</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002967 <actions>
2968 <action function="set">tw_filemanager_rename=tw_selection1</action>
2969 <action function="set">tw_fm_text1=Renaming</action>
2970 <action function="set">tw_filemanager_command=cd &quot;%tw_file_location1%&quot; && cd .. && mv</action>
2971 <action function="page">filemanagerrenamefolder</action>
2972 </actions>
2973 </object>
2974
2975 <object type="action">
2976 <touch key="home" />
2977 <action function="page">main</action>
2978 </object>
2979
2980 <object type="action">
2981 <touch key="back" />
2982 <action function="page">filemanagerlist</action>
2983 </object>
2984
2985 <object type="template" name="footer" />
2986 </page>
2987
2988 <page name="choosedestinationfolder">
2989 <object type="template" name="header" />
2990
Ethan Yonker21ff02a2015-02-18 14:35:00 -06002991 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002992 <placement x="%center_x%" y="%row1_header_y%" placement="5"/>
2993 <text>Browse to Destination & Press Select</text>
2994 </object>
2995
2996 <object type="fileselector">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002997 <placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002998 <text>%tw_file_location2%</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05002999 <filter folders="1" files="0" />
3000 <path name="tw_file_location2" default="/" />
3001 <data name="tw_filename2" />
3002 <selection name="tw_selection2" />
3003 </object>
3004
3005 <object type="template" name="sort_options" />
3006
3007 <object type="action">
3008 <touch key="home" />
3009 <action function="page">main</action>
3010 </object>
3011
3012 <object type="action">
3013 <touch key="back" />
3014 <action function="page">filemanageroptions</action>
3015 </object>
3016
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003017 <object type="button" style="mediumbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003018 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003019 <text>Select</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003020 <actions>
3021 <action function="set">tw_fm_text2=to</action>
3022 <action function="set">tw_fm_text3=%tw_file_location2%</action>
3023 <action function="set">tw_include_text3=1</action>
3024 <action function="set">tw_back=filemanageroptions</action>
3025 <action function="page">filemanagerconfirm</action>
3026 </actions>
3027 </object>
3028 </page>
3029
3030 <page name="filemanagerrenamefile">
3031 <object type="template" name="header" />
3032
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003033 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003034 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003035 <text>Please Enter a New %tw_fm_type% Name</text>
3036 </object>
3037
3038 <object type="input">
3039 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003040 <text>%tw_filemanager_rename%</text>
3041 <data name="tw_filemanager_rename" />
3042 <restrict minlen="1" maxlen="128" />
3043 <actions>
3044 <action function="set">tw_fm_text2=to</action>
3045 <action function="set">tw_fm_text3=&quot;%tw_file_location1%/%tw_filemanager_rename%&quot;</action>
3046 <action function="set">tw_include_text3=1</action>
3047 <action function="set">tw_back=filemanageroptions</action>
3048 <action function="page">filemanagerconfirm</action>
3049 </actions>
3050 </object>
3051
3052 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003053 <placement x="%col_center_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003054 <text>Cancel</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003055 <action function="page">filemanageroptions</action>
3056 </object>
3057
3058 <object type="template" name="keyboardtemplate" />
3059
3060 <object type="action">
3061 <touch key="home" />
3062 <action function="page">main</action>
3063 </object>
3064
3065 <object type="action">
3066 <touch key="back" />
3067 <action function="page">filemanageroptions</action>
3068 </object>
3069
3070 <object type="template" name="footer" />
3071 </page>
3072
3073 <page name="filemanagerrenamefolder">
3074 <object type="template" name="header" />
3075
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003076 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003077 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003078 <text>Please Enter a New %tw_fm_type% Name</text>
3079 </object>
3080
3081 <object type="input">
3082 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003083 <text>%tw_filemanager_rename%</text>
3084 <data name="tw_filemanager_rename" />
3085 <restrict minlen="1" maxlen="128" />
3086 <actions>
3087 <action function="set">tw_fm_text2=to</action>
3088 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
3089 <action function="set">tw_include_text3=1</action>
3090 <action function="set">tw_back=filemanageroptions</action>
3091 <action function="page">filemanagerconfirm</action>
3092 </actions>
3093 </object>
3094
3095 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003096 <placement x="%col_center_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003097 <text>Cancel</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003098 <action function="page">filemanageroptions</action>
3099 </object>
3100
3101 <object type="template" name="keyboardtemplate" />
3102
3103 <object type="action">
3104 <touch key="home" />
3105 <action function="page">main</action>
3106 </object>
3107
3108 <object type="action">
3109 <touch key="back" />
3110 <action function="page">filemanageroptions</action>
3111 </object>
3112
3113 <object type="template" name="footer" />
3114 </page>
3115
3116 <page name="filemanagerchmod">
3117 <object type="template" name="header" />
3118
3119 <object type="text" color="%text_color%">
3120 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
3121 <font resource="font" />
3122 <text>Please Enter New Permissions</text>
3123 </object>
3124
3125 <object type="input">
3126 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003127 <text>%tw_filemanager_rename%</text>
3128 <data name="tw_filemanager_rename" />
3129 <restrict minlen="3" maxlen="4" allow="0123456789" />
3130 <actions>
3131 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
3132 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
3133 <action function="set">tw_back=filemanageroptions</action>
3134 <action function="page">filemanagerconfirm</action>
3135 </actions>
3136 </object>
3137
3138 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003139 <placement x="%col_center_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003140 <text>Cancel</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003141 <action function="page">filemanageroptions</action>
3142 </object>
3143
3144 <object type="template" name="keyboardtemplate" />
3145
3146 <object type="action">
3147 <touch key="home" />
3148 <action function="page">main</action>
3149 </object>
3150
3151 <object type="action">
3152 <touch key="back" />
3153 <action function="page">filemanageroptions</action>
3154 </object>
3155
3156 <object type="template" name="footer" />
3157 </page>
3158
3159 <page name="filemanagerconfirm">
3160 <object type="template" name="header" />
3161
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003162 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003163 <placement x="%center_x%" y="%row1_text_y%" placement="5"/>
3164 <text>%tw_fm_text1%</text>
3165 </object>
3166
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003167 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003168 <placement x="%center_x%" y="%row2_text_y%" placement="5"/>
3169 <text>%tw_filename1%</text>
3170 </object>
3171
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003172 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003173 <placement x="%center_x%" y="%row3_text_y%" placement="5"/>
3174 <text>%tw_fm_text2%</text>
3175 </object>
3176
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003177 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003178 <placement x="%center_x%" y="%row4_text_y%" placement="5"/>
3179 <text>%tw_fm_text3%</text>
3180 </object>
3181
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003182 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003183 <placement x="%center_x%" y="%row10_text_y%" placement="5"/>
3184 <text>Press back button to cancel.</text>
3185 </object>
3186
3187 <object type="slider">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003188 <action function="page">filemanageracction</action>
3189 </object>
3190
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003191 <object type="action">
3192 <touch key="back" />
3193 <action function="page">%tw_back%</action>
3194 </object>
3195
3196 <object type="action">
3197 <touch key="home" />
3198 <action function="page">main</action>
3199 </object>
3200 </page>
3201
3202 <page name="filemanageracction">
3203 <object type="template" name="header" />
3204
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003205 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003206 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
3207 <text>%tw_fm_text1%</text>
3208 </object>
3209
3210 <object type="template" name="action_page_console" />
3211
3212 <object type="template" name="progress_bar" />
3213
3214 <object type="action">
3215 <conditions>
3216 <condition var1="tw_operation_state" var2="1" />
3217 <condition var1="tw_operation_status" var2="0" />
3218 </conditions>
3219 <actions>
3220 <action function="set">tw_back=filemanagerlist</action>
3221 <action function="set">tw_complete_text1=File Operation Complete</action>
3222 <action function="page">action_complete</action>
3223 </actions>
3224 </object>
3225
3226 <object type="action">
3227 <conditions>
3228 <condition var1="tw_operation_state" var2="1" />
3229 <condition var1="tw_operation_status" op="!=" var2="0" />
3230 </conditions>
3231 <actions>
3232 <action function="set">tw_complete_text1=File Operation Complete</action>
3233 <action function="page">action_complete</action>
3234 </actions>
3235 </object>
3236
3237 <object type="action">
3238 <condition var1="tw_include_text3" var2="0" />
3239 <actions>
3240 <action function="cmd">%tw_filemanager_command% &quot;%tw_filename1%&quot;</action>
3241 </actions>
3242 </object>
3243
3244 <object type="action">
3245 <condition var1="tw_include_text3" var2="1" />
3246 <actions>
3247 <action function="cmd">%tw_filemanager_command% &quot;%tw_filename1%&quot; &quot;%tw_fm_text3%&quot;</action>
3248 </actions>
3249 </object>
3250 </page>
3251
3252 <page name="decrypt">
3253 <object type="template" name="header" />
3254
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003255 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003256 <placement x="%center_x%" y="%row1_header_y%" placement="5" />
3257 <text>Please Enter Your Password</text>
3258 </object>
3259
3260 <object type="input">
3261 <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003262 <text>%tw_crypto_display%</text>
3263 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display" />
3264 <restrict minlen="1" maxlen="254" />
3265 <actions>
3266 <action function="page">trydecrypt</action>
3267 </actions>
3268 </object>
3269
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003270 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003271 <condition var1="tw_password_fail" var2="1" />
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003272 <font resource="font" color="%text_fail_color%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003273 <placement x="%center_x%" y="%row2_text_y%" placement="5" />
3274 <text>Password Failed, Please Try Again</text>
3275 </object>
3276
3277 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003278 <placement x="%col_center_x%" y="%row2_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003279 <text>Cancel</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003280 <actions>
3281 <action function="set">tw_page_done=1</action>
3282 <action function="page">main</action>
3283 </actions>
3284 </object>
3285
3286 <object type="template" name="keyboardtemplate" />
3287
3288 <object type="template" name="footer" />
3289 </page>
3290
3291 <page name="trydecrypt">
3292 <object type="template" name="header" />
3293
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003294 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003295 <placement x="%center_x%" y="%row1_text_y%" placement="5" />
3296 <text>Trying Decryption with Your Password</text>
3297 </object>
3298
3299 <object type="template" name="action_page_console" />
3300
3301 <object type="template" name="progress_bar" />
3302
3303 <object type="action">
3304 <action function="decrypt"></action>
3305 </object>
3306
3307 <object type="action">
3308 <conditions>
3309 <condition var1="tw_operation_state" var2="1" />
3310 <condition var1="tw_operation_status" op="!=" var2="0" />
3311 </conditions>
3312 <actions>
3313 <action function="set">tw_password_fail=1</action>
3314 <action function="page">decrypt</action>
3315 </actions>
3316 </object>
3317
3318 <object type="action">
3319 <conditions>
3320 <condition var1="tw_operation_state" var2="1" />
3321 <condition var1="tw_operation_status" op="=" var2="0" />
3322 </conditions>
3323 <actions>
3324 <action function="set">tw_page_done=1</action>
3325 <action function="page">main</action>
3326 </actions>
3327 </object>
3328 </page>
3329
3330 <page name="terminalfolder">
3331 <object type="template" name="header" />
3332
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003333 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003334 <placement x="%center_x%" y="%row1_header_y%" placement="5"/>
3335 <text>Browse to Starting Folder</text>
3336 </object>
3337
3338 <object type="fileselector">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003339 <placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003340 <text>%tw_terminal_location%</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003341 <filter folders="1" files="0" />
3342 <path name="tw_terminal_location" default="/" />
3343 <data name="tw_terminal" />
3344 <selection name="tw_terminal_selection" />
3345 </object>
3346
3347 <object type="template" name="sort_options" />
3348
3349 <object type="action">
3350 <touch key="home" />
3351 <action function="page">main</action>
3352 </object>
3353
3354 <object type="action">
3355 <touch key="back" />
3356 <action function="page">advanced</action>
3357 </object>
3358
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003359 <object type="button" style="mediumbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003360 <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003361 <text>Select</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003362 <actions>
3363 <action function="page">terminalcommand</action>
3364 </actions>
3365 </object>
3366 </page>
3367
3368 <page name="terminalcommand">
3369 <object type="template" name="header" />
3370
3371 <object type="console">
3372 <placement x="%console_x%" y="0" w="%console_width%" h="%terminal_console_height%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003373 </object>
3374
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003375 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003376 <placement x="%col1_x%" y="%terminal_text_y%" placement="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003377 <text>Starting Path: %tw_terminal_location%</text>
3378 </object>
3379
3380 <object type="input">
3381 <condition var1="tw_terminal_state" var2="0" />
3382 <placement x="%col1_x%" y="%terminal_text_y%" w="%input_width%" h="%input_height%" placement="0" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003383 <text>%tw_terminal_command%</text>
3384 <data name="tw_terminal_command" />
3385 <restrict minlen="1" />
3386 <action function="terminalcommand">%tw_terminal_command%</action>
3387 </object>
3388
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003389 <object type="button" style="mediumbutton">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003390 <condition var1="tw_terminal_state" var2="1" />
3391 <placement x="%filemanager_select_x%" y="%terminal_button_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003392 <text>KILL</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003393 <action function="killterminal"></action>
3394 </object>
3395
3396 <object type="template" name="keyboardtemplate" />
3397
3398 <object type="action">
3399 <touch key="home" />
3400 <action function="page">main</action>
3401 </object>
3402
3403 <object type="action">
3404 <touch key="back" />
3405 <action function="page">terminalfolder</action>
3406 </object>
3407 </page>
3408
3409 <page name="sideload">
3410 <object type="template" name="header" />
3411
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003412 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003413 <placement x="%center_x%" y="%row1_header_y%" placement="5"/>
3414 <text>ADB Sideload</text>
3415 </object>
3416
3417 <object type="checkbox">
3418 <placement x="%col1_x%" y="%row2_text_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003419 <text>Wipe Dalvik Cache.</text>
3420 <data variable="tw_wipe_dalvik" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003421 </object>
3422
3423 <object type="checkbox">
3424 <placement x="%col1_x%" y="%row3_text_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003425 <text>Wipe Cache.</text>
3426 <data variable="tw_wipe_cache" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003427 </object>
3428
3429 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003430 <text>Swipe to Start Sideload</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003431 <actions>
3432 <action function="set">tw_back=advanced</action>
3433 <action function="set">tw_action=adbsideload</action>
3434 <action function="set">tw_action_text1=ADB Sideload</action>
3435 <action function="set">tw_action_text2=Usage: adb sideload filename.zip</action>
3436 <action function="set">tw_complete_text1=ADB Sideload Complete</action>
3437 <action function="set">tw_has_cancel=1</action>
3438 <action function="set">tw_show_reboot=1</action>
3439 <action function="set">tw_cancel_action=adbsideloadcancel</action>
3440 <action function="page">action_page</action>
3441 </actions>
3442 </object>
3443
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003444 <object type="action">
3445 <touch key="home" />
3446 <action function="page">main</action>
3447 </object>
3448
3449 <object type="action">
3450 <touch key="back" />
3451 <action function="page">advanced</action>
3452 </object>
3453 </page>
3454
thata3d31fb2014-12-21 22:27:40 +01003455 <page name="fixperms">
3456 <object type="template" name="header" />
3457
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003458 <object type="text">
thata3d31fb2014-12-21 22:27:40 +01003459 <placement x="%center_x%" y="%row1_header_y%" placement="5"/>
3460 <text>Fix Permissions</text>
3461 </object>
3462
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003463 <object type="text">
thata3d31fb2014-12-21 22:27:40 +01003464 <placement x="%col1_x%" y="%row2_text_y%" />
3465 <text>Note: Fixing permissions is rarely needed.</text>
3466 </object>
3467
3468 <object type="checkbox">
3469 <placement x="%col1_x%" y="%row3_text_y%" />
thata3d31fb2014-12-21 22:27:40 +01003470 <text>Also fix SELinux contexts</text>
3471 <data variable="tw_fixperms_restorecon" />
thata3d31fb2014-12-21 22:27:40 +01003472 </object>
3473
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003474 <object type="text">
thata3d31fb2014-12-21 22:27:40 +01003475 <placement x="%col1_x%" y="%row4_text_y%" />
3476 <text>Fixing SELinux contexts may cause</text>
3477 </object>
3478
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003479 <object type="text">
thata3d31fb2014-12-21 22:27:40 +01003480 <placement x="%col1_x%" y="%row5_text_y%" />
3481 <text>your device to not boot properly.</text>
3482 </object>
3483
3484 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003485 <text>Swipe to Fix Permissions</text>
thata3d31fb2014-12-21 22:27:40 +01003486 <actions>
3487 <action function="set">tw_back=advanced</action>
3488 <action function="set">tw_action=fixpermissions</action>
3489 <action function="set">tw_action_text1=Fixing Permissions...</action>
3490 <action function="set">tw_complete_text1=Fix Permissions Complete</action>
3491 <action function="set">tw_slider_text=Swipe to Confirm</action>
3492 <action function="set">tw_show_reboot=1</action>
3493 <action function="page">action_page</action>
3494 </actions>
3495 </object>
3496
thata3d31fb2014-12-21 22:27:40 +01003497 <object type="action">
3498 <touch key="home" />
3499 <action function="page">main</action>
3500 </object>
3501
3502 <object type="action">
3503 <touch key="back" />
3504 <action function="page">advanced</action>
3505 </object>
3506
3507 <object type="template" name="footer" />
3508 </page>
3509
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003510 <page name="installsu">
3511 <object type="template" name="header" />
3512
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003513 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003514 <placement x="%center_x%" y="%row1_header_y%" placement="5"/>
3515 <text>Install SuperSU?</text>
3516 </object>
3517
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003518 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003519 <placement x="%center_x%" y="%row2_text_y%" placement="5"/>
3520 <text>Your device does not appear to be rooted.</text>
3521 </object>
3522
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003523 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003524 <placement x="%center_x%" y="%row3_text_y%" placement="5"/>
3525 <text>Install SuperSU now?</text>
3526 </object>
3527
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003528 <object type="text">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003529 <placement x="%center_x%" y="%row4_text_y%" placement="5"/>
3530 <text>This will root your device.</text>
3531 </object>
3532
3533 <object type="button">
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003534 <placement x="%col_center_x%" y="%row3_y%" />
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003535 <text>Do Not Install</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003536 <action function="set">tw_page_done=1</action>
3537 </object>
3538
3539 <object type="slider">
Ethan Yonker21ff02a2015-02-18 14:35:00 -06003540 <text>Swipe to Install</text>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003541 <actions>
3542 <action function="set">tw_action=installsu</action>
3543 <action function="set">tw_action_text1=Installing SuperSU</action>
3544 <action function="set">tw_action_text2=</action>
3545 <action function="page">singleaction_page</action>
3546 </actions>
3547 </object>
Ethan Yonkerd9b72002014-07-30 08:46:28 -05003548 </page>
3549 </pages>
3550</recovery>