yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] cojo11:
now its on Line 12 col1

I jump out of the Window:)

[QUOTEshow_progress(1.000000, 0);

ui_print("- - - - - - - - - - - - - - - - - - - - - - - -");

ui_print("- - Ghostrider goes ICS - -");

ui_print("- - Aroma Version - -");

ui_print("- - Creadet by CoJo - -");

ui_print("- - ICS 20G by Stefan Guendhoer - -");

ui_print("- - Deodex Version Nov.2012 - -");

ui_print("- - Enjoy your Ride - -");

ui_print("- - - - - - - - - - - - - - - - - - - - - - - -");

ui_print("");

###

# WIPE DATA

###

set_progress(0.01);

ui_print(" ");

ui_print("@Preparing partitions");

if

file_getprop("/tmp/aroma-data/wipe.prop","selected.1") == "1"

then

ui_print(" Format /system");

ui_print(" Format /data");

ui_print(" Install System");

set_progress(0.05);][/QUOTE]
[Android Software/Hacking General [Developers Only]] nishbul:
Where is your endif, every if has to end with an endif;

---------- Post added at 07:04 PM ---------- Previous post was at 07:02 PM ----------

try this
[Android Software/Hacking General [Developers Only]] cojo11:
the same
[Android Software/Hacking General [Developers Only]] mDroidd:
Yeah, sounds like my problem.

Do you own a GNex too, or is it on any device? I'll try building it from source and see if he updated it already...
[Android Software/Hacking General [Developers Only]] nishbul:
@mDroidd - I was able to solve mine, the problem was in the updater-Script, usually if aroma-config doesnt give you any errors, its always usually the updater-script, if you have set the retstatus variable, it will give you a error number which will help you in solving the issues, you can set it and retrieve like the code below, I have taken that from my installer.

I am on GNote 2, but I am testing my installer on an HTC Desire running CM7.2, it runs the same on both the devices.
[Android Software/Hacking General [Developers Only]] mDroidd:
What error did you get then?

Or did it work instantly after changing the code to yours?
[Android Software/Hacking General [Developers Only]] cojo11:
I still got an Error,can somebody help me Please

Line 10 col1

Updater-script

aroma-config
[Android Software/Hacking General [Developers Only]] Patrics83:
I suggest that next time when you have loads of problems.

adb pull /tmp/recovery.log

It will give you more info about the problem then just the error output in recovery.

And when you are in desperate need for help, upload the aroma-config file instead of pastebin.

found 3 issues.

"sif" instead of if

missing endif;

and a bad # comment at the end.

Are you on windows? if yes do you use notepad++?

Anyway, in the attachments you will find a working aroma-config.

And keep in mind this is a development thread, not support thread. ;)

for questions like yours go here

Good luck!
[Android Software/Hacking General [Developers Only]] haris182:
mantap, kang! sukses terus! :D

-------------

nice, bro! hope for your bright future! :D
[Android Software/Hacking General [Developers Only]] cojo11:
ups,the Last Time i must ask,it was here,sorry

Thx,i will try this,yes,use Windows with Proton and SciTe
[Android Software/Hacking General [Developers Only]] sniper:
I'm still absolutely loving Aroma and all of its awesomeness. I'm using it in my rom, LightWeight.

I was wondering if it would be possible to get an expandable list item in the future?
[Android Software/Hacking General [Developers Only]] zhuhang:
OP asked us to replace update-binary-installer with a working rom update-binary

Then the one which comes with the aroma installer is for what?
[Android Software/Hacking General [Developers Only]] Deadly:
he asked you to change it only if you are having problems with the aroma binary in the first place...

you can do it for your own good, so that IF aroma binary didnt work for you... you dont have to change binary later..

so its good measure to use a binary which is already working fine for you..

op works hard on these projects and gives us such nice feature... if you cant even replace a simple binary.. then why use aroma installer? make one yourself and use it..

is it really that hard to change a simple binary for you??
[Android Software/Hacking General [Developers Only]] rajatmendus:
Remove aroma?

I'm trying to flash cm 10 on my wildfire s. When I'm installing it i get a error saying:

"

Starting AROMA INSTALLER version 2.56

FUNCTION ERROR!!! aroma-config: checkbox() expects more than 7 args, got 4

E;Error in /sdcard/cm10.zip

(Status 1)

Installation Aborted. "

I have flashed this rom a couple of times but I'm getting this error now. Is it because i flashed aroma installer?

If that is the problem is there any way to fix it, get aroma removed?

