### FILE INFO:
#
# AROMA Installer 1.64 - AROMA Installer Test Script Configuration
# (c) 2011-2012 by Ahmad Amarullah
# amarullz - xda-developers
# http://www.amarullz.com/
#
# Binary Version : 1.64
# Binary Codename : Cempaka
#
calibrate("0.9300","18","0.9500","24");
##
# Initializing Rom Information
#
ini_set("rom_name", "CoJo`s");
ini_set("rom_version", "CoJo`s Aroma Package");
ini_set("rom_author", "cojo");
ini_set("rom_device", "LG Optimus 2X P990");
ini_set("rom_date", "May, 2012");
##
# Show Simple Splash
#
splash(
5000,
"logo"
);
###################################################################################################################
#
# SELECT THEME
#
theme("miui4");
###################################################################################################################
#
# SHOW ROM INFORMATION
#
viewbox(
"Welcome",
"You are about to configure Transformation Pack for <b>"+
#-- Get Config Value
ini_get("rom_name")+
"</b> for <b>"+ini_get("rom_device")+"</b>.\n\n"+
"This Mod are only for Roms base on V20R or Q Roms"+
"THX to all Peolpe to help creating Themes\n\n"+
" VERSION\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
" DEVELOPER\t: <b><#selectbg_g>"+ini_get("rom_author")+"</#></b>\n"+
" UPDATED\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+
"Press Next to Continue the Installation...",
"@welcome"
);
###################################################################################################################
#
# SELECT TRANSFORMATION PACK
#
selectbox(
"Transformation Pack Selection",
"Please select a Transformation Pack:",
"@default",
"trap.prop",
#-----------------------------------[ Selectbox With Groups ]----------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#
"Transformation Packs", "", 2, #-- Group 1. key = "selected.1"
"Back to Stock", "LG Stock - USE IT TO GO BACK FROM ANOTHER TP", 1, #-- selected.1 = 1
"Black&White Transformation Pack", "Black&White Themed TP by cojo", 0, #-- selected.1 = 2
"Black&White middle clock Transformation Pack", "Black&White Theme by cojo", 0, #-- selected.1 = 3
"Sky Blue Transformation Pack", "bluesky Theme by cojo", 0 #-- selected.1 = 4
#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);
##########################################################################################################
#-- IF Installation type = "Custom" Show Customize Selection
checkbox(
"Customize Your Installation",
"Select the programs or mods you want to installed.",
"@personalize",
"apps.prop",
#------------------------------------------------[ Checkbox Without Group ]----------------------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-------------------------------------------------------------------------------------+---------------#
"Applications", "", 2, #-- Group 1. key = "item.1.x"
"car home", "Car Home", 1, #-- item.1.1
"Clocks", "All Stock Clocks", 1, #-- item.1.2
"FM Radio", "Stock Radio", 1, #-- item.1.3
"Google", "Google Apps", 0, #-- item.1.4
"LG", "Most of LG Apps", 0, #-- item.1.5
"Music", "Stock Music", 1, #-- item.1.6
"Wallpapers", "All Stock Wallpapers", 1 #-- item.1.7
#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);
###################################################################################################################
#
# SELECT MAIN MODS
#
selectbox(
"Main Features",
"Please select features that you want to use in this installation:",
"@default",
"cam.prop",
#-----------------------------------[ Selectbox With Groups ]----------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#
"Boot Animation", "", 2, #-- Group 1. key = "selected.1"
"Stock LG without sounds", "Boot animation from Stock rom", 1, #-- selected.1 = 1
"Bios Bootanimation", "Bios Bootanimation", 0, #-- selected.1 = 2
"Laser", "THX to Worschter", 0, #-- selected.1 = 3
"CIA", "Criminal boot animation", 0, #-- selected.1 = 4
"World TP Bootanimation", "Suggested with BlusSky TP", 0, #-- selected.1 = 5
"Superskill TP Bootanimation", "Suggested with SuperSkill TP", 0, #-- selected.1 = 6
"Swish TP Bootanimation", "Suggested with Swish TP", 0, #-- selected.1 = 7
"Resident Bootanimation", "Suggested with Resident Evil", 0, #-- selected.1 = 8
"Unlock style", "", 2, #-- Group 2. key = "selected.2"
"LG Sui", "SUI Unlock Style", 1, #-- selected.2 = 1
"LG Stock", "Stock Unlock Style", 0, #-- selected.2 = 2
"ASOP", "ASOP Unlock Style", 0, #-- selected.2 = 3
"Camera", "", 2, #-- Group 3. key = "selected.3"
"None", "Leave things as they are", 1, #-- selected.3 = 1
"Stock LG", "Stock LG with ICS Icon", 0, #-- selected.3 = 2
"Flix123 Stock MOD", "Flix123 Stock MOD with ICS Icon", 0, #-- selected.3 = 3
"Flix123 MOD", "Flix123 MOD with ICS Icon", 0, #-- selected.3 = 4
"BR Camera MOD 30Mbs", "BR Camera MOD 30Mbs with ICS Icon", 0, #-- selected.3 = 5
"BR Camera MOD 40Mbs", "BR Camera MOD 40Mbs with ICS Icon", 0, #-- selected.3 = 6
"Font", "", 2, #-- Group 4. key = "selected.4"
"Droid Sans", "Stock Gingerbread font", 0, #-- selected.4 = 1
"Roboto", "ICS Font", 1, #-- selected.4 = 2
"Ubuntu", "Ubuntu Font", 0, #-- selected.4 = 3
"iOSExTrEmE", "iOSExTrEmE Font", 0 #-- selected.4 = 4
#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);
##
#
# Next Screen is Installation UI, So change the next button text to "Install Now"
#
ini_set("text_next", "Install Now");
###################################################################################################################
#
# MAKE SURE USER KNOW THAT NEXT STEP WAS INSTALLATION PROCESS
#
viewbox(
#-- Title
"Now you are ready",
#-- Text
"The wizard is ready to begin installation.\n\n"+
"Press <b>Install Now</b> to begin the installation.\n\n"+
"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.",
#-- Icon
"@install"
);
##
#
# Next Button in successfull installation should be back to "Next >"
#
ini_set("text_next", "Next >");
#-- Extract sleep to /tmp/aroma/sleep. It will be used in updater-script for testing wait script
restotmp("exec_demo/sleep","sleep");
###################################################################################################################
#
# INSTALLATION PROCESS
#
setvar("retstatus",
install(
#-- Title
"Installing",
#-- Installation Process message
"<b>"+ini_get("rom_name")+"</b> are being installed.\n\n"+
"Please wait while installation wizard installs <b>"+ini_get("rom_name")+
"</b>. This may take several minutes.",
#-- Installation Icon
"@install",
#-- Installation Finish Message
"The installation wizard has successfully installed <b>"+ini_get("rom_name")+
"</b>. Press Next to continue."
)
);
##
#
# Next Button is "Finish"
#
ini_set("text_next", "Finish");
###################################################################################################################
#
# FINISH MESSAGE, Add Checkbox to Reboot or No. Save in "reboot_it" variable
#
# You can use return value or "reboot_it" variable to retrive checkbox value
# Example:
# if (checkviewbox(....)=="1" then
# ... checked ...
# endif;
#
checkviewbox(
#-- Title
"Installation Completed",
#-- Text
"<#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",
#-- Icon
"@welcome",
#-- Checkbox Text
"Reboot your device now.",
#-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)
"1",
#-- Save checked value in variable "reboot_it" (Optional)
"reboot_it"
);
###
#
# Check if reboot checkbox was checked
if
getvar("reboot_it")=="1"
then
#
# reboot("onfinish"); - Reboot if anything finished
# reboot("now"); - Reboot Directly
# reboot("disable"); - If you set reboot("now") before, use this command to revert it.
#
reboot("onfinish");
endif;
#---- FINISH