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

Untitled

By: a guest on Aug 22nd, 2012  |  syntax: None  |  size: 6.25 KB  |  hits: 40  |  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. ### LICENSE:
  2. #
  3. # 2012 Resurrection Remix By Westcrip
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. #      http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. ### FILE INFO:
  18. #
  19. #           Resurrection Remix Jelly Bean
  20. #
  21. #
  22.      
  23. calibrate("0.8429","51","0.9658", "9", "yes");
  24. ini_set("rom_name",             "Resurrection Remix");
  25. ini_set("rom_version",          "3.0.5 jellybean");
  26. ini_set("rom_author",           "neerajganga");
  27. ini_set("rom_device",           "Samsung GalaxyS2G");
  28. ini_set("rom_date",             "");
  29. splash(
  30.     5000,
  31.     "RR"
  32. );
  33.  
  34. anisplash(
  35.     4,
  36.     "splash/a1", 500,
  37.     "splash/a2", 30,
  38.     "splash/a3", 30,
  39.     "splash/a4", 30,
  40.     "splash/a5", 30,
  41.     "splash/a6", 30
  42. );
  43.  
  44. theme("ics");
  45.  
  46. viewbox(
  47.     "Welcome",
  48.     "Installing Resurrection Remix<b>"+
  49.           ini_get("Resurrection Remix JB")+
  50.         "</b> for <b>"+ini_get("")+"</b>SGS2G\n\n"+
  51.     "Relevant information of the ROM:\n\n"+
  52.       "  Version\t: <b><#selectbg_g>"+ini_get("RR 3.0.5")+"</#>RR 3.0.5 JB</b>\n"+
  53.       "  Rom Name\t: <b><#selectbg_g>Resurrection Remix</#></b>\n"+
  54.       "  Rom author\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#>neerajganga</b>\n\n\n"+
  55.     "Press Next to Continue the Installation...",
  56.     "@welcome"
  57. );
  58.  
  59.  
  60. menubox(
  61.     "Installation Mode",
  62.     "AROMA Installer for Resurrection Remix",
  63.     "@install",
  64.     "type.prop",
  65.         "Default Installation",  "","@default",
  66.         "Light Installation",    "","@install",
  67.         " Custom Installation (Recommended)",   "","@personalize"
  68. );
  69.  
  70. ###################################################################################################################
  71. #                                                                                                                 #
  72. #                               Resurrection Remix Jelly Bean by westcrip                                                #
  73. #                                                                                                                 #
  74. ###################################################################################################################
  75.  
  76.                 selectbox(
  77.               "Kernels And Modems",
  78.               "Select Kernel",
  79.               "@addons",
  80.               "kernelm.prop",
  81.  
  82.                   "**Kernel**", "",                                                                                                                                                                             2,  #-- Group 1. key = "selected.1"
  83.                   "CM10",                                                                       "Install Stock CM10 Kernel",                                                                                            0,      #-- selected.1 = 1
  84.                   "Horse Power",                                                        "Install Horse Power v2.1.5 Kernel",                                                                            1,  #-- selected.1 = 2
  85.                 );
  86.     checkbox(
  87.               "Themes",
  88.               "",
  89.               "@themes",
  90.               "themes.prop",
  91.  
  92.                   "Select Themes",   "",        2,  #-- Group 1. key = "selected.1"
  93.                   "Inverted GApps",                                                                     "Untick To install default gapps",      1,   #-- selected.1 = 1
  94.                   "Red holo Theme",                                                                                                   "",       1   #-- selected.1 = 2 
  95.                 );
  96.     checkbox(
  97.               "Launchers",
  98.               "",
  99.               "@launcher",
  100.               "launcher.prop",
  101.                  
  102.                   "Select launchers",   "",                                                                             2,  #-- Group 1. key = "selected.1"    
  103.                   "Experia Launcher",                           "",                     1,  #-- selected.1 = 1
  104.                   "NOVA Launcher",                                  "",                 1  #-- selected.1 = 2
  105.                  
  106.                 );     
  107.     selectbox(
  108.               "GTalk",
  109.               "",
  110.               "@gtalk",
  111.               "gtalk.prop",
  112.                  
  113.                   "Select GTalk",       "",                                                                             2,  #-- Group 1. key = "selected.1"    
  114.                   "Inverted GTalk",                             "install black gtalk",                  0,  #-- selected.1 = 1
  115.                   "Default GTalk",                              "install Default gtalk",            1  #-- selected.1 = 2
  116.                 );      
  117.        
  118. if (prop("type.prop","selected")=="1") then
  119.         writetmpfile(
  120.           "customize.prop",
  121.           "item.1.1=0\n"+
  122.           "item.1.2=0\n"+
  123.           "item.1.3=0\n"+
  124.           "item.1.4=0\n"+
  125.           "item.1.5=0\n"+
  126.           "item.1.6=0\n"+
  127.           "item.1.7=0\n"+
  128.           "item.1.8=0\n"+
  129.           "item.1.9=0\n"+
  130.           "item.1.10=0\n"+
  131.           "item.1.11=0\n"
  132.         );
  133. endif;
  134.  
  135. if (prop("type.prop","selected")=="2") then
  136.         writetmpfile(
  137.           "customize.prop",
  138.           "item.1.1=0\n"+
  139.           "item.1.2=0\n"+
  140.           "item.1.3=0\n"+
  141.           "item.1.4=0\n"+
  142.           "item.1.5=0\n"+
  143.           "item.1.6=0\n"+
  144.           "item.1.7=0\n"+
  145.           "item.1.8=0\n"+
  146.           "item.1.9=0\n"+
  147.           "item.1.10=0\n"+
  148.           "item.1.11=0\n"
  149.         );
  150. endif;
  151.  
  152.  
  153.  
  154. if (prop("type.prop","selected")=="3") then
  155.         checkbox(
  156.           "RR Custom Installation Mode",
  157.           "**Select Applications** ",
  158.           "@personalize",
  159.           "customize.prop",
  160.                
  161.                 "--Applications--",              "",                 2,
  162.                 "Apollo","new cm10 music app",0,
  163.                 "ES explorer","file explorer",1,
  164.                 "RR music player","default rr Music player",0,
  165.             "Samsung Apps","TW task manager & samsung market",0
  166.  
  167.         );
  168. endif;
  169.  
  170. ini_set("text_next", "install RR");
  171.  
  172. viewbox(
  173.     "Ready to Install",
  174.     "The wizard is ready to begin installation.\n\n"+
  175.         "Press <b>Install Now</b> to begin the installation.\n\n"+
  176.         "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.",
  177.     "@install"
  178. );
  179.  
  180. ini_set("text_next", "Next >");
  181.  
  182. setvar("retstatus",
  183.   install(
  184.       "Installing RR",
  185.        
  186.           "<b>"+ini_get("RR")+"</b>RR is being installed.\n\n"+
  187.       "Please wait while installation wizard installs <b>"+ini_get("Resurrection Remix JB")+
  188.           "</b>. This may take several minutes.",
  189.        
  190.       "@install",
  191.        
  192.       "The installation wizard has successfully installed <b>"+ini_get("Resurrection Remix ics")+
  193.           "</b>. Press Next to continue."
  194.   )
  195. );
  196.  
  197. ini_set("text_next", "Finish");
  198.  
  199. checkviewbox(
  200.     "Installation Completed",
  201.     "<#selectbg_g><b>Installation is Done...</b></#>\n\n"+
  202.     "<#selectbg_g><b>Thanks For Installing Resurrection Remix</b></#>\n\n"+
  203.         "<b>"+ini_get("RR")+"</b>RR has been installed into your device.\n\n"+
  204.     "Installer Status: "+getvar("retstatus")+"\n\n",
  205.     "@welcome",
  206.     "Reboot your device now.",
  207.     "1",
  208.     "reboot_it"
  209. );
  210.  
  211. if
  212.   getvar("reboot_it")=="1"
  213. then
  214.   reboot("onfinish");
  215. endif;