Any help is appreciated!!
[Android Software/Hacking General [Developers Only]] azoller1:
i really wish i could use for the lg spectrum, but any other aroma installer i have flashed it always reboots, any ideas?
[Android Software/Hacking General [Developers Only]] 7OH:
Can be increased number of lines in dialogs ?

In some cases 4 lines are too small to describe things - mostly at start of config we need write long description.

And many languages have good, but long words.
[Android Software/Hacking General [Developers Only]] azoller1:
Bump?
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
Find errors in updater-script

So, as I'm sure everyone is aware, when aroma-config has a syntax error, you actually get a message telling you the row and column of the error. Now, it's not 100% precise, but it generally puts you in the right ballpark so that you can fix the problem. With the updater-script, however, you're pretty much on your own. It's quite frustrating to me, so I'm just wondering if there's some way to run your updater script that will tell you more or less where the syntax error is? Thanks.
[Android Software/Hacking General [Developers Only]] Patrics83:
"/tmp/recovery.log" and "/tmp/aroma/.install.log" will tell you much more then just the recovery output.

When a problem occurs then just do "adb pull /tmp/recovery.log" and adb pull /tmp/aroma/.install.log
[Android Software/Hacking General [Developers Only]] Kiray1982:
Is it possible after selection to show a small image?

e.g. preview of "Battery-Mods" or "Wallpaper"-selection.

like a popup or something else.

thx inadvance
[Android Software/Hacking General [Developers Only]] sniper:
+1 on this, it would be really helpful.

Click here for custom mods for your E4GT
[Android Software/Hacking General [Developers Only]] Patrics83:
Yes it is ;)

Play around with "splash"

or use menubox instead of selectbox.

With menubox you can set icons so after the user has picked the battery mod then

Quick and dirty example:

menubox(
"Battery Mods",
"Pick a battery icon",
"icons/main-info",
"battery.prop",

"Stock Battery", "", "icons/stock_battery",
"Stock Battery with %", "", "icons/battery%"

);

if prop("battery.prop","selected.0")=="1" then
splash(2000, "stock_battery");
endif;
if prop("battery.prop","selected.0")=="2" then
splash(2000, "battery%");
endif;
[Android Software/Hacking General [Developers Only]] Kiray1982:
o.O

thx, this is exactly what im searching for... never had the idea, to use the splash-funktion...

thx
[Android Software/Hacking General [Developers Only]] Patrics83:
Sky is the limit! ;)
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
Ah, I knew this was coming. lol. I'm new at this, and I totally skipped the "learn to use adb" part of developing. lol. So all I have to do is dl adb, plug my phone in, and run that command in the terminal on my computer? do I have to be in recovery for it to work? can it only be done immediately after the install fails?
[Android Software/Hacking General [Developers Only]] Patrics83:
Yes and yes you must be in recovery.

Once you reboot your device or recovery, /tmp will be wiped.

When it fails just run the commands ;)

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
awesome thanks. I knew I was gonna have to embrace adb sooner or later. Keeping hearing how amazingly useful it is. lol
[Android Software/Hacking General [Developers Only]] Patrics83:
ADB is very useful especially when you need to find out what is going on... Checking xxx.props while in aroma etc...

I can recommend this application if you are on windows.

Android Commander

With this you can copy needed logs directly to your desktop and review them.

Good luck!
[Android Software/Hacking General [Developers Only]] sniper:
Thank you soooo much for this! :D

It works great!

selectbox(
"Lockscreen","Select the lock you want:",
"@personalize","lock.prop",

"See previews at E4GT.info/locks.html", "", 2,

"Stock", "", 1,
"49ers", "", 0,
"Desert Eagle", "", 0
);

if prop("lock.prop","selected.1")=="1" then
splash(2000, "locks/stock");
endif;
if prop("lock.prop","selected.1")=="2" then
splash(2000, "locks/49ers");
endif;
if prop("lock.prop","selected.1")=="3" then
splash(2000, "locks/deagle");
endif;
[Android Software/Hacking General [Developers Only]] Patrics83:
Your welcome! :)

It looks amazing, but take it easy with that gun... It might be loaded ;)

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
Totally Stumped

Ok, I've been staring at this for over an hour and can't figure it out. There's no syntax error per se, it runs properly, and every all the other installer options work perfectly, except for this section. I'm desperately trying to figure it out and am coming up blank. Any help would be appreciated.

NOTE: I know that there's nothing but a ui_print for each if statement, I'm just trying to get the if statements to work before adding the other lines.

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

## 4.2 Apps ##

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

if

file_getprop("/tmp/aroma/menu.prop", "item.1.3") == "1"

then

ui_print("Testing menu.prop 1.3"); #-- This is here so I can test if it's failing with the menu.prop if statement or the apps.prop if statement. This ui_print prints, the apps.prop ones don't.

#-- 4.2 CAMERA & GALLERY

if

file_getprop("/tmp/aroma/apps.prop", "item.1.1") == "1"

then

ui_print("Installing 4.2 Camera & Gallery");

endif;

#-- 4.2 KEYBOARD

if

file_getprop("/tmp/aroma/apps.prop", "item.1.2") == "1"

then

ui_print("Installing 4.2 Keyboard");

endif;

#-- CLOCK APP

if

file_getprop("/tmp/aroma/apps.prop", "item.1.3") == "1"

then

ui_print("Installing 4.2 Clock");

endif;

endif;
[Android Software/Hacking General [Developers Only]] sniper:
Could you post your aroma config for that section too?

Click here for custom mods for your E4GT
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
Edit: Thank you, you were right, the problem was with the Aroma config. I hadn't included a header line ("Title", "", 2,) when I set up my options, so it wasn't writing the prop correctly. God, stupid mental mistakes will drive you crazy every time. lol
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
Big Aroma?

Is there a limit to how many options you can put in an aroma? I've made a pretty big one, and it freezes on me a lot while going through the prompts. Is freezing known? I'm running version 2.56.
[Android Software/Hacking General [Developers Only]] sniper:
I don't think there is, or at least the limit is very big, as long as you make it properly. I haven't had any freezing issues before :confused:

Click here for custom mods for your E4GT
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
hmm... maybe I just notice it more because I'm flashing it so frequently because I'm testing each new addition I make to it. It definitely freezes at times though. Maybe it's the number of pages? I have a lot of different pages (and a great main menu that allows users to choose which ones they go through).
[Android Software/Hacking General [Developers Only]] Patrics83:
There shouldn't be any "limits". Are you executing sh scripts or anything like that?

Are you using a lot of fancy animations etc?

How many lines are your aroma-config at?

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
1) Nothing is being executed yet, other than ui_prints. I'm making sure all the config to updater-script things work before I start adding the scripts to actually do anything.

2) I didn't even know you could change the animation.

3) Aroma config is currently 424 lines.

It doesn't always freeze. When it does, it's when I'm selecting options. So I'll be checking checkboxes and suddenly the screen goes unresponsive and I have to do a battery pull. I wonder if it's happening to me just cuz I'm flashing it over and over again because I'm testing every last little feature to make sure it's working smoothly.

On another note, are there any rules I should follow for adding custom icons? I've already discovered how to add them, but clearly there's a size limit (the ones I added all got cut off) and a color limit (the colors were all wrong).

Thanks for all the help. I'm new at this, but always eager to learn as much as I can to get better.
[Android Software/Hacking General [Developers Only]] Волк:
Size limit is 72x72 pixels. If you have a rectangular icon, it gets cropped. Bigger icons I believe are scaled down.
[Android Software/Hacking General [Developers Only]] tantrums:
Hi, I also have some freezes in aroma 2.56 while testing multiple menubox options, lots of next and back, next and back etc.. But I was not able to exactly identify that the real cause was the menubox. But when I replaced it with just selectbox, freezes disappear.

Btw, I have 1076 lines in aroma-config file in my latest project with aroma 2.56. :)
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
I don't use menuboxes, just checkboxes and selectboxes. So that can't be the cause of it.

Thanks for the icon info. What about colors? The icons are always different colors in the installer than they are on my comp. I'm assuming that's because the installer has a more limited range of supported colors. What is that range, so that I can adjust things to work properly.
[Android Software/Hacking General [Developers Only]] sniper:
My colors all look fine. I don't use too many custom icons, but I have a lot of different splashes that look the same as on my computer.

Click here for custom mods for your E4GT
[Android Software/Hacking General [Developers Only]] r2d2-andras:
Hi!

I want to create kernel changer with the Aroma Installer, but it seems dosn't work. How can I solve this? Here is my scripts:

aroma-config

:

ini_set("rom_name", "Instant kernel changer");
ini_set("rom_version", "1.0.1");
ini_set("rom_author", "jandras");
ini_set("rom_device", "Huawei Ascend Y200");
ini_set("rom_date", "2012.10.26.");

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

agreebox(
"Felhasználási feltételek",
"olvasd el",
"@license",
resread("license.txt"),
"A fentieket tudomásul veszem.",
"Kernel váltás nem lehetséges!"
);
###################################################################################################################
#
selectbox(
#-- Title
"Kernel választás",

#-- Sub Title
"válaszd ki a használni kívánt kernelt:",

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

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

#---------------------------------[ Selectbox Without Group ]----------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#

"Gyári", "Eredeti natúr", 1, #-- selected.0 = 1
"1200", "OC kernel, swap és init.d", 0, #-- selected.0 = 2
"OCboot", "OC kernel, swap és init.d", 0, #-- selected.0 = 3
"bootop", "Próbáld ki, még nem tudom", 0, #-- selected.0 = 3
"Frush", "OC kernel, swap és init.d", 0 #-- selected.0 = 5
#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);

writetmpfile(
"custom.prop",
"kernel="+prop("kernel.prop","selected.0")+"\n"
);

install(
"Telepítés",
"A kiválasztott kernel telepítése folyamatban\nLégy türelemmel a telepítés befejezéséig...",
"@install",
"A telepítés kész!"
);

updater-script:

set_progress(0.01);
ui_print("@Mounting & Formating Devices");
umount("/boot");
format("MTD", "boot");
ui_print("Kernel kicsomagolása...");
ui_print(file_getprop("/tmp/aroma-data/custom.prop","kernel"));
if
file_getprop("/tmp/aroma-data/custom.prop", "kernel")=="1"
then
package_extract_file("kernels/boot_orig.img", "/tmp/boot.img");
endif;
if
file_getprop("/tmp/aroma-data/custom.prop", "kernel")=="2"
then
package_extract_file("kernels/1200MHz_boot.img", "/tmp/boot.img");
endif;
if
file_getprop("/tmp/aroma-data/custom.prop", "kernel")=="3"
then
package_extract_file("kernels/oc_kernel_boot.img", "/tmp/boot.img");
endif;
if
file_getprop("/tmp/aroma-data/custom.prop", "kernel")=="4"
then
package_extract_file("kernels/boot-opp.img", "/tmp/boot.img");
endif;
if
file_getprop("/tmp/aroma-data/custom.prop", "selected.")=="5"
then
package_extract_file("kernels/boot-fusch.img", "/tmp/boot.img");
endif;
ui_print("Kernel írása...");
write_raw_image("/tmp/boot.img", "boot");

set_progress(1);

Please help me! Sorry my wrong english...
[Android Software/Hacking General [Developers Only]] gopadi:
thanks sir for mod
[Android Software/Hacking General [Developers Only]] ponpalani2001:
where will the aroma test.zip will store

I am a noob i have created a package on demo install, where will the aroma test.zip will store. Should i install this from CWM
[Android Software/Hacking General [Developers Only]] slim80:
Hi. I have a problem. I have configured the aroma-config for installation of my ROM. The aroma wizard works correctly. But at the end, the installation doesn't start. I think that the ''updater-script'' does not start. I have the installation log with cod 6.

The updater-script works fine without aroma. I compiled it with notepad++ UTF-8 no BOM.

What is the solution?

Thanks
[Android Software/Hacking General [Developers Only]] Patrics83:
Confirm the updater-script filename in the zip.

Open the updater-script with notepad++ and check if you have DOS\Windows code or unix. (Bottom line to the right)

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] shahabazas:
Thanks for this as if now we can have customisable flashing.​
[Android Software/Hacking General [Developers Only]] slim80:
Unix

???
[Android Software/Hacking General [Developers Only]] Patrics83:
The text code.

If it looks like this, your updater-script is unreadable. And will cause a status 6 error.

http://db.tt/e86tAajC

Just in case you saved the updater-script with a different name.

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] slim80:
This is the notepad configuration:

I have created the script with this setting. It's correct?
[Android Software/Hacking General [Developers Only]] Patrics83:
updater-script should have UNIX with ANSI code.

Upload the updater-script here and I will have a look at it...
[Android Software/Hacking General [Developers Only]] slim80:
Same error code 6 :(

In attachments the "aroma-config" script and "updater-script".

Script.rar

Thank you very much
[Android Software/Hacking General [Developers Only]] Patrics83:
Updater-script:

# GameHub
if
file_getprop("/tmp/aroma/customize.prop","item.1.7") == "1"
then
ui_print("@ Installing Game_Hub");
package_extract_dir("Bestboss/app/Game_Hub/app[COLOR="Red"]"[/COLOR], "/system/app");
endif;
[Android Software/Hacking General [Developers Only]] slim80:
I corrected this error and other... thanks ;)

But the installation don't start. I have not any error. The installation never start and i have this situation:

Congratulation....

... has been installed into your device.

Installer Status: 6
[Android Software/Hacking General [Developers Only]] mai77:
ASR screen shot

aroma works in CWM but not properly in ASR, which looks like this:
[Android Software/Hacking General [Developers Only]] alexcolodner:
I am having and issue and can't figure out how to fix it. Can anybody help me?

This is from my recovery.log:

aroma/s: Opening Freetype
aroma/s: Mute Parent
aroma/s: Starting Interface
aroma/s: aroma-config was UTF-8
line 153 col 4: syntax error, unexpected ')', expecting IF or STRING or '!' or '('
line 194 col 4: syntax error, unexpected ')', expecting IF or STRING or '!' or '('
line 241 col 4: syntax error, unexpected ')', expecting IF or STRING or '!' or '('
line 281 col 4: syntax error, unexpected ')', expecting IF or STRING or '!' or '('
line 337 col 4: syntax error, unexpected ')', expecting IF or STRING or '!' or '('
line 366 col 2: syntax error, unexpected ')', expecting IF or STRING or '!' or '('
line 478 col 1: syntax error, unexpected $end, expecting ',' or ')'
aroma/s: Close Graph Thread
aroma/s: Unmute Parent

And I have attatched my aroma-config here: View attachment aroma-config.txt

I have looked through the template file as well as other aroma-configs from other ROMs and I don't understand what to do. I understand the error, just not what it should be instead. Any help would be appreciated.

Thanks!
[Android Software/Hacking General [Developers Only]] mikep99:
Line 153 - "item.3=1\n"+ #-- Default Keyboard = Android 4.2 Keyboard

remove '+'

same for line 279

Line 191 -	"Swype Keyboard", "",	0, #-- item.3.3 = Not Selected by default

remove last ','

same for line 238, 334,365

See how you get on...
[Android Software/Hacking General [Developers Only]] alexcolodner:
Thanks! I figured out the + thing but the last , thing I never would got. Much appreciated. It starts up now! Now I get different errors.... I may be back.
[Android Software/Hacking General [Developers Only]] alexcolodner:
New error... The only thing it says in the log for Aroma is

FUNCTION ERROR!!! aroma-config: checkbox() expects 4 args + 3 args per items, got 39

It happens when I click the "Custom Install" option in my main menubox. My guess is that it means aroma is looking for 4 groups, with 3 options in each group for that checkbox. Not sure where the 39 comes in to pay, or why it looks for 4 groups. ...or I am completely wrong.

Any ideas?

aroma-config: View attachment aroma-config.txt
[Android Software/Hacking General [Developers Only]] mikep99:
try changing line 156 from checkbox( to checkbox("",

EDIT - same on line 270 as well
[Android Software/Hacking General [Developers Only]] alexcolodner:
Ohh you are a lifesaver! I took out subtitle, didn't realize it would look for both. Thanks a lot.
[Android Software/Hacking General [Developers Only]] mikep99:
No problem :)
[Android Software/Hacking General [Developers Only]] azoller1:
ok when i tried installing acid audio mod using aroma installer i was using the buttons and they worked but the second i clicked the home button or the touch screen it freezes then reboots......? please help i want to use this in my rom really bad!!:confused::confused:
[Android Software/Hacking General [Developers Only]] sniper:
What device and recovery?

Click here for custom mods for your E4GT
[Android Software/Hacking General [Developers Only]] azoller1:
LG Spectrum and CWM touch v6.0.1.1
[Android Software/Hacking General [Developers Only]] johnhany97:
Developer Related Question

A developers' Question here ....

How to make AROMA become built from source with the ROM, So when I compile a ROM from source, aroma files are added automatically to the final zip ??? I think it's possible and I am sure that there is someone out there who have done it before, So if anyone could help, It would be really appreciated :) Thank in advance .. Nice work by the way ....
[Android Software/Hacking General [Developers Only]] andmax66:
Hi I am having the same problem, everything works fine until the end when everything should be installed, nothing happens after about 2 min aroma says installation complete reboot but nothing has been installed, I am using the standard aroma-config and updater-script, I have attached them is someone can have a look and let me know where I'm going wrong.