Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 8th, 2012  |  syntax: None  |  size: 6.01 KB  |  views: 361  |  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. # AROMA Installer - AROMA Configuration
  2. #       (c) 2011 by Ahmad Amarullah
  3. #           amarullz - xda-developers
  4. #           http://www.amarullz.com/
  5. #       Version 1.10
  6. calibrate("1.70","30","0.90","24");
  7. calibtool("");
  8. ini_set("customkeycode_up",     "115");
  9. ini_set("customkeycode_down",   "114");
  10. ini_set("customkeycode_select", "107");
  11. ini_set("customkeycode_menu",   "229");
  12. ini_set("customkeycode_back",   "158");
  13. ini_set("rom_name","NottachTrix 4G");
  14. ini_set("rom_version","1.2.8");
  15. ini_set("rom_author","Nottach");
  16. ini_set("rom_device","Motorola Atrix 4G");
  17. splash(1000, "splash");
  18.   theme("darkside");
  19. agreebox(
  20.   "Welcome",
  21.   "You are about to install NottachTrix.",
  22.   "@license",
  23.   readfile_aroma("agreement.txt"),
  24.   "I get it, lets go...",
  25.   "To Cancel Installation Press the Home Button..."
  26. );
  27. textbox(
  28.   "Changelog",
  29.   "Changelog Version 1.2.8",
  30.   "@info",
  31.   readfile_aroma("changelog_en.txt")
  32. );
  33. menubox(
  34.     "Install Type",
  35.     "Install NottachTrix",
  36.     "@install",
  37.     "type.prop",
  38.     "Install or Update","Install or Update NottachTrix System.","@apps",
  39.     "Change or Add","Tweak Your Current NottachTrix Setup.","@apps"
  40. );
  41. if
  42.     file_getprop("/tmp/aroma-data/type.prop","selected") == "1"
  43. then
  44. selectbox(
  45.   "Rom Options",
  46.   "Important Rom Settings:",
  47.   "@personalize",
  48.   "romoption.prop",
  49.     "Installation Type","",2,
  50.       "FULL Wipe","A complete factory reset with format System, Cache and Data",1,
  51.       "NON Wipe","Formats only Cache and Dalvik Cache to avoid errors",0
  52. );
  53. else
  54.   writetmpfile(
  55.     "romoption.prop",
  56.       "item.1.1=0\n"+
  57.       "item.1.2=0\n"
  58.   );
  59. endif;
  60. checkbox(
  61.   "Customize Installation",
  62.   "Check any Applications, Mods, Services which you want to Install in the list below:",
  63.   "@personalize",
  64.   "applications.prop",
  65.   "Google Apps","",2,  
  66.     "GMail","The Gmail app: push, sync, conversations, integration, search, and more",1,
  67.     "Maps","Navigation, Places, Latitude",1,
  68.     "Street View","Add-On for Google Maps",1,
  69.     "Talk","Freeware voice over Internet protocol (VoIP) client application offered by Google Inc",1,
  70.     "Market","Official Google MarketPlace",1,
  71.     "VoiceSearch","Search everything using Voice Actions",1,
  72.     "VoiceCommand","Control your phone with Voice Actions",1,
  73.     "YouTube","Watch millions of videos on YouTube",1,
  74.   "Keyboards","",2,
  75.     "Swype", "Swype.apk",0,
  76.     "GreekIME", "GreekIME.apk",0,
  77.   "Live Wallpapers","",2,
  78.     "Forest Live Wallpaper", "Moto Forest Live Wallpaper",0,
  79.     "Live Wallpapers", "Stock Live Wallpapers",0,
  80.     "Magic Smoke Live Wallpaper", "AOSP Magic Smoke Live Wallpaper",0,
  81.     "Visualization Live Wallpaper", "AOSP Visualization Live Wallpaper",0,
  82. );
  83. checkbox(
  84.   "Customize Installation",
  85.   "Check any 3rd Party Applications you want to Install:",
  86.   "@personalize",
  87.   "third.prop",
  88.   "User Apps (Uninstallable)","",2,
  89.     "Titanium Backup","Backup and Restore Apps",0,
  90.     "ROM Manager","Flash Fix Backup and Restore Your ROM",0,
  91.     "DropBox","Access Your Cloud Files at DropBox",0,
  92.     "Es File Explorer","Root File Explorer (Set Root in Options)",0,
  93.     "Box","Access Your Cloud Files at Box",0,
  94.     "NottachTrix","App by Frustratez",0
  95. );
  96. selectbox(
  97.   "Camera Options",
  98.   "Choose Your Camera and Gallery Combination:",
  99.   "@apps",
  100.   "camoption.prop",
  101.     "Camera","",2,
  102.       "Stock - Blur","Oringinal Atrix Camera and Blur Gallery",1,
  103.       "Droid 3 - Blur","Droid 3 Camera and Blur Gallery",0,
  104. );
  105. checkbox(
  106.     "Select Mods",
  107.     "Select ROM Mods:",
  108.     "@apps",
  109.     "mods.prop",
  110.     "Wake on Volume","",2,
  111.       "Wake on Volume","MOD will cause screen to turn on by pressing either volume button",0,
  112.     "Settings Menu","",2,
  113.       "Black Settings Menu","Black settings menu",0,
  114.         "Homescreen","",2,
  115.           "Landscape BlurHome","Allows landscape on homescreen",0,
  116.         "Media Volume","",2,
  117.           "30 Steps","Finer Media Volume (Default = 15)",0,
  118.         "Data Manager","",2,
  119.           "With Data Meter","Records Data Usage, May Use More Battery",0
  120. );
  121. selectbox(
  122.     "Boot Amimations",
  123.     "Choose your boot animation:",
  124.     "@personalize",
  125.     "animation.prop",
  126.         "Bootanimation","",2,
  127.       "NottachTrix Standard","Custom Boot Animation",1,
  128.       "Galaxy Nexus","Samsung Galaxy Nexus Boot Animation",0,
  129.       "3D Droid","3D Android HUD Boot Animation",0,
  130.       "B&W Droid","Black and White Particle Ring",0
  131. );
  132. if
  133.     file_getprop("/tmp/aroma-data/type.prop","selected") == "1"
  134. then
  135. selectbox(
  136.     "Select Kernel",
  137.     "Choose your kernel:",
  138.     "@apps",
  139.     "ramfix.prop",
  140.     "Kernel Options","",2,
  141.       "Stock AT&T","<#F00>AT&T users only!</#>",1,
  142.       "RamFix","<#F00>Intl users only!</#>",0,
  143.       "Stock D00","<#F00>D00 tegra-part only!</#>",0,
  144.       "Stock 1100","<#F00>1100 tegra-part only!</#>",0,
  145.       "Faux 1.00Ghz","<#F00>All users.</#>",0,
  146.       "Faux 1.00Ghz EXT4","<#F00>All users. Experimental, WILL WIPE ALL DATA!</#>",0,
  147.       "Faux 1.30Ghz","<#F00>All users.</#>",0,
  148.       "Faux 1.30Ghz EXT4","<#F00>All users. Experimental, WILL WIPE ALL DATA!</#>",0,
  149.       "Faux 1.45Ghz","<#F00>All users.</#>",0,
  150.       "Faux 1.45Ghz EXT4","<#F00>All users. Experimental, WILL WIPE ALL DATA!</#>",0
  151. );
  152. else
  153.   writetmpfile(
  154.     "ramfix.prop",
  155.       "item.1.1=0\n"+
  156.       "item.1.2=0\n"+
  157.       "item.1.3=0\n"+
  158.       "item.1.4=0\n"+
  159.       "item.1.5=0\n"+
  160.       "item.1.6=0\n"+
  161.       "item.1.7=0\n"+
  162.       "item.1.8=0\n"
  163.   );
  164. endif;
  165. viewbox(
  166.  "Ready to install",
  167.     "\n\n"+
  168.     "Start the installation?\n\n"+
  169.     "Click on NEXT to start...",
  170.   "@info"
  171. );
  172. install(
  173.   "Installation",
  174.     "AROMA Installer started...\nPlease wait...",
  175.   "@install"
  176. );
  177. ini_set("text_next","FINISH!");
  178. checkviewbox(
  179.     "Installation Completed",
  180.     "<b>Congratulations...</b>\n\n"+
  181.     "<#selectbg_g><b>NottachTrix</b></#> has been installed on your device.\n\n"+
  182.     "Attention:\n\n"+
  183.     "<#F00>A (status 0) error after exiting Aroma is normal</#>\n\n",
  184.     "@info",
  185.     "Reboot your device now.",
  186.     "1",
  187.     "reboot_it"
  188. );
  189. if
  190.   getvar("reboot_it")=="1"
  191. then
  192.   reboot("now");
  193. endif;