Advertisement
Captain_Throwback

aroma-gpe-m8

Nov 20th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. ini_set("force_colorspace","rgba");
  2. ini_set("dp","6");
  3.  
  4. ini_set("rom_name", "GPE Lollipop Rom, Digitalhigh Edition");
  5. ini_set("rom_version", "5.0");
  6. ini_set("rom_author", "Digitalhigh");
  7. ini_set("rom_device", "HTC M8 VZW");
  8.  
  9.  
  10. splash(
  11. 3000,
  12. "One2"
  13. );
  14.  
  15. if sysprop("ro.boot.mid") == "0P6B20000" then
  16. theme("red");
  17. endif;
  18.  
  19.  
  20. if sysprop("ro.boot.mid") == "0P6B70000" then
  21. theme("yellow");
  22. else
  23. theme("purple");
  24. endif;
  25.  
  26.  
  27. fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );
  28. fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );
  29.  
  30. selectbox(
  31. "Wipe Options",
  32. "Please select:",
  33. "icons/personalize",
  34. "wipe.prop",
  35.  
  36. "Full Wipe","Wipes data and system partitions",0,
  37. "Dirty Dirty","Wipes system but not data",1,
  38. "Update only","Uses previous install settings, no wipes.",0
  39. );
  40.  
  41. if prop("wipe.prop","selected.0") !="3" then
  42.  
  43.  
  44.  
  45. selectbox(
  46. "Carrier Selection",
  47. "Please select your carrier/baseband:",
  48. "icons/personalize",
  49. "carrier.prop",
  50.  
  51. "Verizon","Or variants.",1,
  52. "Sprint","Or variants",0,
  53. "GSM/Stock","Near-vanilla experience.",0
  54. );
  55.  
  56. if prop("carrier.prop","selected.0") == "1" then
  57. theme("red");
  58. endif;
  59.  
  60. if prop("carrier.prop","selected.0") == "2" then
  61. theme("yellow");
  62. else
  63. theme("purple");
  64. endif;
  65.  
  66. ##################Add Apps####################################
  67. checkbox(
  68. "Add Apps",
  69. "Please select which apps you want to add:",
  70. "icons/apps",
  71. "addapps.prop",
  72.  
  73. "Active Display","",0,
  74. "AOSP Browser","5.0 Browser, REMOVES CHROME",0,
  75. "Apollo Music Player","",0,
  76. "Chronus","Weather and clock widget",0,
  77. "Dropbox","Cloud Storage",0,
  78. "GSAM Battery monitor","In-depth battery monitor",0,
  79. "Greenify","Better battery management for running apps",0,
  80. "Rom Toolbox Lite","Root file explorer/terminal/App backup-Manager",0
  81. );
  82.  
  83. ##################System Mods2####################################
  84. checkbox(
  85. "Update Wifi Firmware",
  86. "Please select below:",
  87. "icons/apps",
  88. "fw.prop",
  89.  
  90. "Check here to install lollipop firmware. This is carrier-agnostic.","",1
  91.  
  92. );
  93.  
  94. ######################################################
  95. endif;
  96. ######################################################
  97. #If selected update only, just restore settings from system
  98.  
  99. if prop("wipe.prop","selected.0") == "3" then
  100. pleasewait("Reading configurations...");
  101. setvar("rest_status", resexec("scripts/restore.sh"));
  102. if (getvar("rest_status") != "0") then
  103. alert(
  104. "Error",
  105. "Some files from previous configuration are missing\nPlease perform standard installation",
  106. "@alert"
  107. );
  108. back("1");
  109. endif;
  110. endif;
  111.  
  112. menubox(
  113. "GP Rom, Digitalhigh Edition",
  114. "Ready to install",
  115. "@info",
  116. "menu.prop",
  117. "Install GPE DH Edition","","@install",
  118. "Abort installation","","@default"
  119. );
  120.  
  121. if prop("menu.prop","selected")=="2"
  122. then
  123. exit("");
  124. endif;
  125.  
  126. setvar("retstatus",
  127. install(
  128. "Installing",
  129. "Installing " + ini_get("rom_name") + " " + ini_get("rom_version") +
  130. "...\nPlease wait until it's finished...",
  131. "@install")
  132. );
  133.  
  134. #Save installation config
  135. resexec("scripts/save.sh");
  136. ini_set("text_next", "Finish");
  137.  
  138. if getvar("retstatus")=="0" then
  139. viewbox(
  140. "Installation Completed",
  141. "<#080>Congratulations!!</#>\n\n"+
  142. ini_get("rom_name") + " " + ini_get("rom_version") + " has been installed successfully.\n\n"+
  143. "Tap Finish, and Reboot your phone.\n\nThanks.",
  144. "@info"
  145. );
  146. else
  147. viewbox("Installation Failed","\n\nInstaller Status: "+ getvar("retstatus"),"@alert");
  148. endif;
  149. exit("");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement