blob: ebfe497279be9c7a967c03efd5e8c3a31a691de6 [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="main_button">
36 <highlight color="%highlight_color%"/>
37 <font resource="font_l" color="%text_button_color%"/>
38 <image resource="main_button"/>
39 </style>
40
41 <style name="main_button_full_width">
42 <highlight color="%highlight_color%"/>
43 <font resource="font_l" color="%text_button_color%"/>
44 <image resource="main_button_full_width"/>
45 </style>
46
47 <style name="main_button_quarter_width">
48 <highlight color="%highlight_color%"/>
49 <font resource="font_l" color="%text_button_color%"/>
50 <image resource="main_button_quarter_width"/>
51 </style>
52
53 <style name="main_button_half_height">
54 <highlight color="%highlight_color%"/>
55 <font resource="font_m" color="%text_button_color%"/>
56 <image resource="main_button_half_height"/>
57 </style>
58
59 <style name="main_button_half_height_full_width">
60 <highlight color="%highlight_color%"/>
61 <font resource="font_m" color="%text_button_color%"/>
62 <image resource="main_button_half_height_full_width"/>
63 </style>
64
65 <style name="button_third_width">
66 <highlight color="%highlight_color%"/>
67 <font resource="font_m" color="%text_button_color%"/>
68 <image resource="tab_3"/>
69 </style>
70
Aleksa Saraib25a1832015-12-31 17:36:00 +010071 <style name="button_navbar">
72 <font resource="font_m" color="%text_button_color%"/>
73 </style>
74
z31s1g28f0a922015-11-07 18:50:22 +010075 <style name="console">
76 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
77 <font resource="fixed"/>
78 </style>
79
z31s1g56189522016-01-13 19:12:40 +010080 <style name="terminal">
81 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
82 <background color="%background_color%"/>
83 <font resource="fixed" spacing="2" color="%text_color%"/>
84 </style>
85
z31s1g28f0a922015-11-07 18:50:22 +010086 <style name="fileselector">
87 <highlight color="%fileselector_highlight_color%"/>
88 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
89 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
90 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
91 <sort name="tw_gui_sort_order"/>
92 <icon folder="folder" file="file"/>
93 <background color="%background_color%"/>
94 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
95 </style>
96
97 <style name="listbox">
98 <highlight color="%fileselector_highlight_color%"/>
99 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
100 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
101 <icon selected="radio_true" unselected="radio_false"/>
102 <background color="%background_color%"/>
103 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
104 </style>
105
106 <style name="listbox_headerless">
107 <highlight color="%fileselector_highlight_color%"/>
108 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
109 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
110 <icon selected="radio_true" unselected="radio_false"/>
111 <background color="%background_color%"/>
112 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
113 </style>
114
115 <style name="listbox_options">
116 <background color="%background_color%"/>
117 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
118 <icon selected="checkbox_true_small" unselected="checkbox_false_small"/>
119 </style>
120
121 <style name="scrolllist">
122 <highlight color="%fileselector_highlight_color%"/>
123 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
124 <icon selected="checkbox_true" unselected="checkbox_false"/>
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="partitionlist">
130 <highlight color="%fileselector_highlight_color%"/>
131 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
132 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
133 <icon selected="checkbox_true" unselected="checkbox_false"/>
134 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
135 <background color="%background_color%"/>
136 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
137 </style>
138
139 <style name="partitionlist_summary">
140 <highlight color="%fileselector_highlight_color%"/>
141 <background color="%background_color%"/>
142 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
143 <icon selected="checkbox_true_small" unselected="checkbox_false_small"/>
144 </style>
145
146 <style name="partitionlist_headerless_rb">
147 <highlight color="%fileselector_highlight_color%"/>
148 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
149 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
150 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
151 <icon selected="radio_true" unselected="radio_false"/>
152 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
153 <background color="%background_color%"/>
154 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
155 </style>
156
157 <style name="partitionlist_headerless_cb">
158 <highlight color="%fileselector_highlight_color%"/>
159 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
160 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
161 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
162 <icon selected="checkbox_true" unselected="checkbox_false"/>
163 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
164 <background color="%background_color%"/>
165 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
166 </style>
167
168 <style name="slider">
169 <placement x="%center_x%" y="%slider_y%"/>
170 <font resource="font_l" color="%text_color%"/>
171 <resource base="slider" used="slider_used" touch="slider_touch"/>
172 </style>
173
174 <style name="slidervalue">
175 <resource handle="handle"/>
176 <font resource="font_m" color="%text_color%"/>
177 <colors line="%fileselector_linecolor%"/>
178 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
179 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100180
181 <style name="patternpassword">
182 <size name="tw_gui_pattern_grid_size" default="3"/>
183 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100184 </styles>
185
186 <pages>
187 <page name="main">
188 <action>
189 <actions>
190 <action function="set">tw_clear_destination=main2</action>
191 <action function="page">clear_vars</action>
192 </actions>
193 </action>
194 </page>
195
196 <page name="main2">
197 <template name="page"/>
198
199 <button style="main_button">
200 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500201 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100202 <action function="page">install_type</action>
203 </button>
204
205 <button style="main_button">
206 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500207 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100208 <action function="page">wipe_type1</action>
209 </button>
210
211 <button style="main_button">
212 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500213 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100214 <actions>
215 <action function="set">tw_back=main</action>
bigbiffce8f83c2015-12-12 18:30:21 -0500216 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +0100217 </actions>
218 </button>
219
220 <button style="main_button">
221 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500222 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100223 <action function="page">restore</action>
224 </button>
225
226 <button style="main_button">
227 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500228 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100229 <action function="page">reboot</action>
230 </button>
231
232 <button>
233 <placement x="%btn4_col4_x%" y="%row11_y%"/>
234 <highlight color="%highlight_color%"/>
235 <image resource="q_btn_arrow_right"/>
236 <action function="page">main3</action>
237 </button>
238 </page>
239
Matt Mower32676622017-01-18 18:56:13 -0600240 <page name="copylog">
241 <template name="page"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400242
Matt Mower32676622017-01-18 18:56:13 -0600243 <checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400244 <placement x="%indent%" y="%row1_y%"/>
Matt Mower32676622017-01-18 18:56:13 -0600245 <text>{@include_kernel_log=Include Kernel Log}</text>
246 <data variable="tw_include_kernel_log" value="1"/>
247 </checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400248
249 <slider>
250 <text>{@swipe_confirm= Confirm}</text>
251 <actions>
Matt Mower32676622017-01-18 18:56:13 -0600252 <action function="set">tw_back=main3</action>
253 <action function="set">tw_action=copylog</action>
254 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
255 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400256 <action function="page">action_page</action>
257 </actions>
258 </slider>
259
260 <action>
261 <touch key="back"/>
262 <action function="page">main2</action>
263 </action>
264
265 <action>
266 <touch key="home"/>
267 <action function="page">main</action>
268 </action>
Matt Mower32676622017-01-18 18:56:13 -0600269 </page>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400270
z31s1g28f0a922015-11-07 18:50:22 +0100271 <page name="main3">
272 <template name="page"/>
273
274 <button style="main_button">
275 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500276 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100277 <action function="page">mount</action>
278 </button>
279
280 <button style="main_button">
281 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500282 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100283 <action function="page">settings</action>
284 </button>
285
286 <button style="main_button">
287 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500288 <text>{@files_btn=Files}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100289 <action function="page">filemanagerlist</action>
290 </button>
291
292 <button style="main_button">
293 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500294 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400295 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +0100296 </button>
297
298 <button style="main_button">
299 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500300 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100301 <action function="page">advanced</action>
302 </button>
303
304 <button>
305 <placement x="%col1_x_left%" y="%row11_y%"/>
306 <highlight color="%highlight_color%"/>
307 <image resource="q_btn_arrow_left"/>
308 <action function="page">main2</action>
309 </button>
310
311 <action>
312 <touch key="back"/>
313 <action function="page">main2</action>
314 </action>
315
316 <action>
317 <touch key="home"/>
318 <action function="page">main</action>
319 </action>
320 </page>
321
322 <page name="install_type">
323 <template name="page"/>
324
325 <template name="statusbar"/>
326
327 <text style="text_m">
328 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500329 <text>{@install_hdr=Install} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100330 </text>
331
332 <button style="main_button_full_width">
333 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500334 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100335 <actions>
336 <action function="queueclear"/>
337 <action function="set">tw_selectimage=0</action>
338 <action function="page">install</action>
339 </actions>
340 </button>
341
342 <button style="main_button_full_width">
343 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500344 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100345 <actions>
346 <action function="queueclear"/>
347 <action function="set">tw_selectimage=1</action>
348 <action function="page">install</action>
349 </actions>
350 </button>
351
352 <button style="main_button_full_width">
353 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500354 <text>{@adb_sideload_btn=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100355 <action function="page">sideload</action>
356 </button>
357
358 <action>
359 <touch key="home"/>
360 <action function="page">main</action>
361 </action>
362
363 <action>
364 <touch key="back"/>
365 <action function="page">main</action>
366 </action>
367 </page>
368
369 <page name="install">
370 <template name="page"/>
371
372 <template name="statusbar"/>
373
374 <text style="text_m">
375 <condition var1="tw_selectimage" var2="0"/>
376 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500377 <text>{@install_zip_hdr=Install Zip} &gt; {@install_select_file_hdr=Select File}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100378 </text>
379
380 <text style="text_m">
381 <condition var1="tw_selectimage" var2="1"/>
382 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500383 <text>{@install_image_hdr=Install Image} &gt; {@install_select_file_hdr=Select File}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100384 </text>
385
386 <fileselector>
387 <condition var1="tw_selectimage" var2="0"/>
388 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
389 <text>%tw_zip_location%</text>
390 <filter extn=".zip" folders="1" files="1"/>
391 <path name="tw_zip_location" default="/sdcard"/>
392 <data name="tw_filename"/>
393 <selection name="tw_file"/>
394 </fileselector>
395
396 <fileselector>
397 <condition var1="tw_selectimage" var2="1"/>
398 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
399 <text>%tw_zip_location%</text>
400 <filter extn=".img" folders="1" files="1"/>
401 <path name="tw_zip_location" default="/sdcard"/>
402 <data name="tw_filename"/>
403 <selection name="tw_file"/>
404 </fileselector>
405
406 <button>
407 <placement x="%btn4_col4_x%" y="%row11_y%"/>
408 <highlight color="%highlight_color%"/>
409 <image resource="q_btn_storage"/>
410 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -0500411 <action function="set">tw_storagetext={@install_hdr=Install} &gt; {@select_storage_hdr=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100412 <action function="set">tw_back=install</action>
413 <action function="page">select_storage</action>
414 </actions>
415 </button>
416
417 <action>
418 <conditions>
419 <condition var1="tw_selectimage" var2="0"/>
420 <condition var1="tw_filename" op="modified"/>
421 </conditions>
422 <actions>
423 <action function="queuezip"/>
424 <action function="page">flash_queue</action>
425 </actions>
426 </action>
427
428 <action>
429 <conditions>
430 <condition var1="tw_selectimage" var2="1"/>
431 <condition var1="tw_filename" op="modified"/>
432 </conditions>
433 <action function="page">flashimage_type</action>
434 </action>
435
436 <action>
437 <touch key="back"/>
438 <action function="page">install_type</action>
439 </action>
440
441 <action>
442 <touch key="home"/>
443 <action function="page">main</action>
444 </action>
445 </page>
446
447 <page name="flash_queue">
448 <template name="page"/>
449
450 <template name="statusbar"/>
451
452 <text style="text_m">
453 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500454 <text>{@install_zip_hdr=Install Zip} &gt; {@queue_hdr=Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100455 </text>
456
457 <text style="text_m_accent">
458 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500459 <text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100460 </text>
461
462 <text style="text_m">
463 <placement x="%indent%" y="%row2_y%"/>
464 <text>%tw_file%</text>
465 </text>
466
467 <text style="text_m_accent">
468 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500469 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100470 </text>
471
472 <text style="text_m">
473 <placement x="%indent%" y="%row5_y%"/>
474 <text>%tw_zip_location%</text>
475 </text>
476
477 <text style="text_m">
478 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500479 <text>{@zip_back_clear=Press back button to clear the queue.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100480 </text>
481
482 <button>
483 <placement x="%col1_x_left%" y="%row11_y%"/>
484 <highlight color="%highlight_color%"/>
485 <image resource="q_btn_arrow_left"/>
486 <actions>
487 <action function="queueclear"/>
488 <action function="page">install</action>
489 </actions>
490 </button>
491
492 <button>
493 <placement x="%btn4_col2_x%" y="%row11_y%"/>
494 <highlight color="%highlight_color%"/>
495 <image resource="q_btn_addzip"/>
496 <action function="page">install</action>
497 </button>
498
499 <button>
500 <placement x="%btn4_col3_x%" y="%row11_y%"/>
501 <highlight color="%highlight_color%"/>
502 <image resource="q_btn_accept"/>
503 <action function="page">flash_confirm</action>
504 </button>
505
506 <button>
507 <placement x="%btn4_col4_x%" y="%row11_y%"/>
508 <highlight color="%highlight_color%"/>
509 <image resource="q_btn_arrow_right"/>
510 <action function="page">flash_options</action>
511 </button>
512
513 <action>
514 <touch key="back"/>
515 <actions>
516 <action function="queueclear"/>
517 <action function="page">install</action>
518 </actions>
519 </action>
520
521 <action>
522 <touch key="home"/>
523 <action function="page">main</action>
524 </action>
525 </page>
526
527 <page name="flash_options">
528 <template name="page"/>
529
530 <template name="statusbar"/>
531
532 <text style="text_m">
533 <condition var1="tw_selectimage" var2="0"/>
534 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500535 <text>{@install_zip_hdr=Install Zip} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100536 </text>
537
538 <checkbox>
539 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500540 <text>{@zip_sig_chk=Zip file signature verification}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100541 <data variable="tw_signed_zip_verify"/>
542 </checkbox>
543
544 <checkbox>
545 <condition var1="tw_has_injecttwrp" var2="1"/>
546 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500547 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100548 <data variable="tw_inject_after_zip"/>
549 </checkbox>
550
bigbiffa869fc72016-03-01 19:40:36 -0500551 <checkbox>
Matt Mower32676622017-01-18 18:56:13 -0600552 <placement x="%indent%" y="%row4_y%"/>
bigbiffa869fc72016-03-01 19:40:36 -0500553 <text>{@install_reboot_chk=Reboot after installation is complete}</text>
Matt Mower32676622017-01-18 18:56:13 -0600554 <data variable="tw_install_reboot"/>
bigbiffa869fc72016-03-01 19:40:36 -0500555 </checkbox>
556
z31s1g28f0a922015-11-07 18:50:22 +0100557 <button>
558 <placement x="%col1_x_left%" y="%row11_y%"/>
559 <highlight color="%highlight_color%"/>
560 <image resource="q_btn_arrow_left"/>
561 <action function="page">flash_queue</action>
562 </button>
563
564 <button>
565 <placement x="%btn4_col4_x%" y="%row11_y%"/>
566 <highlight color="%highlight_color%"/>
567 <image resource="q_btn_accept_transp"/>
568 <action function="page">flash_confirm</action>
569 </button>
570
571 <action>
572 <touch key="back"/>
573 <action function="page">flash_queue</action>
574 </action>
575
576 <action>
577 <touch key="home"/>
578 <action function="page">main</action>
579 </action>
580 </page>
581
582 <page name="flash_confirm">
583 <template name="page"/>
584
585 <template name="statusbar"/>
586
587 <text style="text_m">
588 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500589 <text>{@install_zip_hdr=Install Zip} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100590 </text>
591
592 <text style="text_m_accent">
593 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500594 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100595 </text>
596
597 <text style="text_m">
598 <placement x="%indent%" y="%row2_y%"/>
599 <text>%tw_file%</text>
600 </text>
601
602 <button>
603 <fill color="%transparent%"/>
604 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
605 <action function="page">flash_queue</action>
606 </button>
607
608 <text style="text_m_accent">
609 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500610 <text>{@zip_queue=Queue:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100611 </text>
612
613 <text style="text_m">
614 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500615 <text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100616 </text>
617
618 <button>
619 <fill color="%transparent%"/>
620 <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
621 <action function="page">flash_queue</action>
622 </button>
623
624 <listbox style="listbox_options">
625 <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="80"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500626 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +0100627 <data variable="tw_signed_zip_verify"/>
628 </listitem>
629 </listbox>
630
631 <text style="text_m_accent">
632 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500633 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100634 </text>
635
636 <text style="text_m">
637 <condition var1="tw_has_injecttwrp" var2="1"/>
638 <condition var1="tw_inject_after_zip" var2="1"/>
639 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500640 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100641 </text>
642
643 <button>
644 <fill color="%transparent%"/>
645 <placement x="0" y="%row6a_y%" w="%screen_width%" h="64"/>
646 <action function="page">flash_options</action>
647 </button>
648
649 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500650 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100651 <action function="flash">flash_zip</action>
652 </slider>
653
654 <action>
655 <touch key="back"/>
656 <actions>
657 <action function="cancelzip"/>
658 <action function="page">install</action>
659 </actions>
660 </action>
661
662 <action>
663 <touch key="home"/>
664 <action function="page">main</action>
665 </action>
666 </page>
667
668 <page name="flash_zip">
669 <template name="page"/>
670
671 <template name="statusbar"/>
672
673 <text style="text_m">
674 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -0600675 <text>{@installing_zip_xml=Installing Zip: %tw_file%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100676 </text>
677
678 <template name="console"/>
679
680 <template name="progress_bar"/>
681
682 <action>
683 <condition var1="tw_operation_state" var2="1"/>
684 <action function="page">flash_done</action>
685 </action>
686 </page>
687
688 <page name="flash_done">
689 <template name="page"/>
690
691 <template name="statusbar"/>
692
693 <text style="text_m_fail">
694 <condition var1="tw_operation_status" op="!=" var2="0"/>
695 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500696 <text>{@install_failed=Installation Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100697 </text>
698
699 <text style="text_m">
700 <condition var1="tw_operation_status" var2="0"/>
701 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500702 <text>{@install_successful=Installation Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100703 </text>
704
705 <template name="console"/>
706
707 <button style="main_button_half_height">
708 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500709 <text>{@wipe_cache_dalvik_btn=Wipe cache/dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100710 <actions>
711 <action function="set">tw_back=flash_done</action>
712 <action function="set">tw_action=wipe</action>
713 <action function="set">tw_action_param=/cache</action>
714 <action function="set">tw_has_action2=1</action>
715 <action function="set">tw_action2=wipe</action>
716 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500717 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
718 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
719 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
720 <action function="set">tw_slider_text={@swipe_wipe_s= Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100721 <action function="page">confirm_action</action>
722 </actions>
723 </button>
724
725 <button style="main_button_half_height">
726 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500727 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100728 <actions>
729 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500730 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100731 </actions>
732 </button>
733
734 <action>
735 <touch key="back"/>
736 <actions>
737 <action function="set">tw_clear_destination=install_type</action>
738 <action function="page">clear_vars</action>
739 </actions>
740 </action>
741
742 <action>
743 <touch key="home"/>
744 <actions>
745 <action function="set">tw_clear_destination=main2</action>
746 <action function="page">clear_vars</action>
747 </actions>
748 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500749
750 <action>
751 <conditions>
752 <condition var1="tw_install_reboot" var2="1"/>
753 <condition var1="tw_operation_status" var2="0"/>
754 <condition var1="tw_reboot_system" var2="1"/>
755 </conditions>
756 <actions>
757 <action function="set">tw_sleep=%tw_sleep_total%</action>
758 <action function="page">flash_sleep_and_reboot</action>
759 </actions>
760 </action>
761 </page>
762
763 <page name="flash_sleep_and_reboot">
764 <template name="page"/>
765
766 <template name="statusbar"/>
767
768 <text style="text_m">
769 <placement x="%col1_x_left%" y="%row1_header_y%"/>
770 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
771 </text>
772
773 <template name="console"/>
774
775 <template name="progress_bar"/>
776
777 <button style="main_button_half_height">
778 <condition var1="tw_sleep" op="&gt;" var2="0"/>
779 <placement x="%col1_x_right%" y="%row13_y%"/>
780 <text>{@cancel_btn=Cancel}</text>
781 <actions>
782 <action function="set">tw_install_reboot=0</action>
783 <action function="page">flash_done</action>
784 </actions>
785 </button>
786
787 <action>
788 <conditions>
789 <condition var1="tw_sleep" var2="tw_sleep_total"/>
790 <condition var1="tw_install_reboot" var2="1"/>
791 </conditions>
792 <action function="sleepcounter">%tw_sleep_total%</action>
793 </action>
794
795 <action>
796 <conditions>
797 <condition var1="tw_sleep" var2="0"/>
798 <condition var1="tw_install_reboot" var2="1"/>
799 </conditions>
800 <actions>
801 <action function="sleep">50000</action>
802 <action function="set">tw_back=main2</action>
803 <action function="page">reboot_system_routine</action>
804 </actions>
805 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100806 </page>
807
808 <page name="flashimage_type">
809 <template name="page"/>
810
811 <template name="statusbar"/>
812
813 <text style="text_m">
814 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -0600815 <text>{@install_image_hdr=Install Image} &gt; {@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100816 </text>
817
818 <partitionlist style="partitionlist_headerless_rb">
819 <data name="tw_flash_partition"/>
820 <listtype name="flashimg"/>
821 </partitionlist>
822
823 <button>
824 <placement x="%col1_x_left%" y="%row11_y%"/>
825 <highlight color="%highlight_color%"/>
826 <image resource="q_btn_arrow_left"/>
827 <action function="page">install</action>
828 </button>
829
830 <button>
831 <placement x="%btn4_col4_x%" y="%row11_y%"/>
832 <highlight color="%highlight_color%"/>
833 <image resource="q_btn_accept_transp"/>
834 <action function="page">flashimage_confirm</action>
835 </button>
836
837 <action>
838 <touch key="back"/>
839 <action function="page">install</action>
840 </action>
841
842 <action>
843 <touch key="home"/>
844 <action function="page">main</action>
845 </action>
846 </page>
847
848 <page name="flashimage_confirm">
849 <template name="page"/>
850
851 <template name="statusbar"/>
852
853 <text style="text_m">
854 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500855 <text>{@install_image_hdr=Install Image} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100856 </text>
857
858 <text style="text_m_accent">
859 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500860 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100861 </text>
862
863 <text style="text_m">
864 <placement x="%indent%" y="%row2_y%"/>
865 <text>%tw_file%</text>
866 </text>
867
868 <button>
869 <fill color="%transparent%"/>
870 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
871 <action function="page">install</action>
872 </button>
873
874 <text style="text_m_accent">
875 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500876 <text>{@target_partition=Target Partition:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100877 </text>
878
879 <text style="text_m">
880 <placement x="%indent%" y="%row5_y%"/>
881 <text>%tw_flash_partition%</text>
882 </text>
883
884 <button>
885 <fill color="%transparent%"/>
886 <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
887 <action function="page">flashimage_type</action>
888 </button>
889
890 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500891 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100892 <actions>
893 <action function="set">tw_back=flashimage_confirm</action>
894 <action function="set">tw_action=flashimage</action>
895 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500896 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100897 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500898 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100899 <action function="page">action_page</action>
900 </actions>
901 <action function="flashimage"/>
902 </slider>
903
904 <action>
905 <touch key="back"/>
906 <actions>
907 <action function="set">tw_clear_destination=install</action>
908 <action function="page">clear_vars</action>
909 </actions>
910 </action>
911
912 <action>
913 <touch key="home"/>
914 <actions>
915 <action function="set">tw_clear_destination=main2</action>
916 <action function="page">clear_vars</action>
917 </actions>
918 </action>
919 </page>
920
921 <page name="clear_vars">
922 <action>
923 <action function="set">tw_operation_state=0</action>
924 <action function="set">tw_text1=</action>
925 <action function="set">tw_text2=</action>
926 <action function="set">tw_text3=</action>
927 <action function="set">tw_text4=</action>
928 <action function="set">tw_action_text1=</action>
929 <action function="set">tw_action_text2=</action>
930 <action function="set">tw_action_param=</action>
931 <action function="set">tw_has_action2=0</action>
932 <action function="set">tw_action2=</action>
933 <action function="set">tw_action2_param=</action>
934 <action function="set">tw_has_cancel=0</action>
935 <action function="set">tw_cancel_action=</action>
936 <action function="set">tw_cancel_param=</action>
937 <action function="set">tw_show_exclamation=0</action>
938 <action function="set">tw_show_reboot=0</action>
939 <action function="page">%tw_clear_destination%</action>
940 </action>
941 </page>
942
Matt Mower908dd252016-05-25 02:26:50 -0500943 <page name="reboot_system_routine">
944 <action>
945 <action function="set">tw_back=main2</action>
946 <action function="set">tw_action=reboot</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -0600947 <action function="set">tw_reboot_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500948 <action function="set">tw_has_action2=0</action>
949 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
950 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
951 <action function="set">tw_text3=</action>
952 <action function="set">tw_text4=</action>
953 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
954 <action function="set">tw_action_text2=</action>
955 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
956 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
957 <action function="page">rebootcheck</action>
958 </action>
959 </page>
960
z31s1g28f0a922015-11-07 18:50:22 +0100961 <page name="confirm_action">
962 <template name="page"/>
963
964 <template name="statusbar"/>
965
966 <text style="text_m">
967 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500968 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100969 </text>
970
971 <text style="text_m_accent">
972 <placement x="%center_x%" y="%row2_y%" placement="5"/>
973 <text>%tw_text1%</text>
974 </text>
975
976 <text style="text_m_accent">
977 <placement x="%center_x%" y="%row3_y%" placement="5"/>
978 <text>%tw_text2%</text>
979 </text>
980
981 <text style="text_m">
982 <condition var1="tw_action" op="!=" var2="changefilesystem"/>
983 <placement x="%center_x%" y="%row5_y%" placement="5"/>
984 <text>%tw_text3%</text>
985 </text>
986
987 <text style="text_m">
988 <condition var1="tw_action" op="!=" var2="changefilesystem"/>
989 <placement x="%center_x%" y="%row6_y%" placement="5"/>
990 <text>%tw_text4%</text>
991 </text>
992
993 <text style="text_m_fail">
994 <condition var1="tw_action" var2="changefilesystem"/>
995 <placement x="%center_x%" y="%row5_y%" placement="5"/>
996 <text>%tw_text3%</text>
997 </text>
998
999 <text style="text_m_fail">
1000 <condition var1="tw_action" var2="changefilesystem"/>
1001 <placement x="%center_x%" y="%row6_y%" placement="5"/>
1002 <text>%tw_text4%</text>
1003 </text>
1004
1005 <text style="text_m">
1006 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001007 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001008 </text>
1009
1010 <slider>
1011 <text>%tw_slider_text%</text>
1012 <action function="page">action_page</action>
1013 </slider>
1014
1015 <action>
1016 <touch key="back"/>
1017 <actions>
1018 <action function="set">tw_clear_destination=%tw_back%</action>
1019 <action function="page">clear_vars</action>
1020 </actions>
1021 </action>
1022
1023 <action>
1024 <touch key="home"/>
1025 <action function="page">main</action>
1026 </action>
1027 </page>
1028
1029 <page name="action_page">
1030 <template name="page"/>
1031
1032 <template name="statusbar"/>
1033
1034 <text style="text_m">
1035 <placement x="%col1_x_left%" y="%row1_header_y%"/>
1036 <text>%tw_action_text1% %tw_action_text2%</text>
1037 </text>
1038
1039 <template name="console"/>
1040
1041 <template name="progress_bar"/>
1042
1043 <button style="main_button_half_height">
1044 <condition var1="tw_has_cancel" var2="1"/>
1045 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001046 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001047 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
1048 </button>
1049
1050 <action>
1051 <condition var1="tw_operation_state" var2="1"/>
1052 <actions>
1053 <action function="page">action_complete</action>
1054 </actions>
1055 </action>
1056
1057 <action>
1058 <condition var1="tw_has_action2" var2="0"/>
1059 <actions>
1060 <action function="%tw_action%">%tw_action_param%</action>
1061 </actions>
1062 </action>
1063
1064 <action>
1065 <condition var1="tw_has_action2" var2="1"/>
1066 <actions>
1067 <action function="%tw_action%">%tw_action_param%</action>
1068 <action function="%tw_action2%">%tw_action2_param%</action>
1069 </actions>
1070 </action>
1071 </page>
1072
1073 <page name="singleaction_page">
1074 <template name="page"/>
1075
1076 <template name="statusbar"/>
1077
1078 <text style="text_m">
1079 <placement x="%col1_x_left%" y="%row1_header_y%"/>
1080 <text>%tw_action_text1% %tw_action_text2%</text>
1081 </text>
1082
1083 <template name="console"/>
1084
1085 <template name="progress_bar"/>
1086
1087 <action>
1088 <condition var1="tw_operation_state" var2="1"/>
1089 <actions>
1090 <action function="set">tw_page_done=1</action>
1091 </actions>
1092 </action>
1093
1094 <action>
1095 <condition var1="tw_has_action2" var2="0"/>
1096 <actions>
1097 <action function="%tw_action%">%tw_action_param%</action>
1098 </actions>
1099 </action>
1100
1101 <action>
1102 <condition var1="tw_has_action2" var2="1"/>
1103 <actions>
1104 <action function="%tw_action%">%tw_action_param%</action>
1105 <action function="%tw_action2%">%tw_action2_param%</action>
1106 </actions>
1107 </action>
1108 </page>
1109
1110 <page name="action_complete">
1111 <template name="page"/>
1112
1113 <template name="statusbar"/>
1114
1115 <text style="text_m_fail">
1116 <condition var1="tw_operation_status" op="!=" var2="0"/>
1117 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001118 <text>%tw_complete_text1% {@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001119 </text>
1120
1121 <text style="text_m">
1122 <condition var1="tw_operation_status" var2="0"/>
1123 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001124 <text>%tw_complete_text1% {@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001125 </text>
1126
1127 <template name="console"/>
1128
1129 <button style="main_button_half_height">
1130 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001131 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001132 <actions>
1133 <action function="set">tw_clear_destination=%tw_back%</action>
1134 <action function="page">clear_vars</action>
1135 </actions>
1136 </button>
1137
1138 <button style="main_button_half_height">
1139 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001140 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001141 <actions>
1142 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -05001143 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01001144 </actions>
1145 </button>
1146
1147 <action>
1148 <touch key="home"/>
1149 <actions>
1150 <action function="set">tw_clear_destination=main2</action>
1151 <action function="page">clear_vars</action>
1152 </actions>
1153 </action>
1154
1155 <action>
1156 <touch key="back"/>
1157 <actions>
1158 <action function="set">tw_clear_destination=%tw_back%</action>
1159 <action function="page">clear_vars</action>
1160 </actions>
1161 </action>
1162 </page>
1163
1164 <page name="filecheck">
1165 <action>
1166 <action function="fileexists">%tw_filecheck%</action>
1167 </action>
1168
1169 <action>
1170 <conditions>
1171 <condition var1="tw_operation_state" var2="1"/>
1172 <condition var1="tw_operation_status" var2="0"/>
1173 </conditions>
1174 <actions>
1175 <action function="set">tw_fileexists=1</action>
1176 <action function="page">%tw_existpage%</action>
1177 </actions>
1178 </action>
1179
1180 <action>
1181 <conditions>
1182 <condition var1="tw_operation_state" var2="1"/>
1183 <condition var1="tw_operation_status" var2="1"/>
1184 </conditions>
1185 <actions>
1186 <action function="set">tw_fileexists=0</action>
1187 <action function="page">%tw_notexistpage%</action>
1188 </actions>
1189 </action>
1190 </page>
1191
1192 <page name="rebootcheck">
1193 <action>
1194 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06001195 <action function="page">appcheck</action>
z31s1g28f0a922015-11-07 18:50:22 +01001196 </action>
1197
1198 <action>
1199 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1200 <action function="page">confirm_action</action>
1201 </action>
1202 </page>
1203
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06001204 <page name="appcheck">
1205 <action>
1206 <condition var1="tw_app_prompt" var2="1"/>
1207 <action function="checkforapp"></action>
1208 </action>
1209
1210 <action>
1211 <condition var1="tw_app_prompt" op="!=" var2="1"/>
1212 <action function="reboot">%tw_reboot_param%</action>
1213 </action>
1214
1215 <action>
1216 <condition var1="tw_app_install_status" var2="1"/>
1217 <action function="page">rebootapp</action>
1218 </action>
1219
1220 <action>
1221 <condition var1="tw_app_install_status" var2="2"/>
1222 <action function="reboot">%tw_reboot_param%</action>
1223 </action>
1224 </page>
1225
z31s1g28f0a922015-11-07 18:50:22 +01001226 <page name="wipe_type1">
1227 <template name="page"/>
1228
1229 <template name="statusbar"/>
1230
1231 <text style="text_m">
1232 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001233 <text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001234 </text>
1235
1236 <button style="main_button_full_width">
1237 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001238 <text>{@factory_reset_btn=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001239 <action function="page">wipe</action>
1240 </button>
1241
1242 <button style="main_button_full_width">
1243 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001244 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001245 <actions>
1246 <action function="set">partitionlisterror=0</action>
1247 <action function="page">advancedwipe</action>
1248 </actions>
1249 </button>
1250
1251 <button>
1252 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1253 <highlight color="%highlight_color%"/>
1254 <image resource="q_btn_arrow_right"/>
1255 <action function="page">wipe_type2</action>
1256 </button>
1257
1258 <action>
1259 <touch key="home"/>
1260 <action function="page">main</action>
1261 </action>
1262
1263 <action>
1264 <touch key="back"/>
1265 <action function="page">main</action>
1266 </action>
1267 </page>
1268
1269 <page name="wipe_type2">
1270 <template name="page"/>
1271
1272 <template name="statusbar"/>
1273
1274 <text style="text_m">
1275 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001276 <text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001277 </text>
1278
1279 <button style="main_button_full_width">
1280 <condition var1="tw_has_data_media" var2="1"/>
1281 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001282 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001283 <action function="page">formatdata</action>
1284 </button>
1285
1286 <button style="main_button_full_width">
1287 <conditions>
1288 <condition var1="tw_is_encrypted" var2="1"/>
1289 <condition var1="tw_has_data_media" var2="0"/>
1290 </conditions>
1291 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001292 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001293 <actions>
1294 <action function="set">tw_back=wipe</action>
1295 <action function="set">tw_action=wipe</action>
1296 <action function="set">tw_action_param=DATAMEDIA</action>
1297 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001298 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001299 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001300 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1301 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1302 <action function="set">tw_slider_text={@swipe_format_data_s= Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001303 <action function="page">confirm_action</action>
1304 </actions>
1305 </button>
1306
1307 <button style="main_button_full_width">
1308 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001309 <text>{@file_sys_opt=File System Options}</text><actions>
z31s1g28f0a922015-11-07 18:50:22 +01001310 <action function="set">partitionlisterror=0</action>
1311 <action function="page">partitionoptions_select</action>
1312 </actions>
1313 </button>
1314
1315 <button>
1316 <placement x="%col1_x_left%" y="%row11_y%"/>
1317 <highlight color="%highlight_color%"/>
1318 <image resource="q_btn_arrow_left"/>
1319 <action function="page">wipe_type1</action>
1320 </button>
1321
1322 <action>
1323 <touch key="home"/>
1324 <action function="page">main</action>
1325 </action>
1326
1327 <action>
1328 <touch key="back"/>
1329 <action function="page">main</action>
1330 </action>
1331 </page>
1332
1333 <page name="wipe">
1334 <template name="page"/>
1335
1336 <template name="statusbar"/>
1337
1338 <text style="text_m">
1339 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001340 <text>{@wipe_hdr=Wipe} &gt; {@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001341 </text>
1342
1343 <text style="text_m_accent">
1344 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001345 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001346 </text>
1347
1348 <text style="text_m_accent">
1349 <condition var1="tw_has_data_media" var2="1"/>
1350 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001351 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001352 </text>
1353
1354 <text style="text_m_accent">
1355 <conditions>
1356 <condition var1="tw_has_android_secure" var2="1"/>
1357 <condition var1="fileexists" var2="/and-sec"/>
1358 </conditions>
1359 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001360 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001361 </text>
1362
1363 <text style="text_m_accent">
1364 <condition var1="tw_has_sdext_partition" var2="1"/>
1365 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001366 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001367 </text>
1368
1369 <text style="text_m">
1370 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001371 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001372 </text>
1373
1374 <text style="text_m">
1375 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001376 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001377 </text>
1378
1379 <text style="text_m">
1380 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001381 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001382 </text>
1383
1384 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001385 <text>{@swipe_wipe_s= Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001386 <actions>
1387 <action function="set">tw_back=wipe</action>
1388 <action function="set">tw_action=wipe</action>
1389 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001390 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1391 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001392 <action function="page">action_page</action>
1393 </actions>
1394 </slider>
1395
1396 <action>
1397 <touch key="back"/>
1398 <action function="page">wipe_type1</action>
1399 </action>
1400
1401 <action>
1402 <touch key="home"/>
1403 <action function="page">main</action>
1404 </action>
1405 </page>
1406
1407 <page name="advancedwipe">
1408 <action>
1409 <action function="set">tw_wipe_list=</action>
1410 </action>
1411
1412 <template name="page"/>
1413
1414 <template name="statusbar"/>
1415
1416 <text style="text_m">
1417 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001418 <text>{@wipe_hdr=Wipe} &gt; {@advanced_wipe_hdr=Advanced Wipe} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001419 </text>
1420
1421 <partitionlist style="partitionlist_headerless_cb">
1422 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1423 <data name="tw_wipe_list"/>
1424 <listtype name="wipe"/>
1425 </partitionlist>
1426
1427 <fill color="%accent_color%">
1428 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1429 </fill>
1430
1431 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001432 <text>{@swipe_wipe_s= Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001433 <actions>
1434 <action function="set">tw_back=advancedwipe</action>
1435 <action function="set">tw_action=wipe</action>
1436 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001437 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1438 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1439 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001440 <action function="page">action_page</action>
1441 </actions>
1442 </slider>
1443
1444 <action>
1445 <touch key="home"/>
1446 <action function="page">main</action>
1447 </action>
1448
1449 <action>
1450 <touch key="back"/>
1451 <action function="page">wipe_type1</action>
1452 </action>
1453 </page>
1454
1455 <page name="formatdata">
1456 <template name="page"/>
1457
1458 <template name="statusbar"/>
1459
1460 <text style="text_m">
1461 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001462 <text>{@wipe_hdr=Wipe} &gt; {@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001463 </text>
1464
1465 <text style="text_m_fail">
1466 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001467 <text>{@format_data_wtc1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001468 </text>
1469
1470 <text style="text_m_fail">
1471 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001472 <text>{@format_data_wtc2=backups and media. This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001473 </text>
1474
1475 <text style="text_m">
1476 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001477 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001478 </text>
1479
1480 <input>
1481 <placement x="%col1_x_left%" y="%row5_y%" w="%content_width%" h="%input_height%"/>
1482 <text>%tw_confirm_formatdata%</text>
1483 <data name="tw_confirm_formatdata"/>
1484 <restrict minlen="3" maxlen="3" allow="yes"/>
1485 <action function="page">formatdata_confirm</action>
1486 </input>
1487
1488 <fill color="%accent_color%">
1489 <placement x="%col1_x_left%" y="row6_input_y" w="%content_width%" h="input_line_width"/>
1490 </fill>
1491
1492 <template name="keyboardtemplate"/>
1493
1494 <action>
1495 <touch key="home"/>
1496 <action function="page">main</action>
1497 </action>
1498
1499 <action>
1500 <touch key="back"/>
1501 <action function="page">wipe_type2</action>
1502 </action>
1503 </page>
1504
1505 <page name="formatdata_confirm">
1506 <action>
1507 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1508 <actions>
1509 <action function="set">tw_back=formatdata</action>
1510 <action function="set">tw_action=wipe</action>
1511 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001512 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1513 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001514 <action function="page">action_page</action>
1515 </actions>
1516 </action>
1517
1518 <action>
1519 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1520 <action function="page">formatdata</action>
1521 </action>
1522 </page>
1523
1524 <page name="checkpartitionlist">
1525 <action>
1526 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1527 <actions>
1528 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001529 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001530 <action function="page">partitionoptions</action>
1531 </actions>
1532 </action>
1533
1534 <action>
1535 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1536 <actions>
1537 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001538 <action function="page">partitionoptions_select</action>
1539 </actions>
1540 </action>
1541 </page>
1542
1543 <page name="partitionoptions_select">
1544 <action>
1545 <action function="set">tw_wipe_list=</action>
1546 </action>
1547
1548 <template name="page"/>
1549
1550 <template name="statusbar"/>
1551
1552 <text style="text_m">
1553 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001554 <text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001555 </text>
1556
1557 <partitionlist style="partitionlist_headerless_cb">
1558 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1559 <data name="tw_wipe_list"/>
1560 <listtype name="wipe"/>
1561 </partitionlist>
1562
1563 <fill color="%accent_color%">
1564 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1565 </fill>
1566
z31s1g28f0a922015-11-07 18:50:22 +01001567 <text style="text_m_fail">
1568 <condition var1="partitionlisterror" var2="1"/>
1569 <placement x="%col1_x_left%" y="%row12_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001570 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001571 </text>
1572
1573 <button>
1574 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1575 <highlight color="%highlight_color%"/>
1576 <image resource="q_btn_arrow_right"/><actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001577 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001578 <action function="page">checkpartitionlist</action>
1579 </actions>
1580 </button>
1581
1582 <action>
1583 <touch key="home"/>
1584 <action function="page">main</action>
1585 </action>
1586
1587 <action>
1588 <touch key="back"/>
1589 <action function="page">wipe_type2</action>
1590 </action>
1591 </page>
1592
1593 <page name="partitionoptions">
1594
1595 <template name="page"/>
1596
1597 <template name="statusbar"/>
1598
1599 <text style="text_m">
1600 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001601 <text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_act_hdr=Select Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001602 </text>
1603
1604 <text style="text_m_accent">
1605 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001606 <text>{@partition=Partition: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001607 </text>
1608
1609 <text style="text_m_accent">
1610 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001611 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001612 </text>
1613
1614 <text style="text_m">
1615 <condition var1="tw_partition_is_present" var2="1"/>
1616 <placement x="%col1_x_left%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001617 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001618 </text>
1619
1620 <text style="text_m">
1621 <condition var1="tw_partition_is_present" var2="0"/>
1622 <placement x="%col1_x_left%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001623 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001624 </text>
1625
1626 <text style="text_m">
1627 <condition var1="tw_partition_removable" var2="1"/>
1628 <placement x="%col1_x_right%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001629 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001630 </text>
1631
1632 <text style="text_m">
1633 <condition var1="tw_partition_removable" var2="0"/>
1634 <placement x="%col1_x_right%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001635 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001636 </text>
1637
1638 <text style="text_m">
1639 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001640 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001641 </text>
1642
1643 <text style="text_m">
1644 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001645 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001646 </text>
1647
1648 <text style="text_m">
1649 <placement x="%col1_x_left%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001650 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001651 </text>
1652
1653 <text style="text_m">
1654 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001655 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001656 </text>
1657
1658 <button style="main_button">
1659 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1660 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001661 <text>{@resize_btn_s=Resize}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001662 <actions>
1663 <action function="set">tw_back=partitionoptions</action>
1664 <action function="set">tw_action=resize</action>
1665 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1666 <action function="set">tw_has_action2=1</action>
1667 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001668 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001669 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001670 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001671 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1672 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1673 <action function="set">tw_slider_text={@swipe_resize_s= Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001674 <action function="page">confirm_action</action>
1675 </actions>
1676 </button>
1677
1678 <button style="main_button">
1679 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1680 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001681 <text>{@repair_btn_s=Repair}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001682 <actions>
1683 <action function="set">tw_back=partitionoptions</action>
1684 <action function="set">tw_action=repair</action>
1685 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1686 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001687 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001688 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001689 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1690 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1691 <action function="set">tw_slider_text={@swipe_repair_s= Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001692 <action function="page">confirm_action</action>
1693 </actions>
1694 </button>
1695
1696 <button>
1697 <placement x="%col1_x_left%" y="%row11_y%"/>
1698 <highlight color="%highlight_color%"/>
1699 <image resource="q_btn_arrow_left"/>
1700 <action function="page">partitionoptions_select</action>
1701 </button>
1702
1703 <button style="main_button">
1704 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001705 <text>{@change_fs_btn_s=Change}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001706 <action function="page">selectfilesystem</action>
1707 </button>
1708
1709 <action>
1710 <touch key="home"/>
1711 <action function="page">main</action>
1712 </action>
1713
1714 <action>
1715 <touch key="back"/>
1716 <action function="page">partitionoptions_select</action>
1717 </action>
1718 </page>
1719
1720 <page name="refreshfilesystem">
1721 <action>
1722 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1723 <actions>
1724 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001725 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001726 <action function="page">selectfilesystem</action>
1727 </actions>
1728 </action>
1729
1730 <action>
1731 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1732 <actions>
1733 <action function="set">partitionlisterror=1</action>
1734 <action function="set">tw_wipe_list=</action>
1735 <action function="page">advancedwipe</action>
1736 </actions>
1737 </action>
1738 </page>
1739
1740 <page name="selectfilesystem">
1741 <template name="page"/>
1742
1743 <template name="statusbar"/>
1744
1745 <text style="text_m">
1746 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001747 <text>{@change_fs_for_hdr_s=Partition: %tw_partition_name% &gt; Select File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001748 </text>
1749
1750 <button style="main_button">
1751 <condition var1="tw_partition_ext" op="=" var2="1"/>
1752 <placement x="%col1_x_left%" y="%row1_y%"/>
1753 <text>EXT2</text>
1754 <actions>
1755 <action function="set">tw_back=refreshfilesystem</action>
1756 <action function="set">tw_action=changefilesystem</action>
1757 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1758 <action function="set">tw_action_new_file_system=ext2</action>
1759 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001760 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1761 <action function="set">tw_text2=EXT2</action>
1762 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1763 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1764 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1765 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1766 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001767 <action function="page">confirm_action</action>
1768 </actions>
1769 </button>
1770
1771 <button style="main_button">
1772 <condition var1="tw_partition_ext" op="=" var2="1"/>
1773 <placement x="%col1_x_left%" y="%row6_y%"/>
1774 <text>EXT3</text>
1775 <actions>
1776 <action function="set">tw_back=refreshfilesystem</action>
1777 <action function="set">tw_action=changefilesystem</action>
1778 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1779 <action function="set">tw_action_new_file_system=ext3</action>
1780 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001781 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1782 <action function="set">tw_text2=EXT3</action>
1783 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1784 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1785 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1786 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1787 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001788 <action function="page">confirm_action</action>
1789 </actions>
1790 </button>
1791
1792 <button style="main_button">
1793 <condition var1="tw_partition_ext" op="=" var2="1"/>
1794 <placement x="%col1_x_left%" y="%row11_y%"/>
1795 <text>EXT4</text>
1796 <actions>
1797 <action function="set">tw_back=refreshfilesystem</action>
1798 <action function="set">tw_action=changefilesystem</action>
1799 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1800 <action function="set">tw_action_new_file_system=ext4</action>
1801 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001802 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1803 <action function="set">tw_text2=EXT4</action>
1804 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1805 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1806 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1807 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1808 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001809 <action function="page">confirm_action</action>
1810 </actions>
1811 </button>
1812
1813 <button style="main_button">
1814 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1815 <placement x="%col1_x_right%" y="%row1_y%"/>
1816 <text>FAT</text>
1817 <actions>
1818 <action function="set">tw_back=refreshfilesystem</action>
1819 <action function="set">tw_action=changefilesystem</action>
1820 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1821 <action function="set">tw_action_new_file_system=vfat</action>
1822 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001823 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1824 <action function="set">tw_text2=FAT</action>
1825 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1826 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1827 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1828 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1829 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001830 <action function="page">confirm_action</action>
1831 </actions>
1832 </button>
1833
1834 <button style="main_button">
1835 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1836 <placement x="%col1_x_right%" y="%row6_y%"/>
1837 <text>exFAT</text>
1838 <actions>
1839 <action function="set">tw_back=refreshfilesystem</action>
1840 <action function="set">tw_action=changefilesystem</action>
1841 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1842 <action function="set">tw_action_new_file_system=exfat</action>
1843 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001844 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1845 <action function="set">tw_text2=exFAT</action>
1846 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1847 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1848 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1849 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1850 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001851 <action function="page">confirm_action</action>
1852 </actions>
1853 </button>
1854
1855 <button style="main_button">
1856 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1857 <placement x="%col1_x_right%" y="%row11_y%"/>
1858 <text>F2FS</text>
1859 <actions>
1860 <action function="set">tw_back=refreshfilesystem</action>
1861 <action function="set">tw_action=changefilesystem</action>
1862 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1863 <action function="set">tw_action_new_file_system=f2fs</action>
1864 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001865 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1866 <action function="set">tw_text2=F2FS</action>
1867 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1868 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1869 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1870 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1871 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001872 <action function="page">confirm_action</action>
1873 </actions>
1874 </button>
1875
1876 <action>
1877 <touch key="home"/>
1878 <action function="page">main</action>
1879 </action>
1880
1881 <action>
1882 <touch key="back"/>
1883 <action function="page">partitionoptions</action>
1884 </action>
1885 </page>
1886
bigbiffce8f83c2015-12-12 18:30:21 -05001887 <page name="backup">
z31s1g28f0a922015-11-07 18:50:22 +01001888 <template name="page"/>
1889
1890 <template name="statusbar"/>
1891
1892 <text style="text_m">
1893 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001894 <text>{@backup_hdr=Backup} &gt; {@select_storage_hdr=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001895 </text>
1896
1897 <partitionlist style="partitionlist_headerless_rb">
1898 <data name="tw_storage_path"/>
1899 <listtype name="storage"/>
1900 </partitionlist>
1901
1902 <button>
1903 <placement x="%btn4_col2_x%" y="%row11_y%"/>
1904 <highlight color="%highlight_color%"/>
1905 <image resource="q_btn_refresh"/>
1906 <actions>
1907 <action function="refreshsizes"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001908 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01001909 </actions>
1910 </button>
1911
1912 <button>
1913 <condition var1="tw_back" var2="backup_confirm"/>
1914 <placement x="%btn4_col3_x%" y="%row11_y%"/>
1915 <highlight color="%highlight_color%"/>
1916 <image resource="q_btn_accept"/>
1917 <action function="page">backup_confirm</action>
1918 </button>
1919
1920 <button>
1921 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1922 <highlight color="%highlight_color%"/>
1923 <image resource="q_btn_arrow_right"/>
1924 <actions>
bigbiffce8f83c2015-12-12 18:30:21 -05001925 <action function="set">tw_back=backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01001926 <action function="page">backup_selectpartitions</action>
1927 </actions>
1928 </button>
1929
1930 <action>
1931 <touch key="home"/>
1932 <action function="page">main</action>
1933 </action>
1934
1935 <action>
1936 <touch key="back"/>
1937 <action function="page">%tw_back%</action>
1938 </action>
1939
1940 <action>
1941 <touch key="power+voldown"/>
1942 <action function="screenshot"/>
1943 </action>
1944 </page>
1945
1946 <page name="backup_selectpartitions">
1947 <template name="page"/>
1948
1949 <template name="statusbar"/>
1950
1951 <text style="text_m">
1952 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001953 <text>{@backup_hdr=Backup} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001954 </text>
1955
1956 <partitionlist style="partitionlist_headerless_cb">
1957 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1958 <data name="tw_backup_list"/>
1959 <listtype name="backup"/>
1960 </partitionlist>
1961
1962 <fill color="%accent_color%">
1963 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1964 </fill>
1965
1966 <button>
1967 <placement x="%col1_x_left%" y="%row11_y%"/>
1968 <highlight color="%highlight_color%"/>
1969 <image resource="q_btn_arrow_left"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001970 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01001971 </button>
1972
1973 <button>
1974 <placement x="%btn4_col2_x%" y="%row11_y%"/>
1975 <highlight color="%highlight_color%"/>
1976 <image resource="q_btn_refresh"/>
1977 <action function="page">backup_selectpartitions</action>
1978 </button>
1979
1980 <button>
1981 <placement x="%btn4_col3_x%" y="%row11_y%"/>
1982 <highlight color="%highlight_color%"/>
1983 <image resource="q_btn_accept"/>
1984 <action function="page">backup_confirm</action>
1985 </button>
1986
1987 <button>
1988 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1989 <highlight color="%highlight_color%"/>
1990 <image resource="q_btn_arrow_right"/>
1991 <actions>
1992 <action function="set">tw_back=backup_selectpartitions</action>
1993 <action function="page">backup_options</action>
1994 </actions>
1995 </button>
1996
1997 <action>
1998 <touch key="home"/>
1999 <action function="page">main</action>
2000 </action>
2001
2002 <action>
2003 <touch key="back"/>
2004 <action function="page">%tw_back%</action>
2005 </action>
2006
2007 <action>
2008 <touch key="power+voldown"/>
2009 <action function="screenshot"/>
2010 </action>
2011 </page>
2012
2013 <page name="backup_options">
2014 <template name="page"/>
2015
2016 <template name="statusbar"/>
2017
2018 <text style="text_m">
2019 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002020 <text>{@backup_hdr=Backup} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002021 </text>
2022
2023 <listbox style="scrolllist">
2024 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002025 <listitem name="{@enable_backup_comp_chk=Enable compression}">
z31s1g28f0a922015-11-07 18:50:22 +01002026 <data variable="tw_use_compression"/>
2027 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05002028 <listitem name="{@skip_md5_backup_chk=Skip MD5 generation during backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002029 <data variable="tw_skip_md5_generate"/>
2030 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05002031 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002032 <data variable="tw_disable_free_space"/>
2033 </listitem>
2034 </listbox>
2035
2036 <button>
2037 <placement x="%col1_x_left%" y="%row11_y%"/>
2038 <highlight color="%highlight_color%"/>
2039 <image resource="q_btn_arrow_left"/>
2040 <action function="page">backup_selectpartitions</action>
2041 </button>
2042
2043 <button>
2044 <conditions>
2045 <condition var1="tw_include_encrypted_backup" var2="1"/>
2046 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002047 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002048 </conditions>
2049 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2050 <highlight color="%highlight_color%"/>
2051 <image resource="q_btn_encryption_dis"/>
2052 <actions>
2053 <action function="set">tw_password_not_match=0</action>
2054 <action function="set">tw_back=backup_options</action>
2055 <action function="page">backupencryption</action>
2056 </actions>
2057 </button>
2058
2059 <button>
2060 <conditions>
2061 <condition var1="tw_include_encrypted_backup" var2="1"/>
2062 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002063 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002064 </conditions>
2065 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2066 <highlight color="%highlight_color%"/>
2067 <image resource="q_btn_encryption_en"/>
2068 <actions>
2069 <action function="set">tw_password_not_match=0</action>
2070 <action function="set">tw_back=backup_options</action>
2071 <action function="page">backupencryption</action>
2072 </actions>
2073 </button>
2074
2075 <button>
2076 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2077 <highlight color="%highlight_color%"/>
2078 <image resource="q_btn_accept_transp"/>
2079 <actions>
2080 <action function="set">tw_back=backup_options</action>
2081 <action function="page">backup_confirm</action>
2082 </actions>
2083 </button>
2084
2085 <action>
2086 <touch key="home"/>
2087 <action function="page">main</action>
2088 </action>
2089
2090 <action>
2091 <touch key="back"/>
2092 <action function="page">%tw_back%</action>
2093 </action>
2094
2095 <action>
2096 <touch key="power+voldown"/>
2097 <action function="screenshot"/>
2098 </action>
2099 </page>
2100
2101 <page name="backup_confirm">
2102 <template name="page"/>
2103
2104 <template name="statusbar"/>
2105
2106 <text style="text_m">
2107 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker090751a2016-01-23 16:31:41 -06002108 <text>{@backup_hdr=Backup} &gt; {@backup_confirm_hdr=Confirm Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002109 </text>
2110
2111 <text style="text_m_accent">
2112 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002113 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002114 </text>
2115
2116 <text style="text_m">
2117 <placement x="%col1_x_left%" y="%row2_y%"/>
2118 <text>%tw_backup_name%</text>
2119 </text>
2120
2121 <fill color="%accent_color%">
2122 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_half_width%" h="input_line_width" placement="1"/>
2123 </fill>
2124
2125 <button>
2126 <fill color="%transparent%"/>
2127 <placement x="0" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2128 <actions>
2129 <action function="set">tw_back=backup_confirm</action>
2130 <action function="set">tw_fileexists=0</action>
2131 <action function="page">backup_name1</action>
2132 </actions>
2133 </button>
2134
2135 <fill color="%background_color%">
2136 <placement x="%col1_x_left_negative%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2137 </fill>
2138
2139 <text style="text_m_accent">
2140 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002141 <text>{@partitions=Partitions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002142 </text>
2143
2144 <partitionlist style="partitionlist_summary">
2145 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/>
2146 <data name="tw_backup_list"/>
2147 <listtype name="backup"/>
2148 </partitionlist>
2149
2150 <button>
2151 <fill color="%transparent%"/>
2152 <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/>
2153 <actions>
2154 <action function="set">tw_back=backup_confirm</action>
2155 <action function="page">backup_selectpartitions</action>
2156 </actions>
2157 </button>
2158
2159 <text style="text_m_accent">
2160 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002161 <text>{@storage=Storage:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002162 </text>
2163
2164 <text style="text_m">
2165 <placement x="%col1_x_right%" y="%row2_y%"/>
2166 <text>%tw_storage_display_name%</text>
2167 </text>
2168
2169 <button>
2170 <fill color="%transparent%"/>
2171 <placement x="%center_x%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2172 <actions>
2173 <action function="set">tw_back=backup_confirm</action>
bigbiffce8f83c2015-12-12 18:30:21 -05002174 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002175 </actions>
2176 </button>
2177
2178 <text style="text_m_accent">
2179 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002180 <text>{@encryption=Encryption:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002181 </text>
2182
2183 <text style="text_m">
2184 <conditions>
2185 <condition var1="tw_include_encrypted_backup" var2="1"/>
2186 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002187 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002188 </conditions>
2189 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002190 <text>{@disabled=Disabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002191 </text>
2192
2193 <text style="text_m">
2194 <conditions>
2195 <condition var1="tw_include_encrypted_backup" var2="1"/>
2196 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002197 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002198 </conditions>
2199 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002200 <text>{@enabled=Enabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002201 </text>
2202
2203 <button>
2204 <fill color="%transparent%"/>
2205 <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="48"/>
2206 <actions>
2207 <action function="set">tw_back=backup_confirm</action>
2208 <action function="page">backupencryption</action>
2209 </actions>
2210 </button>
2211
2212 <listbox style="listbox_options">
2213 <placement x="%col1_x_right%" y="%row7_y%" w="%content_half_width%" h="80"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002214 <listitem name="{@enable_backup_comp_chk=Enable compression}">
z31s1g28f0a922015-11-07 18:50:22 +01002215 <data variable="tw_use_compression"/>
2216 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05002217 <listitem name="{@skip_md5_backup_chk=Skip MD5 generation during backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002218 <data variable="tw_skip_md5_generate"/>
2219 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05002220 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002221 <data variable="tw_disable_free_space"/>
2222 </listitem>
2223 </listbox>
2224
2225 <text style="text_m_accent">
2226 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002227 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002228 </text>
2229
2230 <button>
2231 <fill color="%transparent%"/>
2232 <placement x="%center_x%" y="%row6_y%" w="%screen_half_width%" h="64"/>
2233 <actions>
2234 <action function="set">tw_back=backup_confirm</action>
2235 <action function="page">backup_options</action>
2236 </actions>
2237 </button>
2238
2239 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002240 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002241 <action function="page">backup_run</action>
2242 </slider>
2243
2244 <action>
2245 <touch key="home"/>
2246 <action function="page">main</action>
2247 </action>
2248
2249 <action>
2250 <touch key="back"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002251 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002252 </action>
2253 </page>
2254
2255 <page name="backup_name1">
2256 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002257 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01002258 <action function="generatebackupname"/>
2259 </action>
2260
2261 <action>
2262 <action function="page">backup_name2</action>
2263 </action>
2264 </page>
2265
2266 <page name="backup_name2">
2267 <template name="page"/>
2268
2269 <template name="statusbar"/>
2270
2271 <text style="text_m">
2272 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002273 <text>{@backup_hdr=Backup} &gt; {@backup_name_hdr=Set Backup Name}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002274 </text>
2275
2276 <text style="text_m_accent">
2277 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002278 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002279 </text>
2280
2281 <input>
2282 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2283 <text>%tw_backup_name%</text>
2284 <data name="tw_backup_name"/>
2285 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2286 <actions>
2287 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
2288 <action function="set">tw_existpage=backup_name2</action>
2289 <action function="set">tw_notexistpage=backup_confirm</action>
2290 <action function="page">filecheck</action>
2291 </actions>
2292 </input>
2293
2294 <fill color="%accent_color%">
2295 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2296 </fill>
2297
2298 <fill color="%text_fail_color%">
2299 <condition var1="tw_fileexists" var2="1"/>
2300 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2301 </fill>
2302
2303 <text style="text_m_fail">
2304 <condition var1="tw_fileexists" var2="1"/>
2305 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002306 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002307 </text>
2308
2309 <button style="main_button_half_height">
2310 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002311 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002312 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002313 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002314 <action function="page">backup_confirm</action>
2315 </actions>
2316 </button>
2317
2318 <button style="main_button_half_height">
2319 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002320 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002321 <action function="appenddatetobackupname"/>
2322 </button>
2323
2324 <template name="keyboardtemplate"/>
2325
2326 <action>
2327 <touch key="home"/>
2328 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002329 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002330 <action function="page">main</action>
2331 </actions>
2332 </action>
2333
2334 <action>
2335 <touch key="back"/>
2336 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002337 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002338 <action function="page">backup_confirm</action>
2339 </actions>
2340 </action>
2341 </page>
2342
2343 <page name="backupencryption">
2344 <template name="page"/>
2345
2346 <template name="statusbar"/>
2347
2348 <text style="text_m">
2349 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002350 <text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002351 </text>
2352
2353 <text style="text_m_accent">
2354 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002355 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002356 </text>
2357
2358 <input>
2359 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2360 <text>%tw_backup_encrypt_display%</text>
2361 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2362 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2363 <action function="page">backupencryption2</action>
2364 </input>
2365
2366 <fill color="%accent_color%">
2367 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2368 </fill>
2369
2370 <fill color="%text_fail_color%">
2371 <condition var1="tw_password_not_match" var2="1"/>
2372 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
2373 </fill>
2374
2375 <text style="text_m_fail">
2376 <condition var1="tw_password_not_match" var2="1"/>
2377 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002378 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002379 </text>
2380
2381 <button style="main_button_half_height">
2382 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002383 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002384 <actions>
2385 <action function="set">tw_encrypt_backup=0</action>
2386 <action function="set">tw_backup_password=</action>
2387 <action function="set">tw_backup_password2=</action>
2388 <action function="set">tw_backup_encrypt_display=</action>
2389 <action function="set">tw_backup_encrypt_display2=</action>
2390 <action function="page">%tw_back%</action>
2391 </actions>
2392 </button>
2393
2394 <template name="keyboardtemplate"/>
2395
2396 <action>
2397 <touch key="home"/>
2398 <action function="page">main</action>
2399 </action>
2400
2401 <action>
2402 <touch key="back"/>
2403 <action function="page">%tw_back%</action>
2404 </action>
2405 </page>
2406
2407 <page name="backupencryption2">
2408 <template name="page"/>
2409
2410 <template name="statusbar"/>
2411
2412 <text style="text_m">
2413 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002414 <text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002415 </text>
2416
2417 <text style="text_m_accent">
2418 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002419 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002420 </text>
2421
2422 <input>
2423 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2424 <text>%tw_backup_encrypt_display2%</text>
2425 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2426 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2427 <action function="page">checkbackuppassword</action>
2428 </input>
2429
2430 <fill color="%accent_color%">
2431 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2432 </fill>
2433
2434 <button style="main_button_half_height">
2435 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002436 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002437 <actions>
2438 <action function="set">tw_encrypt_backup=0</action>
2439 <action function="set">tw_backup_password=</action>
2440 <action function="set">tw_backup_password2=</action>
2441 <action function="set">tw_backup_encrypt_display=</action>
2442 <action function="set">tw_backup_encrypt_display2=</action>
2443 <action function="page">%tw_back%</action>
2444 </actions>
2445 </button>
2446
2447 <template name="keyboardtemplate"/>
2448
2449 <action>
2450 <touch key="home"/>
2451 <action function="page">main</action>
2452 </action>
2453
2454 <action>
2455 <touch key="back"/>
2456 <action function="page">%tw_back%</action>
2457 </action>
2458 </page>
2459
2460 <page name="checkbackuppassword">
2461 <action>
2462 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2463 <actions>
2464 <action function="set">tw_encrypt_backup=1</action>
2465 <action function="page">%tw_back%</action>
2466 </actions>
2467 </action>
2468
2469 <action>
2470 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2471 <actions>
2472 <action function="set">tw_encrypt_backup=0</action>
2473 <action function="set">tw_password_not_match=1</action>
2474 <action function="set">tw_backup_password=</action>
2475 <action function="set">tw_backup_password2=</action>
2476 <action function="set">tw_backup_encrypt_display=</action>
2477 <action function="set">tw_backup_encrypt_display2=</action>
2478 <action function="page">backupencryption</action>
2479 </actions>
2480 </action>
2481 </page>
2482
2483 <page name="backup_run">
2484 <template name="page"/>
2485
2486 <template name="statusbar"/>
2487
2488 <text style="text_m">
2489 <placement x="%col1_x_left%" y="%row1_header_y%"/>
2490 <text>%tw_operation% %tw_partition%</text>
2491 </text>
2492
2493 <template name="console"/>
2494
2495 <template name="progress_bar"/>
2496
2497 <text style="text_m">
2498 <placement x="%indent%" y="%row13a_y%"/>
2499 <text>%tw_file_progress%</text>
2500 </text>
2501
2502 <text style="text_m">
2503 <placement x="%indent%" y="%row14a_y%"/>
2504 <text>%tw_size_progress%</text>
2505 </text>
2506
2507 <button style="main_button_half_height">
2508 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002509 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002510 <action function="cancelbackup"/>
2511 </button>
2512
2513 <action>
2514 <action function="nandroid">backup</action>
2515 </action>
2516
2517 <action>
2518 <condition var1="tw_operation_state" var2="1"/>
2519 <condition var1="tw_cancel_backup" var2="0"/>
2520 <actions>
2521 <action function="set">tw_back=backup_selectpartitions</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002522 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002523 <action function="set">tw_show_reboot=1</action>
2524 <action function="page">action_complete</action>
2525 </actions>
2526 </action>
2527
2528 <action>
2529 <condition var1="tw_operation_state" var2="1"/>
2530 <condition var1="tw_cancel_backup" var2="1"/>
2531 <actions>
2532 <action function="set">tw_back=backup_selectpartitions</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002533 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002534 <action function="set">tw_show_reboot=1</action>
2535 <action function="page">action_complete</action>
2536 </actions>
2537 </action>
2538 </page>
2539
2540 <page name="restore">
2541 <template name="page"/>
2542
2543 <template name="statusbar"/>
2544
2545 <text style="text_m">
2546 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002547 <text>{@restore_hdr=Restore} &gt; {@sel_backup_hdr=Select Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002548 </text>
2549
2550 <fileselector>
2551 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
2552 <text>%tw_storage_display_name%</text>
2553 <filter folders="1" files="0" nav="0"/>
2554 <path name="tw_backups_folder"/>
2555 <data name="tw_restore" default=""/>
2556 <selection name="tw_restore_name"/>
2557 </fileselector>
2558
2559 <button>
2560 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2561 <highlight color="%highlight_color%"/>
2562 <image resource="q_btn_storage"/>
2563 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002564 <action function="set">tw_storagetext={@restore_btn=Restore} &gt; {@select_storage_btn=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002565 <action function="set">tw_back=restore</action>
2566 <action function="page">select_storage</action>
2567 </actions>
2568 </button>
2569
2570 <action>
2571 <condition var1="tw_restore" op="modified"/>
2572 <actions>
2573 <action function="readBackup"/>
2574 <action function="set">tw_back=restore</action>
2575 <action function="page">restore_read</action>
2576 </actions>
2577 </action>
2578
2579 <action>
2580 <touch key="home"/>
2581 <action function="page">main</action>
2582 </action>
2583
2584 <action>
2585 <touch key="back"/>
2586 <action function="page">main</action>
2587 </action>
2588 </page>
2589
2590 <page name="restore_read">
2591 <action>
2592 <condition var1="tw_restore_encrypted" var2="1"/>
2593 <actions>
2594 <action function="set">tw_password_fail=0</action>
2595 <action function="page">restore_decrypt</action>
2596 </actions>
2597 </action>
2598
2599 <action>
2600 <condition var1="tw_restore_encrypted" var2="0"/>
2601 <actions>
2602 <action function="page">restore_select</action>
2603 </actions>
2604 </action>
2605 </page>
2606
2607 <page name="restore_decrypt">
2608 <template name="page"/>
2609
2610 <template name="statusbar"/>
2611
2612 <text style="text_m">
2613 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002614 <text>{@restore_hdr=Restore} &gt; {@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002615 </text>
2616
2617 <text style="text_m_accent">
2618 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002619 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002620 </text>
2621
2622 <input>
2623 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2624 <text>%tw_restore_display%</text>
2625 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2626 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2627 <action function="page">try_restore_decrypt</action>
2628 </input>
2629
2630 <fill color="%accent_color%">
2631 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2632 </fill>
2633
2634 <fill color="%text_fail_color%">
2635 <condition var1="tw_password_fail" var2="1"/>
2636 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
2637 </fill>
2638
2639 <text style="text_m_fail">
2640 <condition var1="tw_password_fail" var2="1"/>
2641 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002642 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002643 </text>
2644
2645 <button style="main_button_half_height">
2646 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002647 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002648 <actions>
2649 <action function="set">tw_page_done=1</action>
2650 <action function="page">restore</action>
2651 </actions>
2652 </button>
2653
2654 <button style="main_button_half_height">
2655 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002656 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002657 <actions>
2658 <action function="set">tw_back=restore</action>
2659 <action function="set">tw_action=cmd</action>
2660 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf "%tw_restore_name%"</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002661 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2662 <action function="set">tw_text2=%tw_restore_name%</action>
2663 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2664 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2665 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2666 <action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002667 <action function="page">confirm_action</action>
2668 </actions>
2669 </button>
2670
2671 <template name="keyboardtemplate"/>
2672
2673 <action>
2674 <touch key="home"/>
2675 <action function="page">main</action>
2676 </action>
2677
2678 <action>
2679 <touch key="back"/>
2680 <action function="page">restore</action>
2681 </action>
2682 </page>
2683
2684 <page name="try_restore_decrypt">
2685 <template name="page"/>
2686
2687 <template name="statusbar"/>
2688
2689 <text style="text_m">
2690 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002691 <text>{@restore_hdr=Restore} &gt; {@restore_try_decrypt_s=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002692 </text>
2693
2694 <template name="console"/>
2695
2696 <template name="progress_bar"/>
2697
2698 <action>
2699 <action function="decrypt_backup"/>
2700 </action>
2701
2702 <action>
2703 <conditions>
2704 <condition var1="tw_operation_state" var2="1"/>
2705 <condition var1="tw_operation_status" op="!=" var2="0"/>
2706 </conditions>
2707 <actions>
2708 <action function="set">tw_password_fail=1</action>
2709 <action function="page">restore_decrypt</action>
2710 </actions>
2711 </action>
2712
2713 <action>
2714 <conditions>
2715 <condition var1="tw_operation_state" var2="1"/>
2716 <condition var1="tw_operation_status" op="=" var2="0"/>
2717 </conditions>
2718 <actions>
2719 <action function="set">tw_page_done=1</action>
2720 <action function="page">restore_select</action>
2721 </actions>
2722 </action>
2723 </page>
2724
2725 <page name="restore_select">
2726 <template name="page"/>
2727
2728 <template name="statusbar"/>
2729
2730 <text style="text_m">
2731 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002732 <text>{@restore_hdr=Restore} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002733 </text>
2734
2735 <partitionlist style="partitionlist_headerless_cb">
2736 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
2737 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2738 <listtype name="restore"/>
2739 </partitionlist>
2740
2741 <fill color="%accent_color%">
2742 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
2743 </fill>
2744
2745 <button>
2746 <placement x="%col1_x_left%" y="%row11_y%"/>
2747 <highlight color="%highlight_color%"/>
2748 <image resource="q_btn_arrow_left"/>
2749 <action function="page">restore</action>
2750 </button>
2751
2752 <button>
2753 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2754 <highlight color="%highlight_color%"/>
2755 <image resource="q_btn_delete"/>
2756 <actions>
2757 <action function="set">tw_back=restore</action>
2758 <action function="set">tw_action=cmd</action>
2759 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf "%tw_restore_name%"</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002760 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002761 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002762 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2763 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2764 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2765 <action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002766 <action function="page">confirm_action</action>
2767 </actions>
2768 </button>
2769
2770 <button>
2771 <placement x="%btn4_col3_x%" y="%row11_y%"/>
2772 <highlight color="%highlight_color%"/>
2773 <image resource="q_btn_accept"/>
2774 <action function="page">restore_confirm</action>
2775 </button>
2776
2777 <button>
2778 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2779 <highlight color="%highlight_color%"/>
2780 <image resource="q_btn_arrow_right"/>
2781 <actions>
2782 <action function="set">tw_back=restore_select</action>
2783 <action function="page">restore_options</action>
2784 </actions>
2785 </button>
2786
2787 <action>
2788 <touch key="home"/>
2789 <action function="page">main</action>
2790 </action>
2791
2792 <action>
2793 <touch key="back"/>
2794 <action function="page">%tw_back%</action>
2795 </action>
2796 </page>
2797
2798 <page name="restore_options">
2799 <template name="page"/>
2800
2801 <template name="statusbar"/>
2802
2803 <text style="text_m">
2804 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002805 <text>{@restore_hdr=Restore} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002806 </text>
2807
2808 <listbox style="scrolllist">
2809 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker4c105b92016-01-05 16:23:28 -06002810 <listitem name="{@restore_enable_md5_chk=Enable MD5 Verification of Backup Files}">
z31s1g28f0a922015-11-07 18:50:22 +01002811 <data variable="tw_skip_md5_check"/>
2812 </listitem>
2813 </listbox>
2814
2815 <button>
2816 <placement x="%col1_x_left%" y="%row11_y%"/>
2817 <highlight color="%highlight_color%"/>
2818 <image resource="q_btn_arrow_left"/>
2819 <action function="page">restore_select</action>
2820 </button>
2821
2822 <button>
2823 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2824 <highlight color="%highlight_color%"/>
2825 <image resource="q_btn_accept_transp"/>
2826 <actions>
2827 <action function="set">tw_back=restore_options</action>
2828 <action function="page">restore_confirm</action>
2829 </actions>
2830 </button>
2831
2832 <action>
2833 <touch key="home"/>
2834 <action function="page">main</action>
2835 </action>
2836
2837 <action>
2838 <touch key="back"/>
2839 <action function="page">%tw_back%</action>
2840 </action>
2841
2842 <action>
2843 <touch key="power+voldown"/>
2844 <action function="screenshot"/>
2845 </action>
2846 </page>
2847
2848 <page name="renamebackup">
2849 <template name="page"/>
2850
2851 <template name="statusbar"/>
2852
2853 <text style="text_m">
2854 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002855 <text>{@restore_hdr=Restore} &gt; {@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002856 </text>
2857
2858 <text style="text_m_accent">
2859 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002860 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002861 </text>
2862
2863 <input>
2864 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2865 <text>%tw_backup_rename%</text>
2866 <data name="tw_backup_rename"/>
2867 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2868 <actions>
2869 <action function="set">tw_back=restore</action>
2870 <action function="set">tw_action=cmd</action>
2871 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; mv "%tw_restore_name%" "%tw_backup_rename%"</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002872 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2873 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2874 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2875 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2876 <action function="set">tw_slider_text={@swipe_rename= Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002877 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2878 <action function="set">tw_existpage=renamebackup</action>
2879 <action function="set">tw_notexistpage=confirm_action</action>
2880 <action function="page">filecheck</action>
2881 </actions>
2882 </input>
2883
2884 <fill color="%accent_color%">
2885 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2886 </fill>
2887
2888 <fill color="%text_fail_color%">
2889 <condition var1="tw_fileexists" var2="1"/>
2890 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2891 </fill>
2892
2893 <text style="text_m_fail">
2894 <condition var1="tw_fileexists" var2="1"/>
2895 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002896 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002897 </text>
2898
2899 <button style="main_button_half_height">
2900 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002901 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002902 <action function="page">restore_confirm</action>
2903 </button>
2904
2905 <template name="keyboardtemplate"/>
2906
2907 <action>
2908 <touch key="home"/>
2909 <action function="page">main</action>
2910 </action>
2911
2912 <action>
2913 <touch key="back"/>
2914 <action function="page">restore_confirm</action>
2915 </action>
2916 </page>
2917
2918 <page name="restore_confirm">
2919 <template name="page"/>
2920
2921 <template name="statusbar"/>
2922
2923 <text style="text_m">
2924 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002925 <text>{@restore_hdr=Restore} &gt; {@confirm_hdr=Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002926 </text>
2927
2928 <text style="text_m_accent">
2929 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002930 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002931 </text>
2932
2933 <text style="text_m">
2934 <placement x="%indent%" y="%row2_y%"/>
2935 <text>%tw_restore_name%</text>
2936 </text>
2937
2938 <fill color="%accent_color%">
2939 <placement x="%indent%" y="64" w="%content_width%" h="input_line_width" placement="1"/>
2940 </fill>
2941
2942 <button>
2943 <fill color="%transparent%"/>
2944 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
2945 <actions>
2946 <action function="set">tw_back=restore_confirm</action>
2947 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2948 <action function="set">tw_fileexists=0</action>
2949 <action function="page">renamebackup</action>
2950 </actions>
2951 </button>
2952
2953 <text style="text_m_accent">
2954 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002955 <text>{@partitions=Partitions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002956 </text>
2957
2958 <partitionlist style="partitionlist_summary">
2959 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/>
2960 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2961 <listtype name="restore"/>
2962 </partitionlist>
2963
2964 <button>
2965 <fill color="%transparent%"/>
2966 <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/>
2967 <actions>
2968 <action function="set">tw_back=restore_confirm</action>
2969 <action function="page">restore_select</action>
2970 </actions>
2971 </button>
2972
2973 <listbox style="listbox_options">
2974 <placement x="%col1_x_right%" y="%row4a_y%" w="%content_half_width%" h="80"/>
Ethan Yonker4c105b92016-01-05 16:23:28 -06002975 <listitem name="{@restore_enable_md5_chk=Enable MD5 Verification of Backup Files}">
z31s1g28f0a922015-11-07 18:50:22 +01002976 <data variable="tw_skip_md5_check"/>
2977 </listitem>
2978 </listbox>
2979
2980 <text style="text_m_accent">
2981 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002982 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002983 </text>
2984
2985 <button>
2986 <fill color="%transparent%"/>
2987 <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="64"/>
2988 <actions>
2989 <action function="set">tw_back=restore_confirm</action>
2990 <action function="page">restore_options</action>
2991 </actions>
2992 </button>
2993
2994 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002995 <text>{@swipe_restore_s= Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002996 <action function="page">restore_run</action>
2997 </slider>
2998
2999 <action>
3000 <touch key="home"/>
3001 <action function="page">main</action>
3002 </action>
3003
3004 <action>
3005 <touch key="back"/>
3006 <action function="page">restore_options</action>
3007 </action>
3008 </page>
3009
3010 <page name="restore_run">
3011 <template name="page"/>
3012
3013 <template name="statusbar"/>
3014
3015 <text style="text_m">
3016 <placement x="%col1_x_left%" y="%row1_header_y%"/>
3017 <text>%tw_operation% %tw_partition%</text>
3018 </text>
3019
3020 <template name="console"/>
3021
3022 <template name="progress_bar"/>
3023
3024 <text style="text_m">
3025 <placement x="%indent%" y="%row14a_y%"/>
3026 <text>%tw_size_progress%</text>
3027 </text>
3028
3029 <action>
3030 <condition var1="tw_operation_state" var2="1"/>
3031 <actions>
3032 <action function="set">tw_back=restore</action>
Matt Mower3c366972015-12-25 19:28:31 -06003033 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003034 <action function="set">tw_show_reboot=1</action>
3035 <action function="page">action_complete</action>
3036 </actions>
3037 </action>
3038
3039 <action>
3040 <action function="nandroid">restore</action>
3041 </action>
3042 </page>
3043
3044 <page name="mount">
3045 <template name="page"/>
3046
3047 <template name="statusbar"/>
3048
3049 <text style="text_m">
3050 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003051 <text>{@mount_hdr=Mount} &gt; %tw_storage_display_name%</text>
z31s1g28f0a922015-11-07 18:50:22 +01003052 </text>
3053
3054 <partitionlist style="partitionlist_headerless_cb">
3055 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
3056 <listtype name="mount"/>
3057 </partitionlist>
3058
3059 <fill color="%accent_color%">
3060 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
3061 </fill>
3062
3063 <button style="checkbox">
3064 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
3065 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003066 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003067 <image resource="checkbox_false"/>
3068 <action function="mountsystemtoggle">1</action>
3069 </button>
3070
3071 <button style="checkbox">
3072 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
3073 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003074 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003075 <image resource="checkbox_true"/>
3076 <actions>
3077 <action function="set">tw_lifetime_writes=2</action>
3078 <action function="page">system_readonly_check</action>
3079 </actions>
3080 </button>
3081
3082 <button style="checkbox">
3083 <conditions>
3084 <condition var1="tw_has_mtp" var2="1"/>
3085 <condition var1="tw_mtp_enabled" var2="0"/>
3086 </conditions>
3087 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3088 <image resource="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003089 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003090 <action function="startmtp"/>
3091 </button>
3092
3093 <button style="checkbox">
3094 <conditions>
3095 <condition var1="tw_has_mtp" var2="1"/>
3096 <condition var1="tw_mtp_enabled" var2="1"/>
3097 </conditions>
3098 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3099 <image resource="checkbox_true"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003100 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003101 <action function="stopmtp"/>
3102 </button>
3103
3104 <button>
3105 <placement x="%btn4_col3_x%" y="%row11_y%"/>
3106 <highlight color="%highlight_color%"/>
3107 <image resource="q_btn_storage"/>
3108 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05003109 <action function="set">tw_storagetext={@mount_hdr=Mount} &gt; {@select_storage_hdr=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003110 <action function="set">tw_back=mount</action>
3111 <action function="page">select_storage</action>
3112 </actions>
3113 </button>
3114
3115 <button>
3116 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3117 <highlight color="%highlight_color%"/>
3118 <image resource="q_btn_arrow_right"/>
3119 <action function="page">mount_options</action>
3120 </button>
3121
3122 <action>
3123 <touch key="home"/>
3124 <action function="page">main</action>
3125 </action>
3126
3127 <action>
3128 <touch key="back"/>
3129 <action function="page">main</action>
3130 </action>
3131 </page>
3132
3133 <page name="mount_options">
3134 <template name="page"/>
3135
3136 <template name="statusbar"/>
3137
3138 <text style="text_m">
3139 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003140 <text>{@mount_hdr=Mount} &gt; %tw_storage_display_name%</text>
z31s1g28f0a922015-11-07 18:50:22 +01003141 </text>
3142
3143 <button style="main_button_full_width">
3144 <condition var1="tw_has_usb_storage" var2="1"/>
3145 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003146 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003147 <action function="page">usb_mount</action>
3148 </button>
3149
3150 <button style="main_button_full_width">
3151 <conditions>
3152 <condition var1="tw_is_encrypted" var2="1"/>
3153 <condition var1="tw_is_decrypted" var2="0"/>
3154 </conditions>
3155 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003156 <text>{@decrypt_data_btn=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003157 <action function="page">decrypt</action>
3158 </button>
3159
3160 <button>
3161 <placement x="%col1_x_left%" y="%row11_y%"/>
3162 <highlight color="%highlight_color%"/>
3163 <image resource="q_btn_arrow_left"/>
3164 <action function="page">mount</action>
3165 </button>
3166
3167 <action>
3168 <touch key="home"/>
3169 <action function="page">main</action>
3170 </action>
3171
3172 <action>
3173 <touch key="back"/>
3174 <action function="page">mount</action>
3175 </action>
3176 </page>
3177
3178 <page name="usb_mount">
3179 <template name="page"/>
3180
3181 <template name="statusbar"/>
3182
3183 <text style="text_m">
3184 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003185 <text>{@mount_hdr=Mount} &gt; {@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003186 </text>
3187
3188 <text style="text_m_accent">
3189 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003190 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003191 </text>
3192
3193 <text style="text_m_fail">
3194 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003195 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003196 </text>
3197
3198 <text style="text_m_fail">
3199 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003200 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003201 </text>
3202
3203 <button style="main_button">
3204 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003205 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003206 <action function="page">usb_umount</action>
3207 </button>
3208
3209 <action>
3210 <action function="mount">usb</action>
3211 <action function="set">tw_busy=1</action>
3212 </action>
3213 </page>
3214
3215 <page name="usb_umount">
3216 <action>
3217 <action function="unmount">usb</action>
3218 </action>
3219
3220 <action>
3221 <action function="page">mount_options</action>
3222 <action function="set">tw_busy=0</action>
3223 </action>
3224 </page>
3225
3226 <page name="system_readonly_check">
3227 <action>
3228 <action function="checkpartitionlifetimewrites">/system</action>
3229 </action>
3230
3231 <action>
3232 <condition var1="tw_lifetime_writes" var2="1"/>
3233 <actions>
3234 <action function="mountsystemtoggle">0</action>
3235 <action function="page">mount</action>
3236 </actions>
3237 </action>
3238
3239 <action>
3240 <condition var1="tw_lifetime_writes" var2="0"/>
3241 <actions>
3242 <action function="set">tw_back=mount</action>
3243 <action function="page">system_readonly</action>
3244 </actions>
3245 </action>
3246 </page>
3247
3248 <page name="reboot">
3249 <template name="page"/>
3250
3251 <template name="statusbar"/>
3252
3253 <text style="text_m">
3254 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003255 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003256 </text>
3257
3258 <button style="main_button">
3259 <condition var1="tw_reboot_system" var2="1"/>
3260 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003261 <text>{@rb_system_btn=System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003262 <actions>
3263 <action function="set">tw_back=reboot</action>
Matt Mower908dd252016-05-25 02:26:50 -05003264 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01003265 </actions>
3266 </button>
3267
3268 <button style="main_button">
3269 <condition var1="tw_reboot_poweroff" var2="1"/>
3270 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003271 <text>{@rb_poweroff_btn=Power Off}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003272 <actions>
3273 <action function="set">tw_back=reboot</action>
3274 <action function="set">tw_action=reboot</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003275 <action function="set">tw_reboot_param=poweroff</action>
z31s1g28f0a922015-11-07 18:50:22 +01003276 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003277 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3278 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
3279 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3280 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3281 <action function="set">tw_slider_text={@swipe_power_off_s=Power Off}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003282 <action function="page">rebootcheck</action>
3283 </actions>
3284 </button>
3285
3286 <button style="main_button">
3287 <condition var1="tw_reboot_recovery" var2="1"/>
3288 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003289 <text>{@rb_recovery_btn=Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003290 <actions>
3291 <action function="set">tw_back=reboot</action>
3292 <action function="set">tw_action=reboot</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003293 <action function="set">tw_reboot_param=recovery</action>
z31s1g28f0a922015-11-07 18:50:22 +01003294 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003295 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3296 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3297 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3298 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3299 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003300 <action function="page">rebootcheck</action>
3301 </actions>
3302 </button>
3303
3304 <button style="main_button">
3305 <condition var1="tw_reboot_bootloader" var2="1"/>
3306 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003307 <text>{@rb_bootloader_btn=Bootloader}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003308 <actions>
3309 <action function="set">tw_back=reboot</action>
3310 <action function="set">tw_action=reboot</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003311 <action function="set">tw_reboot_param=bootloader</action>
z31s1g28f0a922015-11-07 18:50:22 +01003312 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003313 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3314 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3315 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3316 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3317 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003318 <action function="page">rebootcheck</action>
3319 </actions>
3320 </button>
3321
3322 <button style="main_button">
3323 <condition var1="tw_download_mode" var2="1"/>
3324 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003325 <text>{@rb_download_btn=Download}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003326 <actions>
3327 <action function="set">tw_back=reboot</action>
3328 <action function="set">tw_action=reboot</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003329 <action function="set">tw_reboot_param=download</action>
z31s1g28f0a922015-11-07 18:50:22 +01003330 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003331 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3332 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3333 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3334 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3335 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003336 <action function="page">rebootcheck</action>
3337 </actions>
3338 </button>
3339
3340 <action>
3341 <touch key="home"/>
3342 <action function="page">main</action>
3343 </action>
3344
3345 <action>
3346 <touch key="back"/>
3347 <action function="page">main</action>
3348 </action>
3349 </page>
3350
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003351 <page name="rebootapp">
3352 <template name="page"/>
3353
3354 <template name="statusbar"/>
3355
3356 <text style="text_m">
3357 <placement x="%col1_x_left%" y="%row1_header_y%"/>
3358 <text>{@reboot_hdr=Reboot} &gt; {@reboot_install_app_hdr=Install TWRP App?}</text>
3359 </text>
3360
3361 <text style="text_m_accent">
3362 <placement x="%center_x%" y="%row1_y%" placement="5"/>
3363 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3364 </text>
3365
3366 <text style="text_m">
3367 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3368 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3369 </text>
3370
3371 <checkbox>
3372 <placement x="%indent%" y="%row3_y%"/>
3373 <text>{@reboot_install_app_prompt_install=Prompt to install TWRP app if not installed}</text>
3374 <data variable="tw_app_prompt"/>
3375 </checkbox>
3376
3377 <checkbox>
3378 <condition var1="tw_mount_system_ro" var2="0"/>
3379 <placement x="%indent%" y="%row5_y%"/>
3380 <text>{@reboot_install_app_system=Install as a System App}</text>
3381 <data variable="tw_app_install_system"/>
3382 </checkbox>
3383
3384 <button style="main_button_half_height">
3385 <placement x="%indent%" y="%row7_y%"/>
3386 <text>{@su_cancel=Do not Install}</text>
3387 <action function="reboot">%tw_reboot_param%</action>
3388 </button>
3389
3390 <slider>
3391 <text>{@swipe_su_install= Install}</text>
3392 <actions>
3393 <action function="set">tw_back=reboot</action>
3394 <action function="set">tw_action=installapp</action>
3395 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3396 <action function="set">tw_action_text2=</action>
3397 <action function="set">tw_has_action2=1</action>
3398 <action function="set">tw_action2=reboot</action>
3399 <action function="set">tw_action2_param=%tw_reboot_param%</action>
3400 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3401 <action function="page">action_page</action>
3402 </actions>
3403 </slider>
3404
3405 <action>
3406 <touch key="home"/>
3407 <actions>
3408 <action function="set">tw_app_install_status=0</action>
3409 <action function="page">main</action>
3410 </actions>
3411 </action>
3412
3413 <action>
3414 <touch key="back"/>
3415 <actions>
3416 <action function="set">tw_app_install_status=0</action>
3417 <action function="page">reboot</action>
3418 </actions>
3419 </action>
3420 </page>
3421
z31s1g28f0a922015-11-07 18:50:22 +01003422 <page name="system_readonly">
3423 <template name="page"/>
3424
3425 <template name="statusbar"/>
3426
3427 <text style="text_m">
3428 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003429 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003430 </text>
3431
3432 <text style="text_m_accent">
3433 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003434 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003435 </text>
3436
3437 <text style="text_m">
3438 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003439 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003440 </text>
3441
3442 <text style="text_m">
3443 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003444 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003445 </text>
3446
3447 <text style="text_m">
3448 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003449 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003450 </text>
3451
3452 <text style="text_m">
3453 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003454 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003455 </text>
3456
3457 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003458 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003459 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003460 </text>
3461
3462 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003463 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003464 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003465 </text>
3466
z31s1g608d7ff2016-01-18 19:47:25 +01003467 <button style="main_button_half_height">
3468 <placement x="%col1_x_right%" y="%row8a_y%"/>
3469 <text>{@sel_lang_btn=Select Language}</text>
3470 <action function="page">settings_language</action>
3471 </button>
3472
z31s1g28f0a922015-11-07 18:50:22 +01003473 <checkbox>
3474 <condition var1="tw_is_encrypted" var2="0"/>
z31s1g608d7ff2016-01-18 19:47:25 +01003475 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003476 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003477 <data variable="tw_never_show_system_ro_page"/>
3478 </checkbox>
3479
3480 <button style="main_button_half_height">
3481 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003482 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003483 <actions>
3484 <action function="mountsystemtoggle">1</action>
3485 <action function="set">tw_page_done=1</action>
3486 <action function="page">%tw_back%</action>
3487 </actions>
3488 </button>
3489
3490 <button style="main_button_half_height">
3491 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003492 <text>{@swipe_allow_mod_s=Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003493 <actions>
3494 <action function="mountsystemtoggle">0</action>
3495 <action function="set">tw_page_done=1</action>
3496 <action function="page">%tw_back%</action>
3497 </actions>
3498 </button>
3499 </page>
3500
3501 <page name="settings">
3502 <template name="page"/>
3503
3504 <template name="statusbar"/>
3505
3506 <text style="text_m">
3507 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003508 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003509 </text>
3510
3511 <button style="main_button">
3512 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003513 <text>{@settings_gen_btn=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003514 <action function="page">settings_general</action>
3515 </button>
3516
3517 <button style="main_button">
3518 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003519 <text>{@settings_tz_btn=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003520 <action function="page">settings_timezone</action>
3521 </button>
3522
3523 <button style="main_button">
3524 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003525 <text>{@settings_screen_btn=Screen}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003526 <action function="page">settings_screen</action>
3527 </button>
3528
3529 <button style="main_button">
3530 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003531 <text>{@settings_vibration_btn=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003532 <action function="page">settings_vibration</action>
3533 </button>
3534
3535 <button style="main_button">
3536 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003537 <text>{@settings_language_btn=Language}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003538 <action function="page">settings_language</action>
3539 </button>
3540
3541 <button>
3542 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3543 <highlight color="%highlight_color%"/>
3544 <image resource="q_btn_reset"/>
3545 <action function="restoredefaultsettings"/>
3546 </button>
3547
3548 <action>
3549 <touch key="home"/>
3550 <action function="page">main</action>
3551 </action>
3552
3553 <action>
3554 <touch key="back"/>
3555 <action function="page">main3</action>
3556 </action>
3557 </page>
3558
3559 <page name="settings_general">
3560 <template name="page"/>
3561
3562 <template name="statusbar"/>
3563
3564 <text style="text_m">
3565 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003566 <text>{@settings_hdr=Settings} &gt; {@settings_gen_s_hdr=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003567 </text>
3568
3569 <listbox style="scrolllist">
3570 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_settings_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003571 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003572 <data variable="tw_signed_zip_verify"/>
3573 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003574 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3575 <data variable="tw_install_reboot"/>
3576 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003577 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003578 <data variable="tw_rm_rf"/>
3579 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003580 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3581 <data variable="tw_disable_free_space"/>
3582 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003583 <listitem name="{@skip_md5_backup_chk=Skip MD5 generation during backup}">
z31s1g28f0a922015-11-07 18:50:22 +01003584 <data variable="tw_skip_md5_generate"/>
3585 </listitem>
Ethan Yonker4c105b92016-01-05 16:23:28 -06003586 <listitem name="{@restore_enable_md5_chk=Enable MD5 verification of backup files}">
z31s1g28f0a922015-11-07 18:50:22 +01003587 <data variable="tw_skip_md5_check"/>
3588 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003589 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003590 <data variable="tw_military_time"/>
3591 </listitem>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003592 <listitem name="{@reboot_install_app_prompt_install=Prompt to install TWRP app on every reboot}">
3593 <data variable="tw_app_prompt"/>
3594 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003595 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003596 <data variable="tw_simulate_actions"/>
3597 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003598 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003599 <data variable="tw_simulate_fail"/>
3600 <condition var1="tw_simulate_actions" var2="1"/>
3601 </listitem>
3602 </listbox>
3603
3604 <action>
3605 <touch key="home"/>
3606 <action function="page">main</action>
3607 </action>
3608
3609 <action>
3610 <touch key="back"/>
3611 <action function="page">settings</action>
3612 </action>
3613 </page>
3614
3615 <page name="settings_timezone">
3616 <template name="page"/>
3617
3618 <template name="statusbar"/>
3619
3620 <text style="text_m">
3621 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003622 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003623 </text>
3624
3625 <text color="%text_color%">
3626 <font resource="font_m"/>
3627 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3628 <text>%tw_time%</text>
3629 </text>
3630
3631 <listbox style="listbox_headerless">
3632 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_timezone_height%"/>
3633 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003634 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3635 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3636 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3637 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3638 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3639 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3640 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3641 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3642 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3643 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3644 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3645 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3646 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3647 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3648 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3649 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3650 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3651 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3652 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3653 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3654 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3655 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3656 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3657 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003658 </listbox>
3659
3660 <button>
3661 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3662 <highlight color="%highlight_color%"/>
3663 <image resource="q_btn_arrow_right"/>
3664 <actions>
3665 <action function="setguitimezone"/>
3666 <action function="page">settings_timezone2</action>
3667 </actions>
3668 </button>
3669
3670 <action>
3671 <condition var1="tw_time_zone_guisel" op="modified"/>
3672 <action function="setguitimezone"/>
3673 </action>
3674
3675 <action>
3676 <touch key="home"/>
3677 <actions>
3678 <action function="page">main</action>
3679 <action function="setguitimezone"/>
3680 </actions>
3681 </action>
3682
3683 <action>
3684 <touch key="back"/>
3685 <actions>
3686 <action function="page">settings</action>
3687 <action function="setguitimezone"/>
3688 </actions>
3689 </action>
3690
3691 <action>
3692 <touch key="power+voldown"/>
3693 <action function="screenshot"/>
3694 </action>
3695 </page>
3696
3697 <page name="settings_timezone2">
3698 <template name="page"/>
3699
3700 <template name="statusbar"/>
3701
3702 <text style="text_m">
3703 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003704 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003705 </text>
3706
3707 <text color="%text_color%">
3708 <font resource="font_m"/>
3709 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3710 <text>%tw_time%</text>
3711 </text>
3712
3713 <checkbox>
3714 <placement x="%col1_x_left%" y="%row1_y%"/>
3715 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003716 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003717 <data variable="tw_time_zone_guidst"/>
3718 <image checked="checkbox_true" unchecked="checkbox_false"/>
3719 </checkbox>
3720
3721 <text style="text_m_accent">
3722 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003723 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003724 </text>
3725
3726 <button style="main_button_quarter_width">
3727 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003728 <text>{@tz_offset_0=0}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003729 <actions>
3730 <action function="set">tw_time_zone_guioffset=0</action>
3731 <action function="setguitimezone"/>
3732 </actions>
3733 </button>
3734
3735 <button style="main_button_quarter_width">
3736 <placement x="%btn4_col2_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003737 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003738 <actions>
3739 <action function="set">tw_time_zone_guioffset=15</action>
3740 <action function="setguitimezone"/>
3741 </actions>
3742 </button>
3743
3744 <button style="main_button_quarter_width">
3745 <placement x="%btn4_col3_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003746 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003747 <actions>
3748 <action function="set">tw_time_zone_guioffset=30</action>
3749 <action function="setguitimezone"/>
3750 </actions>
3751 </button>
3752
3753 <button style="main_button_quarter_width">
3754 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003755 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003756 <actions>
3757 <action function="set">tw_time_zone_guioffset=45</action>
3758 <action function="setguitimezone"/>
3759 </actions>
3760 </button>
3761
3762 <button>
3763 <placement x="%col1_x_left%" y="%row11_y%"/>
3764 <highlight color="%highlight_color%"/>
3765 <image resource="q_btn_arrow_left"/>
3766 <actions>
3767 <action function="setguitimezone"/>
3768 <action function="page">settings_timezone</action>
3769 </actions>
3770 </button>
3771
3772 <text style="text_m_accent">
3773 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003774 <text>{@curr_tz_s=Current Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003775 </text>
3776
3777 <text style="text_m">
3778 <placement x="%btn4_col2_x%" y="%row12a_y%"/>
3779 <text>%tw_time_zone%</text>
3780 </text>
3781
3782 <action>
3783 <condition var1="tw_time_zone_guidst" op="modified"/>
3784 <action function="setguitimezone"/>
3785 </action>
3786
3787 <action>
3788 <touch key="home"/>
3789 <actions>
3790 <action function="setguitimezone"/>
3791 <action function="page">main</action>
3792 </actions>
3793 </action>
3794
3795 <action>
3796 <touch key="back"/>
3797 <actions>
3798 <action function="setguitimezone"/>
3799 <action function="page">settings_timezone</action>
3800 </actions>
3801 </action>
3802 </page>
3803
3804 <page name="settings_screen">
3805 <template name="page"/>
3806
3807 <template name="statusbar"/>
3808
3809 <text style="text_m">
3810 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003811 <text>{@settings_hdr=Settings} &gt; {@settings_screen_timeout_hdr=Screen Timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003812 </text>
3813
3814 <button style="checkbox">
3815 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3816 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3817 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003818 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003819 <image resource="checkbox_false"/>
3820 <action function="set">tw_screen_timeout_secs=60</action>
3821 </button>
3822
3823 <button style="checkbox">
3824 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3825 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3826 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003827 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003828 <image resource="checkbox_true"/>
3829 <action function="set">tw_screen_timeout_secs=0</action>
3830 </button>
3831
3832 <slidervalue>
3833 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3834 <placement x="col1_x_left" y="%row2a_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003835 <text>{@screen_to_slider_s=Screen timeout in seconds (0=disabled): %tw_screen_timeout_secs%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003836 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3837 </slidervalue>
3838
3839 <text style="text_m_fail">
3840 <condition var1="tw_no_screen_timeout" op="=" var2="1"/>
3841 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003842 <text>{@screen_to_na=Screen timeout setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003843 </text>
3844
3845 <button>
3846 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3847 <highlight color="%highlight_color%"/>
3848 <image resource="q_btn_arrow_right"/>
3849 <action function="page">settings_screen2</action>
3850 </button>
3851
3852 <action>
3853 <touch key="home"/>
3854 <action function="page">main</action>
3855 </action>
3856
3857 <action>
3858 <touch key="back"/>
3859 <action function="page">settings</action>
3860 </action>
3861 </page>
3862
3863 <page name="settings_screen2">
3864 <template name="page"/>
3865
3866 <template name="statusbar"/>
3867
3868 <text style="text_m">
3869 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003870 <text>{@settings_hdr=Settings} &gt; {@settings_screen_bright_btn=Screen Brightness}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003871 </text>
3872
3873 <slidervalue>
3874 <condition var1="tw_has_brightnesss_file" var2="1"/>
3875 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003876 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003877 <data variable="tw_brightness_pct" min="10" max="100"/>
3878 <actions>
3879 <action function="set">tw_brightness=%tw_brightness_max%</action>
3880 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3881 <action function="compute">tw_brightness/100</action>
3882 <action function="setbrightness">%tw_brightness%</action>
3883 </actions>
3884 </slidervalue>
3885
3886 <text style="text_m_fail">
3887 <condition var1="tw_has_brightnesss_file" var2="0"/>
3888 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003889 <text>{@screen_bright_na=Brightness setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003890 </text>
3891
3892 <button>
3893 <placement x="%col1_x_left%" y="%row11_y%"/>
3894 <highlight color="%highlight_color%"/>
3895 <image resource="q_btn_arrow_left"/>
3896 <action function="page">settings_screen</action>
3897 </button>
3898
3899 <action>
3900 <touch key="home"/>
3901 <action function="page">main</action>
3902 </action>
3903
3904 <action>
3905 <touch key="back"/>
3906 <action function="page">settings</action>
3907 </action>
3908 </page>
3909
3910 <page name="settings_vibration">
3911 <template name="page"/>
3912
3913 <template name="statusbar"/>
3914
3915 <text style="text_m">
3916 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003917 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@button_vibration_hdr=Button Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003918 </text>
3919
3920 <slidervalue>
3921 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003922 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003923 <data variable="tw_button_vibrate" min="0" max="300"/>
3924 </slidervalue>
3925
3926 <button>
3927 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3928 <highlight color="%highlight_color%"/>
3929 <image resource="q_btn_arrow_right"/>
3930 <action function="page">settings_vibration2</action>
3931 </button>
3932
3933 <action>
3934 <touch key="home"/>
3935 <action function="page">main</action>
3936 </action>
3937
3938 <action>
3939 <touch key="back"/>
3940 <action function="page">settings</action>
3941 </action>
3942 </page>
3943
3944 <page name="settings_vibration2">
3945 <template name="page"/>
3946
3947 <template name="statusbar"/>
3948
3949 <text style="text_m">
3950 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003951 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@kb_vibration_hdr=Keyboard Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003952 </text>
3953
3954 <slidervalue>
3955 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003956 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003957 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3958 </slidervalue>
3959
3960 <button>
3961 <placement x="%col1_x_left%" y="%row11_y%"/>
3962 <highlight color="%highlight_color%"/>
3963 <image resource="q_btn_arrow_left"/>
3964 <action function="page">settings_vibration</action>
3965 </button>
3966
3967 <button>
3968 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3969 <highlight color="%highlight_color%"/>
3970 <image resource="q_btn_arrow_right"/>
3971 <action function="page">settings_vibration3</action>
3972 </button>
3973
3974 <action>
3975 <touch key="home"/>
3976 <action function="page">main</action>
3977 </action>
3978
3979 <action>
3980 <touch key="back"/>
3981 <action function="page">settings</action>
3982 </action>
3983 </page>
3984
3985 <page name="settings_vibration3">
3986 <template name="page"/>
3987
3988 <template name="statusbar"/>
3989
3990 <text style="text_m">
3991 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003992 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@act_vibration_hdr=Action Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003993 </text>
3994
3995 <slidervalue>
3996 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003997 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003998 <data variable="tw_action_vibrate" min="0" max="500"/>
3999 </slidervalue>
4000
4001 <button>
4002 <placement x="%col1_x_left%" y="%row11_y%"/>
4003 <highlight color="%highlight_color%"/>
4004 <image resource="q_btn_arrow_left"/>
4005 <action function="page">settings_vibration2</action>
4006 </button>
4007
4008 <action>
4009 <touch key="home"/>
4010 <action function="page">main</action>
4011 </action>
4012
4013 <action>
4014 <touch key="back"/>
4015 <action function="page">settings</action>
4016 </action>
4017 </page>
4018
Ethan Yonker74db1572015-10-28 12:44:49 -05004019 <page name="settings_language">
4020 <template name="page"/>
4021
4022 <template name="statusbar"/>
4023
4024 <text style="text_m">
4025 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4026 <text>{@settings_hdr=Settings} &gt; {@language_hdr=Language} - %tw_language_display%</text>
4027 </text>
4028
z31s1g608d7ff2016-01-18 19:47:25 +01004029 <listbox style="scrolllist">
Ethan Yonker74db1572015-10-28 12:44:49 -05004030 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4031 <icon selected="radio_true" unselected="radio_false" />
4032 <data name="tw_language" />
z31s1g608d7ff2016-01-18 19:47:25 +01004033 </listbox>
Ethan Yonker74db1572015-10-28 12:44:49 -05004034
4035 <button>
4036 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4037 <highlight color="%highlight_color%"/>
z31s1g608d7ff2016-01-18 19:47:25 +01004038 <image resource="q_btn_accept_transp"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004039 <action function="setlanguage"></action>
4040 </button>
4041
z31s1g608d7ff2016-01-18 19:47:25 +01004042 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004043 <touch key="home" />
4044 <action function="page">main</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004045 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004046
z31s1g608d7ff2016-01-18 19:47:25 +01004047 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004048 <touch key="back" />
4049 <action function="page">settings</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004050 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004051 </page>
4052
z31s1g28f0a922015-11-07 18:50:22 +01004053 <page name="advanced">
4054 <template name="page"/>
4055
4056 <template name="statusbar"/>
4057
4058 <text style="text_m">
4059 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004060 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004061 </text>
4062
4063 <button style="main_button">
4064 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004065 <text>{@terminal_btn=Terminal}</text>
z31s1g56189522016-01-13 19:12:40 +01004066 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01004067 </button>
4068
4069 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004070 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004071 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004072 <text>{@fix_context_btn=Fix Contexts}</text>
4073 <action function="page">fixcontexts</action>
z31s1g28f0a922015-11-07 18:50:22 +01004074 </button>
4075
4076 <button style="main_button">
4077 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004078 <text>{@reload_theme_btn=Reload Theme}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004079 <action function="reload"/>
4080 </button>
4081
4082 <button style="main_button">
4083 <condition var1="tw_allow_partition_sdcard" var2="1"/>
4084 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004085 <text>{@part_sd_s_btn=SD Card}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004086 <actions>
4087 <action function="set">partitionlisterror=0</action>
4088 <action function="page">partsdcardsel</action>
4089 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004090 </button>
4091
4092 <button style="main_button">
4093 <condition var1="tw_show_dumlock" var2="1"/>
4094 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004095 <text>{@dumlock_btn=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004096 <action function="page">htcdumlock</action>
4097 </button>
4098
4099 <button style="main_button">
4100 <condition var1="tw_has_injecttwrp" var2="1"/>
4101 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004102 <text>{@inject_twrp_btn=Inject TWRP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004103 <actions>
4104 <action function="set">tw_back=advanced</action>
4105 <action function="set">tw_action=reinjecttwrp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004106 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
4107 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
4108 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
4109 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004110 <action function="page">confirm_action</action>
4111 </actions>
4112 </button>
4113
4114 <action>
4115 <touch key="home"/>
4116 <action function="page">main</action>
4117 </action>
4118
4119 <action>
4120 <touch key="back"/>
4121 <action function="page">main3</action>
4122 </action>
4123 </page>
4124
Ethan Yonker483e9f42016-01-11 22:21:18 -06004125 <page name="partsdcardsel">
4126 <template name="page"/>
4127
4128 <template name="statusbar"/>
4129
4130 <text style="text_m">
4131 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4132 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
4133 </text>
4134
4135 <partitionlist style="partitionlist_headerless_rb">
4136 <data name="tw_storage_path"/>
4137 <listtype name="storage"/>
4138 </partitionlist>
4139
4140 <text style="text_m_fail">
4141 <condition var1="partitionlisterror" var2="1"/>
4142 <placement x="%center_x%" y="%row9_y%" placement="5"/>
4143 <text>{@invalid_partsd_sel=You must select a removable device}</text>
4144 </text>
4145
4146 <button>
4147 <placement x="%btn4_col2_x%" y="%row11_y%"/>
4148 <highlight color="%highlight_color%"/>
4149 <image resource="q_btn_refresh"/>
4150 <action function="refreshsizes"/>
4151 </button>
4152
4153 <button>
4154 <placement x="%btn4_col3_x%" y="%row11_y%"/>
4155 <highlight color="%highlight_color%"/>
4156 <image resource="q_btn_accept"/>
4157 <actions>
4158 <action function="getpartitiondetails">tw_storage_path</action>
4159 <action function="page">partsdcardcheck</action>
4160 </actions>
4161 </button>
4162
4163 <action>
4164 <touch key="home"/>
4165 <action function="page">main</action>
4166 </action>
4167
4168 <action>
4169 <touch key="back"/>
4170 <action function="page">advanced</action>
4171 </action>
4172 </page>
4173
4174 <page name="partsdcardcheck">
4175 <action>
4176 <condition var1="tw_partition_removable" op="=" var2="1"/>
4177 <actions>
4178 <action function="set">partitionlisterror=0</action>
4179 <action function="page">partsdcard</action>
4180 </actions>
4181 </action>
4182
4183 <action>
4184 <condition var1="tw_partition_removable" op="!=" var2="1"/>
4185 <actions>
4186 <action function="set">partitionlisterror=1</action>
4187 <action function="page">partsdcardsel</action>
4188 </actions>
4189 </action>
4190 </page>
4191
z31s1g28f0a922015-11-07 18:50:22 +01004192 <page name="partsdcard">
4193 <template name="page"/>
4194
4195 <template name="statusbar"/>
4196
4197 <text style="text_m">
4198 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004199 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004200 </text>
4201
4202 <text style="text_m_fail">
4203 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004204 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004205 </text>
4206
4207 <text style="text_m_fail">
4208 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004209 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004210 </text>
4211
4212 <text style="text_m_accent">
4213 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004214 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004215 </text>
4216
4217 <text style="text_m">
4218 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4219 <text>%tw_sdext_size%</text>
4220 </text>
4221
4222 <button style="main_button_quarter_width">
4223 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004224 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004225 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004226 </button>
4227
4228 <button style="main_button_quarter_width">
4229 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004230 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004231 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004232 </button>
4233
4234 <button>
4235 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4236 <highlight color="%highlight_color%"/>
4237 <image resource="q_btn_arrow_right"/>
4238 <action function="page">partsdcard2</action>
4239 </button>
4240
4241 <action>
4242 <touch key="home"/>
4243 <action function="page">main</action>
4244 </action>
4245
4246 <action>
4247 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004248 <action function="page">partsdcardsel</action>
z31s1g28f0a922015-11-07 18:50:22 +01004249 </action>
4250 </page>
4251
4252 <page name="partsdcard2">
4253 <template name="page"/>
4254
4255 <template name="statusbar"/>
4256
4257 <text style="text_m">
4258 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004259 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004260 </text>
4261
4262 <text style="text_m_fail">
4263 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004264 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004265 </text>
4266
4267 <text style="text_m_fail">
4268 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004269 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004270 </text>
4271
4272 <text style="text_m_accent">
4273 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004274 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004275 </text>
4276
4277 <text style="text_m">
4278 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4279 <text>%tw_swap_size%</text>
4280 </text>
4281
4282 <button style="main_button_quarter_width">
4283 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004284 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004285 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004286 </button>
4287
4288 <button style="main_button_quarter_width">
4289 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004290 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004291 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004292 </button>
4293
4294 <button>
4295 <placement x="%col1_x_left%" y="%row11_y%"/>
4296 <highlight color="%highlight_color%"/>
4297 <image resource="q_btn_arrow_left"/>
4298 <action function="page">partsdcard</action>
4299 </button>
4300
4301 <button>
4302 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4303 <highlight color="%highlight_color%"/>
4304 <image resource="q_btn_arrow_right"/>
4305 <action function="page">partsdcard3</action>
4306 </button>
4307
4308 <action>
4309 <touch key="home"/>
4310 <action function="page">main</action>
4311 </action>
4312
4313 <action>
4314 <touch key="back"/>
4315 <action function="page">advanced</action>
4316 </action>
4317 </page>
4318
4319 <page name="partsdcard3">
4320 <template name="page"/>
4321
4322 <template name="statusbar"/>
4323
4324 <text style="text_m">
4325 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004326 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004327 </text>
4328
4329 <text style="text_m_fail">
4330 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004331 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004332 </text>
4333
4334 <text style="text_m_fail">
4335 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004336 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004337 </text>
4338
4339 <text style="text_m_accent">
4340 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004341 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004342 </text>
4343
4344 <text style="text_m">
4345 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4346 <text>%tw_sdpart_file_system%</text>
4347 </text>
4348
4349 <button style="main_button_quarter_width">
4350 <placement x="%indent%" y="%row6_y%"/>
4351 <text>EXT3</text>
4352 <action function="set">tw_sdpart_file_system=ext3</action>
4353 </button>
4354
4355 <button style="main_button_quarter_width">
4356 <placement x="%btn4_col4_x%" y="%row6_y%"/>
4357 <text>EXT4</text>
4358 <action function="set">tw_sdpart_file_system=ext4</action>
4359 </button>
4360
4361 <button>
4362 <placement x="%col1_x_left%" y="%row11_y%"/>
4363 <highlight color="%highlight_color%"/>
4364 <image resource="q_btn_arrow_left"/>
4365 <action function="page">partsdcard2</action>
4366 </button>
4367
4368 <button>
4369 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4370 <highlight color="%highlight_color%"/>
4371 <image resource="q_btn_arrow_right"/>
4372 <action function="page">partsdcard_confirm</action>
4373 </button>
4374
4375 <action>
4376 <touch key="home"/>
4377 <action function="page">main</action>
4378 </action>
4379
4380 <action>
4381 <touch key="back"/>
4382 <action function="page">advanced</action>
4383 </action>
4384 </page>
4385
4386 <page name="partsdcard_confirm">
4387 <template name="page"/>
4388
4389 <template name="statusbar"/>
4390
4391 <text style="text_m">
4392 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004393 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004394 </text>
4395
4396 <text style="text_m_fail">
4397 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004398 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004399 </text>
4400
4401 <text style="text_m_fail">
4402 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004403 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004404 </text>
4405
4406 <text style="text_m_accent">
4407 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004408 <text>{@part_sd_ext_sz=EXT Size:} %tw_sdext_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004409 </text>
4410
4411 <text style="text_m_accent">
4412 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004413 <text>{@part_sd_swap_sz=Swap Size:} %tw_swap_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004414 </text>
4415
4416 <text style="text_m_accent">
4417 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004418 <text>{@file_system=File System:} %tw_sdpart_file_system%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004419 </text>
4420
4421 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004422 <text>{@swipe_part_sd_s=Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004423 <action function="page">partsdcardaction</action>
4424 <actions>
4425 <action function="set">tw_back=partsdcard</action>
4426 <action function="set">tw_action=partitionsd</action>
4427 <action function="set">tw_has_action2=1</action>
4428 <action function="set">tw_action2=set</action>
4429 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004430 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4431 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4432 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004433 <action function="page">action_page</action>
4434 </actions>
4435 </slider>
4436
4437 <action>
4438 <touch key="home"/>
4439 <action function="page">main</action>
4440 </action>
4441
4442 <action>
4443 <touch key="back"/>
4444 <action function="page">advanced</action>
4445 </action>
4446 </page>
4447
4448 <page name="htcdumlock">
4449 <template name="page"/>
4450
4451 <template name="statusbar"/>
4452
4453 <text style="text_m">
4454 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004455 <text>{@advanced_hdr=Advanced} &gt; {@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004456 </text>
4457
4458 <button style="main_button_full_width">
4459 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004460 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004461 <actions>
4462 <action function="set">tw_back=htcdumlock</action>
4463 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004464 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4465 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4466 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4467 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004468 <action function="page">confirm_action</action>
4469 </actions>
4470 </button>
4471
4472 <button style="main_button_full_width">
4473 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004474 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004475 <actions>
4476 <action function="set">tw_back=htcdumlock</action>
4477 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004478 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4479 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4480 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4481 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004482 <action function="page">confirm_action</action>
4483 </actions>
4484 </button>
4485
4486 <button style="main_button_full_width">
4487 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004488 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004489 <actions>
4490 <action function="set">tw_back=htcdumlock</action>
4491 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004492 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4493 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4494 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4495 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004496 <action function="page">confirm_action</action>
4497 </actions>
4498 </button>
4499
4500 <action>
4501 <touch key="home"/>
4502 <action function="page">main</action>
4503 </action>
4504
4505 <action>
4506 <touch key="back"/>
4507 <action function="page">advanced</action>
4508 </action>
4509 </page>
4510
4511 <page name="lock">
4512 <background color="%semi_transparent%"/>
4513
4514 <image>
4515 <image resource="unlock_icon"/>
4516 <placement x="%center_x%" y="%row6_y%" placement="4"/>
4517 </image>
4518
4519 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004520 <text>{@swipe_unlock= Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004521 <action function="overlay"/>
4522 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004523
4524 <action>
4525 <touch key="power"/>
4526 <action function="togglebacklight"/>
4527 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004528 </page>
4529
4530 <page name="filemanagerlist">
4531 <template name="page"/>
4532
4533 <template name="statusbar"/>
4534
4535 <text style="text_m">
4536 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004537 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004538 </text>
4539
4540 <fileselector>
4541 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4542 <text>%tw_file_location1%</text>
4543 <filter folders="1" files="1"/>
4544 <path name="tw_file_location1" default="/"/>
4545 <data name="tw_filename1"/>
4546 <selection name="tw_selection1"/>
4547 </fileselector>
4548
4549 <button>
4550 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4551 <highlight color="%highlight_color%"/>
4552 <image resource="q_btn_folder"/>
4553 <actions>
4554 <action function="set">tw_filename1=tw_file_location1</action>
4555 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004556 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004557 <action function="page">filemanageroptions</action>
4558 </actions>
4559 </button>
4560
4561 <action>
4562 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004563 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004564 <action function="set">tw_fm_isfolder=0</action>
4565 </actions>
4566 </action>
4567
4568 <action>
4569 <touch key="home"/>
4570 <action function="page">main</action>
4571 </action>
4572
4573 <action>
4574 <touch key="back"/>
4575 <action function="page">main3</action>
4576 </action>
4577
4578 <action>
4579 <condition var1="tw_filename1" op="modified"/>
4580 <action function="page">filemanageroptions</action>
4581 </action>
4582 </page>
4583
4584 <page name="filemanageroptions">
4585 <template name="page"/>
4586
4587 <template name="statusbar"/>
4588
4589 <text style="text_m">
4590 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004591 <text>%tw_fm_type% &gt; %tw_filename1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004592 </text>
4593
4594 <button style="main_button">
4595 <condition var1="tw_fm_isfolder" var2="0"/>
4596 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004597 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004598 <actions>
4599 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004600 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004601 <action function="page">choosedestinationfolder</action>
4602 </actions>
4603 </button>
4604
4605 <button style="main_button">
4606 <condition var1="tw_fm_isfolder" var2="1"/>
4607 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004608 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004609 <actions>
4610 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; cp -R</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004611 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004612 <action function="page">choosedestinationfolder</action>
4613 </actions>
4614 </button>
4615
4616 <button style="main_button">
4617 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004618 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004619 <actions>
4620 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004621 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004622 <action function="page">choosedestinationfolder</action>
4623 </actions>
4624 </button>
4625
4626 <button style="main_button">
4627 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004628 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004629 <actions>
4630 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004631 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004632 <action function="set">tw_fm_text2=</action>
4633 <action function="set">tw_fm_text3=</action>
4634 <action function="set">tw_include_text3=0</action>
4635 <action function="set">tw_back=filemanageroptions</action>
4636 <action function="page">filemanagerconfirm</action>
4637 </actions>
4638 </button>
4639
4640 <button style="main_button">
4641 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004642 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004643 <actions>
4644 <action function="set">tw_filemanager_rename=0000</action>
4645 <action function="set">tw_fm_text2=</action>
4646 <action function="set">tw_fm_text3=</action>
4647 <action function="set">tw_include_text3=0</action>
4648 <action function="set">tw_back=filemanageroptions</action>
4649 <action function="page">filemanagerchmod</action>
4650 </actions>
4651 </button>
4652
4653 <button style="main_button">
4654 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004655 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004656 <actions>
4657 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004658 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004659 <action function="set">tw_fm_text2=</action>
4660 <action function="set">tw_fm_text3=</action>
4661 <action function="set">tw_include_text3=0</action>
4662 <action function="set">tw_back=filemanageroptions</action>
4663 <action function="page">filemanagerconfirm</action>
4664 </actions>
4665 </button>
4666
4667 <button style="main_button">
4668 <condition var1="tw_fm_isfolder" var2="0"/>
4669 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004670 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004671 <actions>
4672 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004673 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004674 <action function="set">tw_filemanager_command=mv</action>
4675 <action function="page">filemanagerrenamefile</action>
4676 </actions>
4677 </button>
4678
4679 <button style="main_button">
4680 <condition var1="tw_fm_isfolder" var2="1"/>
4681 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004682 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004683 <actions>
4684 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004685 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004686 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4687 <action function="page">filemanagerrenamefolder</action>
4688 </actions>
4689 </button>
4690
4691 <action>
4692 <touch key="home"/>
4693 <action function="page">main</action>
4694 </action>
4695
4696 <action>
4697 <touch key="back"/>
4698 <action function="page">filemanagerlist</action>
4699 </action>
4700 </page>
4701
4702 <page name="choosedestinationfolder">
4703 <template name="page"/>
4704
4705 <template name="statusbar"/>
4706
4707 <text style="text_m">
4708 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004709 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004710 </text>
4711
4712 <fileselector>
4713 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4714 <text>%tw_file_location2%</text>
4715 <filter folders="1" files="0"/>
4716 <path name="tw_file_location2" default="/"/>
4717 <data name="tw_filename2"/>
4718 <selection name="tw_selection2"/>
4719 </fileselector>
4720
4721 <button>
4722 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4723 <highlight color="%highlight_color%"/>
4724 <image resource="q_btn_folder"/>
4725 <actions>
4726 <action function="set">tw_fm_text2=to</action>
4727 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4728 <action function="set">tw_include_text3=1</action>
4729 <action function="set">tw_back=filemanageroptions</action>
4730 <action function="page">filemanagerconfirm</action>
4731 </actions>
4732 </button>
4733
4734 <action>
4735 <touch key="home"/>
4736 <action function="page">main</action>
4737 </action>
4738
4739 <action>
4740 <touch key="back"/>
4741 <action function="page">filemanageroptions</action>
4742 </action>
4743 </page>
4744
4745 <page name="filemanagerrenamefile">
4746 <template name="page"/>
4747
4748 <template name="statusbar"/>
4749
4750 <text style="text_m">
4751 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004752 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004753 </text>
4754
4755 <text style="text_m_accent">
4756 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004757 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004758 </text>
4759
4760 <input>
4761 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
4762 <text>%tw_filemanager_rename%</text>
4763 <data name="tw_filemanager_rename"/>
4764 <restrict minlen="1" maxlen="128"/>
4765 <actions>
4766 <action function="set">tw_fm_text2=to</action>
4767 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4768 <action function="set">tw_include_text3=1</action>
4769 <action function="set">tw_back=filemanageroptions</action>
4770 <action function="page">filemanagerconfirm</action>
4771 </actions>
4772 </input>
4773
4774 <fill color="%accent_color%">
4775 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
4776 </fill>
4777
4778 <button style="main_button_half_height">
4779 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004780 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004781 <action function="page">filemanageroptions</action>
4782 </button>
4783
4784 <template name="keyboardtemplate"/>
4785
4786 <action>
4787 <touch key="home"/>
4788 <action function="page">main</action>
4789 </action>
4790
4791 <action>
4792 <touch key="back"/>
4793 <action function="page">filemanageroptions</action>
4794 </action>
4795 </page>
4796
4797 <page name="filemanagerrenamefolder">
4798 <template name="page"/>
4799
4800 <template name="statusbar"/>
4801
4802 <text style="text_m">
4803 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004804 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004805 </text>
4806
4807 <text style="text_m_accent">
4808 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004809 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004810 </text>
4811
4812 <input>
4813 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
4814 <text>%tw_filemanager_rename%</text>
4815 <data name="tw_filemanager_rename"/>
4816 <restrict minlen="1" maxlen="128"/>
4817 <actions>
4818 <action function="set">tw_fm_text2=to</action>
4819 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4820 <action function="set">tw_include_text3=1</action>
4821 <action function="set">tw_back=filemanageroptions</action>
4822 <action function="page">filemanagerconfirm</action>
4823 </actions>
4824 </input>
4825
4826 <fill color="%accent_color%">
4827 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4828 </fill>
4829
4830 <button style="main_button_half_height">
4831 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004832 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004833 <action function="page">filemanageroptions</action>
4834 </button>
4835
4836 <template name="keyboardtemplate"/>
4837
4838 <action>
4839 <touch key="home"/>
4840 <action function="page">main</action>
4841 </action>
4842
4843 <action>
4844 <touch key="back"/>
4845 <action function="page">filemanageroptions</action>
4846 </action>
4847 </page>
4848
4849 <page name="filemanagerchmod">
4850 <template name="page"/>
4851
4852 <template name="statusbar"/>
4853
4854 <text style="text_m">
4855 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004856 <text>{@fm_hdr=File Manager} &gt; {@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004857 </text>
4858
4859 <text style="text_m_accent">
4860 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004861 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004862 </text>
4863
4864 <input>
4865 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
4866 <text>%tw_filemanager_rename%</text>
4867 <data name="tw_filemanager_rename"/>
4868 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4869 <actions>
4870 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4871 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4872 <action function="set">tw_back=filemanageroptions</action>
4873 <action function="page">filemanagerconfirm</action>
4874 </actions>
4875 </input>
4876
4877 <fill color="%accent_color%">
4878 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4879 </fill>
4880
4881 <button style="main_button_half_height">
4882 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004883 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004884 <action function="page">filemanageroptions</action>
4885 </button>
4886
4887 <template name="keyboardtemplate"/>
4888
4889 <action>
4890 <touch key="home"/>
4891 <action function="page">main</action>
4892 </action>
4893
4894 <action>
4895 <touch key="back"/>
4896 <action function="page">filemanageroptions</action>
4897 </action>
4898 </page>
4899
4900 <page name="filemanagerconfirm">
4901 <template name="page"/>
4902
4903 <template name="statusbar"/>
4904
4905 <text style="text_m">
4906 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004907 <text>{@fm_hdr=File Manager} &gt; {@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004908 </text>
4909
4910 <text style="text_m_accent">
4911 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4912 <text>%tw_fm_text1%</text>
4913 </text>
4914
4915 <text style="text_m">
4916 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4917 <text>%tw_filename1%</text>
4918 </text>
4919
4920 <text style="text_m_accent">
4921 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4922 <text>%tw_fm_text2%</text>
4923 </text>
4924
4925 <text style="text_m">
4926 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4927 <text>%tw_fm_text3%</text>
4928 </text>
4929
4930 <text style="text_m">
4931 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004932 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004933 </text>
4934
4935 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004936 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004937 <action function="page">filemanageraction</action>
4938 </slider>
4939
4940 <action>
4941 <touch key="back"/>
4942 <action function="page">%tw_back%</action>
4943 </action>
4944
4945 <action>
4946 <touch key="home"/>
4947 <action function="page">main</action>
4948 </action>
4949 </page>
4950
4951 <page name="filemanageraction">
4952 <template name="page"/>
4953
4954 <template name="statusbar"/>
4955
4956 <text style="text_m">
4957 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004958 <text>{@fm_hdr=File Manager} &gt; %tw_fm_text1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004959 </text>
4960
4961 <template name="console"/>
4962
4963 <template name="progress_bar"/>
4964
4965 <action>
4966 <conditions>
4967 <condition var1="tw_operation_state" var2="1"/>
4968 <condition var1="tw_operation_status" var2="0"/>
4969 </conditions>
4970 <actions>
4971 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004972 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004973 <action function="page">action_complete</action>
4974 </actions>
4975 </action>
4976
4977 <action>
4978 <conditions>
4979 <condition var1="tw_operation_state" var2="1"/>
4980 <condition var1="tw_operation_status" op="!=" var2="0"/>
4981 </conditions>
4982 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004983 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004984 <action function="page">action_complete</action>
4985 </actions>
4986 </action>
4987
4988 <action>
4989 <condition var1="tw_include_text3" var2="0"/>
4990 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4991 </action>
4992
4993 <action>
4994 <condition var1="tw_include_text3" var2="1"/>
4995 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4996 </action>
4997 </page>
4998
4999 <page name="decrypt">
5000 <template name="page"/>
5001
5002 <template name="statusbar"/>
5003
5004 <action>
5005 <condition var1="tw_crypto_pwtype" var2="2"/>
5006 <action function="page">decrypt_pattern</action>
5007 </action>
5008
5009 <text style="text_m">
5010 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005011 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005012 </text>
5013
5014 <text style="text_m_accent">
5015 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005016 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005017 </text>
5018
5019 <input>
5020 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5021 <text>%tw_crypto_display%</text>
5022 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
5023 <restrict minlen="1" maxlen="254"/>
5024 <action function="page">trydecrypt</action>
5025 </input>
5026
5027 <fill color="%accent_color%">
5028 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5029 </fill>
5030
5031 <fill color="%text_fail_color%">
5032 <condition var1="tw_password_fail" var2="1"/>
5033 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5034 </fill>
5035
5036 <text style="text_m_fail">
5037 <condition var1="tw_password_fail" var2="1"/>
5038 <placement x="%col1_x_left%" y="%row3_input_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08005039 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005040 </text>
5041
5042 <button style="main_button_half_height">
z31s1g608d7ff2016-01-18 19:47:25 +01005043 <placement x="%col1_x_left%" y="%row4_y%"/>
5044 <text>{@sel_lang_btn=Select Language}</text>
5045 <action function="page">settings_language</action>
5046 </button>
5047
5048 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01005049 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005050 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005051 <actions>
5052 <action function="set">tw_page_done=1</action>
5053 <action function="page">main</action>
5054 </actions>
5055 </button>
5056
5057 <template name="keyboardtemplate"/>
5058 </page>
5059
5060 <page name="decrypt_pattern">
5061 <template name="page"/>
5062
5063 <template name="statusbar"/>
5064
Aleksa Saraib25a1832015-12-31 17:36:00 +01005065 <action>
5066 <action function="set">tw_gui_pattern_grid_size=3</action>
5067 </action>
5068
z31s1g28f0a922015-11-07 18:50:22 +01005069 <text style="text_m">
5070 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005071 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005072 </text>
5073
5074 <text style="text_m_accent">
Aleksa Saraib25a1832015-12-31 17:36:00 +01005075 <condition var1="tw_password_fail" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01005076 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005077 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005078 </text>
5079
Aleksa Saraib25a1832015-12-31 17:36:00 +01005080 <text style="text_m_fail">
5081 <condition var1="tw_password_fail" var2="1"/>
5082 <placement x="%center_x%" y="%row5_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08005083 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005084 </text>
5085
z31s1g28f0a922015-11-07 18:50:22 +01005086 <text style="text_m">
5087 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005088 <text>{@back_cancel=Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005089 </text>
5090
5091 <patternpassword>
5092 <placement x="%pattern_x%" y="%row2_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005093 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
5094 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
5095 <data name="tw_crypto_password"/>
5096 <action function="page">trydecrypt</action>
5097 </patternpassword>
5098
5099 <fill color="#000000">
5100 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5101 </fill>
5102
5103 <button>
5104 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5105 <image resource="back"/>
5106 <condition var1="tw_busy" var2="0"/>
5107 <actions>
5108 <action function="set">tw_page_done=1</action>
5109 <action function="page">main</action>
5110 </actions>
5111 </button>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005112
5113 <button>
5114 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5115 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5116 <image resource="grid_less"/>
5117 <action function="set">tw_gui_pattern_grid_size=3</action>
5118 </button>
5119
5120 <button>
5121 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5122 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5123 <image resource="grid_less"/>
5124 <action function="set">tw_gui_pattern_grid_size=3</action>
5125 </button>
5126
5127 <button>
5128 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5129 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5130 <image resource="grid_less"/>
5131 <action function="set">tw_gui_pattern_grid_size=4</action>
5132 </button>
5133
5134 <button>
5135 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5136 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5137 <image resource="grid_less"/>
5138 <action function="set">tw_gui_pattern_grid_size=5</action>
5139 </button>
5140
5141 <button>
5142 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5143 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5144 <image resource="grid_more"/>
5145 <action function="set">tw_gui_pattern_grid_size=4</action>
5146 </button>
5147
5148 <button>
5149 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5150 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5151 <image resource="grid_more"/>
5152 <action function="set">tw_gui_pattern_grid_size=5</action>
5153 </button>
5154
5155 <button>
5156 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5157 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5158 <image resource="grid_more"/>
5159 <action function="set">tw_gui_pattern_grid_size=6</action>
5160 </button>
5161
5162 <button>
5163 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5164 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5165 <image resource="grid_more"/>
5166 <action function="set">tw_gui_pattern_grid_size=6</action>
5167 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005168 </page>
5169
5170 <page name="trydecrypt">
5171 <template name="page"/>
5172
5173 <template name="statusbar"/>
5174
5175 <text style="text_m">
5176 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005177 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005178 </text>
5179
5180 <template name="console"/>
5181
5182 <template name="progress_bar"/>
5183
5184 <action>
5185 <action function="decrypt"/>
5186 </action>
5187
5188 <action>
5189 <conditions>
5190 <condition var1="tw_operation_state" var2="1"/>
5191 <condition var1="tw_operation_status" op="!=" var2="0"/>
5192 </conditions>
5193 <actions>
5194 <action function="set">tw_password_fail=1</action>
5195 <action function="page">decrypt</action>
5196 </actions>
5197 </action>
5198
5199 <action>
5200 <conditions>
5201 <condition var1="tw_operation_state" var2="1"/>
5202 <condition var1="tw_operation_status" op="=" var2="0"/>
5203 </conditions>
5204 <actions>
5205 <action function="set">tw_page_done=1</action>
5206 <action function="page">main</action>
5207 </actions>
5208 </action>
5209 </page>
5210
z31s1g28f0a922015-11-07 18:50:22 +01005211 <page name="terminalcommand">
z31s1g56189522016-01-13 19:12:40 +01005212 <terminal>
5213 <condition var1="tw_hide_kb" var2="0"/>
5214 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_s_height%"/>
5215 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005216
z31s1g56189522016-01-13 19:12:40 +01005217 <terminal>
5218 <condition var1="tw_hide_kb" var2="1"/>
5219 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_l_height%"/>
5220 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005221
z31s1g56189522016-01-13 19:12:40 +01005222 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005223
5224 <template name="keyboardtemplate"/>
5225
z31s1g608d7ff2016-01-18 19:47:25 +01005226 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01005227 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01005228 </fill>
z31s1g56189522016-01-13 19:12:40 +01005229
z31s1g608d7ff2016-01-18 19:47:25 +01005230 <button>
z31s1g56189522016-01-13 19:12:40 +01005231 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5232 <image resource="back" />
5233 <condition var1="tw_busy" var2="0" />
5234 <actions>
5235 <action function="set">tw_hide_kb=0</action>
5236 <action function="key">back</action>
5237 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005238 </button>
z31s1g56189522016-01-13 19:12:40 +01005239
z31s1g608d7ff2016-01-18 19:47:25 +01005240 <button>
z31s1g56189522016-01-13 19:12:40 +01005241 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5242 <image resource="home" />
5243 <condition var1="tw_busy" var2="0" />
5244 <actions>
5245 <action function="set">tw_hide_kb=0</action>
5246 <action function="key">home</action>
5247 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005248 </button>
z31s1g56189522016-01-13 19:12:40 +01005249
z31s1g608d7ff2016-01-18 19:47:25 +01005250 <button>
z31s1g56189522016-01-13 19:12:40 +01005251 <condition var1="tw_hide_kb" var2="0"/>
5252 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5253 <image resource="kb_hide" />
5254 <condition var1="tw_busy" var2="0" />
5255 <actions>
5256 <action function="set">tw_hide_kb=1</action>
5257 <action function="page">terminalcommand</action>
5258 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005259 </button>
z31s1g56189522016-01-13 19:12:40 +01005260
z31s1g608d7ff2016-01-18 19:47:25 +01005261 <button>
z31s1g56189522016-01-13 19:12:40 +01005262 <condition var1="tw_hide_kb" var2="1"/>
5263 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5264 <image resource="kb_show" />
5265 <condition var1="tw_busy" var2="0" />
5266 <actions>
5267 <action function="set">tw_hide_kb=0</action>
5268 <action function="page">terminalcommand</action>
5269 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005270 </button>
z31s1g56189522016-01-13 19:12:40 +01005271
z31s1g28f0a922015-11-07 18:50:22 +01005272 <action>
5273 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005274 <actions>
5275 <action function="set">tw_hide_kb=0</action>
5276 <action function="page">main</action>
5277 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005278 </action>
5279
5280 <action>
5281 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005282 <actions>
5283 <action function="set">tw_hide_kb=0</action>
5284 <action function="page">advanced</action>
5285 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005286 </action>
z31s1g56189522016-01-13 19:12:40 +01005287
z31s1g608d7ff2016-01-18 19:47:25 +01005288 <action>
z31s1g56189522016-01-13 19:12:40 +01005289 <touch key="power+voldown" />
5290 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01005291 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005292 </page>
5293
5294 <page name="sideload">
5295 <template name="page"/>
5296
5297 <template name="statusbar"/>
5298
5299 <text style="text_m">
5300 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005301 <text>{@install_hdr=Install} &gt; {@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005302 </text>
5303
5304 <text style="text_m_accent">
5305 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005306 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005307 </text>
5308
5309 <checkbox>
5310 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005311 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005312 <data variable="tw_wipe_dalvik"/>
5313 </checkbox>
5314
5315 <checkbox>
5316 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005317 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005318 <data variable="tw_wipe_cache"/>
5319 </checkbox>
5320
5321 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005322 <text>{@swipe_sideload= Start}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005323 <actions>
5324 <action function="set">tw_back=install_type</action>
5325 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005326 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5327 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5328 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005329 <action function="set">tw_has_cancel=1</action>
5330 <action function="set">tw_show_reboot=1</action>
5331 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5332 <action function="page">action_page</action>
5333 </actions>
5334 </slider>
5335
5336 <action>
5337 <touch key="home"/>
5338 <action function="page">main</action>
5339 </action>
5340
5341 <action>
5342 <touch key="back"/>
5343 <action function="page">install_type</action>
5344 </action>
5345 </page>
5346
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005347 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005348 <template name="page"/>
5349
5350 <template name="statusbar"/>
5351
5352 <text style="text_m">
5353 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005354 <text>{@advanced_hdr=Advanced} &gt; {@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005355 </text>
5356
5357 <text style="text_m_accent">
5358 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005359 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005360 </text>
5361
z31s1g28f0a922015-11-07 18:50:22 +01005362 <text style="text_m_fail">
5363 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005364 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005365 </text>
5366
5367 <text style="text_m_fail">
5368 <placement x="%center_x%" y="%row7a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005369 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005370 </text>
5371
5372 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005373 <text>{@swipe_fix_contexts= Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005374 <actions>
5375 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005376 <action function="set">tw_action=fixcontexts</action>
5377 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5378 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005379 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005380 <action function="set">tw_show_reboot=1</action>
5381 <action function="page">action_page</action>
5382 </actions>
5383 </slider>
5384
5385 <action>
5386 <touch key="home"/>
5387 <action function="page">main</action>
5388 </action>
5389
5390 <action>
5391 <touch key="back"/>
5392 <action function="page">advanced</action>
5393 </action>
5394 </page>
5395
5396 <page name="installsu">
5397 <template name="page"/>
5398
5399 <template name="statusbar"/>
5400
5401 <text style="text_m">
5402 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005403 <text>{@reboot_hdr=Reboot} &gt; {@su_hdr=SuperSU Check}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005404 </text>
5405
5406 <text style="text_m_accent">
5407 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005408 <text>{@su_note1=Your device does not appear to be rooted.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005409 </text>
5410
5411 <text style="text_m">
5412 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005413 <text>{@su_note2=Install SuperSU now?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005414 </text>
5415
5416 <text style="text_m">
5417 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005418 <text>{@su_note3=This will root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005419 </text>
5420
5421 <button style="main_button_full_width">
5422 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005423 <text>{@su_cancel=Do not Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005424 <action function="set">tw_page_done=1</action>
5425 </button>
5426
5427 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005428 <text>{@swipe_su_install= Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005429 <actions>
5430 <action function="set">tw_action=installsu</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005431 <action function="set">tw_action_text1={@su_installing=Installing SuperSU}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005432 <action function="set">tw_action_text2=</action>
5433 <action function="page">singleaction_page</action>
5434 </actions>
5435 </slider>
5436 </page>
5437
5438 <page name="slideout">
5439 <fill color="%background_color%">
5440 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5441 </fill>
5442
5443 <console>
5444 <placement x="%indent%" y="%row1_y%" w="%content_width%" h="%slideout_height%"/>
5445 </console>
5446
5447 <fill color="%fileselector_linecolor%">
5448 <placement x="%indent%" y="row1_y" w="%content_width%" h="input_line_width" placement="1"/>
5449 </fill>
5450
5451 <fill color="%fileselector_linecolor%">
5452 <placement x="%indent%" y="row15a_y" w="%content_width%" h="input_line_width"/>
5453 </fill>
5454
5455 <button>
5456 <fill color="%transparent%"/>
5457 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5458 <action function="overlay"/>
5459 </button>
5460
5461 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005462 <touch key="power"/>
5463 <action function="togglebacklight"/>
5464 </action>
5465
5466 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005467 <touch key="power+voldown"/>
5468 <action function="screenshot"/>
5469 </action>
5470 </page>
5471
5472 <page name="select_storage">
5473 <template name="page"/>
5474
5475 <template name="statusbar"/>
5476
5477 <text style="text_m">
5478 <placement x="%col1_x_left%" y="%row1_header_y%"/>
5479 <text>%tw_storagetext%</text>
5480 </text>
5481
5482 <partitionlist style="partitionlist_headerless_rb">
5483 <data name="tw_storage_path"/>
5484 <listtype name="storage"/>
5485 </partitionlist>
5486
5487 <button>
5488 <placement x="%btn4_col2_x%" y="%row11_y%"/>
5489 <highlight color="%highlight_color%"/>
5490 <image resource="q_btn_refresh"/>
5491 <actions>
5492 <action function="refreshsizes"/>
5493 <action function="page">select_storage</action>
5494 </actions>
5495 </button>
5496
5497 <button>
5498 <placement x="%btn4_col3_x%" y="%row11_y%"/>
5499 <highlight color="%highlight_color%"/>
5500 <image resource="q_btn_accept"/>
5501 <actions>
5502 <action function="set">tw_clear_destination=%tw_back%</action>
5503 <action function="page">clear_vars</action>
5504 </actions>
5505 </button>
5506
5507 <action>
5508 <touch key="power+voldown"/>
5509 <action function="screenshot"/>
5510 </action>
5511 </page>
5512 </pages>
5513</recovery>