yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Dblfstr:
Sorry,

Forgot to mention that there are different update-binarys and some parse functions differently than others. (less or more arguments for functions)
[Android Software/Hacking General [Developers Only]] jader13254:
forgot it LOL works now..
[Android Software/Hacking General [Developers Only]] eltonpestana:
Problem witj line and col =/

hello i have problem with my aroma - installer sytax line 41 col 1 but i see the line and don't have problem with line. : Choro: http://dl.xda-developers.com/attachdl/2c3895e4f300aab603618a79d01517c1/505fe5fd/1/3/4/9/8/3/0/aroma-config.rar
[Android Software/Hacking General [Developers Only]] Robobob1221:
Function error!!!

I'm getting the following

aroma-config: checkbox( ) expects 4 args + 3 args per E:unknown command [items,]

installation aborts when going to the second selection screen.

I can't see the error myself, been staring at it for a while!
[Android Software/Hacking General [Developers Only]] sdojoin:
Can some1 help me with aroma-config script?? I just want a simple package extract selectbox in aroma config but keeps getting "syntax error!!! Aroma-config line 83 col 2" when installing the .zip.:banghead:

I hope i'm posting in the right place. If i'm not can some1 link me to the right place.;)

Thanks in advance

Regards,

sdojoin

Use'em THANKS button;)

I already got it to work.:p But it dosen't seem to extract the mods.prop. Do we to delete the old system app before replacing it with a new 1?? Can't it just overwrites it?? Or did i use the wrong prop for extracting system folder?? Here u go...

CLICK HERE

Edit; So how does it looks?? Any idea what might be the problem?? I still can't figure out how to extract the package.:banghead:

Edit; I'm missing the installations process.:(

Regards,

sdojoin

Use'em THANKS button;)
[Android Software/Hacking General [Developers Only]] Robobob1221:
Thanks for taking a look.

Made those changes but no difference still aborts after the second checkbox menu with the same error.:confused:

I removed the last two item lists from the second checkbox and now it works.

I can't see why in this particular one having 8 items is too many?
[Android Software/Hacking General [Developers Only]] Dblfstr:
Think I found it.

The following line only has two arguments (missing description) " ",

"Stock/System Applications", 2, #-- Group 8. Key = "item.8.x"

#-- IF Installation type = "Custom" Show Customize Selection
checkbox(
#-- Title
"APP Selection",

#-- Sub Title
"Choose your application stock/alternative and other options",

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

#-- Will be saved in /tmp/aroma/widget.prop
"app.prop",

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

"Calculator", "", 2, #-- Group 1. key = "item.1.x"
"Stock", "", 0, #-- item.1.1 = Un-Selected
"Alternative", "", 0, #-- item.1.2 = Un-Selected
"Camera", "", 2,
"Stock", "", 0, #-- item.2.1 = Un-Selected
"Miui", "", 0, #-- item.2.2 = Un-Selected
"Clock", "", 2,
"Miui", "Factory Widgets Miui style digital clock", 0, #-- item.3.1 = Un-Selected
"Sense 4.0", "Fancy Sense 4.0 themed clock and weather widgets", 0, #-- item.3.2 = Un-Selected
"Dropbox", "", 2,
"Inverted 1", "by B-boy. older apk", 0, #-- item.4.1 = Un-Selected
"Inverted 2", "by artvanderlay440. up-to-date-apk", 0, #-- item.4.2 = Un-Selected
"YouTube", "", 2,
"HD", "720p video streams", 0, #-- item.5.1 = Un-Selected
"non-HD", "regular youtube", 0, #-- item.5.2 = Un-Selected
"File Manager", "", 2, #-- Group 6. key = "item.6.x"
"ES File Manager", "", 0,
"Solid Explorer", "", 0,
"Xplore File Manager", "", 0,
"Tools/Widgets", "", 2, #-- Group 7. Key = "item.7.x"
"a2sdGUI", "GUI tool for use with Dark Tremors a2sd", 0,
"Better Battery Stats", "Charmonix's tool for better power management", 0,
"CatLog", "Logcats to help me help you", 0,
"vnotes", "note widget", 0,
"Weather Channel", "Weather Channel app w/ transparent themed widgets", 0,
"Stock/System Applications", 2, #-- Group 8. Key = "item.8.x"
"Calendar", "Needed if you sync google calendar", 1,
"Friendstream", "", 1,
"HtcFacebook", "Needed if you want updates, contact photos", 1,
"HtcStreamPlayer", "Needed if you use Facebook, Twitter, Flickr", 1,
"HtcTwitter", "Htc Twitter client", 1,
"Mail", "If you use mail clients/server then required", 1,
"Weather and World Clock", "Needed together to function correctly", 1

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);
endif;

EDIT:

And now I see what that + was for... Didn't notice it was multiple lines in description.

"Incredicontrol", "Kernel controller; UC/OC, Undervolting, and other goodness."+
"Use only with HAVS kernels (Underworld Kernel in this ROM)", 0, #-- item.6.4 = Un-Selected
[Android Software/Hacking General [Developers Only]] Robobob1221:
Can't believe I missed that! :o

Thanks alot for the second pair of eyes! Much appreciated :good:
[Android Software/Hacking General [Developers Only]] sdojoin:
Can any1 help me out with my updater-script & aroma-config pls...:( I can't get it install anything.

Aroma script

Any help is much appreciate.;)

Edit; Any1?? I'm just trying to build a basic installing selectbox structur to install individual package. I just want to know if i get right??

Regards,

sdojoin

Use'em THANKS button;)
[Android Software/Hacking General [Developers Only]] Dblfstr:
Can you directly upload the script, I cannot access the site you linked.
[Android Software/Hacking General [Developers Only]] KNTXTremE:
My rom didn't install. (updater-script didn't run). And I've already change update-binary from my rom to update-binary-installer but it can't install rom. Have any people get this problem? I've get this problem sometimes...

Yeah. I upload my META-INF. Please ahead and see it. Thank you. :)

Greet, KNTXTremE
[Android Software/Hacking General [Developers Only]] Robobob1221:
Did the installer log give any errors?
[Android Software/Hacking General [Developers Only]] KNTXTremE:
Installer status 6 when in the last UI.
[Android Software/Hacking General [Developers Only]] Robobob1221:
I mean did you save an install log to your sd card.

Usually if there are errors in the updater-script it will give you the line errors
[Android Software/Hacking General [Developers Only]] Dblfstr:
Found this about Installer status: 6. it is an error code for CWM:

Thread: update.zip error (status 6)

Started 1 year, 1 month ago by illtown

Hi guys, I've just found the solution to this problem. To be short it's all about newline characters. Windows and Unix systems treat the newline chars differently. All you need to do is change the Windows newlines with the Unix ones. You can do it easily with Notepad++. So open the script, click the "Show All Characters" icon (you should see the newlines here), then navigate to "Edit-->EOL ...

Apparently this is caused by the above, or by missing ";" or unclosed "()" or missing ","
[Android Software/Hacking General [Developers Only]] KNTXTremE:
Oh. I see. Thank you very much. 2 times that you're help me. :)
[Android Software/Hacking General [Developers Only]] Dblfstr:
I did notice some brackets in your code [

symlink("busybox", "/system/xbin/[", "/system/xbin/[[",

Are those supposed to be there? If so, what are they, directories? I have not seen them before.
[Android Software/Hacking General [Developers Only]] Волк:
Busybox applets. Symlinking allows one to call the applet "directly" instead of having to specify that the binary file needs to be called via busybox.
[Android Software/Hacking General [Developers Only]] RoryB:
You have in the second version

if
file(prop("mods.prop","selected.1") == "1"
then
writetmpfile(
"mods.prop","G2JBMOD Main=1\n"
endif;

in a few places and it should be without the "file(" and it is missing a ")"

if
prop("mods.prop","selected.1") == "1"
then
writetmpfile(
"mods.prop","G2JBMOD Main=1\n" [COLOR="Red"])[/COLOR]
endif;
[Android Software/Hacking General [Developers Only]] Dblfstr:
Too many arguments for the selectbox items:

selectbox(
#-- Title
"G2JBMOD Collections",

#-- Sub Title
"Choose Desired Mod",

#-- Icon: /icons/default.png or /icon.default.png
"@default",

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

#-----------------------------------[ Selectbox With Groups ]----------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#

"G2JBMOD Main", "", 2,3, #-- Group 1. key = "selected.1"
"StockBattMod", "Stock with NxtLocscreen", 1, #-- selected.1 = "1"

"G2JBMOD 1", "", 2,3, #-- Group 2. key = "selected.2"
"BlueCircleBattMod", "G2JB FullMod", 0, #-- selected.2 = "1"

"G2JBMOD 2", "", 2,3, #-- Group 3. key = "selected.3"
"GaugeBattMod", "G2JB FullMod", 0, #-- selected.3 = "1"

"G2JBMOD 3", "", 2,3, #-- Group 4. key = "selected.4"
"SkullBattMod", "G2JB FullMod", 0 #-- selected.4 = "1"

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);

These:

"G2JBMOD Main", "", 2,3, #-- Group 1. key = "selected.1"
"StockBattMod", "Stock with NxtLocscreen", 1, #-- selected.1 = "1"

Should be

"G2JBMOD Main", "", 2, #-- Group 1. key = "selected.1"
"StockBattMod", "Stock with NxtLocscreen", 1, #-- selected.1 = "1"

Remove the extra 3, unless you WANT them to be not visible.
[Android Software/Hacking General [Developers Only]] Dblfstr:
Can I ask why you are using groups with one item in the group?

You can do this:

selectbox(
#-- Title
"G2JBMOD Collections",

#-- Sub Title
"Choose Desired Mod",

#-- Icon: /icons/default.png or /icon.default.png
"@default",

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

#-----------------------------------[ Selectbox With Groups ]----------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#

"StockBattMod", "Stock with NxtLocscreen",	1, #-- selected.1 = 1
"BlueCircleBattMod",	"G2JB FullMod",	0, #-- selected.1 = 2
"GaugeBattMod",	"G2JB FullMod",	0, #-- selected.1 = 3
"SkullBattMod",	"G2JB FullMod",	0 #-- selected.1 = 4

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);

Also, there is no need for

if
prop("mods.prop","selected.1")=="1"
then
writetmpfile(
"mods.prop","StockBattMod=1\n");
endif;

I think the file will be written based on what is selected without you telling it to.
[Android Software/Hacking General [Developers Only]] sdojoin:
Erm.. I did try it like that but it dosen't install anything. It boot up just fine but didn't do nothing. So the problem is probably with the updater-script. Did i get that right??:o

Regards,

sdojoin

Use'em THANKS button;)
[Android Software/Hacking General [Developers Only]] Dblfstr:
Yes, with the code I supplied above you will need to change your update-script like so:

set_progress(0.01);
mount("MTD", "system", "/system");
ui_print("@G2JBMOD Collections");
show_progress(0.3,"-5000");
package_extract_dir("system","system");

show_progress(0.5,"-7000");
ui_print("@G2JB COLLECTIONS");
##-- G2JBMOD Main
if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "1"
then
ui_print("Installing StockBattMod package");
package_extract_dir("mods/StockBattMod","/system");
endif;

##-- G2JBMOD 1
if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "2"
then
ui_print("Installing BlueCircleBattMod package");
package_extract_dir("mods/BlueCircleBattMod","/system");
endif;

##-- G2JBMOD 2
if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "3"
then
ui_print("Installing GaugeBattMod package");
package_extract_dir("mods/GaugeBattMod","/system");
endif;

##-- G2JBMOD 3
if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "4"
then
ui_print("Installing SkullBattMod package");
package_extract_dir("mods/SkullBattMod","/system");
endif;

unmount("/system");

show_progress(1, 0);
ui_print("@Installation complete.");
[Android Software/Hacking General [Developers Only]] sdojoin:
Still, bump!!! :banghead: I think thier mising thier group leader.:p Erm...

Regards,

sdojoin

Use'em THANKS button;)
[Android Software/Hacking General [Developers Only]] Dblfstr:
What is it doing now?
[Android Software/Hacking General [Developers Only]] sdojoin:
Edit: Dudeee, finally!!!!:D I rewrote everything instead of just edit it. Its all sorted out now. For the past 6 days i've occupied with aroma-config but turns out its my updater-script thats been messing everything.

THANK YOU!!! THANK YOU!!! THANK YOU!!! THANK YOU!!! THANK YOU!!!:cool:
[Android Software/Hacking General [Developers Only]] Robobob1221:
i was slow..........
[Android Software/Hacking General [Developers Only]] sdojoin:
What?? I know i know... Lol.:p

Regards,

sdojoin

Use'em THANKS button;)
[Android Software/Hacking General [Developers Only]] a-id:
Hi! amarullz, I got Status 6 in installer with *.log that contains:

line 1 col 21: syntax error, unexpected BAD, expecting IF or STRING or '!' or '('
line 162 col 21: syntax error, unexpected BAD, expecting IF or STRING or '!' or '('
line 338 col 21: syntax error, unexpected BAD, expecting IF or STRING or '!' or '('
line 488 col 14: syntax error, unexpected $end, expecting ',' or ')'
4 parse errors

Installer Error (Status 6)

In updater-script I have at this lines:

show_progress(0.14, -12000);
show_progress(0.77, -110000);
show_progress(0.09, -13000);
ui_print("");

It turns out that part of the problem is the "-" in show_progress command, and the last I do not understand, there's just updater-script ends...

I use AROMA 2.50, what's wrong?

SOLVED.

Must be like show_progress(0.14, "-12000");
[Android Software/Hacking General [Developers Only]] H89P:
Hey guys,

I'm building my script right now and there is something I wanted to ask. Is there any possiblity to get more than 6 pics in the animsplash?

Thx in advance
[Android Software/Hacking General [Developers Only]] Dblfstr:
I would think if you changed this:

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

That you could add any number 'N' more images.

"splash/a7", 30,

..............., ....,

"splash/aN", 30

**********************************************************************

**********************************************************************

I wonder of you could make aroma read that information from a text file instead of hard coding it. Then people could make their own splash (Kind of like we do know with boot animations) and upload it here for ease of use.

Like aroma would read a desc.txt type of file, and load all images in the directory.
[Android Software/Hacking General [Developers Only]] sdojoin:
U mean make a bootanime script for aroma?? Interesting...;)

Regards,

Sdojoin

Use'em THANKS Button;)
[Android Software/Hacking General [Developers Only]] Dblfstr:
precisely. ;)
[Android Software/Hacking General [Developers Only]] Dblfstr:
It seems 32 is the max value:

//*
//* anisplash
//*
Value* AROMA_ANISPLASH(const char* name, State* state, int argc, Expr* argv[]) {
int func_pos = argv[0]->start;
if (func_pos<aparse_startpos) return StringValue(strdup(""));

if (argc < 3) {
return ErrorAbort(state, "%s() expects at least 2 args (loop count, [image name, duration]), got %d", name, argc);
}
else if (((argc-1)%2)!=0){
return ErrorAbort(state, "%s() expects (1 + 2 * numframes) args (loop count, [image name, duration]), got %d", name, argc);
}
int frame_n= (argc-1)/2;
if (frame_n>32){
return ErrorAbort(state, "%s() Number of max frame was 32, got %s frames", name, frame_n);
}
[Android Software/Hacking General [Developers Only]] jader13254:
Solved :)
[Android Software/Hacking General [Developers Only]] Dblfstr:
Well honestly, that is a rather generic request. We will be glad to help, but you need to know some of what you are doing first, else it will be us creating an aroma-config for you.

Download the Aroma package from the original thread, look through it so you can understand the option available. There are sections for kernel and such. See if you can edit amarulz demo aroma-config. Once you have something, we can help you work through the bugs.
[Android Software/Hacking General [Developers Only]] ai6908:
Download a ROM that does it, and learn from the coding...:)
[Android Software/Hacking General [Developers Only]] Wizard0f0s:
Is there a way to take in typed input? I would like to be able to take input on cpu clocks and vsels during the install.
[Android Software/Hacking General [Developers Only]] jader13254:
No... As far as i know only aroma filemanager has it... Maybe amarullz release an update
[Android Software/Hacking General [Developers Only]] MaxFTW:
Hey guys, I have ROM with aroma and everything works perfectly, but when it comes to installing updater script simply doesn't do anything and aroma shows thst instalation is completed. What should I do?

Sent from my Galaxy Tab 2 10.1 with AOKP JB Build 4

CM sucks hard when AOKP appears
[Android Software/Hacking General [Developers Only]] jader13254:
Re-do everyThing again, i had that, 2 and it was never possible to solve...
[Android Software/Hacking General [Developers Only]] mrRobinson:
or try a different update-binary renamed as update-binary-installer
[Android Software/Hacking General [Developers Only]] ai6908:
I am sure there is a problem in coding...have messages broken through out the code, and log it..then check log file to see what section is broken...maybe it can help narrow down...
[Android Software/Hacking General [Developers Only]] lokeshsaini94:
hey...

hey guys i am getting an error... status 1 in last line which is blank and i can't find any sollution for it...

can any one help???

here is line for aroma-cofig-

http://www.mediafire.com/?ia9q2nanv7x2lis
[Android Software/Hacking General [Developers Only]] mikep99:
I think you're missing an endif; for "if prop("atomods.prop","selected")=="7" then"
[Android Software/Hacking General [Developers Only]] lokeshsaini94:
thanks it worked...
[Android Software/Hacking General [Developers Only]] BEATER:
errorformer febicut

i got an error in aroma-config on line 41 its syntax error with status 1

i just added these lines in aroma-config

################## SELEECT MOD TO INSTALL #################

##

checkbox(

"Choose your favorite Mod",

"Choose ONLY ONE Option",

"icons/apps",

"acemap.prop",

"Install ACE-Mapper","Convert Search Button To Camera Button",0,

"Remove ACE-Mapper","Revert Back To Default",0

);

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

and these in updater-script

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

mount("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data");

if

file_getprop("/tmp/aroma-data/acemap.prop","item.0.1") == "1"

then

ui_print("-> Install ACE-Mapper");

ui_print("-Writing System");

mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/system");

package_extract_dir("mods/install", "/system");

endif;

if

file_getprop("/tmp/aroma-data/acemap.prop","item.0.2") == "1"

then

ui_print("-> Remove ACE-Mapper");

ui_print("-Writing System");

mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/system");

package_extract_dir("mods/remove", "/system");

endif;

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

can some help me??
[Android Software/Hacking General [Developers Only]] mikep99:
@BEATER

Should 'aroma-data' just be 'aroma' in the pathname?
[Android Software/Hacking General [Developers Only]] BEATER:
same error

thanks bud but still getting same error ,.
[Android Software/Hacking General [Developers Only]] Robobob1221:
After the prop type maybe no comma?

An enviousOG
[Android Software/Hacking General [Developers Only]] Turge:
You know, it did tell you the line number the error was on, right? ;)

But anyways, make sure there's no "," preceding ");"

I saw a couple in your code...
[Android Software/Hacking General [Developers Only]] a1exander:
What do you mean? Can you give an example in my code? :)
[Android Software/Hacking General [Developers Only]] Turge:
"240 dpi", "(Default) Big resolution", 0[COLOR="Red"][SIZE="6"],[/SIZE][/COLOR] #-- selected.1 = 2

);
[Android Software/Hacking General [Developers Only]] Wajk:
Status 0

Hmm, I have interesting problem.

If I install my package everything OK, last page Finish button appeared,

but when I tapp Finish button sometimes I get this message:

(Status 0)

Installation aborted

But not always, sometimes yes, sometimes not.

But with install everything OK, installer did everything what i want, but sometimes i got this message.

I always saved Log files, but nothing differents between without and with error installation.

:confused:

thnx
[Android Software/Hacking General [Developers Only]] Androguide.fr:
Hi guys. I got a few questions :

- For some reason, with my script Aroma randomly hangs if using the touchscreen, but it doesn't if you only use the hardware keys. I've been trying to include different version of Aroma, but nothing will do, always got those damn freezes.

All the users report that, and I also experiment this issue. Can't get to the end of the script without Aroma freezing on a different screen everytime.

I really don't get the problem as I never had this issue with other people's aroma scripts.

