Advertisement
Nemo_Aeternamn

current twrp ui

Nov 1st, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 102.98 KB | None | 0 0
  1. <?xml version="1.0"?>
  2.  
  3. <recovery>
  4. <details>
  5. <resolution width="720" height="1280" />
  6. <author>Nemo Aeternamn and CJM</author>
  7. <title>yet to be determined</title>
  8. <description>unseen yet</description>
  9. <preview>preview.jpg</preview>
  10. </details>
  11.  
  12. <resources>
  13. <resource name="font" type="font" filename="Roboto-Condensed-30" />
  14. <resource name="mediumfont" type="font" filename="Roboto-Condensed-30" />
  15. <resource name="filelist" type="font" filename="Roboto-Condensed-30" />
  16. <resource name="background_image" type="image" filename="background.jpg" />
  17. <resource name="top_bar" type="image" filename="top-bar.jpg" />
  18. <resource name="main_button" type="image" filename="menu-button" />
  19. <resource name="file_icon" type="image" filename="file" />
  20. <resource name="folder_icon" type="image" filename="folder" />
  21. <resource name="slideout" type="image" filename="slideout" />
  22. <resource name="progress" type="animation" filename="indeterminate" />
  23. <resource name="progress_empty" type="image" filename="progress_empty" />
  24. <resource name="progress_full" type="image" filename="progress_fill" />
  25. <resource name="checkbox_false" type="image" filename="checkbox_empty" />
  26. <resource name="checkbox_true" type="image" filename="checkbox_checked" />
  27. <resource name="radio_false" type="image" filename="radio_empty" />
  28. <resource name="radio_true" type="image" filename="radio_selected" />
  29. <resource name="medium_button" type="image" filename="medium-button" />
  30. <resource name="sort_button" type="image" filename="sort-button" />
  31. <resource name="minus_button" type="image" filename="minus-button" />
  32. <resource name="plus_button" type="image" filename="plus-button" />
  33. <resource name="home_icon" type="image" filename="home-icon" />
  34. <resource name="back_icon" type="image" filename="back-icon" />
  35. <resource name="slider" type="image" filename="slider" />
  36. <resource name="slider-used" type="image" filename="slider-used" />
  37. <resource name="slider-touch" type="image" filename="slider-touch" />
  38. <resource name="unlock-icon" type="image" filename="unlock" />
  39. <resource name="keyboard1" type="image" filename="keyboard1" />
  40. <resource name="keyboard2" type="image" filename="keyboard2" />
  41. <resource name="keyboard3" type="image" filename="keyboard3" />
  42. <resource name="keyboard4" type="image" filename="keyboard4" />
  43. <resource name="exclamation" type="image" filename="exclamation400" />
  44. </resources>
  45.  
  46. <variables>
  47. <variable name="col1_x" value="10" />
  48. <variable name="col2_x" value="383" />
  49. <variable name="col_center_x" value="191" />
  50. <variable name="col_center_medium_x" value="275" />
  51. <variable name="center_x" value="360" />
  52. <variable name="row1_y" value="170" />
  53. <variable name="row2_y" value="410" />
  54. <variable name="row3_y" value="650" />
  55. <variable name="row4_y" value="890" />
  56. <variable name="col1_center_x" value="179" />
  57. <variable name="col2_center_x" value="552" />
  58. <variable name="row1_text2_y" value="310" />
  59. <variable name="row2_text2_y" value="550" />
  60. <variable name="row_queue_y" value="760" />
  61. <variable name="row1_header_y" value="120" />
  62. <variable name="row1_text_y" value="170" />
  63. <variable name="row2_text_y" value="220" />
  64. <variable name="row3_text_y" value="270" />
  65. <variable name="row4_text_y" value="320" />
  66. <variable name="row5_text_y" value="370" />
  67. <variable name="row6_text_y" value="420" />
  68. <variable name="row7_text_y" value="470" />
  69. <variable name="row8_text_y" value="520" />
  70. <variable name="row9_text_y" value="570" />
  71. <variable name="row10_text_y" value="620" />
  72. <variable name="row11_text_y" value="670" />
  73. <variable name="row12_text_y" value="720" />
  74. <variable name="row13_text_y" value="770" />
  75. <variable name="row14_text_y" value="820" />
  76. <variable name="row15_text_y" value="870" />
  77. <variable name="row16_text_y" value="920" />
  78. <variable name="row17_text_y" value="970" />
  79. <variable name="row18_text_y" value="1020" />
  80. <variable name="zip_status_y" value="615" />
  81. <variable name="tz_selected_y" value="160" />
  82. <variable name="tz_set_y" value="950" />
  83. <variable name="tz_current_y" value="1180" />
  84. <variable name="col_progressbar_x" value="234" />
  85. <variable name="row_progressbar_y" value="1100" />
  86. <variable name="col1_medium_x" value="10" />
  87. <variable name="col2_medium_x" value="185" />
  88. <variable name="col3_medium_x" value="365" />
  89. <variable name="col4_medium_x" value="540" />
  90. <variable name="row1_medium_y" value="130" />
  91. <variable name="row2_medium_y" value="230" />
  92. <variable name="row3_medium_y" value="330" />
  93. <variable name="row4_medium_y" value="430" />
  94. <variable name="row5_medium_y" value="530" />
  95. <variable name="row6_medium_y" value="840" />
  96. <variable name="row7_medium_y" value="730" />
  97. <variable name="slider_x" value="68" />
  98. <variable name="slider_y" value="1050" />
  99. <variable name="slider_text_y" value="1117" />
  100. <variable name="button_text_color" value="#AAAAAA" />
  101. <variable name="text_color" value="#FFFFFF" />
  102. <variable name="text_success_color" value="#33B5E5" />
  103. <variable name="text_fail_color" value="#FF0101" />
  104. <variable name="home_button_x" value="10" />
  105. <variable name="home_button_y" value="1226" />
  106. <variable name="back_button_x" value="625" />
  107. <variable name="back_button_y" value="1226" />
  108. <variable name="sort_text_x" value="10" />
  109. <variable name="sort_asc_text_y" value="1090" />
  110. <variable name="sort_asc_button_y" value="1080" />
  111. <variable name="sort_desc_text_y" value="1150" />
  112. <variable name="sort_desc_button_y" value="1140" />
  113. <variable name="sort_col1_button_x" value="260" />
  114. <variable name="sort_col2_button_x" value="360" />
  115. <variable name="sort_col3_button_x" value="460" />
  116. <variable name="input_width" value="700" />
  117. <variable name="input_height" value="50" />
  118. <variable name="input_background_color" value="#303030" />
  119. <variable name="input_cursor_color" value="#33B5E5" />
  120. <variable name="input_cursor_width" value="3" />
  121. <variable name="console_x" value="0" />
  122. <variable name="console_width" value="720" />
  123. <variable name="console_foreground" value="#A0A0A0" />
  124. <variable name="console_background" value="#303030" />
  125. <variable name="console_scroll" value="#303030" />
  126. <variable name="console_action_height" value="470" />
  127. <variable name="console_install_height" value="600" />
  128. <variable name="console_installdone_height" value="440" />
  129. <variable name="fileselector_x" value="5" />
  130. <variable name="fileselector_width" value="710" />
  131. <variable name="fileselector_install_height" value="840" />
  132. <variable name="fileselector_header_background" value="#202020" />
  133. <variable name="fileselector_header_textcolor" value="#AAAAAA" />
  134. <variable name="fileselector_header_separatorcolor" value="#33B5E5" />
  135. <variable name="fileselector_header_separatorheight" value="3" />
  136. <variable name="fileselector_separatorcolor" value="#505050" />
  137. <variable name="fileselector_separatorheight" value="2" />
  138. <variable name="fileselector_background" value="#303030" />
  139. <variable name="fileselector_spacing" value="36" />
  140. <variable name="listbox_x" value="5" />
  141. <variable name="listbox_width" value="710" />
  142. <variable name="listbox_tz_height" value="540" />
  143. <variable name="listbox_background" value="#303030" />
  144. <variable name="listbox_spacing" value="16" />
  145. <variable name="sd_plus_x" value="350" />
  146. <variable name="sdext_text_x" value="110" />
  147. <variable name="sdext_text_y" value="180" />
  148. <variable name="sdswap_button_y" value="260" />
  149. <variable name="sdswap_text_x" value="110" />
  150. <variable name="sdswap_text_y" value="270" />
  151. <variable name="sdfilesystem_text_y" value="340" />
  152. <variable name="sdfilesystem_button_y" value="380" />
  153. <variable name="lock_x" value="160" />
  154. <variable name="lock_y" value="400" />
  155. <variable name="filemanager_select_x" value="560" />
  156. <variable name="filemanager_select_y" value="1080" />
  157. <variable name="backup_name_y" value="550" />
  158. <variable name="terminal_console_height" value="700" />
  159. <variable name="terminal_text_y" value="730" />
  160. <variable name="terminal_button_y" value="700" />
  161. <variable name="row_dst_text_y" value="720" />
  162. <variable name="row_offset_text_y" value="770" />
  163. <variable name="row_offset_medium_y" value="840" />
  164. <variable name="exclamation_x" value="160" />
  165. <variable name="exclamation_y" value="400" />
  166. </variables>
  167.  
  168. <templates>
  169. <template name="header">
  170. <background color="#000000FF" />
  171.  
  172. <object type="image">
  173. <image resource="top_bar" />
  174. <placement x="0" y="0" />
  175. </object>
  176.  
  177. <object type="image">
  178. <image resource="background_image" />
  179. <placement x="0" y="120" />
  180. </object>
  181.  
  182. <object type="text" color="%text_color%">
  183. <font resource="font" />
  184. <placement x="120" y="10" />
  185. <text>Team Win Recovery Project v%tw_version%</text>
  186. </object>
  187.  
  188. <object type="text" color="%text_color%">
  189. <condition var1="tw_simulate_actions" var2="1" />
  190. <font resource="font" />
  191. <placement x="120" y="45" />
  192. <text>SIMULATING ACTIONS</text>
  193. </object>
  194.  
  195. <object type="text" color="%text_color%">
  196. <font resource="font" />
  197. <placement x="120" y="76" />
  198. <text>%tw_time%</text>
  199. </object>
  200.  
  201. <object type="text" color="%text_color%">
  202. <font resource="font" />
  203. <placement x="270" y="76" />
  204. <conditions>
  205. <condition var1="tw_no_battery_percent" var2="0" />
  206. <condition var1="tw_battery" op=">" var2="0" />
  207. <condition var1="tw_battery" op="<" var2="101" />
  208. </conditions>
  209. <text>Battery: %tw_battery%</text>
  210. </object>
  211.  
  212. <object type="button">
  213. <placement x="%home_button_x%" y="%home_button_y%" />
  214. <font resource="font" color="%button_text_color%" />
  215. <text></text>
  216. <image resource="home_icon" />
  217. <condition var1="tw_busy" var2="0" />
  218. <action function="key">home</action>
  219. </object>
  220.  
  221. <object type="button">
  222. <placement x="%back_button_x%" y="%back_button_y%" />
  223. <font resource="font" color="%button_text_color%" />
  224. <text></text>
  225. <image resource="back_icon" />
  226. <condition var1="tw_busy" var2="0" />
  227. <action function="key">back</action>
  228. </object>
  229.  
  230. <object type="action">
  231. <touch key="power" />
  232. <action function="overlay">lock</action>
  233. </object>
  234. </template>
  235.  
  236. <template name="progress_bar">
  237. <object type="progressbar">
  238. <placement x="%col_progressbar_x%" y="%row_progressbar_y%" />
  239. <resource empty="progress_empty" full="progress_full" />
  240. <data name="ui_progress" />
  241. </object>
  242.  
  243. <object type="animation">
  244. <placement x="%col_progressbar_x%" y="%row_progressbar_y%" />
  245. <resource name="progress" />
  246. <speed fps="15" render="2" />
  247. <loop frame="1" />
  248. </object>
  249. </template>
  250.  
  251. <template name="sort_options">
  252. <object type="text" color="%text_color%">
  253. <font resource="font" />
  254. <placement x="%sort_text_x%" y="%sort_asc_text_y%" />
  255. <text>Sort Ascending:</text>
  256. </object>
  257.  
  258. <object type="button">
  259. <placement x="%sort_col1_button_x%" y="%sort_asc_button_y%" />
  260. <font resource="font" color="%button_text_color%" />
  261. <text>Name</text>
  262. <image resource="sort_button" />
  263. <action function="set">tw_gui_sort_order=1</action>
  264. </object>
  265.  
  266. <object type="button">
  267. <placement x="%sort_col2_button_x%" y="%sort_asc_button_y%" />
  268. <font resource="font" color="%button_text_color%" />
  269. <text>Date</text>
  270. <image resource="sort_button" />
  271. <action function="set">tw_gui_sort_order=2</action>
  272. </object>
  273.  
  274. <object type="button">
  275. <placement x="%sort_col3_button_x%" y="%sort_asc_button_y%" />
  276. <font resource="font" color="%button_text_color%" />
  277. <text>Size</text>
  278. <image resource="sort_button" />
  279. <action function="set">tw_gui_sort_order=3</action>
  280. </object>
  281.  
  282. <object type="text" color="%text_color%">
  283. <font resource="font" />
  284. <placement x="%sort_text_x%" y="%sort_desc_text_y%" />
  285. <text>Sort Descending:</text>
  286. </object>
  287.  
  288. <object type="button">
  289. <placement x="%sort_col1_button_x%" y="%sort_desc_button_y%" />
  290. <font resource="font" color="%button_text_color%" />
  291. <text>Name</text>
  292. <image resource="sort_button" />
  293. <action function="set">tw_gui_sort_order=-1</action>
  294. </object>
  295.  
  296. <object type="button">
  297. <placement x="%sort_col2_button_x%" y="%sort_desc_button_y%" />
  298. <font resource="font" color="%button_text_color%" />
  299. <text>Date</text>
  300. <image resource="sort_button" />
  301. <action function="set">tw_gui_sort_order=-2</action>
  302. </object>
  303.  
  304. <object type="button">
  305. <placement x="%sort_col3_button_x%" y="%sort_desc_button_y%" />
  306. <font resource="font" color="%button_text_color%" />
  307. <text>Size</text>
  308. <image resource="sort_button" />
  309. <action function="set">tw_gui_sort_order=-3</action>
  310. </object>
  311. </template>
  312.  
  313. <template name="action_page_console">
  314. <object type="console">
  315. <placement x="0" y="%row2_y%" w="720" h="470" />
  316. <color foreground="%console_foreground%" background="%console_background%" scroll="%console_scroll%" />
  317. <font resource="fixed" />
  318. </object>
  319. </template>
  320.  
  321. <template name="footer">
  322. <object type="console">
  323. <slideout resource="slideout" x="325" y="1220" />
  324. <placement x="%console_x%" y="0" w="%console_width%" h="1220" />
  325. <color foreground="%console_foreground%" background="%console_background%" scroll="%console_scroll%" />
  326. <font resource="fixed" />
  327. </object>
  328. </template>
  329.  
  330. <template name="keyboardtemplate">
  331. <object type="keyboard">
  332. <placement x="0" y="800" />
  333. <layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
  334. <highlight color="#90909080" />
  335. <layout1>
  336. <keysize height="106" width="72" />
  337. <row1 key01="q" long01="1" key02="w" long02="2" key03="e" long03="3" key04="r" long04="4" key05="t" long05="5" key06="y" long06="6" key07="u" long07="7" key08="i" long08="8" key09="o" long09="9" key10="p" long10="0" />
  338. <row2 key01="108:a" key02="s" key03="d" key04="f" key05="g" key06="h" key07="j" key08="k" key09="108:l" />
  339. <row3 key01="108:layout2" key02="z" key03="x" key04="c" key05="v" key06="b" key07="n" key08="m" key09="108:c:8" />
  340. <row4 key01="100:layout3" key02="130:" key03="260: " key04="65:." key05="165:a:action" />
  341. </layout1>
  342. <layout2>
  343. <keysize height="106" width="72" />
  344. <row1 key01="Q" long01="1" key02="W" long02="2" key03="E" long03="3" key04="R" long04="4" key05="T" long05="5" key06="Y" long06="6" key07="U" long07="7" key08="I" long08="8" key09="O" long09="9" key10="P" long10="0" />
  345. <row2 key01="108:A" key02="S" key03="D" key04="F" key05="G" key06="H" key07="J" key08="K" key09="108:L" />
  346. <row3 key01="108:layout1" key02="Z" key03="X" key04="C" key05="V" key06="B" key07="N" key08="M" key09="108:c:8" />
  347. <row4 key01="100:layout3" key02="130:" key03="260: " key04="65:." key05="165:action" />
  348. </layout2>
  349. <layout3>
  350. <keysize height="106" width="72" />
  351. <row1 key01="1" key02="2" key03="3" key04="4" key05="5" key06="6" key07="7" key08="8" key09="9" key10="0" />
  352. <row2 key01="@" key02="#" key03="$" key04="%" key05="&" key06="*" key07="-" key08="+" key09="(" key10=")" />
  353. <row3 key01="108:layout4" key02="!" key03="72:c:34" key04="'" key05=":" key06=";" key07="/" key08="?" key09="108:c:8" />
  354. <row4 key01="100:layout1" key02="65:" key03="65:," key04="260: " key05="65:." key06="165:action" />
  355. </layout3>
  356. <layout4>
  357. <keysize height="106" width="72" />
  358. <row1 key01="~" key02="`" key03="|" key04="72:" key05="72:" key06="72:" key07="%" key08="72:" key09="{" key10="}" />
  359. <row2 key01="72:" key02="72:" key03="72:" key04="72:" key05="72:" key06="^" key07="_" key08="=" key09="[" key10="]" />
  360. <row3 key01="108:layout3" key02="72:" key03="72:" key04="72:" key05="72:" key06="\" key07="<" key08=">" key09="108:c:8" />
  361. <row4 key01="100:layout1" key02="65:" key03="65:c:34" key04="260: " key05="65:." key06="165:action" />
  362. </layout4>
  363. </object>
  364. </template>
  365. </templates>
  366.  
  367. <pages>
  368. <page name="main">
  369. <object type="action">
  370. <actions>
  371. <action function="set">tw_clear_destination=main2</action>
  372. <action function="page">clear_vars</action>
  373. </actions>
  374. </object>
  375. </page>
  376.  
  377. <page name="main2">
  378. <object type="template" name="header" />
  379.  
  380. <object type="button">
  381. <placement x="%col1_x%" y="%row1_y%" />
  382. <font resource="font" color="%button_text_color%" />
  383. <text>Files</text>
  384. <image resource="main_button" />
  385. <action function="page">files</action>
  386. </object>
  387.  
  388. <object type="button">
  389. <placement x="%col2_x%" y="%row1_y%" />
  390. <font resource="font" color="%button_text_color%" />
  391. <text>Advanced</text>
  392. <image resource="main_button" />
  393. <action function="page">advanced</action>
  394. </object>
  395.  
  396. <object type="button">
  397. <placement x="%col1_x%" y="%row2_y%" />
  398. <font resource="font" color="%button_text_color%" />
  399. <text>Settings</text>
  400. <image resource="main_button" />
  401. <action function="page">settings</action>
  402. </object>
  403.  
  404. <object type="button">
  405. <placement x="%col2_x%" y="%row2_y%" />
  406. <font resource="font" color="%button_text_color%" />
  407. <text>Reboot</text>
  408. <image resource="main_button" />
  409. <action function="page">reboot</action>
  410. </object>
  411.  
  412. <object type="template" name="footer" />
  413. </page>
  414.  
  415. <page name="files">
  416. <object type="template" name="header" />
  417.  
  418. <object type="text" color="%text_color%">
  419. <font resource="font" />
  420. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  421. <text>Files Menu</text>
  422. </object>
  423.  
  424. <object type="button">
  425. <placement x="%col1_x%" y="row1_y%" />
  426. <font resource="font" color="%text_color%" />
  427. <text>Install</text>
  428. <image resource="main_button" />
  429. <action function="page">install</action>
  430. </object>
  431.  
  432. <object type="button">
  433. <placement x="%col2_x%" y="row1_y%" />
  434. <font resource="font" color="%text_color%" />
  435. <text>Wipe</text>
  436. <image resource="main_button" />
  437. <action function="page">wipe</action>
  438. </object>
  439.  
  440. <object type="buttton">
  441. <placement x="%col1_x%" y="row2_y%" />
  442. <font resource="font" color="%text_color%" />
  443. <text>Backup</text>
  444. <image resource="main_button" />
  445. <action function="page">backup</action>
  446. </object>
  447.  
  448. <object type="button">
  449. <placement x="col2_x%" y="row2_y%" />
  450. <font resource="font" color="%text_color%" />
  451. <text>Restore</text>
  452. <image resource="main_button" />
  453. <action function="page">restore</action>
  454. </object>
  455.  
  456. <object type="action">
  457. <touch key="home" />
  458. <action function="page">main</action>
  459. </object>
  460.  
  461. <object type="action">
  462. <touch key="back" />
  463. <action function="page">main</action>
  464. </object>
  465.  
  466. <object type="template" name"footer" />
  467. </page>
  468.  
  469. <page name="advanced">
  470. <object type="template" name="header" />
  471.  
  472. <object type="text" color="%text_color%">
  473. <font resource="font" />
  474. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  475. <text>Advanced Menu</text>
  476. </object>
  477.  
  478. <object type="button">
  479. <placement x="%col1_x%" y="%row1_y%" />
  480. <font resource="font" color="%button_text_color%" />
  481. <text>Copy Log to SD</text>
  482. <image resource="main_button" />
  483. <actions>
  484. <action function="set">tw_back=advanced</action>
  485. <action function="set">tw_action=copylog</action>
  486. <action function="set">tw_text1=Copy Log to SD Card?</action>
  487. <action function="set">tw_action_text1=Copying Log to SD Card...</action>
  488. <action function="set">tw_complete_text1=Log Copy Complete</action>
  489. <action function="set">tw_slider_text=Swipe to Confirm</action>
  490. <action function="page">confirm_action</action>
  491. </actions>
  492. </object>
  493.  
  494. <object type="button">
  495. <placement x="%col2_x%" y="%row1_y%" />
  496. <font resource="font" color="%button_text_color%" />
  497. <text>Fix Permissions</text>
  498. <image resource="main_button" />
  499. <actions>
  500. <action function="set">tw_back=advanced</action>
  501. <action function="set">tw_action=fixpermissions</action>
  502. <action function="set">tw_text1=Fix Permissions?</action>
  503. <action function="set">tw_action_text1=Fixing Permissions...</action>
  504. <action function="set">tw_complete_text1=Fix Permissions Complete</action>
  505. <action function="set">tw_slider_text=Swipe to Confirm</action>
  506. <action function="set">tw_show_reboot=1</action>
  507. <action function="page">confirm_action</action>
  508. </actions>
  509. </object>
  510.  
  511. <object type="button">
  512. <placement x="%col1_x%" y="%row2_y%" />
  513. <font resource="font" color="%button_text_color%" />
  514. <text>Terminal Command</text>
  515. <image resource="main_button" />
  516. <action function="page">terminalfolder</action>
  517. </object>
  518.  
  519. <object type="button">
  520. <condition var1="tw_allow_partition_sdcard" var2="1" />
  521. <placement x="%col2_x%" y="%row2_y%" />
  522. <font resource="font" color="%button_text_color%" />
  523. <text>Partition SD Card</text>
  524. <image resource="main_button" />
  525. <action function="page">partsdcard</action>
  526. </object>
  527.  
  528. <object type="button">
  529. <placement x="%col1_x%" y="%row3_y%" />
  530. <font resource="font" color="%button_text_color%" />
  531. <text>Mounts And Storage</text>
  532. <image resource="main_button" />
  533. <action function="page">mount</action>
  534. </object>
  535.  
  536. <object type="action">
  537. <touch key="home" />
  538. <action function="page">main</action>
  539. </object>
  540.  
  541. <object type="action">
  542. <touch key="back" />
  543. <action function="page">main</action>
  544. </object>
  545.  
  546. <object type="template" name="footer" />
  547. </page>
  548.  
  549. <page name="partsdcard">
  550. <object type="template" name="header" />
  551.  
  552. <object type="text" color="%text_color%">
  553. <font resource="font" />
  554. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  555. <text>Partition SD Card</text>
  556. </object>
  557.  
  558. <object type="button">
  559. <placement x="%col1_x%" y="%row1_y%" />
  560. <font resource="font" color="%button_text_color%" />
  561. <text></text>
  562. <image resource="minus_button" />
  563. <action function="addsubtract">tw_sdext_size-128</action>
  564. </object>
  565.  
  566. <object type="button">
  567. <placement x="%sd_plus_x%" y="%row1_y%" />
  568. <font resource="font" color="%button_text_color%" />
  569. <text></text>
  570. <image resource="plus_button" />
  571. <action function="addsubtract">tw_sdext_size+128</action>
  572. </object>
  573.  
  574. <object type="text" color="%text_color%">
  575. <font resource="font" />
  576. <placement x="%sdext_text_x%" y="%sdext_text_y%" />
  577. <text>EXT Size: %tw_sdext_size%</text>
  578. </object>
  579.  
  580. <object type="button">
  581. <placement x="%col1_x%" y="%sdswap_button_y%" />
  582. <font resource="font" color="%button_text_color%" />
  583. <text></text>
  584. <image resource="minus_button" />
  585. <action function="addsubtract">tw_swap_size-32</action>
  586. </object>
  587.  
  588. <object type="button">
  589. <placement x="%sd_plus_x%" y="%sdswap_button_y%" />
  590. <font resource="font" color="%button_text_color%" />
  591. <text></text>
  592. <image resource="plus_button" />
  593. <action function="addsubtract">tw_swap_size+32</action>
  594. </object>
  595.  
  596. <object type="text" color="%text_color%">
  597. <font resource="font" />
  598. <placement x="%sdswap_text_x%" y="%sdswap_text_y%" />
  599. <text>Swap Size: %tw_swap_size%</text>
  600. </object>
  601.  
  602. <object type="text" color="%text_color%">
  603. <font resource="font" />
  604. <placement x="%col1_x%" y="%sdfilesystem_text_y%" />
  605. <text>File system: %tw_sdpart_file_system%</text>
  606. </object>
  607.  
  608. <object type="button">
  609. <placement x="%col1_x%" y="%sdfilesystem_button_y%" />
  610. <font resource="font" color="%button_text_color%" />
  611. <text>EXT3</text>
  612. <image resource="main_button" />
  613. <action function="set">tw_sdpart_file_system=ext3</action>
  614. </object>
  615.  
  616. <object type="button">
  617. <condition var1="tw_sdext_disable_ext4" var2="0" />
  618. <placement x="%col2_x%" y="%sdfilesystem_button_y%" />
  619. <font resource="font" color="%button_text_color%" />
  620. <text>EXT4</text>
  621. <image resource="main_button" />
  622. <action function="set">tw_sdpart_file_system=ext4</action>
  623. </object>
  624.  
  625. <object type="text" color="%text_color%">
  626. <font resource="font" />
  627. <placement x="%col1_x%" y="%row12_text_y%" />
  628. <text>You will lose all files on your SD card!</text>
  629. </object>
  630.  
  631. <object type="text" color="%text_color%">
  632. <font resource="font" />
  633. <placement x="%col1_x%" y="%row13_text_y%" />
  634. <text>This action cannot be undone!</text>
  635. </object>
  636.  
  637. <object type="slider">
  638. <placement x="%slider_x%" y="%slider_y%" />
  639. <resource base="slider" used="slider-used" touch="slider-touch" />
  640. <action function="page">partsdcardaction</action>
  641. <actions>
  642. <action function="set">tw_back=partsdcard</action>
  643. <action function="set">tw_action=partitionsd</action>
  644. <action function="set">tw_has_action2=1</action>
  645. <action function="set">tw_action2=set</action>
  646. <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
  647. <action function="set">tw_action_text1=Partitioning SD Card...</action>
  648. <action function="set">tw_action_text2=This will take a few minutes.</action>
  649. <action function="set">tw_complete_text1=Partitioning Complete</action>
  650. <action function="page">action_page</action>
  651. </actions>
  652. </object>
  653.  
  654. <object type="text" color="%text_color%">
  655. <font resource="font" />
  656. <placement x="%center_x%" y="%slider_text_y%" placement="4" />
  657. <text>Swipe to Partition</text>
  658. </object>
  659.  
  660. <object type="action">
  661. <touch key="home" />
  662. <action function="page">main</action>
  663. </object>
  664.  
  665. <object type="action">
  666. <touch key="back" />
  667. <action function="page">advanced</action>
  668. </object>
  669.  
  670. <object type="template" name="footer" />
  671. </page>
  672.  
  673. <page name="settings">
  674. <object type="template" name="header" />
  675.  
  676. <object type="text" color="%text_color%">
  677. <font resource="font" />
  678. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  679. <text>Settings</text>
  680. </object>
  681.  
  682. <object type="checkbox">
  683. <placement x="%col1_x%" y="%row1_text_y%" />
  684. <font resource="font" color="%text_color%" />
  685. <text>Zip file signature verification.</text>
  686. <data variable="tw_signed_zip_verify" />
  687. <image checked="checkbox_true" unchecked="checkbox_false" />
  688. </object>
  689.  
  690. <object type="checkbox">
  691. <placement x="%col1_x%" y="%row2_text_y%" />
  692. <font resource="font" color="%text_color%" />
  693. <text>Force MD5 check on all zips.</text>
  694. <data variable="tw_force_md5_check" />
  695. <image checked="checkbox_true" unchecked="checkbox_false" />
  696. </object>
  697.  
  698. <object type="checkbox">
  699. <placement x="%col1_x%" y="%row3_text_y%" />
  700. <font resource="font" color="%text_color%" />
  701. <text>Use rm -rf instead of formatting.</text>
  702. <data variable="tw_rm_rf" />
  703. <image checked="checkbox_true" unchecked="checkbox_false" />
  704. </object>
  705.  
  706. <object type="checkbox">
  707. <placement x="%col1_x%" y="%row4_text_y%" />
  708. <font resource="font" color="%text_color%" />
  709. <text>Skip MD5 generation during backup.</text>
  710. <data variable="tw_skip_md5_generate" />
  711. <image checked="checkbox_true" unchecked="checkbox_false" />
  712. </object>
  713.  
  714. <object type="checkbox">
  715. <placement x="%col1_x%" y="%row5_text_y%" />
  716. <font resource="font" color="%text_color%" />
  717. <text>Enable MD5 verification of backup files.</text>
  718. <data variable="tw_skip_md5_check" />
  719. <image checked="checkbox_true" unchecked="checkbox_false" />
  720. </object>
  721.  
  722. <object type="checkbox">
  723. <placement x="%col1_x%" y="%row6_text_y%" />
  724. <font resource="font" color="%text_color%" />
  725. <text>Ignore image size errors during backup.</text>
  726. <data variable="tw_ignore_image_size" />
  727. <image checked="checkbox_true" unchecked="checkbox_false" />
  728. </object>
  729.  
  730. <object type="checkbox">
  731. <placement x="%col1_x%" y="%row7_text_y%" />
  732. <font resource="font" color="%text_color%" />
  733. <text>Simulate actions for theme testing.</text>
  734. <data variable="tw_simulate_actions" />
  735. <image checked="checkbox_true" unchecked="checkbox_false" />
  736. </object>
  737.  
  738. <object type="checkbox">
  739. <condition var1="tw_simulate_actions" var2="1" />
  740. <placement x="%col1_x%" y="%row8_text_y%" />
  741. <font resource="font" color="%text_color%" />
  742. <text>Simulate failure for actions.</text>
  743. <data variable="tw_simulate_fail" />
  744. <image checked="checkbox_true" unchecked="checkbox_false" />
  745. </object>
  746.  
  747. <object type="button">
  748. <placement x="%col1_x%" y="%row3_y%" />
  749. <font resource="font" color="%button_text_color%" />
  750. <text>Time Zone</text>
  751. <image resource="main_button" />
  752. <action function="page">timezone</action>
  753. </object>
  754.  
  755. <object type="button">
  756. <placement x="%col_center_x%" y="%row4_y%" />
  757. <font resource="font" color="%button_text_color%" />
  758. <text>Restore Defaults</text>
  759. <image resource="main_button" />
  760. <action function="restoredefaultsettings"></action>
  761. </object>
  762.  
  763. <object type="action">
  764. <touch key="home" />
  765. <action function="page">main</action>
  766. </object>
  767.  
  768. <object type="action">
  769. <touch key="back" />
  770. <action function="page">main</action>
  771. </object>
  772.  
  773. <object type="template" name="footer" />
  774. </page>
  775.  
  776. <page name="timezone">
  777. <object type="template" name="header" />
  778.  
  779. <object type="text" color="%text_color%">
  780. <font resource="font" />
  781. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  782. <text>Select Time Zone</text>
  783. </object>
  784.  
  785. <object type="listbox">
  786. <placement x="%listbox_x%" y="%row1_y%" w="%listbox_width%" h="%listbox_tz_height%" />
  787. <icon selected="radio_true" unselected="radio_false" />
  788. <background color="%listbox_background%" />
  789. <font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
  790. <data name="tw_time_zone_guisel" />
  791. <listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
  792. <listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
  793. <listitem name="(UTC -9) Alaska">AST9;ADT</listitem>
  794. <listitem name="(UTC -8) Pacific Time">PST8;PDT</listitem>
  795. <listitem name="(UTC -7) Mountain Time">MST7;MDT</listitem>
  796. <listitem name="(UTC -6) Central Time">CST6;CDT</listitem>
  797. <listitem name="(UTC -5) Eastern Time">EST5;EDT</listitem>
  798. <listitem name="(UTC -4) Atlantic Time">AST4;ADT</listitem>
  799. <listitem name="(UTC -3) Brazil, Buenos Aires">GRNLNDST3;GRNLNDDT</listitem>
  800. <listitem name="(UTC -2) Mid-Atlantic">FALKST2;FALKDT</listitem>
  801. <listitem name="(UTC -1) Azores, Cape Verde">AZOREST1;AZOREDT</listitem>
  802. <listitem name="(UTC 0) London, Dublin, Lisbon">GMT0;BST</listitem>
  803. <listitem name="(UTC +1) Berlin, Brussels, Paris">NFT-1;DFT</listitem>
  804. <listitem name="(UTC +2) Athens, Istanbul, South Africa">WET-2;WET</listitem>
  805. <listitem name="(UTC +3) Moscow, Baghdad">SAUST-3;SAUDT</listitem>
  806. <listitem name="(UTC +4) Abu Dhabi, Tbilisi, Muscat">WST-4;WDT</listitem>
  807. <listitem name="(UTC +5) Yekaterinburg, Islamabad">PAKST-5;PAKDT</listitem>
  808. <listitem name="(UTC +6) Almaty, Dhaka, Colombo">TASHST-6;TASHDT</listitem>
  809. <listitem name="(UTC +7) Bangkok, Hanoi, Jakarta">THAIST-7;THAIDT</listitem>
  810. <listitem name="(UTC +8) Beijing, Singapore, Hong Kong">TAIST-8;TAIDT</listitem>
  811. <listitem name="(UTC +9) Tokyo, Seoul, Yakutsk">JST-9;JSTDT</listitem>
  812. <listitem name="(UTC +10) Eastern Australia, Guam">EET-10;EETDT</listitem>
  813. <listitem name="(UTC +11) Vladivostok, Solomon Islands">MET-11;METDT</listitem>
  814. <listitem name="(UTC +12) Auckland, Wellington, Fiji">NZST-12;NZDT</listitem>
  815. </object>
  816.  
  817. <object type="checkbox">
  818. <placement x="%col1_x%" y="%row_dst_text_y%" />
  819. <font resource="font" color="%text_color%" />
  820. <text>Do you use daylight savings time (DST)?</text>
  821. <data variable="tw_time_zone_guidst" />
  822. <image checked="checkbox_true" unchecked="checkbox_false" />
  823. </object>
  824.  
  825. <object type="text" color="%text_color%">
  826. <font resource="font" />
  827. <placement x="%center_x%" y="%row_offset_text_y%" placement="5" />
  828. <text>Offset (usually 0): %tw_time_zone_guioffset%</text>
  829. </object>
  830.  
  831. <object type="button">
  832. <placement x="%col1_medium_x%" y="%row_offset_medium_y%" />
  833. <font resource="font" color="%button_text_color%" />
  834. <text>None</text>
  835. <image resource="medium_button" />
  836. <action function="set">tw_time_zone_guioffset=0</action>
  837. </object>
  838.  
  839. <object type="button">
  840. <placement x="%col2_medium_x%" y="%row_offset_medium_y%" />
  841. <font resource="font" color="%button_text_color%" />
  842. <text>15</text>
  843. <image resource="medium_button" />
  844. <action function="set">tw_time_zone_guioffset=15</action>
  845. </object>
  846.  
  847. <object type="button">
  848. <placement x="%col3_medium_x%" y="%row_offset_medium_y%" />
  849. <font resource="font" color="%button_text_color%" />
  850. <text>30</text>
  851. <image resource="medium_button" />
  852. <action function="set">tw_time_zone_guioffset=30</action>
  853. </object>
  854.  
  855. <object type="button">
  856. <placement x="%col4_medium_x%" y="%row_offset_medium_y%" />
  857. <font resource="font" color="%button_text_color%" />
  858. <text>45</text>
  859. <image resource="medium_button" />
  860. <action function="set">tw_time_zone_guioffset=45</action>
  861. </object>
  862.  
  863. <object type="button">
  864. <placement x="%col_center_x%" y="%tz_set_y%" />
  865. <font resource="font" color="%button_text_color%" />
  866. <text>Set Time Zone</text>
  867. <image resource="main_button" />
  868. <action function="setguitimezone"></action>
  869. </object>
  870.  
  871. <object type="text" color="%text_color%">
  872. <font resource="font" />
  873. <placement x="%center_x%" y="%tz_current_y%" placement="5" />
  874. <text>Current Time Zone: %tw_time_zone%</text>
  875. </object>
  876.  
  877. <object type="action">
  878. <touch key="home" />
  879. <action function="page">main</action>
  880. </object>
  881.  
  882. <object type="action">
  883. <touch key="back" />
  884. <action function="page">settings</action>
  885. </object>
  886.  
  887. <object type="template" name="footer" />
  888. </page>
  889.  
  890. <page name="reboot">
  891. <object type="template" name="header" />
  892.  
  893. <object type="text" color="%text_color%">
  894. <font resource="font" />
  895. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  896. <text>Reboot Menu</text>
  897. </object>
  898.  
  899. <object type="button">
  900. <condition var1="tw_reboot_system" var2="1" />
  901. <placement x="%col1_x%" y="%row1_y%" />
  902. <font resource="font" color="%button_text_color%" />
  903. <text>System</text>
  904. <image resource="main_button" />
  905. <actions>
  906. <action function="set">tw_back=reboot</action>
  907. <action function="set">tw_action=reboot</action>
  908. <action function="set">tw_action_param=system</action>
  909. <action function="set">tw_has_action2=0</action>
  910. <action function="set">tw_text1=No OS Installed! Are you</action>
  911. <action function="set">tw_text2=sure you wish to reboot?</action>
  912. <action function="set">tw_action_text1=Rebooting...</action>
  913. <action function="set">tw_complete_text1=Rebooting...</action>
  914. <action function="set">tw_slider_text=Swipe to Reboot</action>
  915. <action function="page">rebootcheck</action>
  916. </actions>
  917. </object>
  918.  
  919. <object type="button">
  920. <condition var1="tw_reboot_poweroff" var2="1" />
  921. <placement x="%col2_x%" y="%row1_y%" />
  922. <font resource="font" color="%button_text_color%" />
  923. <text>Power Off</text>
  924. <image resource="main_button" />
  925. <actions>
  926. <action function="set">tw_back=reboot</action>
  927. <action function="set">tw_action=reboot</action>
  928. <action function="set">tw_action_param=poweroff</action>
  929. <action function="set">tw_has_action2=0</action>
  930. <action function="set">tw_text1=No OS Installed! Are you</action>
  931. <action function="set">tw_text2=sure you wish to power off?</action>
  932. <action function="set">tw_action_text1=Turning Off...</action>
  933. <action function="set">tw_complete_text1=Turning Off...</action>
  934. <action function="set">tw_slider_text=Swipe to Power Off</action>
  935. <action function="page">rebootcheck</action>
  936. </actions>
  937. </object>
  938.  
  939. <object type="button">
  940. <condition var1="tw_reboot_recovery" var2="1" />
  941. <placement x="%col1_x%" y="%row2_y%" />
  942. <font resource="font" color="%button_text_color%" />
  943. <text>Recovery</text>
  944. <image resource="main_button" />
  945. <actions>
  946. <action function="set">tw_back=reboot</action>
  947. <action function="set">tw_action=reboot</action>
  948. <action function="set">tw_action_param=recovery</action>
  949. <action function="set">tw_has_action2=0</action>
  950. <action function="set">tw_text1=No OS Installed! Are you</action>
  951. <action function="set">tw_text2=sure you wish to reboot?</action>
  952. <action function="set">tw_action_text1=Rebooting...</action>
  953. <action function="set">tw_complete_text1=Rebooting...</action>
  954. <action function="set">tw_slider_text=Swipe to Reboot</action>
  955. <action function="page">rebootcheck</action>
  956. </actions>
  957. </object>
  958.  
  959. <object type="button">
  960. <condition var1="tw_reboot_bootloader" var2="1" />
  961. <placement x="%col2_x%" y="%row2_y%" />
  962. <font resource="font" color="%button_text_color%" />
  963. <text>Bootloader</text>
  964. <image resource="main_button" />
  965. <actions>
  966. <action function="set">tw_back=reboot</action>
  967. <action function="set">tw_action=reboot</action>
  968. <action function="set">tw_action_param=bootloader</action>
  969. <action function="set">tw_has_action2=0</action>
  970. <action function="set">tw_text1=No OS Installed! Are you</action>
  971. <action function="set">tw_text2=sure you wish to reboot?</action>
  972. <action function="set">tw_action_text1=Rebooting...</action>
  973. <action function="set">tw_complete_text1=Rebooting...</action>
  974. <action function="set">tw_slider_text=Swipe to Reboot</action>
  975. <action function="page">rebootcheck</action>
  976. </actions>
  977. </object>
  978.  
  979. <object type="button">
  980. <condition var1="tw_download_mode" var2="1" />
  981. <placement x="%col1_x%" y="%row3_y%" />
  982. <font resource="font" color="%button_text_color%" />
  983. <text>Download</text>
  984. <image resource="main_button" />
  985. <actions>
  986. <action function="set">tw_back=reboot</action>
  987. <action function="set">tw_action=reboot</action>
  988. <action function="set">tw_action_param=download</action>
  989. <action function="set">tw_has_action2=0</action>
  990. <action function="set">tw_text1=No OS Installed! Are you</action>
  991. <action function="set">tw_text2=sure you wish to reboot?</action>
  992. <action function="set">tw_action_text1=Rebooting...</action>
  993. <action function="set">tw_complete_text1=Rebooting...</action>
  994. <action function="set">tw_slider_text=Swipe to Reboot</action>
  995. <action function="page">rebootcheck</action>
  996. </actions>
  997. </object>
  998.  
  999. <object type="action">
  1000. <touch key="home" />
  1001. <action function="page">main</action>
  1002. </object>
  1003.  
  1004. <object type="action">
  1005. <touch key="back" />
  1006. <action function="page">main</action>
  1007. </object>
  1008.  
  1009. <object type="template" name="footer" />
  1010. </page>
  1011.  
  1012. <page name="confirm_action">
  1013. <object type="template" name="header" />
  1014.  
  1015. <object type="button">
  1016. <condition var1="tw_show_exclamation" var2="1" />
  1017. <placement x="%exclamation_x%" y="%exclamation_y%" />
  1018. <font resource="font" color="%button_text_color%" />
  1019. <text></text>
  1020. <image resource="exclamation" />
  1021. </object>
  1022.  
  1023. <object type="text" color="%text_color%">
  1024. <font resource="font" />
  1025. <placement x="%center_x%" y="%row1_text_y%" placement="5" />
  1026. <text>%tw_text1%</text>
  1027. </object>
  1028.  
  1029. <object type="text" color="%text_color%">
  1030. <font resource="font" />
  1031. <placement x="%center_x%" y="%row2_text_y%" placement="5" />
  1032. <text>%tw_text2%</text>
  1033. </object>
  1034.  
  1035. <object type="text" color="%text_color%">
  1036. <font resource="font" />
  1037. <placement x="%center_x%" y="%row3_text_y%" placement="5" />
  1038. <text>%tw_text3%</text>
  1039. </object>
  1040.  
  1041. <object type="text" color="%text_color%">
  1042. <font resource="font" />
  1043. <placement x="%center_x%" y="%row4_text_y%" placement="5" />
  1044. <text>%tw_text4%</text>
  1045. </object>
  1046.  
  1047. <object type="text" color="%text_color%">
  1048. <font resource="font" />
  1049. <placement x="%center_x%" y="%row15_text_y%" placement="5" />
  1050. <text>Press back button to cancel.</text>
  1051. </object>
  1052.  
  1053. <object type="slider">
  1054. <placement x="%slider_x%" y="%slider_y%" />
  1055. <resource base="slider" used="slider-used" touch="slider-touch" />
  1056. <action function="page">action_page</action>
  1057. </object>
  1058.  
  1059. <object type="text" color="%text_color%">
  1060. <font resource="font" />
  1061. <placement x="%center_x%" y="%slider_text_y%" placement="4" />
  1062. <text>%tw_slider_text%</text>
  1063. </object>
  1064.  
  1065. <object type="action">
  1066. <touch key="back" />
  1067. <actions>
  1068. <action function="set">tw_clear_destination=%tw_back%</action>
  1069. <action function="page">clear_vars</action>
  1070. </actions>
  1071. </object>
  1072.  
  1073. <object type="action">
  1074. <touch key="home" />
  1075. <action function="page">main</action>
  1076. </object>
  1077.  
  1078. <object type="template" name="footer" />
  1079. </page>
  1080.  
  1081. <page name="action_page">
  1082. <object type="template" name="header" />
  1083.  
  1084. <object type="text" color="%text_color%">
  1085. <font resource="font" />
  1086. <placement x="%center_x%" y="%row1_text_y%" placement="5" />
  1087. <text>%tw_action_text1%</text>
  1088. </object>
  1089.  
  1090. <object type="text" color="%text_color%">
  1091. <font resource="font" />
  1092. <placement x="%center_x%" y="%row2_text_y%" placement="5" />
  1093. <text>%tw_action_text2%</text>
  1094. </object>
  1095.  
  1096. <object type="template" name="action_page_console" />
  1097.  
  1098. <object type="button">
  1099. <condition var1="tw_has_cancel" var2="1" />
  1100. <placement x="%col_center_medium_x%" y="%row4_y%" />
  1101. <font resource="font" color="%button_text_color%" />
  1102. <text>Cancel</text>
  1103. <image resource="medium_button" />
  1104. <action function="%tw_cancel_action%">%tw_cancel_param%</action>
  1105. </object>
  1106.  
  1107. <object type="template" name="progress_bar" />
  1108.  
  1109. <object type="action">
  1110. <condition var1="tw_operation_state" var2="1" />
  1111. <actions>
  1112. <action function="page">action_complete</action>
  1113. </actions>
  1114. </object>
  1115.  
  1116. <object type="action">
  1117. <condition var1="tw_has_action2" var2="0" />
  1118. <actions>
  1119. <action function="%tw_action%">%tw_action_param%</action>
  1120. </actions>
  1121. </object>
  1122.  
  1123. <object type="action">
  1124. <condition var1="tw_has_action2" var2="1" />
  1125. <actions>
  1126. <action function="%tw_action%">%tw_action_param%</action>
  1127. <action function="%tw_action2%">%tw_action2_param%</action>
  1128. </actions>
  1129. </object>
  1130. </page>
  1131.  
  1132. <page name="action_complete">
  1133. <object type="template" name="header" />
  1134.  
  1135. <object type="text" color="%text_color%">
  1136. <font resource="font" />
  1137. <placement x="%center_x%" y="%row1_text_y%" placement="5" />
  1138. <text>%tw_complete_text1%</text>
  1139. </object>
  1140.  
  1141. <object type="text" color="%text_fail_color%">
  1142. <condition var1="tw_operation_status" op="!=" var2="0" />
  1143. <font resource="font" />
  1144. <placement x="%center_x%" y="%row2_text_y%" placement="5" />
  1145. <text>Failed</text>
  1146. </object>
  1147.  
  1148. <object type="text" color="%text_success_color%">
  1149. <condition var1="tw_operation_status" var2="0" />
  1150. <font resource="font" />
  1151. <placement x="%center_x%" y="%row2_text_y%" placement="5" />
  1152. <text>Successful</text>
  1153. </object>
  1154.  
  1155. <object type="template" name="action_page_console" />
  1156.  
  1157. <object type="button">
  1158. <condition var1="tw_show_reboot" var2="0" />
  1159. <placement x="%col_center_x%" y="%row4_y%" />
  1160. <font resource="font" color="%button_text_color%" />
  1161. <text>Back</text>
  1162. <image resource="main_button" />
  1163. <actions>
  1164. <action function="set">tw_clear_destination=%tw_back%</action>
  1165. <action function="page">clear_vars</action>
  1166. </actions>
  1167. </object>
  1168.  
  1169. <object type="button">
  1170. <condition var1="tw_show_reboot" var2="1" />
  1171. <placement x="%col_center_x%" y="%row4_y%" />
  1172. <font resource="font" color="%button_text_color%" />
  1173. <text>Reboot System</text>
  1174. <image resource="main_button" />
  1175. <actions>
  1176. <action function="set">tw_back=main2</action>
  1177. <action function="set">tw_action=reboot</action>
  1178. <action function="set">tw_action_param=system</action>
  1179. <action function="set">tw_has_action2=0</action>
  1180. <action function="set">tw_text1=No OS Installed! Are you</action>
  1181. <action function="set">tw_text2=sure you wish to reboot?</action>
  1182. <action function="set">tw_text3=</action>
  1183. <action function="set">tw_text4=</action>
  1184. <action function="set">tw_action_text1=Rebooting...</action>
  1185. <action function="set">tw_action_text2=</action>
  1186. <action function="set">tw_complete_text1=Rebooting...</action>
  1187. <action function="set">tw_slider_text=Swipe to Reboot</action>
  1188. <action function="page">rebootcheck</action>
  1189. </actions>
  1190. </object>
  1191.  
  1192. <object type="action">
  1193. <touch key="home" />
  1194. <actions>
  1195. <action function="set">tw_clear_destination=main2</action>
  1196. <action function="page">clear_vars</action>
  1197. </actions>
  1198. </object>
  1199.  
  1200. <object type="action">
  1201. <touch key="back" />
  1202. <actions>
  1203. <action function="set">tw_clear_destination=%tw_back%</action>
  1204. <action function="page">clear_vars</action>
  1205. </actions>
  1206. </object>
  1207. </page>
  1208.  
  1209. <page name="filecheck">
  1210. <object type="action">
  1211. <action function="fileexists">%tw_filecheck%</action>
  1212. </object>
  1213.  
  1214. <object type="action">
  1215. <conditions>
  1216. <condition var1="tw_operation_state" var2="1" />
  1217. <condition var1="tw_operation_status" var2="0" />
  1218. </conditions>
  1219. <actions>
  1220. <action function="set">tw_fileexists=1</action>
  1221. <action function="page">%tw_existpage%</action>
  1222. </actions>
  1223. </object>
  1224.  
  1225. <object type="action">
  1226. <conditions>
  1227. <condition var1="tw_operation_state" var2="1" />
  1228. <condition var1="tw_operation_status" var2="1" />
  1229. </conditions>
  1230. <actions>
  1231. <action function="set">tw_fileexists=0</action>
  1232. <action function="page">%tw_notexistpage%</action>
  1233. </actions>
  1234. </object>
  1235. </page>
  1236.  
  1237. <page name="rebootcheck">
  1238. <object type="action">
  1239. <condition var1="tw_backup_system_size" op=">=" var2="%tw_min_system%" />
  1240. <action function="reboot">%tw_action_param%</action>
  1241. </object>
  1242.  
  1243. <object type="action">
  1244. <condition var1="tw_backup_system_size" op="<" var2="%tw_min_system%" />
  1245. <action function="page">confirm_action</action>
  1246. </object>
  1247. </page>
  1248.  
  1249. <page name="wipe">
  1250. <object type="template" name="header" />
  1251.  
  1252. <object type="text" color="%text_color%">
  1253. <font resource="font" />
  1254. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  1255. <text>Wipe Menu</text>
  1256. </object>
  1257.  
  1258. <object type="button">
  1259. <placement x="%col1_x%" y="%row1_y%" />
  1260. <font resource="font" color="%button_text_color%" />
  1261. <text>Cache</text>
  1262. <image resource="main_button" />
  1263. <actions>
  1264. <action function="set">tw_back=wipe</action>
  1265. <action function="set">tw_action=wipe</action>
  1266. <action function="set">tw_action_param=/cache</action>
  1267. <action function="set">tw_text1=Wipe Cache?</action>
  1268. <action function="set">tw_action_text1=Wiping Cache...</action>
  1269. <action function="set">tw_complete_text1=Cache Wipe Complete</action>
  1270. <action function="set">tw_slider_text=Swipe to Wipe</action>
  1271. <action function="page">confirm_action</action>
  1272. </actions>
  1273. </object>
  1274.  
  1275. <object type="button">
  1276. <placement x="%col2_x%" y="%row1_y%" />
  1277. <font resource="font" color="%button_text_color%" />
  1278. <text>Dalvik Cache</text>
  1279. <image resource="main_button" />
  1280. <actions>
  1281. <action function="set">tw_back=wipe</action>
  1282. <action function="set">tw_action=wipe</action>
  1283. <action function="set">tw_action_param=dalvik</action>
  1284. <action function="set">tw_text1=Wipe Dalvik-Cache?</action>
  1285. <action function="set">tw_action_text1=Wiping Dalvik-Cache...</action>
  1286. <action function="set">tw_complete_text1=Dalvik-Cache Wipe Complete</action>
  1287. <action function="set">tw_slider_text=Swipe to Wipe</action>
  1288. <action function="page">confirm_action</action>
  1289. </actions>
  1290. </object>
  1291.  
  1292. <object type="button">
  1293. <placement x="%col1_x%" y="%row2_y%" />
  1294. <font resource="font" color="%button_text_color%" />
  1295. <text>Factory Reset</text>
  1296. <image resource="main_button" />
  1297. <actions>
  1298. <action function="set">tw_back=wipe</action>
  1299. <action function="set">tw_action=wipe</action>
  1300. <action function="set">tw_action_param=data</action>
  1301. <action function="set">tw_text1=Factory Reset?</action>
  1302. <action function="set">tw_text2=(Wipes Data and Cache)</action>
  1303. <action function="set">tw_action_text1=Factory Reset...</action>
  1304. <action function="set">tw_complete_text1=Factory Reset Complete</action>
  1305. <action function="set">tw_slider_text=Swipe to Wipe</action>
  1306. <action function="page">confirm_action</action>
  1307. </actions>
  1308. </object>
  1309.  
  1310. <object type="button">
  1311. <placement x="%col2_x%" y="%row2_y%" />
  1312. <font resource="font" color="%button_text_color%" />
  1313. <text>System</text>
  1314. <image resource="main_button" />
  1315. <actions>
  1316. <action function="set">tw_back=wipe</action>
  1317. <action function="set">tw_action=wipe</action>
  1318. <action function="set">tw_action_param=/system</action>
  1319. <action function="set">tw_text1=Wipe System?</action>
  1320. <action function="set">tw_text2=This will wipe your ROM</action>
  1321. <action function="set">tw_action_text1=Wiping System...</action>
  1322. <action function="set">tw_complete_text1=System Wipe Complete</action>
  1323. <action function="set">tw_slider_text=Swipe to Wipe</action>
  1324. <action function="page">confirm_action</action>
  1325. </actions>
  1326. </object>
  1327.  
  1328. <object type="button">
  1329. <condition var1="tw_has_external" var2="1" />
  1330. <placement x="%col1_x%" y="%row3_y%" />
  1331. <font resource="font" color="%button_text_color%" />
  1332. <text>External Storage</text>
  1333. <image resource="main_button" />
  1334. <actions>
  1335. <action function="set">tw_back=wipe</action>
  1336. <action function="set">tw_action=wipe</action>
  1337. <action function="set">tw_action_param=EXTERNAL</action>
  1338. <action function="set">tw_has_action2=1</action>
  1339. <action function="set">tw_action2=set</action>
  1340. <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
  1341. <action function="set">tw_text1=Wipe External Storage (SD Card)?</action>
  1342. <action function="set">tw_action_text1=Wiping External Storage...</action>
  1343. <action function="set">tw_complete_text1=External Storage Wipe Complete</action>
  1344. <action function="set">tw_slider_text=Swipe to Wipe</action>
  1345. <action function="page">confirm_action</action>
  1346. </actions>
  1347. </object>
  1348.  
  1349. <object type="button">
  1350. <condition var1="tw_has_internal" var2="1" />
  1351. <placement x="%col2_x%" y="%row3_y%" />
  1352. <font resource="font" color="%button_text_color%" />
  1353. <text>Internal Storage</text>
  1354. <image resource="main_button" />
  1355. <actions>
  1356. <action function="set">tw_back=wipe</action>
  1357. <action function="set">tw_action=wipe</action>
  1358. <action function="set">tw_action_param=INTERNAL</action>
  1359. <action function="set">tw_has_action2=1</action>
  1360. <action function="set">tw_action2=set</action>
  1361. <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
  1362. <action function="set">tw_text1=Wipe Internal Storage?</action>
  1363. <action function="set">tw_action_text1=Wiping Internal Storage...</action>
  1364. <action function="set">tw_complete_text1=Internal Storage Wipe Complete</action>
  1365. <action function="set">tw_slider_text=Swipe to Wipe</action>
  1366. <action function="page">confirm_action</action>
  1367. </actions>
  1368. </object>
  1369.  
  1370. <object type="button">
  1371. <conditions>
  1372. <condition var1="tw_has_internal" var2="1" />
  1373. <condition var1="tw_has_data_media" var2="1" />
  1374. </conditions>
  1375. <placement x="%col1_x%" y="%row4_y%" />
  1376. <font resource="font" color="%button_text_color%" />
  1377. <text>Format Data</text>
  1378. <image resource="main_button" />
  1379. <actions>
  1380. <action function="set">tw_back=wipe</action>
  1381. <action function="set">tw_action=wipe</action>
  1382. <action function="set">tw_action_param=DATAMEDIA</action>
  1383. <action function="set">tw_has_action2=1</action>
  1384. <action function="set">tw_action2=set</action>
  1385. <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
  1386. <action function="set">tw_text1=Format Data? (This wipes all internal storage</action>
  1387. <action function="set">tw_text2=including backups & removes encryption)</action>
  1388. <action function="set">tw_text3=Most of the time you do not need to do this.</action>
  1389. <action function="set">tw_action_text1=Formatting Data...</action>
  1390. <action function="set">tw_complete_text1=Data Format Complete</action>
  1391. <action function="set">tw_slider_text=Swipe to Format</action>
  1392. <action function="set">tw_show_exclamation=1</action>
  1393. <action function="page">confirm_action</action>
  1394. </actions>
  1395. </object>
  1396.  
  1397. <object type="button">
  1398. <condition var1="tw_has_data_media" var2="0" />
  1399. <placement x="%col1_x%" y="%row4_y%" />
  1400. <font resource="font" color="%button_text_color%" />
  1401. <text>Android Secure</text>
  1402. <image resource="main_button" />
  1403. <actions>
  1404. <action function="set">tw_back=wipe</action>
  1405. <action function="set">tw_action=wipe</action>
  1406. <action function="set">tw_action_param=ANDROIDSECURE</action>
  1407. <action function="set">tw_text1=Wipe Android Secure?</action>
  1408. <action function="set">tw_action_text1=Wiping Android Secure...</action>
  1409. <action function="set">tw_complete_text1=Wipe Android Secure Complete</action>
  1410. <action function="set">tw_slider_text=Swipe to Format</action>
  1411. <action function="page">confirm_action</action>
  1412. </actions>
  1413. </object>
  1414.  
  1415. <object type="button">
  1416. <condition var1="tw_has_sdext_partition" var2="1" />
  1417. <placement x="%col2_x%" y="%row4_y%" />
  1418. <font resource="font" color="%button_text_color%" />
  1419. <text>SD Ext</text>
  1420. <image resource="main_button" />
  1421. <actions>
  1422. <action function="set">tw_back=wipe</action>
  1423. <action function="set">tw_action=wipe</action>
  1424. <action function="set">tw_action_param=/sd-ext</action>
  1425. <action function="set">tw_text1=Wipe SD-Ext?</action>
  1426. <action function="set">tw_action_text1=Wiping SD-Ext...</action>
  1427. <action function="set">tw_complete_text1=SD-Ext Wipe Complete</action>
  1428. <action function="set">tw_slider_text=Swipe to Wipe</action>
  1429. <action function="page">confirm_action</action>
  1430. </actions>
  1431. </object>
  1432.  
  1433. <object type="action">
  1434. <touch key="home" />
  1435. <action function="page">main</action>
  1436. </object>
  1437.  
  1438. <object type="action">
  1439. <touch key="back" />
  1440. <action function="page">main</action>
  1441. </object>
  1442.  
  1443. <object type="template" name="footer" />
  1444. </page>
  1445.  
  1446. <page name="backup">
  1447. <object type="template" name="header" />
  1448.  
  1449. <object type="text" color="%text_color%">
  1450. <font resource="font" />
  1451. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  1452. <text>Backup Name: %tw_backup_name%</text>
  1453. </object>
  1454.  
  1455. <object type="text" color="%text_color%">
  1456. <placement x="%col1_x%" y="%row1_text_y%" />
  1457. <font resource="font" />
  1458. <text>Backup Device</text>
  1459. </object>
  1460.  
  1461. <object type="slider">
  1462. <placement x="%slider_x%" y="slider_y" />
  1463. <resource base="slider" used="slider-used" touch="slider-touch" />
  1464. <action function="page">backup_run</action>
  1465. </object>
  1466.  
  1467. <object type="text" color="%text_color%">
  1468. <font resource="font" />
  1469. <placement x="%center_x%" y="%slider_text_y%" placement="4" />
  1470. <text>Swipe to Back Up</text>
  1471. </object>
  1472.  
  1473. <object type="button">
  1474. <placement x="%col2_x%" y="%row1_y%" />
  1475. <font resource="font" color="%button_text_color%" />
  1476. <text>Refresh Sizes</text>
  1477. <image resource="main_button" />
  1478. <action function="refreshsizes"></action>
  1479. </object>
  1480.  
  1481. <object type="button">
  1482. <placement x="%col2_x%" y="%backup_name_y%" />
  1483. <font resource="font" color="%button_text_color%" />
  1484. <text>Set Backup Name</text>
  1485. <image resource="main_button" />
  1486. <actions>
  1487. <action function="set">tw_fileexists=0</action>
  1488. <action function="page">backupname1</action>
  1489. </actions>
  1490. </object>
  1491.  
  1492. <object type="checkbox">
  1493. <placement x="%col1_x%" y="%row2_text_y%" />
  1494. <font resource="font" color="%text_color%" />
  1495. <text>System (%tw_backup_system_size% MB)</text>
  1496. <data variable="tw_backup_system" />
  1497. <image checked="checkbox_true" unchecked="checkbox_false" />
  1498. </object>
  1499.  
  1500. <object type="checkbox">
  1501. <placement x="%col1_x%" y="%row3_text_y%" />
  1502. <font resource="font" color="%text_color%" />
  1503. <text>Data (%tw_backup_data_size% MB)</text>
  1504. <data variable="tw_backup_data" />
  1505. <image checked="checkbox_true" unchecked="checkbox_false" />
  1506. </object>
  1507.  
  1508. <object type="checkbox">
  1509. <condition var1="tw_has_boot_partition" var2="1" />
  1510. <placement x="%col1_x%" y="%row4_text_y%" />
  1511. <font resource="font" color="%text_color%" />
  1512. <text>Boot (%tw_backup_boot_size% MB)</text>
  1513. <data variable="tw_backup_boot" />
  1514. <image checked="checkbox_true" unchecked="checkbox_false" />
  1515. </object>
  1516.  
  1517. <object type="checkbox">
  1518. <condition var1="tw_has_recovery_partition" var2="1" />
  1519. <placement x="%col1_x%" y="%row5_text_y%" />
  1520. <font resource="font" color="%text_color%" />
  1521. <text>Recovery (%tw_backup_recovery_size% MB)</text>
  1522. <data variable="tw_backup_recovery" />
  1523. <image checked="checkbox_true" unchecked="checkbox_false" />
  1524. </object>
  1525.  
  1526. <object type="checkbox">
  1527. <placement x="%col1_x%" y="%row6_text_y%" />
  1528. <font resource="font" color="%text_color%" />
  1529. <text>Cache (%tw_backup_cache_size% MB)</text>
  1530. <data variable="tw_backup_cache" />
  1531. <image checked="checkbox_true" unchecked="checkbox_false" />
  1532. </object>
  1533.  
  1534. <object type="checkbox">
  1535. <condition var1="tw_has_android_secure" var2="1" />
  1536. <placement x="%col1_x%" y="%row7_text_y%" />
  1537. <font resource="font" color="%text_color%" />
  1538. <text>.android_secure (%tw_backup_andsec_size% MB)</text>
  1539. <condition var1="fileexists" var2="/sdcard/.android_secure" />
  1540. <data variable="tw_backup_andsec" />
  1541. <image checked="checkbox_true" unchecked="checkbox_false" />
  1542. </object>
  1543.  
  1544. <object type="checkbox">
  1545. <condition var1="tw_has_sdext_partition" var2="1" />
  1546. <placement x="%col1_x%" y="%row8_text_y%" />
  1547. <font resource="font" color="%text_color%" />
  1548. <text>sd-ext (%tw_backup_sdext_size% MB)</text>
  1549. <condition var1="fileexists" var2="/sd-ext" />
  1550. <data variable="tw_backup_sdext" />
  1551. <image checked="checkbox_true" unchecked="checkbox_false" />
  1552. </object>
  1553.  
  1554. <object type="checkbox">
  1555. <condition var1="tw_sp1_name" op=">" var2="" />
  1556. <placement x="%col1_x%" y="%row9_text_y%" />
  1557. <font resource="font" color="%text_color%" />
  1558. <text>%tw_sp1_name% (%tw_backup_sp1_size% MB)</text>
  1559. <data variable="tw_backup_sp1" />
  1560. <image checked="checkbox_true" unchecked="checkbox_false" />
  1561. </object>
  1562.  
  1563. <object type="checkbox">
  1564. <condition var1="tw_sp2_name" op=">" var2="" />
  1565. <placement x="%col1_x%" y="%row10_text_y%" />
  1566. <font resource="font" color="%text_color%" />
  1567. <text>%tw_sp2_name% (%tw_backup_sp2_size% MB)</text>
  1568. <data variable="tw_backup_sp2" />
  1569. <image checked="checkbox_true" unchecked="checkbox_false" />
  1570. </object>
  1571.  
  1572. <object type="checkbox">
  1573. <condition var1="tw_sp3_name" op=">" var2="" />
  1574. <placement x="%col1_x%" y="%row11_text_y%" />
  1575. <font resource="font" color="%text_color%" />
  1576. <text>%tw_sp3_name% (%tw_backup_sp3_size% MB)</text>
  1577. <data variable="tw_backup_sp3" />
  1578. <image checked="checkbox_true" unchecked="checkbox_false" />
  1579. </object>
  1580.  
  1581. <object type="text" color="%text_color%">
  1582. <font resource="font" />
  1583. <placement x="%col1_x%" y="%row13_text_y%" />
  1584. <text>Free Space: %tw_storage_free_size% MB</text>
  1585. </object>
  1586.  
  1587. <object type="checkbox">
  1588. <placement x="%col1_x%" y="%row14_text_y%" />
  1589. <font resource="font" color="%text_color%" />
  1590. <text>Enable compression.</text>
  1591. <data variable="tw_use_compression" />
  1592. <image checked="checkbox_true" unchecked="checkbox_false" />
  1593. </object>
  1594.  
  1595. <object type="checkbox">
  1596. <placement x="%col1_x%" y="%row15_text_y%" />
  1597. <font resource="font" color="%text_color%" />
  1598. <text>Skip MD5 generation during backup.</text>
  1599. <data variable="tw_skip_md5_generate" />
  1600. <image checked="checkbox_true" unchecked="checkbox_false" />
  1601. </object>
  1602.  
  1603. <object type="button">
  1604. <placement x="%col1_x%" y="%row16_text_y%" />
  1605. <font resource="font" color="%text_color%" />
  1606. <conditions>
  1607. <condition var1="tw_has_dual_storage" var2="1" />
  1608. <condition var1="tw_use_external_storage" var2="1" />
  1609. </conditions>
  1610. <text>Use external SD</text>
  1611. <image resource="radio_true" />
  1612. <action function="togglestorage">external</action>
  1613. </object>
  1614.  
  1615. <object type="button">
  1616. <placement x="%col1_x%" y="%row16_text_y%" />
  1617. <font resource="font" color="%text_color%" />
  1618. <conditions>
  1619. <condition var1="tw_has_dual_storage" var2="1" />
  1620. <condition var1="tw_use_external_storage" var2="0" />
  1621. </conditions>
  1622. <text>Use external SD</text>
  1623. <image resource="radio_false" />
  1624. <action function="togglestorage">external</action>
  1625. </object>
  1626.  
  1627. <object type="button">
  1628. <placement x="%col2_x%" y="%row16_text_y%" />
  1629. <font resource="font" color="%text_color%" />
  1630. <conditions>
  1631. <condition var1="tw_has_dual_storage" var2="1" />
  1632. <condition var1="tw_use_external_storage" var2="1" />
  1633. </conditions>
  1634. <text>Use internal storage</text>
  1635. <image resource="radio_false" />
  1636. <action function="togglestorage">internal</action>
  1637. </object>
  1638.  
  1639. <object type="button">
  1640. <placement x="%col2_x%" y="%row16_text_y%" />
  1641. <font resource="font" color="%text_color%" />
  1642. <conditions>
  1643. <condition var1="tw_has_dual_storage" var2="1" />
  1644. <condition var1="tw_use_external_storage" var2="0" />
  1645. </conditions>
  1646. <text>Use internal storage</text>
  1647. <image resource="radio_true" />
  1648. <action function="togglestorage">internal</action>
  1649. </object>
  1650.  
  1651. <object type="action">
  1652. <touch key="home" />
  1653. <action function="page">main</action>
  1654. </object>
  1655.  
  1656. <object type="action">
  1657. <touch key="back" />
  1658. <action function="page">main</action>
  1659. </object>
  1660.  
  1661. <object type="template" name="footer" />
  1662. </page>
  1663.  
  1664. <page name="backupname1">
  1665. <object type="action">
  1666. <condition var1="tw_backup_name" op="=" var2="(Current Date)" />
  1667. <action function="set">tw_backup_name=</function>
  1668. </object>
  1669.  
  1670. <object type="action">
  1671. <action function="page">backupname2</function>
  1672. </object>
  1673. </page>
  1674.  
  1675. <page name="backupname2">
  1676. <object type="template" name="header" />
  1677.  
  1678. <object type="text" color="%text_color%">
  1679. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  1680. <font resource="font" />
  1681. <text>Please Enter a Backup Name</text>
  1682. </object>
  1683.  
  1684. <object type="input">
  1685. <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
  1686. <background color="%input_background_color%" />
  1687. <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
  1688. <font resource="font" color="%text_color%" />
  1689. <text>%tw_backup_name%</text>
  1690. <data name="tw_backup_name" />
  1691. <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]" />
  1692. <actions>
  1693. <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
  1694. <action function="set">tw_existpage=backupname2</action>
  1695. <action function="set">tw_notexistpage=backup</action>
  1696. <action function="page">filecheck</action>
  1697. </actions>
  1698. </object>
  1699.  
  1700. <object type="text" color="%text_fail_color%">
  1701. <condition var1="tw_fileexists" var2="1" />
  1702. <placement x="%center_x%" y="%row5_text_y%" placement="5" />
  1703. <font resource="font" />
  1704. <text>A backup with that name already exists!</text>
  1705. </object>
  1706.  
  1707. <object type="button">
  1708. <placement x="%col_center_x%" y="%row2_y%" />
  1709. <font resource="font" color="%button_text_color%" />
  1710. <text>Cancel</text>
  1711. <image resource="main_button" />
  1712. <actions>
  1713. <action function="set">tw_backup_name=(Current Date)</action>
  1714. <action function="page">backup</action>
  1715. </actions>
  1716. </object>
  1717.  
  1718. <object type="template" name="keyboardtemplate" />
  1719.  
  1720. <object type="action">
  1721. <touch key="home" />
  1722. <actions>
  1723. <action function="set">tw_backup_name=(Current Date)</action>
  1724. <action function="page">main</action>
  1725. </actions>
  1726. </object>
  1727.  
  1728. <object type="action">
  1729. <touch key="back" />
  1730. <actions>
  1731. <action function="set">tw_backup_name=(Current Date)</action>
  1732. <action function="page">backup</action>
  1733. </actions>
  1734. </object>
  1735.  
  1736. <object type="template" name="footer" />
  1737. </page>
  1738.  
  1739. <page name="backup_run">
  1740. <object type="template" name="header" />
  1741.  
  1742. <object type="text" color="%text_color%">
  1743. <font resource="font" />
  1744. <placement x="%center_x%" y="%row1_text_y%" placement="5" />
  1745. <text>%tw_operation% %tw_partition%</text>
  1746. </object>
  1747.  
  1748. <object type="template" name="action_page_console" />
  1749.  
  1750. <object type="template" name="progress_bar" />
  1751.  
  1752. <object type="action">
  1753. <action function="nandroid">backup</action>
  1754. </object>
  1755.  
  1756. <object type="action">
  1757. <condition var1="tw_operation_state" var2="1" />
  1758. <actions>
  1759. <action function="set">tw_back=backup</action>
  1760. <action function="set">tw_complete_text1=Backup Complete</action>
  1761. <action function="set">tw_show_reboot=1</action>
  1762. <action function="page">action_complete</action>
  1763. </actions>
  1764. </object>
  1765. </page>
  1766.  
  1767. <page name="restore">
  1768. <object type="template" name="header" />
  1769.  
  1770. <object type="button">
  1771. <placement x="%col1_x%" y="%row1_header_y%" />
  1772. <font resource="font" color="%text_color%" />
  1773. <conditions>
  1774. <condition var1="tw_has_dual_storage" var2="1" />
  1775. <condition var1="tw_use_external_storage" var2="1" />
  1776. </conditions>
  1777. <text>Use external SD</text>
  1778. <image resource="radio_true" />
  1779. <action function="togglestorage">external</action>
  1780. </object>
  1781.  
  1782. <object type="button">
  1783. <placement x="%col1_x%" y="%row1_header_y%" />
  1784. <font resource="font" color="%text_color%" />
  1785. <conditions>
  1786. <condition var1="tw_has_dual_storage" var2="1" />
  1787. <condition var1="tw_use_external_storage" var2="0" />
  1788. </conditions>
  1789. <text>Use external SD</text>
  1790. <image resource="radio_false" />
  1791. <action function="togglestorage">external</action>
  1792. </object>
  1793.  
  1794. <object type="button">
  1795. <placement x="%col2_x%" y="%row1_header_y%" />
  1796. <font resource="font" color="%text_color%" />
  1797. <conditions>
  1798. <condition var1="tw_has_dual_storage" var2="1" />
  1799. <condition var1="tw_use_external_storage" var2="1" />
  1800. </conditions>
  1801. <text>Use internal storage</text>
  1802. <image resource="radio_false" />
  1803. <action function="togglestorage">internal</action>
  1804. </object>
  1805.  
  1806. <object type="button">
  1807. <placement x="%col2_x%" y="%row1_header_y%" />
  1808. <font resource="font" color="%text_color%" />
  1809. <conditions>
  1810. <condition var1="tw_has_dual_storage" var2="1" />
  1811. <condition var1="tw_use_external_storage" var2="0" />
  1812. </conditions>
  1813. <text>Use internal storage</text>
  1814. <image resource="radio_true" />
  1815. <action function="togglestorage">internal</action>
  1816. </object>
  1817.  
  1818. <object type="fileselector">
  1819. <placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
  1820. <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
  1821. <text>Select Package to Restore:</text>
  1822. <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
  1823. <sort name="tw_gui_sort_order" />
  1824. <icon folder="folder_icon" file="file_icon" />
  1825. <background color="%fileselector_background%" />
  1826. <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
  1827. <filter folders="1" files="0" nav="0" />
  1828. <path name="tw_backups_folder" />
  1829. <data name="tw_restore" default="" />
  1830. <selection name="tw_restore_name" />
  1831. </object>
  1832.  
  1833. <object type="template" name="sort_options" />
  1834.  
  1835. <object type="action">
  1836. <condition var1="tw_restore" op="modified" />
  1837. <actions>
  1838. <action function="readBackup"></action>
  1839. <action function="page">restore_select</action>
  1840. </actions>
  1841. </object>
  1842.  
  1843. <object type="action">
  1844. <touch key="home" />
  1845. <action function="page">main</action>
  1846. </object>
  1847.  
  1848. <object type="action">
  1849. <touch key="back" />
  1850. <action function="page">main</action>
  1851. </object>
  1852.  
  1853. <object type="template" name="footer" />
  1854. </page>
  1855.  
  1856. <page name="restore_select">
  1857. <object type="template" name="header" />
  1858.  
  1859. <object type="text">
  1860. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  1861. <font resource="font" color="%text_color%" />
  1862. <text>Restoring: %tw_restore_name%</text>
  1863. </object>
  1864.  
  1865. <object type="button">
  1866. <placement x="%col2_x%" y="%row1_y%" />
  1867. <font resource="font" color="%button_text_color%" />
  1868. <text>Rename Backup</text>
  1869. <image resource="main_button" />
  1870. <actions>
  1871. <action function="set">tw_backup_rename=</action>
  1872. <action function="set">tw_fileexists=0</action>
  1873. <action function="page">renamebackup</action>
  1874. </actions>
  1875. </object>
  1876.  
  1877. <object type="button">
  1878. <placement x="%col2_x%" y="%row2_y%" />
  1879. <font resource="font" color="%button_text_color%" />
  1880. <text>Delete Backup</text>
  1881. <image resource="main_button" />
  1882. <actions>
  1883. <action function="set">tw_back=restore</action>
  1884. <action function="set">tw_action=cmd</action>
  1885. <action function="set">tw_action_param=cd %tw_backups_folder% && rm -rf %tw_restore_name%</action>
  1886. <action function="set">tw_text1=Delete Backup? %tw_restore_name%</action>
  1887. <action function="set">tw_text2=This cannot be undone!</action>
  1888. <action function="set">tw_action_text1=Deleting Backup...</action>
  1889. <action function="set">tw_complete_text1=Backup Delete Complete</action>
  1890. <action function="set">tw_slider_text=Swipe to Delete</action>
  1891. <action function="page">confirm_action</action>
  1892. </actions>
  1893. </object>
  1894.  
  1895. <object type="slider">
  1896. <placement x="%slider_x%" y="%slider_y%" />
  1897. <resource base="slider" used="slider-used" touch="slider-touch" />
  1898. <action function="page">restore_run</action>
  1899. </object>
  1900.  
  1901. <object type="text" color="%text_color%">
  1902. <font resource="font" />
  1903. <placement x="%center_x%" y="%slider_text_y%" placement="4" />
  1904. <text>Swipe to Restore</text>
  1905. </object>
  1906.  
  1907. <object type="checkbox">
  1908. <placement x="%col1_x%" y="%row2_text_y%" />
  1909. <font resource="font" color="%text_color%" />
  1910. <text>System</text>
  1911. <condition var1="tw_restore_system" op=">=" var2="0" />
  1912. <data variable="tw_restore_system" />
  1913. <image checked="checkbox_true" unchecked="checkbox_false" />
  1914. </object>
  1915.  
  1916. <object type="checkbox">
  1917. <placement x="%col1_x%" y="%row3_text_y%" />
  1918. <font resource="font" color="%text_color%" />
  1919. <text>Data</text>
  1920. <condition var1="tw_restore_data" op=">=" var2="0" />
  1921. <data variable="tw_restore_data" />
  1922. <image checked="checkbox_true" unchecked="checkbox_false" />
  1923. </object>
  1924.  
  1925. <object type="checkbox">
  1926. <placement x="%col1_x%" y="%row4_text_y%" />
  1927. <font resource="font" color="%text_color%" />
  1928. <text>Boot</text>
  1929. <condition var1="tw_restore_boot" op=">=" var2="0" />
  1930. <data variable="tw_restore_boot" />
  1931. <image checked="checkbox_true" unchecked="checkbox_false" />
  1932. </object>
  1933.  
  1934. <object type="checkbox">
  1935. <placement x="%col1_x%" y="%row6_text_y%" />
  1936. <font resource="font" color="%text_color%" />
  1937. <text>Cache</text>
  1938. <condition var1="tw_restore_cache" op=">=" var2="0" />
  1939. <data variable="tw_restore_cache" />
  1940. <image checked="checkbox_true" unchecked="checkbox_false" />
  1941. </object>
  1942.  
  1943. <object type="checkbox">
  1944. <placement x="%col1_x%" y="%row7_text_y%" />
  1945. <font resource="font" color="%text_color%" />
  1946. <text>.android_secure</text>
  1947. <condition var1="tw_restore_andsec" op=">=" var2="0" />
  1948. <data variable="tw_restore_andsec" />
  1949. <image checked="checkbox_true" unchecked="checkbox_false" />
  1950. </object>
  1951.  
  1952. <object type="checkbox">
  1953. <placement x="%col1_x%" y="%row8_text_y%" />
  1954. <font resource="font" color="%text_color%" />
  1955. <text>sd-ext</text>
  1956. <condition var1="tw_restore_sdext" op=">=" var2="0" />
  1957. <data variable="tw_restore_sdext" />
  1958. <image checked="checkbox_true" unchecked="checkbox_false" />
  1959. </object>
  1960.  
  1961. <object type="checkbox">
  1962. <placement x="%col1_x%" y="%row10_text_y%" />
  1963. <font resource="font" color="%text_color%" />
  1964. <text>%tw_sp1_name%</text>
  1965. <condition var1="tw_restore_sp1" op=">=" var2="0" />
  1966. <data variable="tw_restore_sp1" />
  1967. <image checked="checkbox_true" unchecked="checkbox_false" />
  1968. </object>
  1969.  
  1970. <object type="checkbox">
  1971. <placement x="%col1_x%" y="%row11_text_y%" />
  1972. <font resource="font" color="%text_color%" />
  1973. <text>%tw_sp2_name%</text>
  1974. <condition var1="tw_restore_sp2" op=">=" var2="0" />
  1975. <data variable="tw_restore_sp2" />
  1976. <image checked="checkbox_true" unchecked="checkbox_false" />
  1977. </object>
  1978.  
  1979. <object type="checkbox">
  1980. <placement x="%col1_x%" y="%row12_text_y%" />
  1981. <font resource="font" color="%text_color%" />
  1982. <text>%tw_sp3_name%</text>
  1983. <condition var1="tw_restore_sp3" op=">=" var2="0" />
  1984. <data variable="tw_restore_sp3" />
  1985. <image checked="checkbox_true" unchecked="checkbox_false" />
  1986. </object>
  1987.  
  1988. <object type="checkbox">
  1989. <placement x="%col1_x%" y="%row14_text_y%" />
  1990. <font resource="font" color="%text_color%" />
  1991. <text>Enable MD5 verification of backup files.</text>
  1992. <data variable="tw_skip_md5_check" />
  1993. <image checked="checkbox_true" unchecked="checkbox_false" />
  1994. </object>
  1995.  
  1996. <object type="text" color="%text_color%">
  1997. <font resource="font" />
  1998. <placement x="%center_x%" y="%row15_text_y%" placement="5" />
  1999. <text>Package Date: %tw_restore_file_date%</text>
  2000. </object>
  2001.  
  2002. <object type="action">
  2003. <touch key="home" />
  2004. <action function="page">main</action>
  2005. </object>
  2006.  
  2007. <object type="action">
  2008. <touch key="back" />
  2009. <action function="page">restore</action>
  2010. </object>
  2011.  
  2012. <object type="template" name="footer" />
  2013. </page>
  2014.  
  2015. <page name="renamebackup">
  2016. <object type="template" name="header" />
  2017.  
  2018. <object type="text" color="%text_color%">
  2019. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  2020. <font resource="font" />
  2021. <text>Please Enter a New Backup Name</text>
  2022. </object>
  2023.  
  2024. <object type="input">
  2025. <placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
  2026. <background color="%input_background_color%" />
  2027. <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
  2028. <font resource="font" color="%text_color%" />
  2029. <text>%tw_backup_rename%</text>
  2030. <data name="tw_backup_rename" />
  2031. <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]" />
  2032. <actions>
  2033. <action function="set">tw_back=restore</action>
  2034. <action function="set">tw_action=cmd</action>
  2035. <action function="set">tw_action_param=cd %tw_backups_folder% && mv %tw_restore_name% %tw_backup_rename%</action>
  2036. <action function="set">tw_text1=Rename Backup?</action>
  2037. <action function="set">tw_text2=This cannot be undone!</action>
  2038. <action function="set">tw_action_text1=Renaming Backup...</action>
  2039. <action function="set">tw_complete_text1=Backup Rename Complete</action>
  2040. <action function="set">tw_slider_text=Swipe to Rename</action>
  2041. <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
  2042. <action function="set">tw_existpage=renamebackup</action>
  2043. <action function="set">tw_notexistpage=confirm_action</action>
  2044. <action function="page">filecheck</action>
  2045. </actions>
  2046. </object>
  2047.  
  2048. <object type="text" color="%text_fail_color%">
  2049. <condition var1="tw_fileexists" var2="1" />
  2050. <placement x="%center_x%" y="%row5_text_y%" placement="5" />
  2051. <font resource="font" />
  2052. <text>A backup with that name already exists!</text>
  2053. </object>
  2054.  
  2055. <object type="button">
  2056. <placement x="%col_center_x%" y="%row2_y%" />
  2057. <font resource="font" color="%button_text_color%" />
  2058. <text>Cancel</text>
  2059. <image resource="main_button" />
  2060. <action function="page">restore_select</action>
  2061. </object>
  2062.  
  2063. <object type="template" name="keyboardtemplate" />
  2064.  
  2065. <object type="action">
  2066. <touch key="home" />
  2067. <action function="page">main</action>
  2068. </object>
  2069.  
  2070. <object type="action">
  2071. <touch key="back" />
  2072. <action function="page">restore_select</action>
  2073. </object>
  2074.  
  2075. <object type="template" name="footer" />
  2076. </page>
  2077.  
  2078. <page name="restore_run">
  2079. <object type="template" name="header" />
  2080.  
  2081. <object type="text" color="%text_color%">
  2082. <font resource="font" />
  2083. <placement x="%center_x%" y="%row1_text_y%" placement="5" />
  2084. <text>%tw_operation% %tw_partition%</text>
  2085. </object>
  2086.  
  2087. <object type="template" name="action_page_console" />
  2088.  
  2089. <object type="template" name="progress_bar" />
  2090.  
  2091. <object type="action">
  2092. <condition var1="tw_operation_state" var2="1" />
  2093. <actions>
  2094. <action function="set">tw_back=restore_select</action>
  2095. <action function="set">tw_complete_text1=Restore Complete</action>
  2096. <action function="set">tw_show_reboot=1</action>
  2097. <action function="page">action_complete</action>
  2098. </actions>
  2099. </object>
  2100.  
  2101. <object type="action">
  2102. <action function="nandroid">restore</action>
  2103. </object>
  2104. </page>
  2105.  
  2106. <page name="mount">
  2107. <object type="template" name="header" />
  2108.  
  2109. <object type="text" color="%text_color%">
  2110. <font resource="font" />
  2111. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  2112. <text>Mount Menu</text>
  2113. </object>
  2114.  
  2115. <object type="button">
  2116. <placement x="%col1_x%" y="%row1_text_y%" />
  2117. <font resource="font" color="%text_color%" />
  2118. <condition var1="mounted" op="!=" var2="/system" />
  2119. <text>Mount System</text>
  2120. <image resource="checkbox_false" />
  2121. <action function="mount">/system</action>
  2122. </object>
  2123.  
  2124. <object type="button">
  2125. <placement x="%col1_x%" y="%row1_text_y%" />
  2126. <font resource="font" color="%text_color%" />
  2127. <condition var1="mounted" op="=" var2="/system" />
  2128. <text>Unmount System</text>
  2129. <image resource="checkbox_true" />
  2130. <action function="umount">/system</action>
  2131. </object>
  2132.  
  2133. <object type="button">
  2134. <placement x="%col1_x%" y="%row2_text_y%" />
  2135. <font resource="font" color="%text_color%" />
  2136. <condition var1="mounted" op="!=" var2="/data" />
  2137. <text>Mount Data</text>
  2138. <image resource="checkbox_false" />
  2139. <action function="mount">/data</action>
  2140. </object>
  2141.  
  2142. <object type="button">
  2143. <placement x="%col1_x%" y="%row2_text_y%" />
  2144. <font resource="font" color="%text_color%" />
  2145. <condition var1="mounted" op="=" var2="/data" />
  2146. <text>Unmount Data</text>
  2147. <image resource="checkbox_true" />
  2148. <action function="umount">/data</action>
  2149. </object>
  2150.  
  2151. <object type="button">
  2152. <placement x="%col1_x%" y="%row3_text_y%" />
  2153. <font resource="font" color="%text_color%" />
  2154. <condition var1="mounted" op="!=" var2="/cache" />
  2155. <text>Mount Cache</text>
  2156. <image resource="checkbox_false" />
  2157. <action function="mount">/cache</action>
  2158. </object>
  2159.  
  2160. <object type="button">
  2161. <placement x="%col1_x%" y="%row3_text_y%" />
  2162. <font resource="font" color="%text_color%" />
  2163. <condition var1="mounted" op="=" var2="/cache" />
  2164. <text>Unmount Cache</text>
  2165. <image resource="checkbox_true" />
  2166. <action function="umount">/cache</action>
  2167. </object>
  2168.  
  2169. <object type="button">
  2170. <placement x="%col1_x%" y="%row4_text_y%" />
  2171. <font resource="font" color="%text_color%" />
  2172. <conditions>
  2173. <condition var1="tw_has_external" var2="1" />
  2174. <condition var1="mounted" op="!=" var2="EXTERNAL" />
  2175. </conditions>
  2176. <text>Mount SD Card</text>
  2177. <image resource="checkbox_false" />
  2178. <action function="mount">EXTERNAL</action>
  2179. </object>
  2180.  
  2181. <object type="button">
  2182. <placement x="%col1_x%" y="%row4_text_y%" />
  2183. <font resource="font" color="%text_color%" />
  2184. <conditions>
  2185. <condition var1="tw_has_external" var2="1" />
  2186. <condition var1="mounted" op="=" var2="EXTERNAL" />
  2187. </conditions>
  2188. <text>Unmount SD Card</text>
  2189. <image resource="checkbox_true" />
  2190. <action function="umount">EXTERNAL</action>
  2191. </object>
  2192.  
  2193. <object type="button">
  2194. <placement x="%col2_x%" y="%row4_text_y%" />
  2195. <font resource="font" color="%text_color%" />
  2196. <conditions>
  2197. <condition var1="tw_has_internal" var2="1" />
  2198. <condition var1="tw_has_data_media" var2="0" />
  2199. <condition var1="mounted" op="!=" var2="INTERNAL" />
  2200. </conditions>
  2201. <text>Mount Internal</text>
  2202. <image resource="checkbox_false" />
  2203. <action function="mount">INTERNAL</action>
  2204. </object>
  2205.  
  2206. <object type="button">
  2207. <placement x="%col2_x%" y="%row4_text_y%" />
  2208. <font resource="font" color="%text_color%" />
  2209. <conditions>
  2210. <condition var1="tw_has_internal" var2="1" />
  2211. <condition var1="tw_has_data_media" var2="0" />
  2212. <condition var1="mounted" op="=" var2="INTERNAL" />
  2213. </conditions>
  2214. <text>Unmount Internal</text>
  2215. <image resource="checkbox_true" />
  2216. <action function="umount">INTERNAL</action>
  2217. </object>
  2218.  
  2219. <object type="button">
  2220. <conditions>
  2221. <condition var1="tw_has_sdext_partition" var2="1" />
  2222. <condition var1="mounted" op="!=" var2="/sd-ext" />
  2223. </conditions>
  2224. <placement x="%col1_x%" y="%row5_text_y%" />
  2225. <font resource="font" color="%text_color%" />
  2226. <text>Mount SD-Ext</text>
  2227. <image resource="checkbox_false" />
  2228. <action function="mount">/sd-ext</action>
  2229. </object>
  2230.  
  2231. <object type="button">
  2232. <placement x="%col1_x%" y="%row5_text_y%" />
  2233. <font resource="font" color="%text_color%" />
  2234. <condition var1="mounted" op="=" var2="/sd-ext" />
  2235. <text>Unmount SD-Ext</text>
  2236. <image resource="checkbox_true" />
  2237. <action function="umount">/sd-ext</action>
  2238. </object>
  2239.  
  2240. <object type="button">
  2241. <conditions>
  2242. <condition var1="tw_boot_is_mountable" var2="1" />
  2243. <condition var1="mounted" op="!=" var2="/boot" />
  2244. </conditions>
  2245. <placement x="%col1_x%" y="%row6_text_y%" />
  2246. <font resource="font" color="#A0A0A0" />
  2247. <text>Mount Boot</text>
  2248. <image resource="checkbox_false" />
  2249. <action function="mount">/boot</action>
  2250. </object>
  2251.  
  2252. <object type="button">
  2253. <conditions>
  2254. <condition var1="tw_boot_is_mountable" var2="1" />
  2255. <condition var1="mounted" op="=" var2="/boot" />
  2256. </conditions>
  2257.  
  2258. <placement x="%col1_x%" y="%row6_text_y%" />
  2259. <font resource="font" color="#A0A0A0" />
  2260. <text>Unmount Boot</text>
  2261. <image resource="checkbox_true" />
  2262. <action function="umount">/boot</action>
  2263. </object>
  2264.  
  2265. <object type="button">
  2266. <placement x="%col1_x%" y="%row8_text_y%" />
  2267. <font resource="font" color="%text_color%" />
  2268. <conditions>
  2269. <condition var1="tw_has_dual_storage" var2="1" />
  2270. <condition var1="tw_use_external_storage" var2="1" />
  2271. </conditions>
  2272. <text>Use external SD</text>
  2273. <image resource="radio_true" />
  2274. <action function="togglestorage">external</action>
  2275. </object>
  2276.  
  2277. <object type="button">
  2278. <placement x="%col1_x%" y="%row8_text_y%" />
  2279. <font resource="font" color="%text_color%" />
  2280. <conditions>
  2281. <condition var1="tw_has_dual_storage" var2="1" />
  2282. <condition var1="tw_use_external_storage" var2="0" />
  2283. </conditions>
  2284. <text>Use external SD</text>
  2285. <image resource="radio_false" />
  2286. <action function="togglestorage">external</action>
  2287. </object>
  2288.  
  2289. <object type="button">
  2290. <placement x="%col2_x%" y="%row8_text_y%" />
  2291. <font resource="font" color="%text_color%" />
  2292. <conditions>
  2293. <condition var1="tw_has_dual_storage" var2="1" />
  2294. <condition var1="tw_use_external_storage" var2="1" />
  2295. </conditions>
  2296. <text>Use internal storage</text>
  2297. <image resource="radio_false" />
  2298. <action function="togglestorage">internal</action>
  2299. </object>
  2300.  
  2301. <object type="button">
  2302. <placement x="%col2_x%" y="%row8_text_y%" />
  2303. <font resource="font" color="%text_color%" />
  2304. <conditions>
  2305. <condition var1="tw_has_dual_storage" var2="1" />
  2306. <condition var1="tw_use_external_storage" var2="0" />
  2307. </conditions>
  2308. <text>Use internal storage</text>
  2309. <image resource="radio_true" />
  2310. <action function="togglestorage">internal</action>
  2311. </object>
  2312.  
  2313. <object type="button">
  2314. <condition var1="tw_has_usb_storage" var2="1" />
  2315. <placement x="%col1_x%" y="row3_y" />
  2316. <font resource="font" color="%button_text_color%" />
  2317. <text>Mount USB Storage</text>
  2318. <image resource="main_button" />
  2319. <action function="page">usb_mount</action>
  2320. </object>
  2321.  
  2322. <object type="action">
  2323. <touch key="home" />
  2324. <action function="page">main</action>
  2325. </object>
  2326.  
  2327. <object type="action">
  2328. <touch key="back" />
  2329. <action function="page">main</action>
  2330. </object>
  2331.  
  2332. <object type="template" name="footer" />
  2333. </page>
  2334.  
  2335. <page name="terminalfolder">
  2336. <object type="template" name="header" />
  2337.  
  2338. <object type="text" color="%text_color%">
  2339. <font resource="font" />
  2340. <placement x="%center_x%" y="%row1_header_y%" placement="5"/>
  2341. <text>Browse to Starting Folder</text>
  2342. </object>
  2343.  
  2344. <object type="fileselector">
  2345. <placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
  2346. <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
  2347. <text>%tw_terminal_location%</text>
  2348. <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
  2349. <sort name="tw_gui_sort_order" />
  2350. <icon folder="folder_icon" file="file_icon" />
  2351. <background color="%fileselector_background%" />
  2352. <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
  2353. <filter folders="1" files="0" />
  2354. <path name="tw_terminal_location" default="/" />
  2355. <data name="tw_terminal" />
  2356. <selection name="tw_terminal_selection" />
  2357. </object>
  2358.  
  2359. <object type="template" name="sort_options" />
  2360.  
  2361. <object type="action">
  2362. <touch key="home" />
  2363. <action function="page">main</action>
  2364. </object>
  2365.  
  2366. <object type="action">
  2367. <touch key="back" />
  2368. <action function="page">advanced</action>
  2369. </object>
  2370.  
  2371. <object type="button">
  2372. <placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
  2373. <font resource="font" color="%button_text_color%" />
  2374. <text>Select</text>
  2375. <image resource="medium_button" />
  2376. <actions>
  2377. <action function="page">terminalcommand</action>
  2378. </actions>
  2379. </object>
  2380.  
  2381. <object type="template" name="footer" />
  2382. </page>
  2383.  
  2384. <page name="terminalcommand">
  2385. <object type="template" name="header" />
  2386.  
  2387. <object type="console">
  2388. <placement x="%console_x%" y="0" w="%console_width%" h="%terminal_console_height%" />
  2389. <color foreground="%console_foreground%" background="%console_background%" scroll="%console_scroll%" />
  2390. <font resource="fixed" />
  2391. </object>
  2392.  
  2393. <object type="text" color="%text_color%">
  2394. <placement x="%col1_x%" y="%terminal_text_y%" placement="0" />
  2395. <font resource="font" />
  2396. <text>Starting Path: %tw_terminal_location%</text>
  2397. </object>
  2398.  
  2399. <object type="input">
  2400. <condition var1="tw_terminal_state" var2="0" />
  2401. <placement x="%col1_x%" y="%terminal_text_y%" w="%input_width%" h="%input_height%" placement="0" />
  2402. <background color="%input_background_color%" />
  2403. <cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
  2404. <font resource="font" color="%text_color%" />
  2405. <text>%tw_terminal_command%</text>
  2406. <data name="tw_terminal_command" />
  2407. <restrict minlen="1" />
  2408. <action function="terminalcommand">%tw_terminal_command%</action>
  2409. </object>
  2410.  
  2411. <object type="button">
  2412. <condition var1="tw_terminal_state" var2="1" />
  2413. <placement x="%filemanager_select_x%" y="%terminal_button_y%" />
  2414. <font resource="font" color="%button_text_color%" />
  2415. <text>KILL</text>
  2416. <image resource="medium_button" />
  2417. <action function="killterminal"></action>
  2418. </object>
  2419.  
  2420. <object type="template" name="keyboardtemplate" />
  2421.  
  2422. <object type="action">
  2423. <touch key="home" />
  2424. <action function="page">main</action>
  2425. </object>
  2426.  
  2427. <object type="action">
  2428. <touch key="back" />
  2429. <action function="page">terminalfolder</action>
  2430. </object>
  2431. </page>
  2432.  
  2433. <page name="install">
  2434. <object type="template" name="header" />
  2435.  
  2436. <object type="text" color="%text_color%">
  2437. <font resource="font" />
  2438. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  2439. <text>Select Zip to Install</text>
  2440. </object>
  2441.  
  2442. <object type="button">
  2443. <placement x="%col1_x%" y="%row1_text_y%" />
  2444. <font resource="mediumfont" color="%text_color%" />
  2445. <conditions>
  2446. <condition var1="tw_has_dual_storage" var2="1" />
  2447. <condition var1="tw_use_external_storage" var2="1" />
  2448. </conditions>
  2449. <text>Use external SD</text>
  2450. <image resource="radio_true" />
  2451. <action function="togglestorage">external</action>
  2452. </object>
  2453.  
  2454. <object type="button">
  2455. <placement x="%col1_x%" y="%row1_text_y%" />
  2456. <font resource="mediumfont" color="%text_color%" />
  2457. <conditions>
  2458. <condition var1="tw_has_dual_storage" var2="1" />
  2459. <condition var1="tw_use_external_storage" var2="0" />
  2460. </conditions>
  2461. <text>Use external SD</text>
  2462. <image resource="radio_false" />
  2463. <action function="togglestorage">external</action>
  2464. </object>
  2465.  
  2466. <object type="button">
  2467. <placement x="%col2_x%" y="%row1_text_y%" />
  2468. <font resource="mediumfont" color="%text_color%" />
  2469. <conditions>
  2470. <condition var1="tw_has_dual_storage" var2="1" />
  2471. <condition var1="tw_use_external_storage" var2="1" />
  2472. </conditions>
  2473. <text>Use internal storage</text>
  2474. <image resource="radio_false" />
  2475. <action function="togglestorage">internal</action>
  2476. </object>
  2477.  
  2478. <object type="button">
  2479. <placement x="%col2_x%" y="%row1_text_y%" />
  2480. <font resource="mediumfont" color="%text_color%" />
  2481. <conditions>
  2482. <condition var1="tw_has_dual_storage" var2="1" />
  2483. <condition var1="tw_use_external_storage" var2="0" />
  2484. </conditions>
  2485. <text>Use internal storage</text>
  2486. <image resource="radio_true" />
  2487. <action function="togglestorage">internal</action>
  2488. </object>
  2489.  
  2490. <object type="fileselector">
  2491. <placement x="%fileselector_x%" y="%row2_text_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
  2492. <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
  2493. <text>%tw_zip_location%</text>
  2494. <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
  2495. <sort name="tw_gui_sort_order" />
  2496. <icon folder="folder_icon" file="file_icon" />
  2497. <background color="%fileselector_background%" />
  2498. <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
  2499. <filter extn=".zip" folders="1" files="1" />
  2500. <path name="tw_zip_location" default="/sdcard" />
  2501. <data name="tw_filename" />
  2502. <selection name="tw_file" />
  2503. </object>
  2504.  
  2505. <object type="template" name="sort_options" />
  2506.  
  2507. <object type="action">
  2508. <condition var1="tw_filename" op="modified" />
  2509. <actions>
  2510. <action function="queuezip"></action>
  2511. <action function="page">flash_confirm</action>
  2512. </actions>
  2513. </object>
  2514.  
  2515. <object type="action">
  2516. <touch key="back" />
  2517. <action function="page">main</action>
  2518. </object>
  2519.  
  2520. <object type="action">
  2521. <touch key="home" />
  2522. <action function="page">main</action>
  2523. </object>
  2524.  
  2525. <object type="template" name="footer" />
  2526. </page>
  2527. <page name="flash_confirm">
  2528. <object type="template" name="header" />
  2529.  
  2530. <object type="text" color="%text_color%">
  2531. <font resource="font" />
  2532. <placement x="%center_x%" y="%row1_text_y%" placement="5" />
  2533. <text>This operation may install incompatible</text>
  2534. </object>
  2535.  
  2536. <object type="text" color="%text_color%">
  2537. <font resource="font" />
  2538. <placement x="%center_x%" y="%row2_text_y%" placement="5" />
  2539. <text>software and render your device unusable.</text>
  2540. </object>
  2541.  
  2542. <object type="text" color="%text_color%">
  2543. <font resource="font" />
  2544. <placement x="%center_x%" y="%row3_text_y%" placement="5" />
  2545. <text>Folder:</text>
  2546. </object>
  2547.  
  2548. <object type="text" color="%text_color%">
  2549. <font resource="mediumfont" />
  2550. <placement x="%center_x%" y="%row4_text_y%" placement="5" />
  2551. <text>%tw_zip_location%</text>
  2552. </object>
  2553.  
  2554. <object type="text" color="%text_color%">
  2555. <font resource="font" />
  2556. <placement x="%center_x%" y="%row5_text_y%" placement="5" />
  2557. <text>File to flash:</text>
  2558. </object>
  2559.  
  2560. <object type="text" color="%text_color%">
  2561. <font resource="mediumfont" />
  2562. <placement x="%center_x%" y="%row6_text_y%" placement="5" />
  2563. <text>%tw_file%</text>
  2564. </object>
  2565.  
  2566. <object type="text" color="%text_color%">
  2567. <font resource="font" />
  2568. <placement x="%center_x%" y="%row7_text_y%" placement="5" />
  2569. <text>Press back to cancel adding this zip.</text>
  2570. </object>
  2571.  
  2572. <object type="checkbox">
  2573. <placement x="%col1_x%" y="%row8_text_y%" />
  2574. <font resource="font" color="%text_color%" />
  2575. <text>Zip file signature verification.</text>
  2576. <data variable="tw_signed_zip_verify" />
  2577. <image checked="checkbox_true" unchecked="checkbox_false" />
  2578. </object>
  2579.  
  2580. <object type="checkbox">
  2581. <placement x="%col1_x%" y="%row9_text_y%" />
  2582. <font resource="font" color="%text_color%" />
  2583. <text>Force MD5 check on all zips.</text>
  2584. <data variable="tw_force_md5_check" />
  2585. <image checked="checkbox_true" unchecked="checkbox_false" />
  2586. </object>
  2587.  
  2588. <object type="checkbox">
  2589. <condition var1="tw_has_injecttwrp" var2="1" />
  2590. <placement x="%col1_x%" y="%row10_text_y%" />
  2591. <font resource="font" color="%text_color%" />
  2592. <text>Inject TWRP after install.</text>
  2593. <data variable="tw_inject_after_zip" />
  2594. <image checked="checkbox_true" unchecked="checkbox_false" />
  2595. </object>
  2596.  
  2597. <object type="text" color="%text_color%">
  2598. <font resource="font" />
  2599. <placement x="%center_x%" y="%row11_text_y%" placement="5" />
  2600. <text>File %tw_zip_queue_count% of max of 10</text>
  2601. </object>
  2602.  
  2603. <object type="slider">
  2604. <placement x="%slider_x%" y="%slider_y%" placement="5" />
  2605. <resource base="slider" used="slider-used" touch="slider-touch" />
  2606. <action function="flash">flash_zip</action>
  2607. </object>
  2608.  
  2609. <object type="text" color="%text_color%">
  2610. <font resource="font" />
  2611. <placement x="%center_x%" y="%slider_text_y%" placement="4" />
  2612. <text>Swipe to Confirm Flash</text>
  2613. </object>
  2614.  
  2615. <object type="button">
  2616. <condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
  2617. <placement x="%col1_x%" y="%row_queue_y%" />
  2618. <font resource="font" color="%button_text_color%" />
  2619. <text>Add More Zips</text>
  2620. <image resource="main_button" />
  2621. <action function="page">install</action>
  2622. </object>
  2623.  
  2624. <object type="button">
  2625. <placement x="%col2_x%" y="%row_queue_y%" />
  2626. <font resource="font" color="%button_text_color%" />
  2627. <text>Clear Zip Queue</text>
  2628. <image resource="main_button" />
  2629. <actions>
  2630. <action function="queueclear"></action>
  2631. <action function="page">install</action>
  2632. </actions>
  2633. </object>
  2634.  
  2635. <object type="action">
  2636. <touch key="back" />
  2637. <actions>
  2638. <action function="cancelzip"></action>
  2639. <action function="page">install</action>
  2640. </actions>
  2641. </object>
  2642.  
  2643. <object type="action">
  2644. <touch key="home" />
  2645. <action function="page">main</action>
  2646. </object>
  2647.  
  2648. <object type="template" name="footer" />
  2649. </page>
  2650.  
  2651. <page name="flash_zip">
  2652. <object type="template" name="header" />
  2653.  
  2654. <object type="console">
  2655. <placement x="%console_x%" y="%row1_y%" w="%console_width%" h="%console_install_height%" />
  2656. <color foreground="%console_foreground%" background="%console_background%" scroll="%console_scroll%" />
  2657. <font resource="fixed" />
  2658. </object>
  2659.  
  2660. <object type="text" color="%text_color%">
  2661. <font resource="font" />
  2662. <placement x="%center_x%" y="%row17_text_y%" placement="5" />
  2663. <text>Flashing file %tw_zip_index% of %tw_zip_queue_count%</text>
  2664. </object>
  2665.  
  2666. <object type="text" color="%text_color%">
  2667. <font resource="mediumfont" />
  2668. <placement x="%center_x%" y="%row18_text_y%" placement="5" />
  2669. <text>%tw_filename%</text>
  2670. </object>
  2671.  
  2672. <object type="template" name="progress_bar" />
  2673.  
  2674. <object type="action">
  2675. <condition var1="tw_operation_state" var2="1" />
  2676. <action function="page">flash_done</action>
  2677. </object>
  2678. </page>
  2679.  
  2680. <page name="flash_done">
  2681. <object type="template" name="header" />
  2682.  
  2683. <object type="text" color="%text_color%">
  2684. <font resource="font" />
  2685. <placement x="%center_x%" y="%row1_header_y%" placement="5" />
  2686. <text>Zip Install Complete</text>
  2687. </object>
  2688.  
  2689. <object type="console">
  2690. <placement x="%console_x%" y="%row1_y%" w="%console_width%" h="%console_installdone_height%" />
  2691. <color foreground="%console_foreground%" background="%console_background%" scroll="%console_scroll%" />
  2692. <font resource="fixed" />
  2693. </object>
  2694.  
  2695. <object type="button">
  2696. <placement x="%col1_x%" y="%row4_y%" />
  2697. <font resource="font" color="%button_text_color%" />
  2698. <text>Wipe cache/dalvik</text>
  2699. <image resource="main_button" />
  2700. <actions>
  2701. <action function="set">tw_back=flash_done</action>
  2702. <action function="set">tw_action=wipe</action>
  2703. <action function="set">tw_action_param=/cache</action>
  2704. <action function="set">tw_has_action2=1</action>
  2705. <action function="set">tw_action2=wipe</action>
  2706. <action function="set">tw_action2_param=dalvik</action>
  2707. <action function="set">tw_text1=Wipe Cache & Dalvik?</action>
  2708. <action function="set">tw_action_text1=Wiping Cache & Dalvik...</action>
  2709. <action function="set">tw_complete_text1=Cache & Dalvik Wipe Complete</action>
  2710. <action function="set">tw_slider_text=Swipe to Wipe</action>
  2711. <action function="page">confirm_action</action>
  2712. </actions>
  2713. </object>
  2714.  
  2715. <object type="button">
  2716. <placement x="%col2_x%" y="%row4_y%" />
  2717. <font resource="font" color="%button_text_color%" />
  2718. <text>Reboot System</text>
  2719. <image resource="main_button" />
  2720. <actions>
  2721. <action function="set">tw_back=main2</action>
  2722. <action function="set">tw_action=reboot</action>
  2723. <action function="set">tw_action_param=system</action>
  2724. <action function="set">tw_has_action2=0</action>
  2725. <action function="set">tw_text1=No OS Installed! Are you</action>
  2726. <action function="set">tw_text2=sure you wish to reboot?</action>
  2727. <action function="set">tw_text3=</action>
  2728. <action function="set">tw_text4=</action>
  2729. <action function="set">tw_action_text1=Rebooting...</action>
  2730. <action function="set">tw_action_text2=</action>
  2731. <action function="set">tw_complete_text1=Rebooting...</action>
  2732. <action function="set">tw_slider_text=Swipe to Reboot</action>
  2733. <action function="page">rebootcheck</action>
  2734. </actions>
  2735. </object>
  2736.  
  2737. <object type="button">
  2738. <placement x="%col_center_x%" y="%row3_y%" />
  2739. <font resource="font" color="%button_text_color%" />
  2740. <text>Home</text>
  2741. <image resource="main_button" />
  2742. <actions>
  2743. <action function="set">tw_clear_destination=main2</action>
  2744. <action function="page">clear_vars</action>
  2745. </actions>
  2746. </object>
  2747.  
  2748. <object type="text" color="%text_fail_color%">
  2749. <condition var1="tw_operation_status" op="!=" var2="0" />
  2750. <font resource="font" />
  2751. <placement x="%center_x%" y="%zip_status_y%" placement="5" />
  2752. <text>Failed</text>
  2753. </object>
  2754.  
  2755. <object type="text" color="%text_success_color%">
  2756. <condition var1="tw_operation_status" var2="0" />
  2757. <font resource="font" />
  2758. <placement x="%center_x%" y="%zip_status_y%" placement="5" />
  2759. <text>Successful</text>
  2760. </object>
  2761.  
  2762. <object type="action">
  2763. <touch key="back" />
  2764. <actions>
  2765. <action function="set">tw_clear_destination=install</action>
  2766. <action function="page">clear_vars</action>
  2767. </actions>
  2768. </object>
  2769.  
  2770. <object type="action">
  2771. <touch key="home" />
  2772. <actions>
  2773. <action function="set">tw_clear_destination=main2</action>
  2774. <action function="page">clear_vars</action>
  2775. </actions>
  2776. </object>
  2777. </page>
  2778.  
  2779. <page name="clear_vars">
  2780. <object type="action">
  2781. <action function="set">tw_operation_state=0</action>
  2782. <action function="set">tw_text1=</action>
  2783. <action function="set">tw_text2=</action>
  2784. <action function="set">tw_text3=</action>
  2785. <action function="set">tw_text4=</action>
  2786. <action function="set">tw_action_text1=</action>
  2787. <action function="set">tw_action_text2=</action>
  2788. <action function="set">tw_action_param=</action>
  2789. <action function="set">tw_has_action2=0</action>
  2790. <action function="set">tw_action2=</action>
  2791. <action function="set">tw_action2_param=</action>
  2792. <action function="set">tw_has_cancel=0</action>
  2793. <action function="set">tw_cancel_action=</action>
  2794. <action function="set">tw_cancel_param=</action>
  2795. <action function="set">tw_show_exclamation=0</action>
  2796. <action function="set">tw_show_reboot=0</action>
  2797. <action function="page">%tw_clear_destination%</action>
  2798. </object>
  2799. </page>
  2800. </pages>
  2801. </recovery>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement