yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Aternus:
##
# AROMA-CONFIG
#####################################################################
selectbox( "Choose Boot Animation", "Please choose the boot animation you want:", "@bootanimation", "animation_type.prop",
#----[ Selectbox ]-------------------------------------------------------------------------------------------------
# TITLE |	SUBTITLE |	InitialValue
#------------------------------------------------------------------------------------------------------------------------
"Green X",	"Green X",	1, #--selected.0=1
"Red X",	"Red X",	0, #--selected.0=2
"All Blue",	"Blue HTC and X",	0 #--selected.0=3
#--------[InitialValue: 0=Unselected, 1=Selected, 2=GroupItem, 3=NotVisible]---------#
);

selectbox( "Boot Animation Configuration", "Please choose the customizations you'd like to apply to the boot animation:", "@bootanimation", "animation_config.prop",
#----[ Selectbox ]-------------------------------------------------------------------------------------------------
# TITLE |	SUBTITLE |	InitialValue
#------------------------------------------------------------------------------------------------------------------------
"Background Color",	"",	2, #--group 1
"Black",	"Green X",	1, #--selected.0=1
"White",	"Red X",	0 #--selected.0=2
#--------[InitialValue: 0=Unselected, 1=Selected, 2=GroupItem, 3=NotVisible]---------#
);

##
# UPDATER-SCRIPT
#####################################################################
# GREEN X
if
file_getprop("/tmp/aroma/animation_type.prop", "selected.0")=="1"
then
if file_getprop("/tmp/aroma/animation_config.prop", "selected.0")=="1"; then package_extract_dir("extras/green_x/black", "/system/customize/resource"); endif;
if file_getprop("/tmp/aroma/animation_config.prop", "selected.0")=="2"; then package_extract_dir("extras/green_x/white", "/system/customize/resource"); endif;
endif;
# RED X
if
file_getprop("/tmp/aroma/animation_type.prop", "selected.0")=="2"
then
if file_getprop("/tmp/aroma/animation_config.prop", "selected.0")=="1"; then package_extract_dir("extras/red_x/black", "/system/customize/resource"); endif;
if file_getprop("/tmp/aroma/animation_config.prop", "selected.0")=="2"; then package_extract_dir("extras/red_x/white", "/system/customize/resource"); endif;
endif;
# ALL BLUE
if
file_getprop("/tmp/aroma/animation_type.prop", "selected.0")=="3"
then
if file_getprop("/tmp/aroma/animation_config.prop", "selected.0")=="1"; then package_extract_dir("extras/blue_all/black", "/system/customize/resource"); endif;
if file_getprop("/tmp/aroma/animation_config.prop", "selected.0")=="2"; then package_extract_dir("extras/blue_all/white", "/system/customize/resource"); endif;
endif;
[Android Software/Hacking General [Developers Only]] mattmanwrx:
Thanks look at it on the phone at the moment so it looks all over the place.. will place it in my aroma config either later tonight or tomorrow morning, and report back... Again, thank you very much for your assistance... :)
[Android Software/Hacking General [Developers Only]] grayn0de:
Unable to write to /data/app

I'm having some difficulty with installing .apks from AROMA to /data/app to a ROM that is already installed, but I can install to /system/app just fine. I always get the following error:

package_extract_file: can't open /data/app/RomManager.apk for write: No such file or directory

In updater-script, I essentially have:

# Mount partitions
# mount("MTD", "system", "/system");
# mount("MTD", "userdata", "/data");
run_program("/tmp/aroma/busybox", "mount", "-t", "auto", "/dev/block/mtdblock4", "/system");
run_program("/tmp/aroma/busybox", "mount", "-t", "auto", "/dev/block/mtdblock6", "/data");
run_program("/tmp/aroma/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");

# ...

if file_getprop("/tmp/aroma/add.prop","item.4.6") == 1 then
ui_print(" -ROM Manager");
package_extract_file("opt/apps/RomManager.apk", "/data/app/RomManager.apk");
endif;

# ...

unmount("/system");
unmount("/data");
unmount("/sd-ext");

Saw that someone ran into the same, but they didn't post their fix. ROM as I have it is running DT's Apps2SD on a partitioned sdcard (ext3 for /sd-ext). The above code is for an add/remove option in my installer. Installing .apks to /data/app from the clean Install option works properly.

Any ideas on what I might be doing wrong?
[Android Software/Hacking General [Developers Only]] Aternus:
Don't use busybox to mount partitions, use the proper mount syntax applicable to your device. Obviously the recovery should be configured properly too; in most cases it is.
[Android Software/Hacking General [Developers Only]] grayn0de:
Thanks, but I already tried that. Results were the same regardless of mount method. I think I figured out the issue, though. Looks like it is an issue with apps2sd, as I was able to successfully install .apks to /sd-ext/app. :D

