Advertisement
Guest User

Untitled

a guest
Sep 1st, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.39 KB | None | 0 0
  1. # FORCE COLOR
  2. ini_set("force_colorspace","rgba");
  3.  
  4. # ROM/Mod INFORMATION
  5. ini_set("rom_name", "o7th S5 Edition");
  6. ini_set("rom_version", "1.4");
  7. ini_set("rom_author", "kevp75");
  8. ini_set("rom_device", "Galaxy s4 I337");
  9. ini_set("rom_date", "8-22-14");
  10.  
  11. # THEME
  12. theme("franzyroy");
  13.  
  14. splash(7000, "o7th");
  15.  
  16. # FONT
  17. fontresload( "0", "ttf/Roboto-Regular.ttf;ttf/DroidSansFallback.ttf;", "10" );
  18. fontresload( "1", "ttf/Roboto-Regular.ttf;ttf/DroidSansFallback.ttf;", "12" );
  19.  
  20. # LANGUAGE
  21. loadlang("langs/en.lang");
  22.  
  23. # SHOW ROM/Mod INFORMATION
  24.  
  25. viewbox(
  26. #-- Title
  27. "<~welcome.title>",
  28. #-- Text
  29. "<~welcome.text1> <b>"+
  30. #-- Get Config Value
  31. ini_get("rom_name")+
  32. "</b> <~common.for> <b>"+ini_get("rom_device")+"</b>.nn"+
  33. "<~welcome.text2>nn"+
  34. " <~welcome.version>t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>n"+
  35. " <~welcome.updated>t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>nnn"+
  36. "<~welcome.next>",
  37. #-- Icon
  38. "@welcome"
  39. );
  40.  
  41. # LICENSE
  42. agreebox(
  43. #-- Title
  44. "o7th S5 Edition",
  45. #-- Subtitle / Description
  46. "Read Carefully",
  47. #-- Icon:
  48. "@license",
  49. #-- Text Content
  50. resread("license.txt"),
  51. #-- Checkbox Text
  52. "Do you agree??",
  53. #-- Unchecked Alert Message
  54. "You've to agree!!"
  55. );
  56.  
  57. menubox(
  58. "o7th S5 Edition",
  59. "Install or Not, it's your choice!",
  60. "@apps",
  61. "menu.prop",
  62. "Install", "Install This Rom", "@install",
  63. "QUIT", "I'm a quitter... get me outta here", "@install"
  64. );
  65.  
  66. if prop("menu.prop", "selected") == "1" then
  67.  
  68. # Tweak Selection
  69. checkbox(
  70. "Tweaker",
  71. "Choose Tweaks to Apply:",
  72. "@personalize",
  73. "tweaks.prop",
  74. "Zip-Align Data", "Select to zip-align your installed apps every 3 days", 1,
  75. "Modify Mounts", "Select to speed up your main partitions", 1,
  76. "Move Dalvik Cache", "This will move your dalvik-cache to your /cache partition freeing up space for apps", 0,
  77. "Kevs Tweaks", "Clean Logs, Vaccuum Databases, Tweak Network Speeds, etc...", 1
  78. );
  79.  
  80. # App Selection
  81. checkbox(
  82. "App Selection",
  83. "Please note, that if you do not select an S5 app, the S4 counterpart if any, will be installed instead. And as always, any 3rd party launcher can and probably will make some widgets go haywire",
  84. "@personalize",
  85. "apps.prop",
  86. "S5 AccuWeather Widget", "", 1,
  87. "S5 Activity Zone", "", 1,
  88. "S5 Browser", "", 1,
  89. "S5 Calculator", "", 1,
  90. "S5 Gallery", "", 1,
  91. "S5 Group Play", "", 1,
  92. "S5 Memo", "", 1,
  93. "S5 Music Player", "", 1,
  94. "S5 S Note", "", 1,
  95. "S5 S Planner", "", 1,
  96. "S5 S Health", "", 1,
  97. "S5 Smart Remote", "", 1,
  98. "S5 Translator", "", 1,
  99. "S5 Video Player", "", 1,
  100. "S5 Camera", "", 1,
  101. "ViPER4Android", "Best audio effects out there", 0,
  102. "XPosed & Wanam", "XPosed Framework installer and Wanam", 0
  103. );
  104.  
  105. # De-Bloater
  106. menubox(
  107. "De-Bload This Sucka!",
  108. "De-Bloating will not remove any apps you have chosen to include.nBut will get rid of the rest.",
  109. "@apps",
  110. "debloat.prop",
  111. #-------------------------+-----------------[ Menubox Items ]-------------------------+---------------#
  112. # TITLE | SUBTITLE | Item Icons #
  113. #-------------------------+-----------------------------------------------------------+---------------#
  114. "De-Bloat", "Make me slim", "@install", #-- selected = 1
  115. "Don't De-Bloat", "Keep me a piggy", "@install" #-- selected = 2
  116. );
  117.  
  118. # Launcher Selection
  119. selectbox(
  120. "o7th S5 Edition",
  121. "Select your default launcher",
  122. "icons/install",
  123. "launcher.prop",
  124. "Select One", "", 2, #-- Group 1. key = "selected.1"
  125. "Touchwiz", "Default Samsung launcher", 1, #-- selected.1 = 1
  126. "Nova", "Highly customizable, performance driven launcher", 0, #-- selected.1 = 2
  127. "Smart Launcher", "Lightweight intuitive launcher", 0, #-- selected.1 = 3
  128. "Go Launcher EX", "Themable feature packed launcher", 0, #-- selected.1 = 4
  129. "Google Now", "Google's launcher", 0, #-- selected.1 = 5
  130. "Themer", "Highly themable launcher", 0 #-- selected.1 = 6
  131. );
  132.  
  133. # Installation UI
  134. ini_set("text_next", "Install Now");
  135. ini_set("icon_next", "@installbutton");
  136. viewbox(
  137. #-- Title
  138. "Ready to Install",
  139. #-- Text
  140. "Ready to install.nn"+
  141. "Press <b>Install ROM</b> to begin the installation.nn"+
  142. "To review or change any of your installation settings, press <b>Back</b>.nn"+
  143. "Press Menu -> Quit Installation to quit.",
  144. #-- Icon
  145. "@install"
  146. );
  147. alert( "Alert", "Installation will begin now...");
  148. endif;
  149.  
  150. # INSTALLATION PROCESS
  151. if prop("menu.prop","selected")== "1" then
  152.  
  153. ini_set("text_next", "Next");
  154. ini_set("icon_next", "@next");
  155.  
  156. install(
  157. "o7th S5 Edition Installing",
  158. getvar("rom_name") + "n" +
  159. "Go grab a coffee... this may take awhile." +
  160. "",
  161. "icons/install"
  162. );
  163.  
  164. ini_set("text_next", "Finish");
  165. ini_set("icon_next", "@finish");
  166.  
  167. checkviewbox(
  168. #-- Title
  169. "Installation Completed",
  170. #-- Text
  171. "<#selectbg_g><b>Congrats...</b></#>nn"+
  172. "<b>"+ini_get("rom_name")+"</b> has been installed.nn",
  173. #-- Icon
  174. "@welcome",
  175. #-- Checkbox Text
  176. "Reboot your device now.",
  177. #-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)
  178. "1",
  179. #-- Save checked value in variable "reboot_it" (Optional)
  180. "reboot_it"
  181. );
  182. endif;
  183.  
  184. # Check if reboot checkbox was checked
  185. if getvar("reboot_it")=="1" then
  186. reboot("onfinish");
  187. endif;
  188.  
  189. ifelse(file_getprop("/tmp/aroma/menu.prop","selected") == "1",
  190. (
  191. ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  192. ui_print("~ ~");
  193. ui_print("~ Mine ~");
  194. ui_print("~ Safestrap KitKat 4.4.2 ~");
  195. ui_print("~ By kevp75 ~");
  196. ui_print("~ ~");
  197. ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  198. unmount("/system");
  199. unmount("/cache");
  200. unmount("/data");
  201. ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  202. ui_print("~ Prepping Your System ~");
  203. ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  204. mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/cache");
  205. mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/data");
  206. mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");
  207. sleep(1);
  208. show_progress(0.1, 0);
  209. ),
  210. (
  211. ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  212. ui_print("~ ~");
  213. ui_print("~ Mine ~");
  214. ui_print("~ Safestrap KitKat 4.4.2 ~");
  215. ui_print("~ By kevp75 ~");
  216. ui_print("~ ~");
  217. ui_print("~ QUITTER ~");
  218. ui_print("~ ~");
  219. ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  220. unmount("/system");
  221. unmount("/cache");
  222. unmount("/data");
  223. )
  224. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement