#OMJs MOD Pack

theme("sense");


ini_set("rom_name",             "OMJs Sprint One MOD Pack");
ini_set("rom_version",          "V1.2");
ini_set("rom_date",             "April 29th");
ini_set("rom_author",           "OMJ");
ini_set("rom_device",           "HTC Evo 4G LTE");

splash(4000, "omjbot");

  fontresload( "0", "ttf/Roboto-Regular.ttf", "12" ); #-- "0" = Small Font
  fontresload( "1", "ttf/Roboto-Regular.ttf", "18" ); #-- "1" = Big Font


viewbox(
  "Welcome",
    "\n\n\n\n\n"+
    "You're about to flash\n\n"+
	"\t: <b><#selectbg_g>"+ini_get("rom_name")+"</#></b>\n\n"+
    "\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n\n"+
    "\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+
    "Press Next to continue the installation...",
  "@info"
);

resexec("check_if_deodex.sh");

if prop("deodexed_status.prop","odex")=="1" then
	 alert(
	 "ROM Status",
	 "ROM is odexed, installer must exit!"
	 );
exit("");
endif;

if prop("deodexed_status.prop","odex")=="0" then
	 alert(
	 "ROM Status",
	 "ROM is deodexed! Press OK to continue."
	 );
endif;

checkbox(
  "Choose your MODs",
  "Please select the MODs ones you want",
  "@apps",
  "custom.prop",
  
		"Status Bar MODs","",2,
			"Battery % w/ or w/o EQS, semi-trans notification, gps icon removed","Installs SystemUI w/ EQS, Battery % & no gps icon",0,
			"Remove am/pm","This will remove am/pm from the statusbar",0,
			"Clock Options","Add JB colored clock, remove or center the clock in the statusbar",0,
			
		"Prism MODs","",2,
			"App Drawer options","5x6 App Drawer, 6 or 7 dock icons",0,
			
		"App MODs","",2,
			"Disable Exchange Security","This will install Mail with exchange security disabled",0,
			"MMS Awake","This mod will turn the screen on when a new text comes in",0,
			"Disable Power Saver icon","This will disable the power saver icon on the notification pulldown",0,
			"Restore LP Menu/stay awake option","This will restore the LP Menu & stay awake options in settings",0,
			"No Compression MMS","This will install the no compression MMS mod",0,
			
		"Misc MODs","",2,
			"APM","This will install Advanced Power Menu",0,
			"Increase haptic feedback","This will increase haptic feedback",0,
			"Lower Autobrightness","This will lower the autobrightness setting saving battery",0,
			"Disable Signature check","Choose this if your ROM does not already have",0,
			"Hide ADB icon","This will hide the ADB icon",0,
			"Enable EPST","This will update build.prop for EPST access",0

);


if
	file_getprop("/tmp/aroma-data/custom.prop","item.1.1") == "1"
then
		selectbox(
		"Battery % w/ EQS?",
		"Please Select:",
		"@apps",
		"eqs.prop",
  
		"Option 1: Battery %, EQS, semi-trans notification, no gps icon","",0,
		"Option 2: Battery %, EQS, stock black notification, no gps icon","",0,
		"Option 3: Battery %, no EQS, stock black notification, no gps icon","",0

		);
endif;

if
	file_getprop("/tmp/aroma-data/custom.prop","item.1.2") == "1"
then
		selectbox(
		"Remove am/pm?",
		"Please Select:",
		"@apps",
		"ampm.prop",
  
		"Choose if u selected EQS","",0,
		"Choose if you don't have EQS","",0

		);
endif;

if
	file_getprop("/tmp/aroma-data/custom.prop","item.1.3") == "1"
then
		selectbox(
		"StatusBar clock options",
		"Please Select:",
		"@apps",
		"clock.prop",
 
		"Remove the clock","",0,
		"Center the clock","",0,
		"JB colored clock","",0,
		"JB colored clock + Centered","",0
		
		);
endif;

if
	file_getprop("/tmp/aroma-data/custom.prop","item.2.1") == "1"
then
		selectbox(
		"Increase dock icons?",
		"Please Select:",
		"@apps",
		"drawer.prop",
  
		"Option 1: 5x6 App Drawer, stock Dock","",0,
		"Option 2: 5x6 App Drawer, Dock w/ 6 icons, app drawer shortcut moved to far right","",0,
		"Option 3: 5x6 App Drawer, Dock w/ 7 icons, app drawer shortcut centered","",0

		);
endif;

if
	file_getprop("/tmp/aroma-data/custom.prop","item.4.2") == "1"
then
		selectbox(
		"JackHammer?",
		"Please Select:",
		"@apps",
		"haptic.prop",
  
		"Choose if u selected APM","",0,
		"Choose if you don't have APM","",0

		);
endif;

if
	file_getprop("/tmp/aroma-data/custom.prop","item.4.3") == "1"
then
		selectbox(
		"Lower Autobrightness?",
		"Please Select:",
		"@apps",
		"bright.prop",
  
		"Choose if u selected APM","",0,
		"Choose if you don't have APM","",0

		);
endif;

viewbox(
  "Ready To Install",
  "All required information has been gathered for this installation.\n\n"+
  "Click next to begin...",
  "@info"
);

install(
  "Installing",
  "Now flashing <b>"+ini_get("rom_name")+"</b>...\n"+
  "Please Wait...",
  "@install",
  "@install"
);

ini_set("text_next", "Finish");

checkviewbox(
    "Installation Completed",
    "<#selectbg_g><b>Congratulation...</b></#>\n\n"+
    "<b>"+ini_get("rom_name")+"</b> has been installed into your device.\n\n"+
    "Installer Status: "+getvar("retstatus")+"\n\n",
    "@welcome",
    "Reboot your device now.",
    "1",
    "reboot_it"
);

exec("/sbin/cp","/tmp/aroma/.install.log","/sdcard/OMJ/AROMA.log");
exec("/sbin/sync");

if
  getvar("reboot_it")=="1"
then
  reboot("onfinish");
endif;