Now I just need to figure out a method to check whether or not a user is running /sd-ext & apps2sd or a standard /data/app setup. :rolleyes:
[Android Software/Hacking General [Developers Only]] Aternus:
Ah it's good that you've found a fix :) Regardless, mounting with busybox can yield unexpected results since each recovery have it setup differently.
[Android Software/Hacking General [Developers Only]] amarullz:
maybe check the /system/etc/init.d is there any app2sd script? or check the /data/app <-- is it symlink or real folder.

But as far as I know (still not 100% sure), if /data/app was symlinked into /sd-ext/app, as long you mounted the /data and /sd-ext, you can directly extract the content into /data/app so it will automatically place the files in /sd-ext/app
[Android Software/Hacking General [Developers Only]] TweetyPeety:
@amarullz could you give me the link to your nightlies, have lost it and there was a Arome Installer Version with File Manager included, can't find it anymore + the description how I can use Settings from the beginning in File Manager. Sorry searched for it shortly but couldn't find it.
[Android Software/Hacking General [Developers Only]] amarullz:
check file manager thread page 2
[Android Software/Hacking General [Developers Only]] mhkabir98:
I am a developer from the HTC Flyer forums, and am integrating AROMA installer into my ROM, so far so good, but the touchscreen is not working.

It works perfectly in AROMA file manager, after calibration. I have a full touch recovery, so drivers are already in place. I might compile AROMA file manager from source and the installer from source too, but if someone could help me, i'll be indebted to you before getting my hands dirty with compiling from source.

The HTC Flyer has a N-Trig touchscreen, if that helps.
[Android Software/Hacking General [Developers Only]] mattmanwrx:
Hi thanks for all your help... It doesn't flash properly... I have attached my .zip and if someone could take a look at what has gone wrong..

AROMA installer opens, goes through all the correct options, but doesn't actually flash (after you click install it just stops at 0.00%).. It gives me "Installer Error (status 0)" - I have looked around, but cannot find anything.

I have attached my work and hopefully someone could give it a look through?

Thanks, Matt

P.S. In a previous post you have said not to use busybox - however, with all the AROMA installer .zips I have mount with busybox and all is fine.. So am happy leaving it there!

Thanks for all help, Matt
[Android Software/Hacking General [Developers Only]] JD2912:
Status 6

Hi Thx for your work. The installation of a rom goes really quickly, but at the end it says installer status 6. the rom then does not work. HELP!
[Android Software/Hacking General [Developers Only]] grayn0de:
Look over your updater-script for any syntax errors (missing quotes, semi-colons, etc). That's the most common culprit of a status 6, in my experience. Check the install log to see if it can provide you with a little more insight. Also make sure that the file is saved with Unix-style linefeeds.
[Android Software/Hacking General [Developers Only]] Sowsix:
MooDeD ICS 80.7 on XPERIA ARC ( http://xdaforums.com/showthread.php?t=1526717 ) use Aroma Installer and ... it's very amazing ! Nice job ! Thanks !
[Android Software/Hacking General [Developers Only]] CosmicDan:
I searched the thread but couldn't find it mentioned, this might be a bug in Clockworkmod-Recovery for the X10 but it only happens in Aroma and with my own custom theme (modified PNG's). Every few seconds the GUI will (shift) a pixel to the right, if I leave it on any screen for a while it will be halfway off and wrapped around!

Just wondering if this is a known bug or if anyone else has experienced this on a different phone? P.S. The Aroma installer is used in the ROM in my signature.
[Android Software/Hacking General [Developers Only]] Crescendo Xenomorph:
Salam Bung Amarullz... :)

Pantesan koq namanya kayaknya Indonesia banget, AROMA... Ternyata beneran yg develop orang Bandung... hehehehe.... :P
[Android Software/Hacking General [Developers Only]] siulmagic:
Iv got a question amarullz , does aroma support 720p res? i tried forcing it with ini_set("dp","1"); #-- XDPI ( 720x1280 / 720p ), but the outcome was not good, the ui resized but its very tiny, im guessing the ui pngs arent ment for 720p res, the reason i as this is because in its default mode, no matter how many time i calibrate the screen , the touch points will be off, as if the screen touch area is smaller than the ui, im not sure if you get what im trying to say, but thats basically it.

I also have a quesiton about the sample.png what are the rules for that image? i made a 220 x 220 image with black background and some text in the center, but when i run the aroma installer, the image gets distorted, no idea whats this is happening.

