Advertisement
carl1961

aroma-config

May 6th, 2012
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.61 KB | None | 0 0
  1. #
  2. #
  3. # AROMA Installer - UrDroid Runnymede 1.27.1400.4 ver 2.3
  4. # (c) 2011-2012 by Ahmad Amarullah
  5. # amarullz - xda-developers
  6. # http://www.amarullz.com/
  7. #
  8. # Binary Version : 2.00-120414-A7
  9. # Binary Codename : Dahlia
  10.  
  11. #
  12. # Calibrate Touchscreen
  13. calibrate("1.1041","26","1.1616","16","yes");
  14. #--- Code Modify:
  15. ini_set("customkeycode_up", "115");
  16. ini_set("customkeycode_down", "114");
  17. ini_set("customkeycode_select", "231");
  18. ini_set("customkeycode_menu", "139");
  19. ini_set("customkeycode_back", "158");
  20.  
  21. #--- Uncomment to use custom color scheme: (Dark)
  22. setcolor("winbg", "#444");
  23. setcolor("winbg_g", "#222");
  24. setcolor("textbg", "#333");
  25. setcolor("textfg", "#fff");
  26. setcolor("textfg_gray", "#bbb");
  27. setcolor("controlbg", "#444");
  28. setcolor("controlbg_g", "#222");
  29. setcolor("controlfg", "#fff");
  30. setcolor("selectbg", "#653");
  31. setcolor("selectbg_g", "#542");
  32. setcolor("selectfg", "#ffd");
  33. setcolor("titlebg", "#333");
  34. setcolor("titlebg_g", "#000");
  35. setcolor("titlefg", "#fff");
  36. setcolor("navbg", "#333");
  37. setcolor("navbg_g", "#222");
  38. setcolor("border", "#666");
  39. setcolor("border_g", "#444");
  40.  
  41. ##
  42. # Initializing Rom Information
  43. ini_set("rom_name", "UrDroid Runnymede 1.27.1400.4 ");
  44. ini_set("rom_version", "v2.3");
  45. ini_set("rom_author", "carl1961");
  46. ini_set("rom_device", "HTC HD2");
  47. ini_set("rom_date", "April,30, 2012");
  48.  
  49. splash(3000, "rom-splash");
  50.  
  51. # Show Animated Splash
  52.  
  53. #
  54. anisplash(
  55. #-- Number of Loop
  56. 1,
  57.  
  58. #-- Frame 1 [ Image, duration in millisecond ]. <AROMA Resource Dir>/splash/a[1..8].png
  59. "splash/a1", 150,
  60. "splash/a2", 150,
  61. "splash/a3", 150,
  62. "splash/a4", 150,
  63. "splash/a5", 150,
  64. "splash/a6", 150,
  65. "splash/a7", 150,
  66. "splash/a8", 500
  67. );
  68.  
  69.  
  70. setvar("sdextsize", getdisksize("/sd-ext","m"));
  71. #
  72. # Set Small Font to Support all fonts
  73.  
  74. #
  75. fontresload( "0", "ttf/DroidSans.ttf;ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;", "12" ); #-- Use sets of font (Font Family)
  76.  
  77. ###################################################################################################################
  78. #
  79. # SHOW LANGUAGE SELECTION
  80.  
  81. #
  82. selectbox(
  83. #-- Title
  84. "Select Language",
  85.  
  86. #-- Sub Title
  87. "Please select installer language that you want to use in this installation test:",
  88.  
  89. #-- Icon: <AROMA Resource Dir>/icons/personalize.png or <ThemeDir>/icon.personalize.png
  90. "@default",
  91.  
  92. #-- Will be saved in /tmp/aroma/lang.prop
  93. "lang.prop",
  94.  
  95. #---------------------------------[ Selectbox Without Group ]----------------------------------#
  96. # TITLE | SUBTITLE | Initial Value #
  97. #------------------+-----------------------------------------------------------+---------------#
  98.  
  99. "English", "Welcome to Installer", 1, #-- selected.0 = 1
  100. "Indonesian", "Selamat datang di Installer", 0, #-- selected.0 = 2
  101. "Espanol", "Bienvenido al Instalador", 0, #-- selected.0 = 3
  102. "Simplified Chinesse","欢迎到安装", 0, #-- selected.0 = 4
  103. "Arabic", "مرحبا بكم في المثبت", 0, #-- selected.0 = 5
  104. "French", "Bienvenue dans l'installateur", 0, #-- selected.0 = 6
  105. "Russian", "Добро пожаловать в установщик", 0, #-- selected.0 = 7
  106. "Italian", "Benvenuti Installer", 0, #-- selected.0 = 8
  107. "Deutsch", "Welkom bij Installer", 0, #-- selected.0 = 9
  108. "Polish", "Witaj w instalatorze", 0, #-- selected.0 = 10
  109. "Serbian", "Dobrodošli u Instaler", 0 #-- selected.0 = 11
  110. #--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
  111. );
  112.  
  113. ##
  114. # SET LANGUAGE & FONT FAMILY
  115.  
  116. #
  117. if prop("lang.prop","selected.0")=="1" then
  118. loadlang("langs/en.lang");
  119. fontresload( "0", "ttf/DroidSans.ttf", "12" ); #-- "0" = Small Font ( Look at Fonts & UNICODE Demo Below )
  120. fontresload( "1", "ttf/DroidSans.ttf", "18" ); #-- "1" = Big Font
  121. endif;
  122.  
  123. if prop("lang.prop","selected.0")=="2" then
  124. loadlang("langs/id.lang");
  125. fontresload( "0", "ttf/DroidSans.ttf", "12" );
  126. fontresload( "1", "ttf/DroidSans.ttf", "18" );
  127. endif;
  128.  
  129. if prop("lang.prop","selected.0")=="3" then
  130. loadlang("langs/es.lang");
  131. fontresload( "0", "ttf/DroidSans.ttf", "12" );
  132. fontresload( "1", "ttf/DroidSans.ttf", "18" );
  133. endif;
  134.  
  135. if prop("lang.prop","selected.0")=="4" then
  136. loadlang("langs/cn.lang");
  137. fontresload( "0", "ttf/DroidSansFallback.ttf;ttf/DroidSans.ttf", "12" ); #-- Use sets of font (Font Family)
  138. fontresload( "1", "ttf/DroidSansFallback.ttf;ttf/DroidSans.ttf", "18" );
  139. endif;
  140.  
  141. if prop("lang.prop","selected.0")=="5" then
  142. loadlang("langs/ar.lang");
  143. fontresload( "0", "ttf/DroidSansArabic.ttf;ttf/DroidSans.ttf", "12" ); #-- Use sets of font (Font Family)
  144. fontresload( "1", "ttf/DroidSansArabic.ttf;ttf/DroidSans.ttf", "18" );
  145. endif;
  146.  
  147. if prop("lang.prop","selected.0")=="6" then
  148. loadlang("langs/fr.lang");
  149. fontresload( "0", "ttf/DroidSans.ttf", "12" );
  150. fontresload( "1", "ttf/DroidSans.ttf", "18" );
  151. endif;
  152.  
  153. if prop("lang.prop","selected.0")=="7" then
  154. loadlang("langs/ru.lang");
  155. fontresload( "0", "ttf/DroidSans.ttf", "12" );
  156. fontresload( "1", "ttf/DroidSans.ttf", "18" );
  157. endif;
  158.  
  159. if prop("lang.prop","selected.0")=="8" then
  160. loadlang("langs/it.lang");
  161. fontresload( "0", "ttf/DroidSans.ttf", "12" );
  162. fontresload( "1", "ttf/DroidSans.ttf", "18" );
  163. endif;
  164.  
  165. if prop("lang.prop","selected.0")=="9" then
  166. loadlang("langs/de.lang");
  167. fontresload( "0", "ttf/DroidSans.ttf", "12" );
  168. fontresload( "1", "ttf/DroidSans.ttf", "18" );
  169. endif;
  170.  
  171. if prop("lang.prop","selected.0")=="10" then
  172. loadlang("langs/pl.lang");
  173. fontresload( "0", "ttf/DroidSans.ttf", "12" );
  174. fontresload( "1", "ttf/DroidSans.ttf", "18" );
  175. endif;
  176.  
  177. if prop("lang.prop","selected.0")=="11" then
  178. loadlang("langs/sr.lang");
  179. fontresload( "0", "ttf/DroidSans.ttf", "12" );
  180. fontresload( "1", "ttf/DroidSans.ttf", "18" );
  181. endif;
  182.  
  183. ###################################################################################################################
  184. #
  185. # STEP 1 - SELECT THEME
  186.  
  187. #
  188. selectbox(
  189. #-- Title
  190. "<~themes.title>",
  191.  
  192. #-- Sub Title
  193. "<~themes.desc>",
  194.  
  195. #-- Icon: <AROMA Resource Dir>/icons/personalize.png or <ThemeDir>/icon.personalize.png
  196. "@personalize",
  197.  
  198. #-- Will be saved in /tmp/aroma/theme.prop
  199. "theme.prop",
  200.  
  201. #---------------------------------[ Selectbox Without Group ]----------------------------------#
  202. # TITLE | SUBTITLE | Initial Value #
  203. #------------------+-----------------------------------------------------------+---------------#
  204. "Generic", "<~uaromai>", 0, #-- selected.0 = 1
  205. "MIUI Theme", "<~mtbmaz>", 0, #-- selected.0 = 2
  206. "ICS Theme", "<~icsbdaz>", 0, #-- selected.0 = 3
  207. "MIUI 4 Theme", "<~m4icstbazl>", 0, #-- selected.0 = 4
  208. "Sense Theme", "<~htcstbaz>", 1 #-- selected.0 = 5
  209. #--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
  210. );
  211.  
  212. ##
  213. # SET THEME
  214. #
  215. #-- Change Info:
  216. # file_getprop : should use absolute path "/tmp/aroma/theme.prop"
  217. # prop : just use relative path "theme.prop" will automatically read the "/tmp/aroma/theme.prop"
  218.  
  219. #
  220. if prop("theme.prop","selected.0")=="2" then
  221. theme("miui");
  222. endif;
  223.  
  224. if prop("theme.prop","selected.0")=="3" then
  225. theme("ics");
  226. endif;
  227.  
  228.  
  229. if prop("theme.prop","selected.0")=="4" then
  230. theme("miui4");
  231. endif;
  232.  
  233. if prop("theme.prop","selected.0")=="5" then
  234. theme("sense");
  235. endif;
  236. ###################################################################################################################
  237. #
  238. # STEP 2 - SHOW ROM INFORMATION
  239. #
  240. viewbox(
  241. #-- Title
  242. "<~welcome.title>",
  243.  
  244. #-- Text
  245. "<~welcome.text1> <b>"+
  246. #-- Get Config Value
  247. ini_get("rom_name")+
  248. "</b> <~common.for> <b>"+ini_get("rom_device")+"</b>.\n\n"+
  249.  
  250. "<~welcome.text2>\n\n"+
  251.  
  252. " <~welcome.version>\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
  253. " <~welcome.updated>\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+
  254.  
  255.  
  256. "<~welcome.next>",
  257.  
  258. #-- Icon
  259. "@welcome"
  260. );
  261.  
  262. ###################################################################################################################
  263. #
  264. # STEP 4 - CHANGELOG
  265. ##-- Load Chinese/ Arabic Fonts
  266. fontresload( "0", "ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;ttf/DroidSans.ttf", "12" ); #-- Use sets of font (Font Family)
  267. fontresload( "1", "ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;ttf/DroidSans.ttf", "18" );
  268.  
  269.  
  270. textbox(
  271. #-- Title
  272. "<~changelog.title>",
  273.  
  274. #-- Subtitle
  275. "<~changelog.desc>",
  276.  
  277. #-- Icon
  278. "@update",
  279.  
  280. #-- Arg 4
  281. resread(lang("changelog"));
  282. );
  283.  
  284. # System Info
  285. #
  286. #-- Show Please Wait
  287.  
  288. selectbox(
  289. "<~ysystemi>",
  290. "<~sysystemi>",
  291. "icons/apps",
  292. "systeminfo.prop",
  293.  
  294. "<~psyesorno>","",2,
  295. "<~yes>",
  296. "<~yiwtsmsi>", 0,
  297. "<~no>",
  298. "<~nidnwtsmsi>",1
  299.  
  300. );
  301.  
  302. if
  303. file_getprop("/tmp/aroma-data/systeminfo.prop","selected.1") == "1"
  304. then
  305.  
  306.  
  307. pleasewait("<~gsi>");
  308.  
  309. #-- Fetch System Information
  310. setvar(
  311. #-- Variable Name
  312. "sysinfo",
  313.  
  314. #-- Variable Value
  315. "<@center><b><~ydsi></b></@>\n\n"+
  316.  
  317. "<~model>\t\t\t: <b><#selectbg_g>"+sysprop("ro.product.model")+"</#></b>\n"+
  318. "<~productname>\t\t\t: <b><#selectbg_g>"+sysprop("ro.product.name")+"</#></b>\n"+
  319. "<~devicename>\t\t: <b><#selectbg_g>"+sysprop("ro.product.device")+"</#></b>\n"+
  320. "<~boardname>\t\t: <b><#selectbg_g>"+sysprop("ro.product.board")+"</#></b>\n"+
  321. "<~manufacturer>\t\t: <b><#selectbg_g>"+sysprop("ro.product.manufacturer")+"</#></b>\n\n"+
  322. "<~cpu>\t\t\t: <b><#selectbg_g>"+sysprop("ro.product.cpu.abi")+"</#></b>\n"+
  323. "<~lcddesinty>\t\t: <b><#selectbg_g>"+sysprop("ro.sf.lcd_density")+"</#></b>\n\n"+
  324. "<~systemsize>\t\t: <b><#selectbg_g>"+getdisksize("/system","m")+" MB</#></b>\n"+
  325. "\tFree\t\t: <b><#selectbg_g>"+getdiskfree("/system","m")+" MB</#></b>\n\n"+
  326. "<~datasize>\t\t: <b><#selectbg_g>"+getdisksize("/data","m")+" MB</#></b>\n"+
  327. "\tFree\t\t: <b><#selectbg_g>"+getdiskfree("/data","m")+" MB</#></b>\n\n"+
  328. "(/mnt/sdcard)\t\t: <b><#selectbg_g>"+getdisksize("/mnt/sdcard","m")+" MB</#></b>\n"+
  329. "\tFree\t\t: <b><#selectbg_g>"+getdiskfree("/mnt/sdcard","m")+" MB</#></b>\n\n"+
  330. "<~sdcardsize>\t\t: <b><#selectbg_g>"+getdisksize("/sdcard","m")+" MB</#></b>\n"+
  331. "\tFree\t\t: <b><#selectbg_g>"+getdiskfree("/sdcard","m")+" MB</#></b>\n\n"+
  332. "<~sdextsize>\t\t: <b><#selectbg_g>"+getdisksize("/sd-ext","m")+" MB</#></b>\n"+
  333. "\tFree\t\t: <b><#selectbg_g>"+getdiskfree("/sd-ext","m")+" MB</#></b>\n\n"+
  334.  
  335.  
  336. ""
  337. );
  338.  
  339. #-- Show Textbox
  340. textbox(
  341. #-- Title
  342. "<~ssi>",
  343.  
  344. #-- Subtitle
  345. "<~csinfo>",
  346.  
  347. #-- Icon
  348. "@info",
  349.  
  350. #-- Text
  351. getvar("sysinfo")
  352. );
  353. endif;
  354. selectbox(
  355. "<~selectromsetup>",
  356. "<~pleaseselectromsetupbelow>",
  357. "icons/install",
  358. "rom.prop",
  359.  
  360. "<~pleasepickyourrom>","",2,
  361. "<~tmobileusa>",
  362. "<~installrominnand>",0,
  363. "EU ROM Install",
  364. "<~installromonsdext>",1
  365. );
  366.  
  367. selectbox(
  368. "<~selectromsetuptype>",
  369. "<~pleaseselectromsetuptypebelow>",
  370. "icons/install",
  371. "type.prop",
  372.  
  373. "<~stockorcustomizeinstall>","",2,
  374. "<~customizeinstall>",
  375. "<~iospiyp>",1,
  376. "<~defaultstockinstall>",
  377. "<~idsrpiyp>",0
  378.  
  379. );
  380.  
  381. selectbox(
  382. "<~pafwbf>?",
  383. "<~pleaseselect>",
  384. "icons/install",
  385. "wipe.prop",
  386.  
  387. "<~pleasepickyourwipe>","",2,
  388. "<~performafullwipeinfo>",
  389. "<~performafullwipe>",0,
  390. "<~performnowipeinfo>",
  391. "<~installwoutwiping>",1
  392.  
  393. );
  394.  
  395. checkbox(
  396. "<~chooselastminuteaddons>",
  397. "<~stoywi>",
  398. "icons/apps",
  399. "lastminute.prop",
  400.  
  401. "<~slpb>","<~islpb>",0,
  402. "<~5rowappdrawer>","<~asd5rios4r>",0,
  403. "<~sonybraviaengine>","<~ipavsts>",0,
  404. "<~screenon>","<~screenoninfo>",0,
  405. "<~xloud>","<~xloudinfo>",1,
  406. "<~stockkeypadlayout>","<~stockkeypadlayoutinfo>",0,
  407. "<~forzram>","<~forzraminfo>",0,
  408. "<~appbackupreinstall>","<~appbackupreinstallinfo>",0,
  409. "<~cachemate>","<~cachemateinfo>",0,
  410. "<~freespace>","<~freespaceinfo>",0,
  411. "<~adhoc>","<~adhocinfo>",0,
  412. "<~powermenu>","<~powermenuinfo>",0,
  413. "<~soundon>","<~soundoninfo>",0,
  414. "<~incredicontrol>","<~incredicontrolinfo>",0,
  415. "<~loopy_smoothness_tweak>","<~loopy_smoothness_tweakinfo>",0,
  416. "<~sd-booster>","<~sd-boosterinfo>",0,
  417. "<~dropbox>","<~dropboxinfo>",0,
  418. "<~romanager>","<~romanagerinfo>",0,
  419. "<~titaniumbackup>","<~titaniumbackupinfo>",0,
  420. "<~xda>","<~xdainfo>",0,
  421. "<~forextswap>","<~forextswapinfo>",0
  422.  
  423. );
  424.  
  425. checkbox(
  426. "<~chooseextraaddons>",
  427. "<~stoywi>",
  428. "icons/apps",
  429. "extra.prop",
  430.  
  431. "<~miuicamera>","<~miuicamerainfo>",0,
  432. "<~icscamera>","<~icscamerainfo>",0,
  433. "<~cartooncamera>","<~cartooncamerainfo>",0,
  434. "<~icskeyboard>","<~icskeyboardinfo>",0,
  435. "<~desirecalculator>","<~desirecalculatorinfo>",0,
  436. "<~sonycalculator>","<~sonycalculatorinfo>",0,
  437. "<~tango>","<~tangoinfo>",0,
  438. "<~fileexpert>","<~fileexpertinfo>",0,
  439. "<~jackpalterm>","<~jackpalterminfo>",0
  440.  
  441. );
  442.  
  443. selectbox(
  444. "<~selectbootanimationmod>",
  445. "<~psbamb>",
  446. "icons/apps",
  447. "bootanimation.prop",
  448.  
  449. "<~bootanimation>","",2,
  450. "<~htcbeats>",
  451. "<~htcbeatsinfo>", 1,
  452. "<~generichtcquietlybriliant>",
  453. "<~generichtcquietlybriliantinfo>",0
  454.  
  455. );
  456.  
  457. selectbox(
  458. "<~quickmenu>",
  459. "<~psyquickmenu>",
  460. "icons/apps",
  461. "quickmenu.prop",
  462.  
  463. "<~selectquickmenu>","",2,
  464. "<~quickmenustock>",
  465. "<~quickmenustockinfo>",1,
  466. "<~quickmenuwhite>",
  467. "<~quickmenuwhiteinfo>",0,
  468. "<~quickmenublack>",
  469. "<~quickmenublackinfo>",0
  470.  
  471. );
  472.  
  473. # GPS
  474.  
  475. selectbox(
  476. "GPS Configuration",
  477. "Please select GPS Configuration",
  478. "icons/apps",
  479. "gps.prop",
  480.  
  481.  
  482. "Your GPS Location","",2,
  483. "North America",
  484. "Living in North America",1,
  485. "Africa",
  486. "Living in Africa.",0,
  487. "Asia",
  488. "Living in Asia.",0,
  489. "Europe",
  490. "Living in Europe.",0,
  491. "Oceania",
  492. "Living in Oceania.",0,
  493. "South America",
  494. "Living in South America.",0
  495.  
  496.  
  497. );
  498.  
  499.  
  500. selectbox(
  501. "<~selectcameratype>",
  502. "<~selectcameratypeinfo>",
  503. "icons/apps",
  504. "camera.prop",
  505.  
  506. "<~camera>","",2,
  507.  
  508. "<~stockcamera>",
  509. "<~stockcamerainfo>",1,
  510. "<~htccameraamaze>",
  511. "<~htccameraamazeinfo>",0,
  512. "<~htccamera3.0desire>",
  513. "<~htccamera3.0desireinfo>",0
  514.  
  515. );
  516.  
  517.  
  518. selectbox(
  519. "<~selectkernel>",
  520. "<~selectkernelinfo>",
  521. "icons/apps",
  522. "kernel.prop",
  523.  
  524. "<~magldrorclkkernelinstall>","",2,
  525. "<~fmki>",
  526. "<~fmkiinfo>",0,
  527. "<~fcki>",
  528. "<~fckiinfo>",1
  529.  
  530. );
  531.  
  532. selectbox(
  533. "<~selectkernelver>",
  534. "<~selectkernelverinfo>",
  535. "icons/apps",
  536. "kernelver.prop",
  537.  
  538. "<~mkv20>","",2,
  539. "<~fmkv20>",
  540. "<~fmkv20info>",0,
  541. "<~fmkv21>",
  542. "<~fmkv21info>",1
  543.  
  544. );
  545. if
  546. file_getprop("/tmp/aroma-data/rom.prop","selected.1") == "1" &&
  547. cmp(getvar("sdextsize"),">","400")
  548. then
  549. selectbox(
  550. "<~taiws>",
  551. "<~taiwsinfo>",
  552. "icons/apps",
  553. "tmoussdext.prop",
  554.  
  555. "<~tasi>","",2,
  556. "<~dnias>",
  557. "<~dniasinfo>",1,
  558. "<~ias>",
  559. "<~iasinfo>",0
  560. );
  561. else
  562. # Default .prop
  563. writetmpfile(
  564. "tmoussdext.prop",
  565. "selected.1=1\n"
  566. );
  567. endif;
  568. if
  569. file_getprop("/tmp/aroma-data/tmoussdext.prop","selected.1") == "2" &&
  570. cmp(getvar("sdextsize"),">","400")
  571. then
  572. selectbox(
  573. "<~dcsdext>",
  574. "<~dcsdextinfo>",
  575. "icons/apps",
  576. "dalvik.prop",
  577.  
  578. "<~dcinodcosdext>","",2,
  579. "<~dcinodcosdextinfo>",
  580. "<~idcosdext>",1,
  581. "<~dcon>",
  582. "<~dconinfo>",0
  583. );
  584. else
  585. # Default .prop
  586. writetmpfile(
  587. "dalvik.prop",
  588. "selected.1=2\n"
  589. );
  590. endif;
  591. if
  592. file_getprop("/tmp/aroma-data/type.prop","selected.1") == "1"
  593. then
  594.  
  595. checkbox(
  596. "<~customizeinstallation>",
  597. "<~customizeinstallationinfo>",
  598. "icons/personalize",
  599. "customize.prop",
  600. #1
  601. # Applications:
  602. "<~applications>","",2,
  603. "Adobe FlashPlayer","<~adobeflashPlayerinfo>",1,
  604. "Adobe Reader", "<~adobereaderinfo>",1,
  605. "FBReader", "<~fbreaderinfo>",0,
  606. "GMail", "The Gmail app: push, sync, conversations, integration, search, and more",1,
  607. "Google Maps", "Navigation, Places, Latitude",1,
  608. "Google Talk", "Freeware voice over Internet protocol (VoIP) client application offered by Google Inc",1,
  609. "Gallery3D", "Default AOSP Android Albums Application",0,
  610. "Picasa", "Picasa Web Albums",1,
  611. "Plurk", "Plurk Application for Android with HTC Sense",0,
  612. "Polaris Office", "Mobile Office Solution which let end-users easily read and edit various document formats of PC in mobile environment",1,
  613. "Voice Dialer", "Control your phone with Voice Actions ",1,
  614. "QuickLookup", "Small application to search contents on phone or web",1,
  615. "Android Market", "Google Play, A free market by Google to download free and paid applications",1,
  616. "Flickr", "To share your photo's online",1,
  617. "ADFree", "Block ads on your android device",0,
  618. "VoiceSearch", "Search things on your phone with Voice Actions",1,
  619. "YouTube", "video-sharing",1,
  620. "Skype", "Make free voice and video calls to anyone else on Skype",0,
  621.  
  622. #2
  623. "Internet & Social Networking","",2,
  624. "Facebook", "Share and stay connected with your friends with the Facebook for Android app",1,
  625. "Twitter", "Follow your interests: instant updates from your friends",1,
  626. #3
  627. "Tools & File Manager","",2,
  628. "EStrong Filemanager","All-in-one File manager, Application manager, Task killer, Dropbox client & ftp client",1,
  629. "Backup Everything", "Makes it easy to backup/restore your files from your Android",0,
  630. "Daemon Controller", "Control your CPU, Overclock, Governoor, Voltage an many more",0,
  631. "FasterFix", "AGPS Server Changer",0,
  632. "Market Enabler", "Enabling any Market contents by fake location",0,
  633. "SimToolKit", "Application for Managing the Sim Card",0,
  634. "DSPManager", "Independent equalizer for the headphone, speaker, and bluetooth.",1,
  635. "RIL Infos", "Simple RIL Infos Displayer,informations about the installed RIL version.",0,
  636. #4
  637.  
  638. "HTC Applications","",2,
  639. "Friendstream", "Show your friends update via HTC Sense Friendstream", 1,
  640. "News Reader", "RSS Reader with HTC Sense News Widget",1,
  641. "HTC Laputa", "HTC Locations and Navigation Service with HTC Sense Widgets",1,
  642. "Mail", "Sync your mail accounts, with HTC Sense Mail Widget",1,
  643. "Notes", "Stunning HTC Notes Application with HTC Sense Notes Widget",1,
  644. "HTC Recommends", "HTC Sense Recommended Applications",1,
  645. "HTC Pen", "Pen Service to allow you draw tiny line in note",1,
  646. "HTC Stock", "HTC Stock applications with HTC Sense Stock Widget",1,
  647. "HTC Task", "Manage your daily tasks with HTC Task with HTC Sense Task Widget",1,
  648. "HTC Watch", "Watch movie preview in HTC Watch with HTC Sense Watch Widget",1,
  649. "HTC Market", "HTC Market 3.4.4",0,
  650. "HTC MarketUpdater", "HTC Automatically Updates Market",0,
  651. "HTC Arabic Keyboard","HTC Arabic Keyboard",0,
  652. "HTC Hebrew Keyboard","HTC Hebrew Keyboard",0,
  653. "HTC dockmode", "dockmode", 1,
  654. "HTC androidnote", "android note", 1,
  655. "HTC appsharing", "appsharing", 1,
  656. "HTC appwidgetpicker","appwidgetpicker", 1,
  657. "APP HTC filemanager","htc file manager", 1,
  658. "htc.idlescreen_sn", "htc idlescreen", 1,
  659. "HTC callerlocation", "htc caller location", 1,
  660. "HTC deskclock", "desk clock", 1,
  661. "HTC downloadproviderui", "download provider ui", 1,
  662. "Google backup transport", "google backup and transport", 1,
  663. "HTC backgrounddatawidget", "htc background data widget", 1,
  664. "HTC connectedmedia", "Htc connected media", 1,
  665. "HTC datastripwidget", "htc data strip widget", 1,
  666. "HTC direct", "HTC direct", 1,
  667. "HTC directdownloadsprovider", "HTC directdownloadsprovider", 1,
  668. "HTC hubsyncprovider", "htc hub sync provider", 1,
  669. "HTC painterview", "htc painter view", 1,
  670. "HTC photowidget", "htc photo widget", 1,
  671. "HTC powerstripwidget", "htc power strip widget", 1,
  672. "HTC ringtonetrimmer", "htc ringtone trimmer", 1,
  673. "HTC ringtonewidget", "htc ringtone widget", 1,
  674. "HTC screenbrightnesswidget", "htc screen brightness widget", 1,
  675. "HTC screentimeoutwidget", "htc screen timeout widget", 1,
  676. "HTC idlescreen_photo", "htc idlescreen photo", 1,
  677. "HTC intsigcamcard", "htc intsig cam card", 0,
  678. "HTC mediauploader", "htc media uploader", 1,
  679. "HTC myhtc", "my htc", 1,
  680. "HTC onlineassetdetails", "htc online asset details", 0,
  681. "HTC protips", "htc protips", 1,
  682. "HTC quicklookup", "htc quick lookup", 1,
  683. "HTC rss", "htc rss", 1,
  684. "HTC showme", "htc showme", 1,
  685. "HTC smartcardservice", "htc smart card service", 0,
  686. "APP soundhound_freemium", "soundhound freemium", 1,
  687. "HTC sketcher", "htc sketcher", 1,
  688. "HTC fmradio", "htc fm radio", 1,
  689.  
  690. #5
  691. "HTC Widgets","",2,
  692. "Bookmarks Widget", "Your browsing bookmarks widget",1,
  693. "Calculator Widget", "Calculator on your Home Screen with selectable skins",1,
  694. "Calendar Widget", "Calendar and Agenda on your Home Screen",1,
  695. "Contact Widget", "Show your favorite contacts in slick HTC Sense Contact Widgets",1,
  696. "FM Radio Widget", "Access your FM Radio directly from your Home Screen",1,
  697. "Music Widget", "Music Player on Home Screen Widget",1,
  698. "QuickLaunch Widget", "Bliss Home Screen Widget with clock and shortcuts",0,
  699. "Trends Widget", "Show current trends topic on your Home Screen",0,
  700. "Genie Widget", "Show News/Weather Widget on Home screen",1,
  701. #6
  702. "Live Wallpapers","",2,
  703. "Magic Smoke Live Wallpaper", "AOSP Magic Smoke Live Wallpaper",1,
  704. "Mode10 Live Wallpaper", "HTC Bokeh Live Wallpaper",1,
  705. "Streak Live Wallpaper", "HTC Streak 3D Rotateable Live Wallpaper",1,
  706. "Visual Live Wallpaper", "AOSP Visualization Live Wallpaper",0,
  707. "Weather Live Wallpaper", "HTC Current Weather Live Wallpaper",1,
  708. #7
  709. "Skins","",2,
  710. "HTC skins", "BlueSky and Burgundy skins",1
  711.  
  712. );
  713. else
  714. # Default .prop
  715. writetmpfile(
  716. "customize.prop",
  717. "item.1.1=1\n"+
  718. "item.1.2=1\n"+
  719. "item.1.3=0\n"+
  720. "item.1.4=1\n"+
  721. "item.1.5=1\n"+
  722. "item.1.6=1\n"+
  723. "item.1.7=0\n"+
  724. "item.1.8=1\n"+
  725. "item.1.9=0\n"+
  726. "item.1.10=1\n"+
  727. "item.1.11=1\n"+
  728. "item.1.12=1\n"+
  729. "item.1.13=1\n"+
  730. "item.1.14=1\n"+
  731. "item.1.15=0\n"+
  732. "item.1.16=1\n"+
  733. "item.1.17=1\n"+
  734. "item.1.18=0\n"+
  735.  
  736. "item.2.1=1\n"+
  737. "item.2.2=1\n"+
  738.  
  739. "item.3.1=1\n"+
  740. "item.3.2=0\n"+
  741. "item.3.3=0\n"+
  742. "item.3.4=0\n"+
  743. "item.3.5=0\n"+
  744. "item.3.6=0\n"+
  745. "item.3.7=1\n"+
  746. "item.3.8=0\n"+
  747.  
  748. "item.4.1=1\n"+
  749. "item.4.2=1\n"+
  750. "item.4.3=1\n"+
  751. "item.4.4=1\n"+
  752. "item.4.5=1\n"+
  753. "item.4.6=1\n"+
  754. "item.4.7=1\n"+
  755. "item.4.8=1\n"+
  756. "item.4.9=1\n"+
  757. "item.4.10=1\n"+
  758. "item.4.11=0\n"+
  759. "item.4.12=0\n"+
  760. "item.4.13=0\n"+
  761. "item.4.14=0\n"+
  762. "item.4.15=1\n"+
  763. "item.4.16=1\n"+
  764. "item.4.17=1\n"+
  765. "item.4.18=1\n"+
  766. "item.4.19=1\n"+
  767. "item.4.20=1\n"+
  768. "item.4.21=1\n"+
  769. "item.4.22=1\n"+
  770. "item.4.23=1\n"+
  771. "item.4.24=1\n"+
  772. "item.4.25=1\n"+
  773. "item.4.26=1\n"+
  774. "item.4.27=1\n"+
  775. "item.4.28=1\n"+
  776. "item.4.29=1\n"+
  777. "item.4.30=1\n"+
  778. "item.4.31=1\n"+
  779. "item.4.32=1\n"+
  780. "item.4.33=1\n"+
  781. "item.4.34=1\n"+
  782. "item.4.35=1\n"+
  783. "item.4.36=1\n"+
  784. "item.4.37=1\n"+
  785. "item.4.38=1\n"+
  786. "item.4.39=0\n"+
  787. "item.4.40=1\n"+
  788. "item.4.41=1\n"+
  789. "item.4.42=0\n"+
  790. "item.4.43=1\n"+
  791. "item.4.44=1\n"+
  792. "item.4.45=1\n"+
  793. "item.4.46=1\n"+
  794. "item.4.47=0\n"+
  795. "item.4.48=1\n"+
  796. "item.4.49=1\n"+
  797. "item.4.50=1\n"+
  798.  
  799.  
  800. "item.5.1=1\n"+
  801. "item.5.2=1\n"+
  802. "item.5.3=1\n"+
  803. "item.5.4=1\n"+
  804. "item.5.5=1\n"+
  805. "item.5.6=1\n"+
  806. "item.5.7=0\n"+
  807. "item.5.8=0\n"+
  808. "item.5.9=1\n"+
  809.  
  810. "item.6.1=1\n"+
  811. "item.6.2=1\n"+
  812. "item.6.3=1\n"+
  813. "item.6.4=0\n"+
  814. "item.6.5=1\n"+
  815.  
  816. "item.7.1=1\n"
  817. );
  818. endif;
  819. checkbox(
  820. "<~chineseaddons>",
  821. "<~chineseaddonsinfo>",
  822. "icons/apps",
  823. "chineseaddon.prop",
  824.  
  825. "HTC Widget_RenrenChat.apk","HTC Widget_RenrenChat.apk",0,
  826. "HTCSinaWeiboWidget.apk","HTCSinaWeiboWidget.apk",0,
  827. "Renren.apk","Renren.apk",0,
  828. "Renren_FSPlugin.apk","Renren_FSPlugin.apk",0,
  829. "Renren_GLRplugin.apk","Renren_GLRplugin.apk",0,
  830. "Sina_Weibo_FSPlugin.apk","Sina_Weibo_FSPlugin.apk",0,
  831. "Sina_Weibo_GLRplugin.apk","Sina_Weibo_GLRplugin.apk",0,
  832. "weibo2.5.0.25_1_1221.apk","weibo2.5.0.25_1_1221.apk",0,
  833. "chinese_screens","Chinese Stock Background screens",0
  834. );
  835.  
  836. ##
  837. #
  838. # Next Screen is Installation UI, So change the next button text to "Install Now"
  839. #
  840. ini_set("text_next", "<~installnow>");
  841.  
  842. ###################################################################################################################
  843. #
  844. # STEP 9 - MAKE SURE USER KNOW THAT NEXT STEP WAS INSTALLATION PROCESS
  845. #
  846. viewbox(
  847. #-- Title
  848. "<~rti>",
  849.  
  850. #-- Text
  851. "<~twirtbi> \n\n"+
  852. "<~press> <b><~installnow></b> <~romnameirti> \n\n"+
  853. "<~iywtrocaoyisp><b><~back></b>. <~pmk> -> <~qitetw>",
  854.  
  855. #-- Icon
  856. "@install"
  857. );
  858. ##
  859. #
  860. # Next Button in successfull installation should be back to "Next >"
  861. #
  862. ini_set("text_next", "<~nnext>");
  863.  
  864.  
  865.  
  866. #-- Extract sleep to /tmp/aroma/sleep. It will be used in updater-script for testing wait script
  867. restotmp("exec_demo/sleep","sleep");
  868. ###################################################################################################################
  869. #
  870. # STEP 10 - INSTALLATION PROCESS
  871. #
  872. setvar("retstatus",
  873. install(
  874. #-- Title
  875. "<~installing>",
  876.  
  877. #-- Installation Process message
  878. "<~pwwiwi><b>"+ini_get("rom_name")+
  879. "</b>. <~tmtsm> <~pntc>",
  880.  
  881. #-- Installation Icon
  882. "@install",
  883.  
  884. #-- Installation Finish Message
  885. "<~tiwhsi><b>"+ini_get("rom_name")+
  886. "</b>. <~pntc>"
  887. )
  888. );
  889.  
  890. ##
  891. #
  892. # Next Button is "Finish"
  893. #
  894. ini_set("text_next", "<~finish>");
  895.  
  896. ###################################################################################################################
  897. #
  898. # STEP 11 - FINISH MESSAGE, Add Checkbox to Reboot or No. Save in "reboot_it" variable
  899. #
  900. # You can use return value or "reboot_it" variable to retrive checkbox value
  901. # Example:
  902. # if (checkviewbox(....)=="1" then
  903. # ... checked ...
  904. # endif;
  905. #
  906. checkviewbox(
  907. #-- Title
  908. "<~installationcompleted>",
  909.  
  910. #-- Text
  911. "<#selectbg_g><b><~congratulations></b></#>\n\n"+
  912. "<b>"+ini_get("rom_name")+"</b><~hbioyd>\n\n"+
  913. "<~installerstatus>"+getvar("retstatus")+"\n\n",
  914.  
  915. #-- Icon
  916. "@welcome",
  917.  
  918.  
  919.  
  920. #-- Checkbox Text
  921. "<~rydn>",
  922.  
  923.  
  924. #-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)
  925. "1",
  926.  
  927. #-- Save checked value in variable "reboot_it" (Optional)
  928. "reboot_it"
  929. );
  930.  
  931. ###
  932. #
  933. # Check if reboot checkbox was checked
  934. if
  935. getvar("reboot_it")=="1"
  936. then
  937. #
  938. # reboot("onfinish"); - Reboot if anything finished
  939. # reboot("now"); - Reboot Directly
  940. # reboot("disable"); - If you set reboot("now") before, use this command to revert it.
  941. #
  942. reboot("onfinish");
  943. endif;
  944.  
  945. #---- FINISH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement