Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[GUIDE]Complete Guide To Make Aroma Installer For Any ROM

$
0
0
Link to Aroma main thread by amarullz


After Reading and Following this
  • You will be able to make Aroma Installer For Any ROM Yourself
  • You Can Edit And understand Aroma Completely

Read This Carefully
You Will need
  • A zip extraction program
    Notepad++ (If you Dont Have it Get it from Here)

Dont give up in the middle of it.. Feel free to ask me wherever you get stuck up either via PM or posting it here..


You Dont Need Developer Skills For This(Ill Start Right From Scratch)


Basics

Aroma Has The Following Basic GUI Elements you can use ..(Ill First list them and the Give their syntax and usage)
  • Only One selection Menu(You can select only one option)
  • Textbox(For displaying a text file)
  • Multiple selection menu
  • Installation type chooser box
  • Installation UI
  • Yes No dialog Box(You can choose4 yes or no)
  • Info Box(To display info)

All the Code is written in the aroma-config File
When You Extract The Aroma base zip(Link at the end of thread) You will get a folder META-INF
In that go to com
then google
then android
and you'll find your file :)



We Are Done With The Basics .. Lets Start With Each Element in Detail..


Comments

Comments can be anything you want to add to the file ex: Your Name...Comments lines are ingnored by the recovery(Compiler)..

Syntax:
# This is a comment

Example
Code:

#Config file
#Aroma by Akul

Initializing Information
Used to Set ROM Information--

Syntax
ini_set("rom_name","ROM");
ini_set("rom_version","Version");
ini_set("rom_author","You");
ini_set("rom_device","HTC Wildfire");
ini_set("rom_date","Date updated");

Basically the syntax is-->

ini_set("variable name","Value");

Example

Code:

#
# Initializing Information
#
ini_set("rom_name","Cyanogenmod");
ini_set("rom_version","9");
ini_set("rom_author","Akul");
ini_set("rom_device","HTC Buzz");
ini_set("rom_date","13 Jan 2013");

Retrieving Information

Once you set a variable value , you can retrieve it anywhere you want without typing it again..

Syntax:
ini_get("Variable name")

Example
Code:

ini_get("rom_device")
Showing Splash Screen
Splash screen is shown while the aroma is loading..
Splash can be simple or animated

Syntax for splash:

Simple
splash(

Duration in miliseconds,(1ms = 1000sec.)

#-- Aroma/file name.png
"file name"
);

Animated
# Show Animated Splash
#
anisplash(

Number of times to play,

#-
"File Location", Duration,
[Do this for each image..]

Example code

Simple Splash
Code:

##
# Show Simple Splash
#
splash(
  #-- Duration 2000ms / 2 seconds
    2000,
 
  #-- <AROMA Resource Dir>/sample.png
    "sample"
);

Animated Splash

Code:

##
# Show Animated Splash
#
anisplash(
  #-- Number of Loop
    4,
 
  #-- Frame 1 [ Image, duration in millisecond ]. <AROMA Resource Dir>/splash/a[1..6].png
    "splash/a1", 500,
    "splash/a2", 30,
    "splash/a3", 30,
    "splash/a4", 30,
    "splash/a5", 30,
    "splash/a6", 30
);


DUE TO SHORTAGE OF TIME I COULDNT COMPLETE IT TODAY, BUT STICK TO THE THREAD , ILL UPDATE IT EVERYDAY..



Link to Aroma BASE File(Resized FOR LDPI By KYLON)

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>