anyways help will be much apreciated.

and keep up the good work, this will be the standard in all roms.
[Android Software/Hacking General [Developers Only]] boa19861105:
I know how to use
[Android Software/Hacking General [Developers Only]] dannyc93:
I would just like to say this is amazing work man...I just used a ROM (Omega v3.0 on GS3) that supports AROMA and it was truely a shock how you have managed this...great work mate!
[Android Software/Hacking General [Developers Only]] Turge:
Amarullz.. how's your phone doing?
[Android Software/Hacking General [Developers Only]] mattmanwrx:
Hi Everyone, I forgot to add the .zip - have attached it now... Would someone mind taking a look at what is going on... When ever I flash it, it goes through, gets to installing, then does nothing, just doesn't read my updater-script... and the log gives me "Installer Error (Status 0)"...

Could anyone give me a hand with this?

Many thanks, Matt

Download Here

EDIT: Trying to upload now, XDA wont let me upload to their servers anymore, will have to upload to my server..
[Android Software/Hacking General [Developers Only]] Atlos:
I need help, I have:

if file_getprop("/tmp/aroma/custom.prop","item.2.1") == 1 then
ui_print("Install ROM Manager");
package_extract_file("apps/RomManager.apk", "/system/app/RomManager.apk");
endif;

But I get the next error:

package_extract_file: can't open /system/app/RomManager.apk for write: No such file or directory

System partition is mounted and I don't know how to solved it.
[Android Software/Hacking General [Developers Only]] amarullz:
Still not enough money yet, but really thanks for your help... I have some web development project,. maybe in 2-3weeks I can buy replacement phone.. But currently I am on preparing the Android Build Environment, and will starting AROMA Recovery project (general programming first), then after I have a phone, I will start all revelopment again... :D
[Android Software/Hacking General [Developers Only]] carl1961:
you'll have to upload your updater.script for us to see. for some reason it is not creating /system/app on your phone
[Android Software/Hacking General [Developers Only]] shubhamchamaria:
Did you mount /system??
[Android Software/Hacking General [Developers Only]] awektmscandal:
cool dude..:)
[Android Software/Hacking General [Developers Only]] siulmagic:
is there a way to make the font bigger? on my 720p res the font size is very small
[Android Software/Hacking General [Developers Only]] amarullz:
It's easy.. Use version 2.00

Change the font size in aroma-config like this:

fontresload( "0", "ttf/DroidSans.ttf", "12" ); #-- "0" = Small Font ( Look at Fonts & UNICODE Demo Below )
fontresload( "1", "ttf/DroidSans.ttf", "18" ); #-- "1" = Big Font

12 and 18 = is Font Size...
[Android Software/Hacking General [Developers Only]] siulmagic:
thanks apreciate it
[Android Software/Hacking General [Developers Only]] franzyroy:
Hi amarullz,

Do you think that you could add the function "Next" in your future release?

like that:

back - BACK TO PREVIOUS WIZARD

next - NEXT TO FOLLOWING WIZARD

or

back("1");

next("1");

Many regards!

Edit

:

I know that i can to make otherwise but i am afraid that if I skip steps, then the function "BACK" don't come back at the good location, i hope you understand what i want to say!:o
[Android Software/Hacking General [Developers Only]] he_stheone64:
Thx for your Mod, it`s really very flexible. It helped me a lot to develop a fully fledged Tweak Machine.

http://xdaforums.com/showthread.php?t=1683552
[Android Software/Hacking General [Developers Only]] ZoneX:
It could set the aroma-installer to give us a choice between a ROM or another?

Thx, I'm really intersted for this
[Android Software/Hacking General [Developers Only]] grayn0de:
You have to include each ROM in the zip as a folder, then change the aroma-config to give the choice and the updater-script to install based on the option selected. It's the same as giving options for different apps, but on a larger (yet simpler) scale.
[Android Software/Hacking General [Developers Only]] CosmicDan:
Answering my own question, nevermind - it was a bug in FreeXperia CWM-Recovery, changing to another Recovery binary in RAMDisk fixed it. Sorry for spam :)
[Android Software/Hacking General [Developers Only]] ZoneX:
Thanks for answering, I've been testing it with two folders as I said but I can not start the aroma-config (I get constant errors),

It is not their job, but could tell me (or someone) which lines would have to put the begining to let me choose between a ROM and over?

Sorry for my very bad english
[Android Software/Hacking General [Developers Only]] mattmanwrx:
When deleting a file (instead of replacing a file) it goes to "standard" permissions... Maybe set_perm for the framework-res.apk when installing? Might be the problem...
[Android Software/Hacking General [Developers Only]] ZoneX:
And now, I would like to know how to tell the installer to install one or the other, someone would know how to do??

thanks
[Android Software/Hacking General [Developers Only]] Turge:
Hey Amarullz,

Is it possible to run Aroma from within Android OS instead of recovery? I want to capture some screenshots and I've been unable to capture any from 2 different types of devices (HTC One X, Galaxy Nexus) using different recoveries.

Thanks,

Turge
[Android Software/Hacking General [Developers Only]] amarullz:
Use FullScreen.apk in attachment (It was only generic application show fullscreen application).

Push aroma installer update-binary into /data or /sd-ext and chmod it to 755

Then run it in shell using adb shell ( Before starting this command, run the fullscreen application )

# cd /data
# chmod 755 ./update-binary
# ./update-binary 1 0 /sdcard/aroma.zip

/sdcard/aroma.zip was your full rom location.

NOTE: You should create /tmp <-- temporary directory like this:

# mount -o,rw,remount /
# mkdir /data/tmp
# ln -s /data/tmp /tmp

That was the way I am developing it :D
[Android Software/Hacking General [Developers Only]] Turge:
dude.. that's awesome! As always, you come through!

One more thing.. any idea why the interface has a faded, green tint to it?
[Android Software/Hacking General [Developers Only]] blk_jack:
Unfortunately on my phone I see my splash screen and then the it immediately bails.
[Android Software/Hacking General [Developers Only]] amarullz:
Green tint?,.. it may your display framebuffer of recovery was different with display framebuffer in your Android OS. ( It's was common, that the recovery use 16bit color, but the OS use 32bit color)

But it may something else. Because the native AROMA canvas use 16bit 565 (RRRRRGGGGGGBBBBB), so the green will have more intensity. But I think it won't have any problem.

Can you send me some screenshoot?
[Android Software/Hacking General [Developers Only]] amarullz:
You mean when you run AROMA Installer in Android environment?
[Android Software/Hacking General [Developers Only]] Turge:
Actually.. don't think this will work anyways. When I take a screenshot with the built feature (power + home) or using ddsm, all I get is your "AROMA Fullscreen" app :(
[Android Software/Hacking General [Developers Only]] amarullz:
Is it showing the toast when you do the screenshoot? because when it android screen updated, it will redrawn the screen (flicker).

The best way is use ddms.
[Android Software/Hacking General [Developers Only]] Turge:
Sorry, I meant ddms.

Right now, I can see Aroma on my phone's screen, however, when I use ddms to capture a screenshot, all I see is this...
[Android Software/Hacking General [Developers Only]] amarullz:
Refresh the screen capture?
[Android Software/Hacking General [Developers Only]] Turge:
No, it's always the "AROMA Fullscreen" app that comes up. Are you able to take screen caps this way?
[Android Software/Hacking General [Developers Only]] amarullz:
With ddms, yes. I also can take a screenshoot with ddms in recovery.
[Android Software/Hacking General [Developers Only]] blk_jack:
Got it figured out, thanks for the great application! I hope the money I donated a few days ago helps towards getting you back on an Android device.
[Android Software/Hacking General [Developers Only]] amarullz:
That's should be help me alot :D .. Will buy device replacement soon, just a bit again...
[Android Software/Hacking General [Developers Only]] siulmagic:
Quick question does checkbox( have a item selection limit? right now it only accepts 7, when i go beyond it aroma-script breaks
[Android Software/Hacking General [Developers Only]] amarullz:
I don't add any limit, just post your aroma-config here... maybe you do it wrong
[Android Software/Hacking General [Developers Only]] siulmagic:
this is the part im trying to fix

);

checkbox(
"Mod's available on Rezound Maister",
"Please check the ones you want",
"icons/apps",
"mods.prop",

"Super Smooth Rosie","",0,
"Ultra Smooth Rosie","",0,
"LandScape Rosie(Install After First Boot Only!!)","",0,
"Sony Bravia Engine","",0,
"Sony xLoud System","",0,
"Hq Camera","",0,
"Desense(Senseless) Apex launcher will be Installed","",0,
"Tablet Mode (experimental) best used in comb with desense","",0

);

checkbox(
"ICS firmware",
"Please check if your on ics firmware",
"icons/apps",
"mods1.prop",

"sdcard fix","",0,
"null","",0,
"null","",0,
"null","",0,
"null","",0,
"null","",0,
"null","",0,
);
[Android Software/Hacking General [Developers Only]] amarullz:
Remove last comma...
[Android Software/Hacking General [Developers Only]] jokersax11:
What does the cwm log say
[Android Software/Hacking General [Developers Only]] Zen Arcade:
@thommy

Remove the comma after "@default" in your main menu...
[Android Software/Hacking General [Developers Only]] grayn0de:
For something like that, I'd personally use a menubox().

Example:

menubox("MAIN MENU","","@default","rom.prop",

"ROM 1", "Install ROM 1", "@install", #-- selected = 1
"ROM 2", "Install ROM 2", "@install" #-- selected = 2
);

* May not be perfect syntax since I wrote that off the top of my head, but you get the idea.

Check out the sample aroma-config and updater-script for examples and syntax on all of the functions. Go over all of the sample code and you should be able to pick it up pretty quickly.

As for the errors. You need to see what the exact error is. It should give you a clue as to were to debug. Another thing I find helps is using an editor with syntax highlighting... I find that unix shell script highlighting works decently for aroma-config and updater-script syntax. It helps you visually locate syntax errors such as missing quote or parens, etc.
[Android Software/Hacking General [Developers Only]] thommy86:
Thanks for your reply.. but i did something really stupid.. i zipped the complete folder.. now i got this error..

SYNTAX ERROR!!! aroma-config on line 88 col 14

(status 1)

Installation aborted

When i take a look at the script, that should be at "Nederlands", but why?!?!
[Android Software/Hacking General [Developers Only]] Dblfstr:
Missing commas after the 0 after germany

"English", "Welcome to Installer", 1, #-- selected.0 = 1
"Indonesian", "Selamat datang di Installer", 0, #-- selected.0 = 2
"Espanol", "Bienvenido al Instalador", 0, #-- selected.0 = 3
"Simplified Chinesse","?????", 0, #-- selected.0 = 4
"Arabic", "????? ??? ?? ??????", 0, #-- selected.0 = 5
"French", "Bienvenue dans l'installateur", 0, #-- selected.0 = 6
"Russian", "????? ?????????? ? ??????????", 0, #-- selected.0 = 7
"Italian", "Benvenuti Installer", 0, #-- selected.0 = 8
"Hebrew", "?????? ????? ??????", 0, #-- selected.0 = 9
"Germany", "Willkommen bei Installer", 0 #-- selected.0 = 10
"Nederlands", "Welkom bij de installer", 0 #-- selected.0 = 11

after

"Germany", "Willkommen bei Installer", 0 #-- selected.0 = 10
"Nederlands", "Welkom bij de installer", 0 #-- selected.0 = 11
[Android Software/Hacking General [Developers Only]] siulmagic:
wow so simple thanks appreciate it.
[Android Software/Hacking General [Developers Only]] thommy86:
Thank you very much.. but now its giving me an error on line 72.. and i used the original example!
[Android Software/Hacking General [Developers Only]] Dblfstr:
You ran the same code and got a different error? I see no error on line 72, unless something has changed.
[Android Software/Hacking General [Developers Only]] Dblfstr:
What about this comma situation?

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

#-- Will be saved in /tmp/aroma/theme.prop
"lang.prop",

Is that correct syntax?

comma after @default
[Android Software/Hacking General [Developers Only]] thommy86:
Already changed that.. seen it when i just posted.. but now when i install the rom.. i dont get any error.. its just reboot in to recovery after opening installation..
[Android Software/Hacking General [Developers Only]] Dblfstr:
Cannot be sure why that happens. So it is not installing anything? And when instlal complete you get a reboot to recovery with no ROM installed?
[Android Software/Hacking General [Developers Only]] thommy86:
zipped with 7zip.. and got the above.. now i zipped with winrar and get error

(bad)

installation aborted.

nothing is installed.. just reboot in recovery..
[Android Software/Hacking General [Developers Only]] Dblfstr:
I will have to look at it more closely. I guess there could be an error in the aroma-config or the updater script.

WinRAR may have compressed your file though, hence the (bad).

FYI: Just found out about Aroma yesterday, so I am trying to catch up on the whole process. Syntax errors are one thing - some things are more difficult.
[Android Software/Hacking General [Developers Only]] thommy86:
You have been very helpful and kind! i will keep on searching and post when i see something new.. let me know if you have some other tips!

This is also my first aroma-installer.. just trying to learn!

thanks

Edit:

Just change the name from the zip.. miuiscotland_I9100-2.6.1 - Aroma.zip to miuiscotland_I9100-2.6.1_aroma.zip

and now i am getting syntax error on line 231 col 40.. i know the correct syntax for using plane text and a string.. (do you call it a string?)

"Miuiscotland +ini_get("rom_version")+",