You can find my script here, anybody has the same problem or any clue ?

- Second question, is there a way to automatically set the right ini_set("dp","X"); depending on the screen res of the user (for example perhaps grabbing the dpi from build.prop ?)

Thanks for the thread guys, really nice idea :good:
[Android Software/Hacking General [Developers Only]] neectron:
I am getting syntax error at line 177 col 4,?

if (prop("type.prop","selected")=="1") then
writetmpfile(
#-- Prop file will write to /tmp/aroma/customize.prop
"customize.prop",

#-- Default Values ( item.x.x = value. value=1 selected, value=0 un-selected )

#-- True Value (minimal install)
"item.1.1=0\n"+ #-- Solid Explorer
"item.1.2=0\n"+ #-- Shell Commander
"item.1.3=0\n"+ #-- XDA App
"item.1.4=0\n"+ #-- AOSP Galley
"item.1.5=0\n"+ #-- Voice Apps
"item.1.6=0\n"+ #-- Youtube
"item.1.7=0\n"+ #-- Talk
"item.1.8=0\n"+ #-- Sony Email

); [B] line 177[/B]

else
#-- IF Installation type = "Custom" Show Customize Selection
checkbox(
#-- Title
"Customize",

#-- Sub Title
"Choose apps that you want to be installed:",

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

#-- Will be saved in /tmp/aroma/customize.prop
"customize.prop",
#------------------------------------------------[ Checkbox Without Group ]----------------------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-------------------------------------------------------------------------------------+---------------#

"Applications", "", 2, #-- Group 1. key = "item.1.x"
"Solid Explorer", "File Explorer",	1, #-- item.1.1
"Shell Commander", "Terminal",	1, #-- item.1.2
"XDA App",	"XDA App", 0, #-- item.1.3
"AOSP Gallery", "ICS Gallery",	0, #-- item.1.4
"Voice Apps", "Voice Search+Voice Dialler",	0, #-- item.1.5
"Youtube", "Youtube and its plug-ins", 0, #-- item.1.6
"Talk", "Talk", 0, #-- item.1.7
"Sony Email", "Email", 0 #-- item.1.8

);
endif;
[Android Software/Hacking General [Developers Only]] Androguide.fr:
Remove that damn comma after "Email",0, ;)
[Android Software/Hacking General [Developers Only]] neectron:
After seeing post by Turge.I removed it and tried,still same error.

Edit:Found the error,

"item.1.8=0\n"+ #-- Sony Email
[Android Software/Hacking General [Developers Only]] RoryB:
Same thing. Remove that +

The comma and plus symbols are to indicate another item is on the next line. So the last item does not get the comma or plus sign.