blob: 5c92fccd312eb7297c7182446b03dda6b19ddea2 [file] [log] [blame]
z31s1g28f0a922015-11-07 18:50:22 +01001<?xml version="1.0"?>
2<recovery>
3 <styles>
4 <style name="text_l">
5 <font resource="font_l" color="%text_color%"/>
6 </style>
7
8 <style name="text_m">
9 <font resource="font_m" color="%text_color%"/>
10 </style>
11
12 <style name="text_m_accent">
13 <font resource="font_m" color="%accent_color%"/>
14 </style>
15
16 <style name="text_m_fail">
17 <font resource="font_m" color="%text_fail_color%"/>
18 </style>
19
20 <style name="text_s">
21 <font resource="font_s" color="%text_color%"/>
22 </style>
23
24 <style name="input">
25 <background color="%background_color%"/>
26 <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/>
27 <font resource="font_m" color="%text_color%"/>
28 </style>
29
30 <style name="checkbox">
31 <font resource="font_m" color="%text_color%"/>
32 <image checked="checkbox_true" unchecked="checkbox_false"/>
33 </style>
34
35 <style name="radiobutton">
36 <font resource="font_m" color="%text_color%"/>
37 <image checked="radio_true" unchecked="radio_false"/>
38 </style>
39
40 <style name="main_button">
41 <highlight color="%highlight_color%"/>
42 <font resource="font_l" color="%text_button_color%"/>
43 <image resource="main_button"/>
44 </style>
45
46 <style name="main_button_m">
47 <highlight color="%highlight_color%"/>
48 <font resource="font_m" color="%text_button_color%"/>
49 <image resource="main_button"/>
50 </style>
51
52 <style name="main_button_half_width">
53 <highlight color="%highlight_color%"/>
54 <font resource="font_m" color="%text_button_color%"/>
55 <image resource="main_button_half_width"/>
56 </style>
57
58 <style name="main_button_half_width_low">
59 <highlight color="%highlight_color%"/>
60 <font resource="font_m" color="%text_button_color%"/>
61 <image resource="main_button_half_width_low"/>
62 </style>
63
64 <style name="button_third_width">
65 <highlight color="%highlight_color%"/>
66 <font resource="font_m" color="%text_button_color%"/>
67 <image resource="tab_3"/>
68 </style>
69
70 <style name="button_quarter_width">
71 <highlight color="%highlight_color%"/>
72 <font resource="font_m" color="%text_button_color%"/>
73 <image resource="tab_4"/>
74 </style>
75
76 <style name="sort_asc">
77 <highlight color="%highlight_color%"/>
78 <font resource="font_m" color="%text_button_color%"/>
79 <image resource="sort_asc"/>
80 </style>
81
82 <style name="sort_desc">
83 <highlight color="%highlight_color%"/>
84 <font resource="font_m" color="%text_button_color%"/>
85 <image resource="sort_desc"/>
86 </style>
87
88 <style name="sort_empty">
89 <highlight color="%highlight_color%"/>
90 <font resource="font_m" color="%text_button_color%"/>
91 <image resource="sort_empty"/>
92 </style>
93
94 <style name="fab">
95 <highlight color="%highlight_color%"/>
96 <placement x="%indent_right%" y="%row21a_y%" placement="1"/>
97 <font resource="font_m" color="%button_text_color%"/>
98 </style>
99
100 <style name="tab">
101 <highlight color="%highlight_color%"/>
102 <fill color="%accent_color%"/>
103 <font resource="font_s" color="%text_button_color%"/>
104 </style>
105
106 <style name="console">
107 <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
108 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
109 <font resource="fixed"/>
110 </style>
111
z31s1g56189522016-01-13 19:12:40 +0100112 <style name="terminal">
113 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
114 <background color="%background_color%"/>
115 <font resource="fixed" spacing="3" color="%text_color%"/>
116 </style>
117
z31s1g28f0a922015-11-07 18:50:22 +0100118 <style name="fileselector">
119 <highlight color="%fileselector_highlight_color%"/>
120 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
121 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
122 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
123 <sort name="tw_gui_sort_order"/>
124 <icon folder="folder" file="file"/>
125 <background color="%background_color%"/>
126 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
127 </style>
128
129 <style name="listbox">
130 <highlight color="%fileselector_highlight_color%"/>
131 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
132 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
133 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
134 <icon selected="radio_true" unselected="radio_false"/>
135 <background color="%background_color%"/>
136 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
137 </style>
138
139 <style name="scrolllist">
140 <background color="%background_color%"/>
141 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/>
142 </style>
143
144 <style name="partitionlist">
145 <highlight color="%fileselector_highlight_color%"/>
146 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
147 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
148 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
149 <icon selected="checkbox_true" unselected="checkbox_false"/>
150 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
151 <background color="%background_color%"/>
152 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
153 </style>
154
155 <style name="partitionlist_storage">
156 <highlight color="%fileselector_highlight_color%"/>
157 <placement x="%dialog_content_x%" y="%row4_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
158 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
159 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
160 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
161 <icon selected="radio_true" unselected="radio_false"/>
162 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
163 <background color="%background_color%"/>
164 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
165 </style>
166
167 <style name="slider">
168 <placement x="%col2_x_right%" y="%row17a_y%"/>
169 <font resource="font_m" color="%text_color%"/>
170 <resource base="slider" used="slider_used" touch="slider_touch"/>
171 </style>
172
173 <style name="slider_centered">
174 <placement x="%center_x%" y="%row17a_y%"/>
175 <font resource="font_m" color="%text_color%"/>
176 <resource base="slider" used="slider_used" touch="slider_touch"/>
177 </style>
178
179 <style name="slidervalue">
180 <resource handle="handle"/>
181 <font resource="font_m" color="%text_color%"/>
182 <colors line="%fileselector_linecolor%"/>
183 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
184 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100185
186 <style name="patternpassword">
187 <size name="tw_gui_pattern_grid_size" default="3"/>
188 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100189 </styles>
190
191 <pages>
192 <page name="main">
193 <action>
194 <actions>
195 <action function="set">tw_clear_destination=main2</action>
196 <action function="page">clear_vars</action>
197 </actions>
198 </action>
199 </page>
200
201 <page name="main2">
202 <template name="page"/>
203
204 <text style="text_l">
205 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500206 <text>{@twrp_header=Team Win Recovery Project}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100207 </text>
208
209 <text style="text_m">
210 <condition var1="tw_no_cpu_temp" var2="0"/>
211 <placement x="%col1_x_header%" y="%row4_header_y%"/>
212 <text>%tw_version%</text>
213 </text>
214
215 <button style="main_button">
216 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500217 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100218 <actions>
219 <action function="queueclear"/>
220 <action function="set">tw_selectimage=0</action>
221 <action function="page">install</action>
222 </actions>
223 </button>
224
225 <button style="main_button">
226 <placement x="%center_x%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500227 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100228 <action function="page">wipe</action>
229 </button>
230
231 <button style="main_button">
232 <placement x="%col1_x_left%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500233 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100234 <action function="page">backup</action>
235 </button>
236
237 <button style="main_button">
238 <placement x="%center_x%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500239 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100240 <action function="page">restore</action>
241 </button>
242
243 <button style="main_button">
244 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500245 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100246 <action function="page">mount</action>
247 </button>
248
249 <button style="main_button">
250 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500251 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100252 <action function="page">settings</action>
253 </button>
254
255 <button style="main_button">
256 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500257 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100258 <action function="page">advanced</action>
259 </button>
260
261 <button style="main_button">
262 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500263 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100264 <action function="page">reboot</action>
265 </button>
266 </page>
267
268 <page name="install">
269 <template name="page"/>
270
271 <text style="text_l">
272 <condition var1="tw_selectimage" var2="0"/>
273 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500274 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100275 </text>
276
277 <text style="text_l">
278 <condition var1="tw_selectimage" var2="1"/>
279 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500280 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100281 </text>
282
283 <text style="text_m">
284 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500285 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100286 </text>
287
288 <template name="sort_options"/>
289
290 <fileselector>
291 <placement x="%col1_x_left%" y="%row1a_y%" w="%fileselector_install_folder_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500292 <text>{@file_selector_folders_hdr=Folders}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100293 <filter folders="1" files="0"/>
294 <path name="tw_zip_location" default="/sdcard"/>
295 <data name="select"/>
296 </fileselector>
297
298 <fileselector>
299 <condition var1="tw_selectimage" var2="0"/>
300 <placement x="%col2_x_left%" y="%row1a_y%" w="%fileselector_install_width%" h="%fileselector_install_height%"/>
301 <text>%tw_zip_location%</text>
302 <filter extn=".zip" folders="0" files="1"/>
303 <path name="tw_zip_location" default="/sdcard"/>
304 <data name="tw_filename"/>
305 <selection name="tw_file"/>
306 </fileselector>
307
308 <fileselector>
309 <condition var1="tw_selectimage" var2="1"/>
310 <placement x="%col2_x_left%" y="%row1a_y%" w="%fileselector_install_width%" h="%fileselector_install_height%"/>
311 <text>%tw_zip_location%</text>
312 <filter extn=".img" folders="0" files="1"/>
313 <path name="tw_zip_location" default="/sdcard"/>
314 <data name="tw_filename"/>
315 <selection name="tw_file"/>
316 </fileselector>
317
318 <button style="main_button_half_width_low">
319 <condition var1="tw_selectimage" var2="0"/>
320 <placement x="%col_button_right%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500321 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100322 <actions>
323 <action function="set">tw_selectimage=1</action>
324 <action function="page">install</action>
325 </actions>
326 </button>
327
328 <button style="main_button_half_width_low">
329 <condition var1="tw_selectimage" var2="1"/>
330 <placement x="%col_button_right%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500331 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100332 <actions>
333 <action function="set">tw_selectimage=0</action>
334 <action function="page">install</action>
335 </actions>
336 </button>
337
338 <button style="main_button_half_width_low">
339 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500340 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100341 <actions>
342 <action function="set">tw_back=install</action>
343 <action function="overlay">select_storage</action>
344 </actions>
345 </button>
346
347 <action>
348 <conditions>
349 <condition var1="tw_selectimage" var2="0"/>
350 <condition var1="tw_filename" op="modified"/>
351 </conditions>
352 <actions>
353 <action function="queuezip"/>
354 <action function="page">flash_confirm</action>
355 </actions>
356 </action>
357
358 <action>
359 <conditions>
360 <condition var1="tw_selectimage" var2="1"/>
361 <condition var1="tw_filename" op="modified"/>
362 </conditions>
363 <action function="page">flashimage_confirm</action>
364 </action>
365
366 <action>
367 <touch key="back"/>
368 <action function="page">main</action>
369 </action>
370
371 <action>
372 <touch key="home"/>
373 <action function="page">main</action>
374 </action>
375 </page>
376
377 <page name="flash_confirm">
378 <template name="page"/>
379
380 <text style="text_l">
381 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500382 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100383 </text>
384
385 <text style="text_m">
386 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500387 <text>{@zip_queue_count=%tw_zip_queue_count% of max of 10 Files queued}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100388 </text>
389
390 <text style="text_m_accent">
391 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500392 <text>{@zip_warn1=This operation may install incompatible}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100393 </text>
394
395 <text style="text_m_accent">
396 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500397 <text>{@zip_warn2=software and render your device unusable.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100398 </text>
399
400 <text style="text_m">
401 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500402 <text>{@zip_back_cancel=Press back to cancel adding this zip.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100403 </text>
404
405 <text style="text_m_accent">
406 <placement x="%col1_x_left%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500407 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100408 </text>
409
410 <text style="text_m">
411 <placement x="%col1_x_left%" y="%row9_y%"/>
412 <text>%tw_zip_location%</text>
413 </text>
414
415 <text style="text_m_accent">
416 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500417 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100418 </text>
419
420 <text style="text_m">
421 <placement x="%col1_x_left%" y="%row12_y%"/>
422 <text>%tw_file%</text>
423 </text>
424
425 <text style="text_m_accent">
426 <placement x="%col1_x_right%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500427 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100428 </text>
429
430 <checkbox>
431 <placement x="%col1_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500432 <text>{@zip_sig_chk=Zip signature verification}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100433 <data variable="tw_signed_zip_verify"/>
434 </checkbox>
435
436 <checkbox>
437 <condition var1="tw_has_injecttwrp" var2="1"/>
438 <placement x="%col1_x_right%" y="%row10a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500439 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100440 <data variable="tw_inject_after_zip"/>
441 </checkbox>
442
bigbiffa869fc72016-03-01 19:40:36 -0500443 <checkbox>
Matt Mower8dc25b72016-04-25 23:06:53 -0500444 <placement x="%col1_x_right%" y="%row12_y%"/>
bigbiffa869fc72016-03-01 19:40:36 -0500445 <text>{@install_reboot_chk=Reboot after installation is complete}</text>
Matt Mower8dc25b72016-04-25 23:06:53 -0500446 <data variable="tw_install_reboot"/>
bigbiffa869fc72016-03-01 19:40:36 -0500447 </checkbox>
448
z31s1g28f0a922015-11-07 18:50:22 +0100449 <button style="main_button_half_width">
450 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500451 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100452 <action function="page">install</action>
453 </button>
454
455 <button style="main_button_half_width">
456 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500457 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100458 <actions>
459 <action function="queueclear"/>
460 <action function="page">install</action>
461 </actions>
462 </button>
463
464 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500465 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100466 <action function="flash">flash_zip</action>
467 </slider>
468
469 <action>
470 <touch key="back"/>
471 <actions>
472 <action function="cancelzip"/>
473 <action function="page">install</action>
474 </actions>
475 </action>
476
477 <action>
478 <touch key="home"/>
479 <action function="page">main</action>
480 </action>
481 </page>
482
483 <page name="flash_zip">
484 <template name="page"/>
485
486 <text style="text_l">
487 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500488 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100489 </text>
490
491 <text style="text_m">
492 <placement x="%col1_x_header%" y="%row4_header_y%"/>
493 <text>%tw_file%</text>
494 </text>
495
496 <template name="console"/>
497
498 <template name="progress_bar"/>
499
500 <action>
501 <condition var1="tw_operation_state" var2="1"/>
502 <action function="page">flash_done</action>
503 </action>
504 </page>
505
506 <page name="flash_done">
507 <template name="page"/>
508
509 <text style="text_l">
510 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500511 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100512 </text>
513
514 <text style="text_m_fail">
515 <condition var1="tw_operation_status" op="!=" var2="0"/>
516 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500517 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100518 </text>
519
520 <text style="text_m">
521 <condition var1="tw_operation_status" var2="0"/>
522 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500523 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100524 </text>
525
526 <template name="console"/>
527
528 <button style="main_button_half_width">
529 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500530 <text>{@wipe_cache_dalvik_btn=Wipe cache/dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100531 <actions>
532 <action function="set">tw_back=flash_done</action>
533 <action function="set">tw_action=wipe</action>
534 <action function="set">tw_action_param=/cache</action>
535 <action function="set">tw_has_action2=1</action>
536 <action function="set">tw_action2=wipe</action>
537 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500538 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
539 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
540 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
541 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100542 <action function="page">confirm_action</action>
543 </actions>
544 </button>
545
546 <button style="main_button_half_width">
547 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500548 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100549 <actions>
550 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500551 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100552 </actions>
553 </button>
554
555 <action>
556 <touch key="back"/>
557 <actions>
558 <action function="set">tw_clear_destination=install</action>
559 <action function="page">clear_vars</action>
560 </actions>
561 </action>
562
563 <action>
564 <touch key="home"/>
565 <actions>
566 <action function="set">tw_clear_destination=main2</action>
567 <action function="page">clear_vars</action>
568 </actions>
569 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500570
571 <action>
572 <conditions>
573 <condition var1="tw_install_reboot" var2="1"/>
574 <condition var1="tw_operation_status" var2="0"/>
575 <condition var1="tw_reboot_system" var2="1"/>
576 </conditions>
577 <actions>
578 <action function="set">tw_sleep=%tw_sleep_total%</action>
579 <action function="page">flash_sleep_and_reboot</action>
580 </actions>
581 </action>
582 </page>
583
584 <page name="flash_sleep_and_reboot">
585 <template name="page"/>
586
587 <text style="text_l">
588 <placement x="%col1_x_header%" y="%row3_header_y%"/>
589 <text>{@install_zip_hdr=Install Zip}</text>
590 </text>
591
592 <text style="text_m">
593 <placement x="%col1_x_header%" y="%row4_header_y%"/>
594 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
595 </text>
596
597 <template name="console"/>
598
599 <template name="progress_bar"/>
600
601 <button style="main_button_half_width">
602 <condition var1="tw_sleep" op="&gt;" var2="0"/>
603 <placement x="%center_x%" y="%row15a_y%"/>
604 <text>{@cancel_btn=Cancel}</text>
605 <actions>
606 <action function="set">tw_install_reboot=0</action>
607 <action function="page">flash_done</action>
608 </actions>
609 </button>
610
611 <action>
612 <conditions>
613 <condition var1="tw_sleep" var2="tw_sleep_total"/>
614 <condition var1="tw_install_reboot" var2="1"/>
615 </conditions>
616 <action function="sleepcounter">%tw_sleep_total%</action>
617 </action>
618
619 <action>
620 <conditions>
621 <condition var1="tw_sleep" var2="0"/>
622 <condition var1="tw_install_reboot" var2="1"/>
623 </conditions>
624 <actions>
625 <action function="sleep">50000</action>
626 <action function="set">tw_back=main2</action>
627 <action function="page">reboot_system_routine</action>
628 </actions>
629 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100630 </page>
631
632 <page name="flashimage_confirm">
633 <template name="page"/>
634
635 <text style="text_l">
636 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500637 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100638 </text>
639
640 <text style="text_m">
641 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500642 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100643 </text>
644
645 <text style="text_m_accent">
646 <placement x="%col1_x_left%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500647 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100648 </text>
649
650 <text style="text_m">
651 <placement x="%col1_x_left%" y="%row9_y%"/>
652 <text>%tw_zip_location%</text>
653 </text>
654
655 <text style="text_m_accent">
656 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500657 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100658 </text>
659
660 <text style="text_m">
661 <placement x="%col1_x_left%" y="%row12_y%"/>
662 <text>%tw_file%</text>
663 </text>
664
665 <partitionlist>
666 <placement x="%col1_x_right%" y="%row7a_y%" w="%content_half_width%" h="%partitionlist_flashimage_height%"/>
667 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500668 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100669 <data name="tw_flash_partition"/>
670 <listtype name="flashimg"/>
671 </partitionlist>
672
673 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500674 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100675 <actions>
676 <action function="set">tw_back=flashimage_confirm</action>
677 <action function="set">tw_action=flashimage</action>
678 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500679 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100680 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500681 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100682 <action function="page">action_page</action>
683 </actions>
684 <action function="flashimage"/>
685 </slider>
686
687 <action>
688 <touch key="back"/>
689 <actions>
690 <action function="set">tw_clear_destination=install</action>
691 <action function="page">clear_vars</action>
692 </actions>
693 </action>
694
695 <action>
696 <touch key="home"/>
697 <actions>
698 <action function="set">tw_clear_destination=main2</action>
699 <action function="page">clear_vars</action>
700 </actions>
701 </action>
702 </page>
703
704 <page name="clear_vars">
705 <action>
706 <action function="set">tw_operation_state=0</action>
707 <action function="set">tw_text1=</action>
708 <action function="set">tw_text2=</action>
709 <action function="set">tw_text3=</action>
710 <action function="set">tw_text4=</action>
711 <action function="set">tw_action_text1=</action>
712 <action function="set">tw_action_text2=</action>
713 <action function="set">tw_action_param=</action>
714 <action function="set">tw_has_action2=0</action>
715 <action function="set">tw_action2=</action>
716 <action function="set">tw_action2_param=</action>
717 <action function="set">tw_has_cancel=0</action>
718 <action function="set">tw_cancel_action=</action>
719 <action function="set">tw_cancel_param=</action>
720 <action function="set">tw_show_exclamation=0</action>
721 <action function="set">tw_show_reboot=0</action>
722 <action function="page">%tw_clear_destination%</action>
723 </action>
724 </page>
725
Matt Mower908dd252016-05-25 02:26:50 -0500726 <page name="reboot_system_routine">
727 <action>
728 <action function="set">tw_action=reboot</action>
729 <action function="set">tw_action_param=system</action>
730 <action function="set">tw_has_action2=0</action>
731 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
732 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
733 <action function="set">tw_text3=</action>
734 <action function="set">tw_text4=</action>
735 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
736 <action function="set">tw_action_text2=</action>
737 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
738 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
739 <action function="page">rebootcheck</action>
740 </action>
741 </page>
742
z31s1g28f0a922015-11-07 18:50:22 +0100743 <page name="confirm_action">
744 <template name="page"/>
745
746 <text style="text_l">
747 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500748 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100749 </text>
750
751 <text style="text_m">
752 <placement x="%col1_x_header%" y="%row4_header_y%"/>
753 <text/>
754 </text>
755
756 <text style="text_m_accent">
757 <placement x="%center_x%" y="%row2_y%" placement="5"/>
758 <text>%tw_text1%</text>
759 </text>
760
761 <text style="text_m_accent">
762 <placement x="%center_x%" y="%row3_y%" placement="5"/>
763 <text>%tw_text2%</text>
764 </text>
765
766 <text style="text_m">
767 <placement x="%center_x%" y="%row4_y%" placement="5"/>
768 <text>%tw_text3%</text>
769 </text>
770
771 <text style="text_m">
772 <placement x="%center_x%" y="%row5_y%" placement="5"/>
773 <text>%tw_text4%</text>
774 </text>
775
776 <text style="text_m">
777 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500778 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100779 </text>
780
781 <slider style="slider_centered">
782 <text>%tw_slider_text%</text>
783 <action function="page">action_page</action>
784 </slider>
785
786 <action>
787 <touch key="back"/>
788 <actions>
789 <action function="set">tw_clear_destination=%tw_back%</action>
790 <action function="page">clear_vars</action>
791 </actions>
792 </action>
793
794 <action>
795 <touch key="home"/>
796 <action function="page">main</action>
797 </action>
798 </page>
799
800 <page name="action_page">
801 <template name="page"/>
802
803 <text style="text_l">
804 <placement x="%col1_x_header%" y="%row3_header_y%"/>
805 <text>%tw_action_text1%</text>
806 </text>
807
808 <text style="text_m">
809 <placement x="%col1_x_header%" y="%row4_header_y%"/>
810 <text>%tw_action_text2%</text>
811 </text>
812
813 <template name="console"/>
814
815 <template name="progress_bar"/>
816
817 <button style="main_button_half_width">
818 <condition var1="tw_has_cancel" var2="1"/>
819 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500820 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100821 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
822 </button>
823
824 <action>
825 <condition var1="tw_operation_state" var2="1"/>
826 <actions>
827 <action function="page">action_complete</action>
828 </actions>
829 </action>
830
831 <action>
832 <condition var1="tw_has_action2" var2="0"/>
833 <actions>
834 <action function="%tw_action%">%tw_action_param%</action>
835 </actions>
836 </action>
837
838 <action>
839 <condition var1="tw_has_action2" var2="1"/>
840 <actions>
841 <action function="%tw_action%">%tw_action_param%</action>
842 <action function="%tw_action2%">%tw_action2_param%</action>
843 </actions>
844 </action>
845 </page>
846
847 <page name="singleaction_page">
848 <template name="page"/>
849
850 <text style="text_l">
851 <placement x="%col1_x_header%" y="%row3_header_y%"/>
852 <text>%tw_action_text1%</text>
853 </text>
854
855 <text style="text_m">
856 <placement x="%col1_x_header%" y="%row4_header_y%"/>
857 <text>%tw_action_text2%</text>
858 </text>
859
860 <template name="console"/>
861
862 <template name="progress_bar"/>
863
864 <action>
865 <condition var1="tw_operation_state" var2="1"/>
866 <actions>
867 <action function="set">tw_page_done=1</action>
868 </actions>
869 </action>
870
871 <action>
872 <condition var1="tw_has_action2" var2="0"/>
873 <actions>
874 <action function="%tw_action%">%tw_action_param%</action>
875 </actions>
876 </action>
877
878 <action>
879 <condition var1="tw_has_action2" var2="1"/>
880 <actions>
881 <action function="%tw_action%">%tw_action_param%</action>
882 <action function="%tw_action2%">%tw_action2_param%</action>
883 </actions>
884 </action>
885 </page>
886
887 <page name="action_complete">
888 <template name="page"/>
889
890 <text style="text_l">
891 <placement x="%col1_x_header%" y="%row3_header_y%"/>
892 <text>%tw_complete_text1%</text>
893 </text>
894
895 <text style="text_m_fail">
896 <condition var1="tw_operation_status" op="!=" var2="0"/>
897 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500898 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100899 </text>
900
901 <text style="text_m">
902 <condition var1="tw_operation_status" var2="0"/>
903 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500904 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100905 </text>
906
907 <template name="console"/>
908
909 <button style="main_button_half_width">
910 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500911 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100912 <actions>
913 <action function="set">tw_clear_destination=%tw_back%</action>
914 <action function="page">clear_vars</action>
915 </actions>
916 </button>
917
918 <button style="main_button_half_width">
919 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500920 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100921 <actions>
922 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500923 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100924 </actions>
925 </button>
926
927 <action>
928 <touch key="home"/>
929 <actions>
930 <action function="set">tw_clear_destination=main2</action>
931 <action function="page">clear_vars</action>
932 </actions>
933 </action>
934
935 <action>
936 <touch key="back"/>
937 <actions>
938 <action function="set">tw_clear_destination=%tw_back%</action>
939 <action function="page">clear_vars</action>
940 </actions>
941 </action>
942 </page>
943
944 <page name="filecheck">
945 <action>
946 <action function="fileexists">%tw_filecheck%</action>
947 </action>
948
949 <action>
950 <conditions>
951 <condition var1="tw_operation_state" var2="1"/>
952 <condition var1="tw_operation_status" var2="0"/>
953 </conditions>
954 <actions>
955 <action function="set">tw_fileexists=1</action>
956 <action function="page">%tw_existpage%</action>
957 </actions>
958 </action>
959
960 <action>
961 <conditions>
962 <condition var1="tw_operation_state" var2="1"/>
963 <condition var1="tw_operation_status" var2="1"/>
964 </conditions>
965 <actions>
966 <action function="set">tw_fileexists=0</action>
967 <action function="page">%tw_notexistpage%</action>
968 </actions>
969 </action>
970 </page>
971
972 <page name="rebootcheck">
973 <action>
974 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
975 <action function="reboot">%tw_action_param%</action>
976 </action>
977
978 <action>
979 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
980 <action function="page">confirm_action</action>
981 </action>
982 </page>
983
984 <page name="wipe">
985 <template name="page"/>
986
987 <text style="text_l">
988 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500989 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100990 </text>
991
992 <text style="text_m">
993 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500994 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100995 </text>
996
997 <text style="text_m_accent">
998 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500999 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001000 </text>
1001
1002 <text style="text_m_accent">
1003 <condition var1="tw_has_data_media" var2="1"/>
1004 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001005 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001006 </text>
1007
1008 <text style="text_m_accent">
1009 <conditions>
1010 <condition var1="tw_has_android_secure" var2="1"/>
1011 <condition var1="fileexists" var2="/and-sec"/>
1012 </conditions>
1013 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001014 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001015 </text>
1016
1017 <text style="text_m_accent">
1018 <condition var1="tw_has_sdext_partition" var2="1"/>
1019 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001020 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001021 </text>
1022
1023 <text style="text_m">
1024 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001025 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001026 </text>
1027
1028 <text style="text_m">
1029 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001030 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001031 </text>
1032
1033 <text style="text_m">
1034 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001035 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001036 </text>
1037
1038 <button style="main_button_half_width">
1039 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001040 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001041 <actions>
1042 <action function="set">partitionlisterror=0</action>
1043 <action function="page">advancedwipe</action>
1044 </actions>
1045 </button>
1046
1047 <button style="main_button_half_width">
1048 <condition var1="tw_has_data_media" var2="1"/>
1049 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001050 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001051 <action function="page">formatdata</action>
1052 </button>
1053
1054 <button style="main_button_half_width">
1055 <conditions>
1056 <condition var1="tw_is_encrypted" var2="1"/>
1057 <condition var1="tw_has_data_media" var2="0"/>
1058 </conditions>
1059 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001060 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001061 <actions>
1062 <action function="set">tw_back=wipe</action>
1063 <action function="set">tw_action=wipe</action>
1064 <action function="set">tw_action_param=DATAMEDIA</action>
1065 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001066 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001067 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001068 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1069 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1070 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001071 <action function="page">confirm_action</action>
1072 </actions>
1073 </button>
1074
1075 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001076 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001077 <actions>
1078 <action function="set">tw_back=wipe</action>
1079 <action function="set">tw_action=wipe</action>
1080 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001081 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1082 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001083 <action function="page">action_page</action>
1084 </actions>
1085 </slider>
1086
1087 <action>
1088 <touch key="back"/>
1089 <action function="page">main</action>
1090 </action>
1091
1092 <action>
1093 <touch key="home"/>
1094 <action function="page">main</action>
1095 </action>
1096 </page>
1097
1098 <page name="advancedwipe">
1099 <template name="page"/>
1100
1101 <action>
1102 <action function="set">tw_wipe_list=</action>
1103 </action>
1104
1105 <text style="text_l">
1106 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001107 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001108 </text>
1109
1110 <text style="text_m">
1111 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001112 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001113 </text>
1114
1115 <partitionlist>
1116 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001117 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001118 <data name="tw_wipe_list"/>
1119 <listtype name="wipe"/>
1120 </partitionlist>
1121
1122 <text style="text_m_fail">
1123 <condition var1="partitionlisterror" var2="1"/>
1124 <placement x="%col2_x_left%" y="%row14a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001125 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001126 </text>
1127
1128 <button style="main_button_m">
1129 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001130 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001131 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001132 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001133 <action function="page">checkpartitionlist</action>
1134 </actions>
1135 </button>
1136
1137 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001138 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001139 <actions>
1140 <action function="set">tw_back=advancedwipe</action>
1141 <action function="set">tw_action=wipe</action>
1142 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001143 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1144 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1145 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001146 <action function="page">action_page</action>
1147 </actions>
1148 </slider>
1149
1150 <action>
1151 <touch key="home"/>
1152 <action function="page">main</action>
1153 </action>
1154
1155 <action>
1156 <touch key="back"/>
1157 <action function="page">wipe</action>
1158 </action>
1159 </page>
1160
1161 <page name="formatdata">
1162 <template name="page"/>
1163
1164 <text style="text_l">
1165 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001166 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001167 </text>
1168
1169 <text style="text_m">
1170 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001171 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001172 </text>
1173
1174 <text style="text_m_fail">
1175 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001176 <text>{@format_data_lcp1=Format Data will wipe all of your apps, backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001177 </text>
1178
1179 <text style="text_m_fail">
1180 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001181 <text>{@format_data_lcp2=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001182 </text>
1183
Ethan Yonker66a19492015-12-10 10:19:45 -06001184 <text style="text_m_fail">
1185 <condition var1="tw_has_adopted_storage" var2="1"/>
1186 <placement x="%center_x%" y="%row4_y%" placement="5"/>
1187 <text>{@format_data_adopted=Including Adopted Storage}</text>
1188 </text>
1189
z31s1g28f0a922015-11-07 18:50:22 +01001190 <text style="text_m">
1191 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001192 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001193 </text>
1194
1195 <text style="text_m">
1196 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001197 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001198 </text>
1199
1200 <input>
1201 <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="%input_height%"/>
1202 <text>%tw_confirm_formatdata%</text>
1203 <data name="tw_confirm_formatdata"/>
1204 <restrict minlen="3" maxlen="3" allow="yes"/>
1205 <action function="page">formatdata_confirm</action>
1206 </input>
1207
1208 <fill color="%accent_color%">
1209 <placement x="%col1_x_left%" y="row9_y" w="%content_width%" h="input_line_width"/>
1210 </fill>
1211
1212 <template name="keyboardtemplate"/>
1213
1214 <action>
1215 <touch key="home"/>
1216 <action function="page">main</action>
1217 </action>
1218
1219 <action>
1220 <touch key="back"/>
1221 <action function="page">wipe</action>
1222 </action>
1223 </page>
1224
1225 <page name="formatdata_confirm">
1226 <action>
1227 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1228 <actions>
1229 <action function="set">tw_back=formatdata</action>
1230 <action function="set">tw_action=wipe</action>
1231 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001232 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1233 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001234 <action function="page">action_page</action>
1235 </actions>
1236 </action>
1237
1238 <action>
1239 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1240 <action function="page">formatdata</action>
1241 </action>
1242 </page>
1243
1244 <page name="checkpartitionlist">
1245 <action>
1246 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1247 <actions>
1248 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001249 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001250 <action function="page">partitionoptions</action>
1251 </actions>
1252 </action>
1253
1254 <action>
1255 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1256 <actions>
1257 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001258 <action function="page">advancedwipe</action>
1259 </actions>
1260 </action>
1261 </page>
1262
1263 <page name="partitionoptions">
1264 <template name="page"/>
1265
1266 <text style="text_l">
1267 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001268 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001269 </text>
1270
1271 <text style="text_m">
1272 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001273 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001274 </text>
1275
1276 <text style="text_m_accent">
1277 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001278 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001279 </text>
1280
1281 <text style="text_m_accent">
1282 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001283 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001284 </text>
1285
1286 <text style="text_m">
1287 <condition var1="tw_partition_is_present" var2="1"/>
1288 <placement x="%col2_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001289 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001290 </text>
1291
1292 <text style="text_m">
1293 <condition var1="tw_partition_is_present" var2="0"/>
1294 <placement x="%col2_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001295 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001296 </text>
1297
1298 <text style="text_m">
1299 <condition var1="tw_partition_removable" var2="1"/>
1300 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001301 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001302 </text>
1303
1304 <text style="text_m">
1305 <condition var1="tw_partition_removable" var2="0"/>
1306 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001307 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001308 </text>
1309
1310 <text style="text_m">
1311 <placement x="%col2_x_left%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001312 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001313 </text>
1314
1315 <text style="text_m">
1316 <placement x="%col1_x_right%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001317 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001318 </text>
1319
1320 <text style="text_m">
1321 <placement x="%col2_x_left%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001322 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001323 </text>
1324
1325 <text style="text_m">
1326 <placement x="%col1_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001327 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001328 </text>
1329
1330 <button style="main_button_half_width">
1331 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1332 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001333 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001334 <actions>
1335 <action function="set">tw_back=partitionoptions</action>
1336 <action function="set">tw_action=resize</action>
1337 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1338 <action function="set">tw_has_action2=1</action>
1339 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001340 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001341 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001342 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001343 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1344 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1345 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001346 <action function="page">confirm_action</action>
1347 </actions>
1348 </button>
1349
1350 <button style="main_button_half_width">
1351 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1352 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001353 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001354 <actions>
1355 <action function="set">tw_back=partitionoptions</action>
1356 <action function="set">tw_action=repair</action>
1357 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1358 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001359 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001360 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001361 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1362 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1363 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001364 <action function="page">confirm_action</action>
1365 </actions>
1366 </button>
1367
1368 <button style="main_button_half_width">
1369 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001370 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001371 <action function="page">selectfilesystem</action>
1372 </button>
1373
1374 <action>
1375 <touch key="home"/>
1376 <action function="page">main</action>
1377 </action>
1378
1379 <action>
1380 <touch key="back"/>
1381 <action function="page">advancedwipe</action>
1382 </action>
1383 </page>
1384
1385 <page name="refreshfilesystem">
1386 <action>
1387 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1388 <actions>
1389 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001390 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001391 <action function="page">selectfilesystem</action>
1392 </actions>
1393 </action>
1394
1395 <action>
1396 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1397 <actions>
1398 <action function="set">partitionlisterror=1</action>
1399 <action function="set">tw_wipe_list=</action>
1400 <action function="page">advancedwipe</action>
1401 </actions>
1402 </action>
1403 </page>
1404
1405 <page name="selectfilesystem">
1406 <template name="page"/>
1407
1408 <text style="text_l">
1409 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001410 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001411 </text>
1412
1413 <text style="text_m">
1414 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001415 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001416 </text>
1417
1418 <text style="text_m_accent">
1419 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001420 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001421 </text>
1422
1423 <text style="text_m_accent">
1424 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001425 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001426 </text>
1427
1428 <text style="text_m_fail">
1429 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001430 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001431 </text>
1432
1433 <text style="text_m_fail">
1434 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001435 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001436 </text>
1437
1438 <button style="main_button_half_width">
1439 <condition var1="tw_partition_ext" op="=" var2="1"/>
1440 <placement x="%col1_x_left%" y="%row11_y%"/>
1441 <text>EXT2</text>
1442 <actions>
1443 <action function="set">tw_back=refreshfilesystem</action>
1444 <action function="set">tw_action=changefilesystem</action>
1445 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1446 <action function="set">tw_action_new_file_system=ext2</action>
1447 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001448 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1449 <action function="set">tw_text2=EXT2</action>
1450 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1451 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1452 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001453 <action function="page">confirm_action</action>
1454 </actions>
1455 </button>
1456
1457 <button style="main_button_half_width">
1458 <condition var1="tw_partition_ext" op="=" var2="1"/>
1459 <placement x="%col2_x_left%" y="%row11_y%"/>
1460 <text>EXT3</text>
1461 <actions>
1462 <action function="set">tw_back=refreshfilesystem</action>
1463 <action function="set">tw_action=changefilesystem</action>
1464 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1465 <action function="set">tw_action_new_file_system=ext3</action>
1466 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001467 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1468 <action function="set">tw_text2=EXT3</action>
1469 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1470 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1471 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001472 <action function="page">confirm_action</action>
1473 </actions>
1474 </button>
1475
1476 <button style="main_button_half_width">
1477 <condition var1="tw_partition_ext" op="=" var2="1"/>
1478 <placement x="%center_x%" y="%row11_y%"/>
1479 <text>EXT4</text>
1480 <actions>
1481 <action function="set">tw_back=refreshfilesystem</action>
1482 <action function="set">tw_action=changefilesystem</action>
1483 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1484 <action function="set">tw_action_new_file_system=ext4</action>
1485 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001486 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1487 <action function="set">tw_text2=EXT4</action>
1488 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1489 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1490 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001491 <action function="page">confirm_action</action>
1492 </actions>
1493 </button>
1494
1495 <button style="main_button_half_width">
1496 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1497 <placement x="%col2_x_right%" y="%row11_y%"/>
1498 <text>FAT</text>
1499 <actions>
1500 <action function="set">tw_back=refreshfilesystem</action>
1501 <action function="set">tw_action=changefilesystem</action>
1502 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1503 <action function="set">tw_action_new_file_system=vfat</action>
1504 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001505 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1506 <action function="set">tw_text2=FAT</action>
1507 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1508 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1509 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001510 <action function="page">confirm_action</action>
1511 </actions>
1512 </button>
1513
1514 <button style="main_button_half_width">
1515 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1516 <placement x="%col2_x_left%" y="%row15a_y%"/>
1517 <text>exFAT</text>
1518 <actions>
1519 <action function="set">tw_back=refreshfilesystem</action>
1520 <action function="set">tw_action=changefilesystem</action>
1521 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1522 <action function="set">tw_action_new_file_system=exfat</action>
1523 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001524 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1525 <action function="set">tw_text2=exFAT</action>
1526 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1527 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1528 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001529 <action function="page">confirm_action</action>
1530 </actions>
1531 </button>
1532
1533 <button style="main_button_half_width">
1534 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1535 <placement x="%center_x%" y="%row15a_y%"/>
1536 <text>F2FS</text>
1537 <actions>
1538 <action function="set">tw_back=refreshfilesystem</action>
1539 <action function="set">tw_action=changefilesystem</action>
1540 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1541 <action function="set">tw_action_new_file_system=f2fs</action>
1542 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001543 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1544 <action function="set">tw_text2=F2FS</action>
1545 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1546 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1547 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001548 <action function="page">confirm_action</action>
1549 </actions>
1550 </button>
1551
1552 <action>
1553 <touch key="home"/>
1554 <action function="page">main</action>
1555 </action>
1556
1557 <action>
1558 <touch key="back"/>
1559 <action function="page">partitionoptions</action>
1560 </action>
1561 </page>
1562
1563 <page name="backup">
1564 <template name="page"/>
1565
1566 <text style="text_l">
1567 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001568 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001569 </text>
1570
1571 <text style="text_m">
1572 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001573 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001574 </text>
1575
1576 <text style="text_m_accent">
1577 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001578 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001579 </text>
1580
1581 <text style="text_m">
1582 <placement x="%col1_x_left%" y="%row3_y%"/>
1583 <text>%tw_backup_name%</text>
1584 </text>
1585
1586 <fill color="%fileselector_linecolor%">
1587 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1588 </fill>
1589
1590 <button>
1591 <placement x="col1_x_left" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/>
1592 <fill color="%transparent%"/>
1593 <actions>
1594 <action function="set">tw_fileexists=0</action>
1595 <action function="page">backupname1</action>
1596 </actions>
1597 </button>
1598
1599 <partitionlist>
1600 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001601 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001602 <data name="tw_backup_list"/>
1603 <listtype name="backup"/>
1604 </partitionlist>
1605
1606 <text style="text_m_accent">
1607 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001608 <text>{@encryption=Encryption:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001609 </text>
1610
1611 <text style="text_m">
1612 <conditions>
1613 <condition var1="tw_include_encrypted_backup" var2="1"/>
1614 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001615 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001616 </conditions>
1617 <placement x="%col1_x_right%" y="%row3_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001618 <text>{@enc_disabled=disabled - set a password to enable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001619 </text>
1620
1621 <text style="text_m">
1622 <conditions>
1623 <condition var1="tw_include_encrypted_backup" var2="1"/>
1624 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001625 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001626 </conditions>
1627 <placement x="%col1_x_right%" y="%row3_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001628 <text>{@enc_enabled=enabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001629 </text>
1630
1631 <fill color="%fileselector_linecolor%">
1632 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1633 </fill>
1634
1635 <button>
1636 <placement x="col1_x_right" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/>
1637 <fill color="%transparent%"/>
1638 <actions>
1639 <action function="set">tw_password_not_match=0</action>
1640 <action function="page">backupencryption</action>
1641 </actions>
1642 </button>
1643
1644 <text style="text_m_accent">
1645 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001646 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001647 </text>
1648
1649 <checkbox>
1650 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001651 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001652 <data variable="tw_use_compression"/>
1653 </checkbox>
1654
1655 <checkbox>
1656 <placement x="%col1_x_right%" y="%row7a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001657 <text>{@skip_md5_backup_chk=Skip MD5 generation during backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001658 <data variable="tw_skip_md5_generate"/>
1659 </checkbox>
1660
1661 <checkbox>
1662 <placement x="%col1_x_right%" y="%row9_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001663 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001664 <data variable="tw_disable_free_space"/>
1665 </checkbox>
1666
1667 <button style="main_button_half_width">
bigbiffce8f83c2015-12-12 18:30:21 -05001668 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001669 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001670 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001671 <actions>
1672 <action function="set">tw_back=backup</action>
1673 <action function="overlay">select_storage</action>
1674 </actions>
1675 </button>
1676
1677 <button style="main_button_half_width">
1678 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001679 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001680 <actions>
1681 <action function="refreshsizes"/>
1682 <action function="page">backup</action>
1683 </actions>
1684 </button>
1685
1686 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001687 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001688 <action function="page">backup_run</action>
1689 </slider>
1690
1691 <action>
1692 <touch key="home"/>
1693 <action function="page">main</action>
1694 </action>
1695
1696 <action>
1697 <touch key="back"/>
1698 <action function="page">main</action>
1699 </action>
1700 </page>
1701
1702 <page name="backupname1">
1703 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001704 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001705 <action function="generatebackupname"/>
1706 </action>
1707
1708 <action>
1709 <action function="page">backupname2</action>
1710 </action>
1711 </page>
1712
1713 <page name="backupname2">
1714 <template name="page"/>
1715
1716 <text style="text_l">
1717 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001718 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001719 </text>
1720
1721 <text style="text_m">
1722 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001723 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001724 </text>
1725
1726 <text style="text_m_accent">
1727 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001728 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001729 </text>
1730
1731 <input>
1732 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
1733 <text>%tw_backup_name%</text>
1734 <data name="tw_backup_name"/>
1735 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1736 <actions>
1737 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1738 <action function="set">tw_existpage=backupname2</action>
1739 <action function="set">tw_notexistpage=backup</action>
1740 <action function="page">filecheck</action>
1741 </actions>
1742 </input>
1743
1744 <fill color="%accent_color%">
1745 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1746 </fill>
1747
1748 <fill color="%text_fail_color%">
1749 <condition var1="tw_fileexists" var2="1"/>
1750 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1751 </fill>
1752
1753 <text style="text_m_fail">
1754 <condition var1="tw_fileexists" var2="1"/>
1755 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001756 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001757 </text>
1758
1759 <button style="main_button_half_width_low">
1760 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001761 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001762 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001763 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001764 <action function="page">backup</action>
1765 </actions>
1766 </button>
1767
1768 <button style="main_button_half_width_low">
1769 <placement x="%date_button_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001770 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001771 <action function="appenddatetobackupname"/>
1772 </button>
1773
1774 <template name="keyboardtemplate"/>
1775
1776 <action>
1777 <touch key="home"/>
1778 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001779 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001780 <action function="page">main</action>
1781 </actions>
1782 </action>
1783
1784 <action>
1785 <touch key="back"/>
1786 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001787 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001788 <action function="page">backup</action>
1789 </actions>
1790 </action>
1791 </page>
1792
1793 <page name="backupencryption">
1794 <template name="page"/>
1795
1796 <text style="text_l">
1797 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001798 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001799 </text>
1800
1801 <text style="text_m">
1802 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001803 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001804 </text>
1805
1806 <text style="text_m_accent">
1807 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001808 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001809 </text>
1810
1811 <input>
1812 <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/>
1813 <text>%tw_backup_encrypt_display%</text>
1814 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
1815 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
1816 <action function="page">backupencryption2</action>
1817 </input>
1818
1819 <fill color="%accent_color%">
1820 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1821 </fill>
1822
1823 <fill color="%text_fail_color%">
1824 <condition var1="tw_password_not_match" var2="1"/>
1825 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1826 </fill>
1827
1828 <text style="text_m_fail">
1829 <condition var1="tw_password_not_match" var2="1"/>
1830 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001831 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001832 </text>
1833
1834 <button style="main_button_half_width_low">
1835 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001836 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001837 <actions>
1838 <action function="set">tw_encrypt_backup=0</action>
1839 <action function="set">tw_backup_password=</action>
1840 <action function="set">tw_backup_password2=</action>
1841 <action function="set">tw_backup_encrypt_display=</action>
1842 <action function="set">tw_backup_encrypt_display2=</action>
1843 <action function="page">backup</action>
1844 </actions>
1845 </button>
1846
1847 <template name="keyboardtemplate"/>
1848
1849 <action>
1850 <touch key="home"/>
1851 <action function="page">main</action>
1852 </action>
1853
1854 <action>
1855 <touch key="back"/>
1856 <action function="page">backup</action>
1857 </action>
1858 </page>
1859
1860 <page name="backupencryption2">
1861 <template name="page"/>
1862
1863 <text style="text_l">
1864 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001865 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001866 </text>
1867
1868 <text style="text_m">
1869 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001870 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001871 </text>
1872
1873 <text style="text_m_accent">
1874 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001875 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001876 </text>
1877
1878 <input>
1879 <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/>
1880 <text>%tw_backup_encrypt_display2%</text>
1881 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
1882 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
1883 <action function="page">checkbackuppassword</action>
1884 </input>
1885
1886 <fill color="%accent_color%">
1887 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1888 </fill>
1889
1890 <text style="text_m">
1891 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001892 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001893 </text>
1894
1895 <button style="main_button_half_width_low">
1896 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001897 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001898 <actions>
1899 <action function="set">tw_encrypt_backup=0</action>
1900 <action function="set">tw_backup_password=</action>
1901 <action function="set">tw_backup_password2=</action>
1902 <action function="set">tw_backup_encrypt_display=</action>
1903 <action function="set">tw_backup_encrypt_display2=</action>
1904 <action function="page">backup</action>
1905 </actions>
1906 </button>
1907
1908 <template name="keyboardtemplate"/>
1909
1910 <action>
1911 <touch key="home"/>
1912 <action function="page">main</action>
1913 </action>
1914
1915 <action>
1916 <touch key="back"/>
1917 <action function="page">backup</action>
1918 </action>
1919 </page>
1920
1921 <page name="checkbackuppassword">
1922 <action>
1923 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
1924 <actions>
1925 <action function="set">tw_encrypt_backup=1</action>
1926 <action function="page">backup</action>
1927 </actions>
1928 </action>
1929
1930 <action>
1931 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
1932 <actions>
1933 <action function="set">tw_encrypt_backup=0</action>
1934 <action function="set">tw_password_not_match=1</action>
1935 <action function="set">tw_backup_password=</action>
1936 <action function="set">tw_backup_password2=</action>
1937 <action function="set">tw_backup_encrypt_display=</action>
1938 <action function="set">tw_backup_encrypt_display2=</action>
1939 <action function="page">backupencryption</action>
1940 </actions>
1941 </action>
1942 </page>
1943
1944 <page name="backup_run">
1945 <template name="page"/>
1946
1947 <text style="text_l">
1948 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1949 <text>%tw_operation%</text>
1950 </text>
1951
1952 <text style="text_m">
1953 <placement x="%col1_x_header%" y="%row4_header_y%"/>
1954 <text>%tw_partition% Partition</text>
1955 </text>
1956
1957 <template name="console"/>
1958
1959 <template name="progress_bar"/>
1960
1961 <text style="text_m_accent">
1962 <placement x="%progress_text_x%" y="%progress_text_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001963 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001964 </text>
1965
1966 <text style="text_m">
1967 <placement x="%progress_text_x%" y="%row17_y%"/>
1968 <text>%tw_file_progress%</text>
1969 </text>
1970
1971 <text style="text_m">
1972 <placement x="%progress_text_x%" y="%row18_y%"/>
1973 <text>%tw_size_progress%</text>
1974 </text>
1975
1976 <button style="main_button_half_width">
1977 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001978 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001979 <action function="cancelbackup"/>
1980 </button>
1981
1982 <action>
1983 <action function="nandroid">backup</action>
1984 </action>
1985
1986 <action>
1987 <condition var1="tw_operation_state" var2="1"/>
1988 <condition var1="tw_cancel_backup" var2="0"/>
1989 <actions>
1990 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001991 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001992 <action function="set">tw_show_reboot=1</action>
1993 <action function="page">action_complete</action>
1994 </actions>
1995 </action>
1996
1997 <action>
1998 <condition var1="tw_operation_state" var2="1"/>
1999 <condition var1="tw_cancel_backup" var2="1"/>
2000 <actions>
2001 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002002 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002003 <action function="set">tw_show_reboot=1</action>
2004 <action function="page">action_complete</action>
2005 </actions>
2006 </action>
2007 </page>
2008
2009 <page name="restore">
2010 <template name="page"/>
2011
2012 <text style="text_l">
2013 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002014 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002015 </text>
2016
2017 <text style="text_m">
2018 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002019 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002020 </text>
2021
2022 <template name="sort_options"/>
2023
2024 <fileselector>
2025 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002026 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002027 <filter folders="1" files="0" nav="0"/>
2028 <path name="tw_backups_folder"/>
2029 <data name="tw_restore" default=""/>
2030 <selection name="tw_restore_name"/>
2031 </fileselector>
2032
2033 <button style="main_button_half_width_low">
2034 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002035 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002036 <actions>
2037 <action function="set">tw_back=restore</action>
2038 <action function="overlay">select_storage</action>
2039 </actions>
2040 </button>
2041
2042 <action>
2043 <condition var1="tw_restore" op="modified"/>
2044 <actions>
2045 <action function="readBackup"/>
2046 <action function="page">restore_read</action>
2047 </actions>
2048 </action>
2049
2050 <action>
2051 <touch key="home"/>
2052 <action function="page">main</action>
2053 </action>
2054
2055 <action>
2056 <touch key="back"/>
2057 <action function="page">main</action>
2058 </action>
2059 </page>
2060
2061 <page name="restore_read">
2062 <action>
2063 <condition var1="tw_restore_encrypted" var2="1"/>
2064 <actions>
2065 <action function="set">tw_password_fail=0</action>
2066 <action function="page">restore_decrypt</action>
2067 </actions>
2068 </action>
2069
2070 <action>
2071 <condition var1="tw_restore_encrypted" var2="0"/>
2072 <actions>
2073 <action function="page">restore_select</action>
2074 </actions>
2075 </action>
2076 </page>
2077
2078 <page name="restore_decrypt">
2079 <template name="page"/>
2080
2081 <text style="text_l">
2082 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002083 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002084 </text>
2085
2086 <text style="text_m">
2087 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002088 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002089 </text>
2090
2091 <text style="text_m_accent">
2092 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002093 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002094 </text>
2095
2096 <input>
2097 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2098 <text>%tw_restore_display%</text>
2099 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>