[Android Software/Hacking General [Developers Only]] vishal_android freak:
calibrate("0.9718","4","1.0176","-9");

theme("ics");

##

# Initializing Rom Information

#

ini_set("rom_name", "Pure Xperia HD");

ini_set("rom_version", "3.0");

ini_set("rom_author", "vishal_android freak");

ini_set("rom_device", "Xperia 2011");

ini_set("rom_date", "15 10 2012");

#############################################################################

##

# Show Simple Splash

#

splash(

#-- Duration 5000ms / 5 seconds

5000,

#-- <AROMA Resource Dir>/sample.png

"sample"

);

###

#

# Set Small Font to Support all fonts

#

fontresload( "0", "ttf/DroidSans.ttf;ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;", "12" ); #-- Use sets of font (Font Family)

###################################################################################################################

#

# STEP 2 - SHOW ROM INFORMATION

#

viewbox(

#-- Title

"Welcome to Pure Xperia HD!",

#-- Text

"You are about to install <b>"+

#-- Get Config Value

ini_get("rom_name")+

"</b> for <b>"+ini_get("rom_device")+"</b>.\n\n"+

" Version\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+

" Codename\t: <b><#selectbg_g>HD</#></b>\n"+

" Updated\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+

"Press Next to Continue the Installation...",

#-- Icon

"@welcome"

);

###################################################################################################################

#

# STEP 3 - LICENSE

#

agreebox(

#-- Title

"Terms and Condtitions of Installation",

#-- Subtitle / Description

"Please Read Carefully and Press Accept to Continue Installation",

#-- Icon

"@license",

#-- Text Content ( Read from <AROMA Resource Dir>/license.txt )

resread("disclaimer.txt"),

#-- Checkbox Text

"I Agree with this Terms and Conditions...",

#-- Unchecked Alert Message

"Please check the agreement..."

);

###################################################################################################################

#

# STEP 4 - CHANGELOG

#

textbox(

#-- Title

"Offcial Pure Xperia HD Changelog",

#-- Subtitle

"Official Changelog for Pure Xperia HD",

#-- Icon

"@update",

#-- Arg 4

resread("changelog.txt")

);

menubox(

#-- Title

"Pure Xperia HD",

#-- Sub Title

"Please select an item below to continue.",

#-- Icon

"@apps",

#-- Will be saved in /tmp/aroma/demo.prop

"demo.prop",

"Installation", "Install Xperia Ultimate HD", "@install", #-- selected = 1

);

###

##--------------------------------------

#-- Show Alert

alert(

#-- Alert Title

"Warning!",

#-- Alert Text

"Please Make Sure You Know What To Do and Can Revover Your Device In Case of Bootloop, Freeze or other Problems. If You are Running Xperia Neo, Ray, Pro etc please notice that some features are removed due /system partition size",

#-- Alert Icon

"@alert"

);

####

# Customize Install

###

selectbox(

#-- Title

"Pure Xperia HD Customize",

#-- Sub Title

"Select What You Need for Pure Xperia HD ROM",

#-- Icon: <AROMA Resource Dir>/icons/default.png or <ThemeDir>/icon.default.png

"@default",

#-- Will be saved in /tmp/aroma/mods.prop

"mods.prop",

"Camera", "", 2, #-- Group 2. key = "selected.2"

"cybershot", "Holo Style and New Icon", 0, #-- selected.2 = 1

"Stock", "Stock Style and Xperia T Icon", 0, #-- selected.2 = 2

"Lauchers", "", 2, #-- Group 3. key = "selected.3"

"Xperia T 5x4", "Xperia T Launcher 5x4 no Autorotate", 1, #-- selected.3 = 1

"Xperia GX with Settings", "Xperia GX Launcher with Settings for Customisation", 0, #-- selected.3 = 2

"Xperia Sola", "Xperia Sola Launcher", 0, #-- selected.3 = 3

"Bootanimation", "", 2, #-- Group 6. key = "selected.6"

"Xperia T", "Xperia T Bootanimation", 1, #-- selected.6 = 1

"Nexus", "Jelly Bean Bootanimation", 0, #-- selected.6 = 2

"Xperia Z", "Xperia Z bootanimation 0, #-- selected.6 = 3

"Bootloader", "", 2, #-- Group 7. key = "selected.7"

"Locked Bootloader", "Select this If Your Bootloader is Locked", 1, #-- selected.7 = 1

"Unlocked Bootloader", "Select This If Your Bootloader is Unlocked", 0, #-- selected.7 = 2

#--------[ 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");

###################################################################################################################

#

# STEP 9 - MAKE SURE USER KNOW THAT NEXT STEP WAS INSTALLATION PROCESS

#

viewbox(

#-- Title

"Ready to Install",

#-- Text

"ROM is ready to be installed.\n\n"+

"Press <b>Install</b> to begin the installation.\n\n"+

"To Change your Selections Just Press <b>Back</b>.\n\n"+

"Press Menu -> Quit Installation if you are Scared from Bootloop",

#-- 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

#

setvar("retstatus",

install(

#-- Title

"Installing",

#-- Installation Process message

"<b>"+ini_get("rom_name")+"</b> is being installed.\n\n"+

"Patience.",

#-- Installation Icon

"@install",

#-- Installation Finish Message

"<b>"+ini_get("rom_name")+"</b> has been successfully installed. Press Next to continue."

)

);

##

#

# Next Button is "Finish"

#

ini_set("text_next", "Finish");

###################################################################################################################

#

# STEP 11 - 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 Complete",

#-- Text

"<b>"+ini_get("rom_name")+"</b> has been successfully installed.\n\n",

#-- Icon

"@welcome",

#-- Checkbox Text

"Reboot device",

#-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)

"1",

#-- Save checked value in variable "reboot_it" (Optional)

"now"

);

###

#

# Check if reboot checkbox was checked

if

getvar("now")=="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("now");

endif;

#---- FINISH..

Here is my aroma config.. Can anyone tell me.. Where I have gone wrong.. Please.. :(