Don't like ads? PRO users don't see any ads ;-)
Guest

cojo11 aroma-config fixed

By: a guest on May 19th, 2012  |  syntax: Bash  |  size: 10.21 KB  |  hits: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ### FILE INFO:
  2. #
  3. # AROMA Installer 1.64 - AROMA Installer Test Script Configuration
  4. #       (c) 2011-2012 by Ahmad Amarullah
  5. #           amarullz - xda-developers
  6. #           http://www.amarullz.com/
  7. #
  8. #       Binary Version  : 1.64
  9. #       Binary Codename : Cempaka
  10. #
  11. calibrate("0.9300","18","0.9500","24");
  12.  
  13. ##
  14. # Initializing Rom Information
  15. #
  16. ini_set("rom_name",             "CoJo`s");
  17. ini_set("rom_version",          "CoJo`s Aroma Package");
  18. ini_set("rom_author",           "cojo");
  19. ini_set("rom_device",           "LG Optimus 2X P990");
  20. ini_set("rom_date",             "May, 2012");
  21. ##
  22. # Show Simple Splash
  23. #
  24. splash(
  25.     5000,
  26.     "logo"
  27. );
  28.  
  29.  
  30. ###################################################################################################################
  31. #
  32. # SELECT THEME
  33. #
  34. theme("miui4");
  35.  
  36. ###################################################################################################################
  37. #
  38. # SHOW ROM INFORMATION
  39. #
  40. viewbox(
  41.     "Welcome",
  42.     "You are about to configure Transformation Pack for <b>"+
  43.           #-- Get Config Value
  44.           ini_get("rom_name")+
  45.         "</b> for <b>"+ini_get("rom_device")+"</b>.\n\n"+
  46.  
  47.     "This Mod are only for Roms base on V20R or Q Roms"+
  48.     "THX to all Peolpe to help creating Themes\n\n"+
  49.  
  50.       "  VERSION\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
  51.       "  DEVELOPER\t: <b><#selectbg_g>"+ini_get("rom_author")+"</#></b>\n"+
  52.           "  UPDATED\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+
  53.  
  54.     "Press Next to Continue the Installation...",
  55.     "@welcome"
  56. );
  57.  
  58.  
  59. ###################################################################################################################
  60. #
  61. # SELECT TRANSFORMATION PACK
  62. #
  63.  
  64. selectbox(
  65.       "Transformation Pack Selection",
  66.       "Please select a Transformation Pack:",
  67.       "@default",
  68.       "trap.prop",
  69.  
  70.           #-----------------------------------[ Selectbox With Groups ]----------------------------------#
  71.           # TITLE            |  SUBTITLE                                                 | Initial Value #
  72.           #------------------+-----------------------------------------------------------+---------------#
  73.  
  74.     "Transformation Packs",                         "",                                             2,  #-- Group 1. key = "selected.1"
  75.           "Back to  Stock",                                                                               "LG Stock - USE IT TO GO BACK FROM ANOTHER TP", 1,      #-- selected.1 = 1
  76.           "Black&White Transformation Pack",                                            "Black&White Themed TP by cojo",                            0,      #-- selected.1 = 2
  77.           "Black&White middle clock Transformation Pack", "Black&White Theme by cojo",                          0,      #-- selected.1 = 3
  78.           "Sky Blue Transformation Pack",                                       "bluesky Theme by cojo",                                                          0       #-- selected.1 = 4
  79.           #--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
  80.   );
  81.  
  82.  
  83. ##########################################################################################################
  84.   #-- IF Installation type = "Custom" Show Customize Selection
  85.   checkbox(
  86.       "Customize Your Installation",
  87.       "Select the programs or mods you want to installed.",
  88.       "@personalize",
  89.       "apps.prop",
  90.          
  91.           #------------------------------------------------[ Checkbox Without Group ]----------------------------------------------#
  92.           # TITLE            |  SUBTITLE                                                                           | Initial Value #
  93.           #------------------+-------------------------------------------------------------------------------------+---------------#
  94.  
  95.     "Applications", "",                     2,  #-- Group 1. key = "item.1.x"
  96.     "car home",     "Car Home",             1,      #-- item.1.1
  97.     "Clocks",       "All Stock Clocks",     1,      #-- item.1.2
  98.     "FM Radio",     "Stock Radio",          1,      #-- item.1.3
  99.     "Google",           "Google Apps",          0,      #-- item.1.4
  100.     "LG",           "Most of LG Apps",      0,      #-- item.1.5
  101.     "Music",        "Stock Music",          1,      #-- item.1.6
  102.     "Wallpapers",   "All Stock Wallpapers", 1       #-- item.1.7
  103.                 #--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
  104.   );
  105.  
  106. ###################################################################################################################
  107. #
  108. # SELECT MAIN MODS
  109. #
  110.   selectbox(
  111.       "Main Features",
  112.       "Please select features that you want to use in this installation:",
  113.       "@default",
  114.       "cam.prop",
  115.  
  116.           #-----------------------------------[ Selectbox With Groups ]----------------------------------#
  117.       # TITLE            |  SUBTITLE                                                 | Initial Value #
  118.           #------------------+-----------------------------------------------------------+---------------#
  119.  
  120.       "Boot Animation",        "",                                                          2,  #-- Group 1. key = "selected.1"
  121.             "Stock LG without sounds",     "Boot animation from Stock rom",                     1,      #-- selected.1 = 1
  122.             "Bios Bootanimation",           "Bios Bootanimation",          0,      #-- selected.1 = 2
  123.             "Laser",                    "THX to Worschter",                                                     0,      #-- selected.1 = 3
  124.                 "CIA",                  "Criminal boot animation",                                      0,      #-- selected.1 = 4
  125.                 "World TP Bootanimation",                       "Suggested with BlusSky TP",                    0,      #-- selected.1 = 5
  126.                 "Superskill TP Bootanimation",          "Suggested with SuperSkill TP",                 0,      #-- selected.1 = 6
  127.                 "Swish TP Bootanimation",                       "Suggested with Swish TP",                      0,      #-- selected.1 = 7
  128.                 "Resident Bootanimation",                       "Suggested with Resident Evil",                 0,      #-- selected.1 = 8
  129.  
  130.                 "Unlock style",        "",                                                          2,  #-- Group 2. key = "selected.2"
  131.             "LG Sui",      "SUI Unlock Style",                                                                          1,      #-- selected.2 = 1
  132.                 "LG Stock",        "Stock Unlock Style",                                                                        0,      #-- selected.2 = 2
  133.             "ASOP",        "ASOP Unlock Style",                                                                         0,      #-- selected.2 = 3
  134.  
  135.                 "Camera",        "",                                                                            2,  #-- Group 3. key = "selected.3"
  136.             "None",                                     "Leave things as they are",                                                     1,      #-- selected.3 = 1
  137.             "Stock LG",                                 "Stock LG with ICS Icon",                                               0,      #-- selected.3 = 2
  138.             "Flix123 Stock MOD",            "Flix123 Stock MOD with ICS Icon",                                  0,      #-- selected.3 = 3
  139.                 "Flix123 MOD",                          "Flix123 MOD with ICS Icon",                            0,      #-- selected.3 = 4
  140.                 "BR Camera MOD 30Mbs",                  "BR Camera MOD 30Mbs with ICS Icon",                0,      #-- selected.3 = 5
  141.                 "BR Camera MOD 40Mbs",                  "BR Camera MOD 40Mbs with ICS Icon",                0,      #-- selected.3 = 6
  142.  
  143.                 "Font",        "",                                                              2,  #-- Group 4. key = "selected.4"
  144.             "Droid Sans",          "Stock Gingerbread font",                                                                    0,      #-- selected.4 = 1
  145.             "Roboto",      "ICS Font",                                                                                                  1,      #-- selected.4 = 2
  146.                 "Ubuntu",          "Ubuntu Font",                                                                                       0,      #-- selected.4 = 3
  147.                 "iOSExTrEmE",      "iOSExTrEmE Font",                                                                           0      #-- selected.4 = 4
  148.                 #--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
  149.   );
  150. ##
  151. #
  152. # Next Screen is Installation UI, So change the next button text to "Install Now"
  153. #
  154. ini_set("text_next", "Install Now");
  155.  
  156. ###################################################################################################################
  157. #
  158. # MAKE SURE USER KNOW THAT NEXT STEP WAS INSTALLATION PROCESS
  159. #
  160. viewbox(
  161.   #-- Title
  162.     "Now you are ready",
  163.  
  164.   #-- Text
  165.     "The wizard is ready to begin installation.\n\n"+
  166.         "Press <b>Install Now</b> to begin the installation.\n\n"+
  167.         "If you want to review or change any of your installation settings, press <b>Back</b>. Press Menu Key -> Quit Installation to exit the wizard.",
  168.  
  169.   #-- Icon
  170.     "@install"
  171. );
  172.  
  173. ##
  174. #
  175. # Next Button in successfull installation should be back to "Next >"
  176. #
  177. ini_set("text_next", "Next >");
  178.  
  179. #-- Extract sleep to /tmp/aroma/sleep. It will be used in updater-script for testing wait script
  180. restotmp("exec_demo/sleep","sleep");
  181.  
  182.  
  183. ###################################################################################################################
  184. #
  185. # INSTALLATION PROCESS
  186. #
  187. setvar("retstatus",
  188.   install(
  189.         #-- Title
  190.       "Installing",
  191.  
  192.         #-- Installation Process message
  193.           "<b>"+ini_get("rom_name")+"</b> are being installed.\n\n"+
  194.       "Please wait while installation wizard installs <b>"+ini_get("rom_name")+
  195.           "</b>. This may take several minutes.",
  196.  
  197.         #-- Installation Icon
  198.       "@install",
  199.  
  200.         #-- Installation Finish Message
  201.       "The installation wizard has successfully installed <b>"+ini_get("rom_name")+
  202.           "</b>. Press Next to continue."
  203.   )
  204. );
  205.  
  206. ##
  207. #
  208. # Next Button is "Finish"
  209. #
  210. ini_set("text_next", "Finish");
  211.  
  212. ###################################################################################################################
  213. #
  214. # FINISH MESSAGE, Add Checkbox to Reboot or No. Save in "reboot_it" variable
  215. #
  216. # You can use return value or "reboot_it" variable to retrive checkbox value
  217. # Example:
  218. # if (checkviewbox(....)=="1" then
  219. #    ... checked ...
  220. # endif;
  221. #
  222. checkviewbox(
  223.   #-- Title
  224.     "Installation Completed",
  225.  
  226.   #-- Text
  227.     "<#selectbg_g><b>Congratulation...</b></#>\n\n"+
  228.     "<b>"+ini_get("rom_name")+"</b> has been installed into your device.\n\n"+
  229.     "Installer Status: "+getvar("retstatus")+"\n\n",
  230.  
  231.   #-- Icon
  232.     "@welcome",
  233.  
  234.   #-- Checkbox Text
  235.     "Reboot your device now.",
  236.  
  237.   #-- Initial Checkbox value ( 0=unchecked, 1=checked ) -  (Optional, default:0)
  238.     "1",
  239.  
  240.   #-- Save checked value in variable "reboot_it" (Optional)
  241.     "reboot_it"
  242. );
  243.  
  244. ###
  245. #
  246. # Check if reboot checkbox was checked
  247. if
  248.   getvar("reboot_it")=="1"
  249. then
  250.   #
  251.   # reboot("onfinish");   - Reboot if anything finished
  252.   # reboot("now");        - Reboot Directly
  253.   # reboot("disable");    - If you set reboot("now") before, use this command to revert it.
  254.   #
  255.   reboot("onfinish");
  256. endif;
  257.  
  258. #---- FINISH