yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Волк:
Hmm, funny, I thought that, but for some reason all I had was selected, but that matches the examples, so that may be part of the problem. Oddly, I'm not getting any errors. I am also not getting the log on my sd card. My intent in the sort run is to get the hang of writing a simple two-choice option install and then toss my wipe tool into those two choices, then work on making the tool totally customizable for anyone running it. I just want to start with something non-destructive and quick so I know all the errors are worked out and that I have enough of an understanding to proceed.
[Android Software/Hacking General [Developers Only]] Dblfstr:
See what happens when you change it to selected.0

Also, if nothing is happening (because the installer options do not translate over to the update script - i.e the selected.0 issue) then there probably will be no recovery log to copy. I am just guessing here, and it seems you would get a file does not exist error anyway if that were true.

I am learning as I go also. :D
[Android Software/Hacking General [Developers Only]] Robobob1221:
Yeah that sounds right on the 'select.x' issue. I found that was the problem with my installer issue. I had the wrong 'selected.x' for my kernel in config and updater which meant the wrong opt folder was being extracted.
[Android Software/Hacking General [Developers Only]] Волк:
Yea, that was the exact problem. I did some tests with printing text on the screen and it seems to work correctly. I just tossed a test build for wiping /cache to my testers, if they don't test before I can then, I guess I get to be Johnny on the spot.

Thanks again.
[Android Software/Hacking General [Developers Only]] mrjavum:
Hi!

I have such problem with Aroma:

I have working CWM 5.5.0.4 recovery for my phone (ThL V9 - Android ICS phone on MT6575) with touch support.

I tried the demo from latest aroma-2.50-120716-020 (all configs are original, I set only dp in it and change update-binary-installer).

Everything goes fine, but when I select theme and press Back button I can't press Next button to reselect another theme. When I press Next the Back button was pressed and it returns me back.

Another way, I decided to not reselect the theme and went forward, but on screen with demos after few test the bug appears again, I can't press Next button. When I touch Next button the back button was pressed.

Recalibration in that screen doesn't help... Alternative method doesn't help too...

I found the same problem here: http://xdaforums.com/showpost.php?p=28832724&postcount=1231 but no solution :crying:

Aroma update package attached.
[Android Software/Hacking General [Developers Only]] Dblfstr:
If this is a common problem, I will update the "Common Errors" post when we have a solution.
[Android Software/Hacking General [Developers Only]] Dblfstr:
Glad it worked out for ya.
[Android Software/Hacking General [Developers Only]] ai6908:
I am trying to mount system and data, and it says device busy!! Below is my command through updater-script:

ui_print(" mounting system...");
ui_print(" ");
run_program("/sbin/busybox", "mount", "/system");

ui_print(" mounting data...");
ui_print(" ");
run_program("/sbin/busybox", "mount", "/data");

Below is the error:

mounting system...

about to run program [/sbin/busybox] with 3 args
mount: mounting /dev/block/mmcblk0p25 on /system failed: Device or resource busy
run_program: child exited with status 255
mounting data...

about to run program [/sbin/busybox] with 3 args
mount: mounting /dev/block/mmcblk0p26 on /data failed: Device or resource busy
run_program: child exited with status 255

Can someone please help me explain what I am doing wrong?
[Android Software/Hacking General [Developers Only]] Robobob1221:
try these commands instead

mount("MTD", "system", "/system");
mount("MTD", "userdata", "/data");
[Android Software/Hacking General [Developers Only]] Chrack:
First thx for help,

i found my problem ;)

Forgot to set if--------endif Syntax

And make a check for file_getprop("/tmp/aroma-data/typeinst.prop","selected.0") == "2"

And with the 4 times to check file_getprop("/tmp/aroma-data/typeinst.prop","selected.0") == "1"

is right.

Cant explain it because my english its not the best for this ;)

But all works now without any problem.
[Android Software/Hacking General [Developers Only]] Dblfstr:
Glad I could help.
[Android Software/Hacking General [Developers Only]] iok1:
Hi! I've been doing a simple project with aroma. I'm just experimenting and trying to learn, but I have stumbled upon an error which is not a syntax error. When i click next it goes back to recovery and says:

FUNCTION ERROR!!! aroma-config:
menubox() expects 4args + 3 args per items, got 11
E:Error in /sdcard/giokeychanger.zip
(status 1)
Installation aborted.

I have attached the zip so you can take a look into it. Thanks for any help :)
[Android Software/Hacking General [Developers Only]] Волк:
Actually, it technically is a syntax error. You either provided too many args (short for argument. It's a parameter given to a program (to speak loosely) which delineates how it is to perform it's function. For example if you go to your console and punch in e2fsck it will give you an error because you didn't supply the needed argument of at least, what partition to check for errors.

I've got to cook dinner while I can, but if no one else steps in and gives you a hand I'll help out, but take a look at your menu boxes, compare them to the samples and see what is added or left out.

I had the same type of error when I left out the icon line for a select box.
[Android Software/Hacking General [Developers Only]] RagzDog:
Yes but i don t know how solve it :'(

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] grzesdroid:
http://db.tt/cdd33N8J

Try to copy from my script

SGS III / Grisza Monster Beam v8.1 / Perseus 36 / JKay deluxe framework 14.93.4 / JB Domination / Tapatalk 2 / Swype
[Android Software/Hacking General [Developers Only]] RagzDog:
okkkkk thanks a lottt !!!!! i solved !! the problem was smilink ... i love u ahahhahaha :cyclops::cyclops:

PS your rom is in download ... :laugh:
[Android Software/Hacking General [Developers Only]] pjc21:
Hi,

I'm trying to setup my theme mod to auto detect weather the rom is deodex or odex and can not get the "writetmpfile" to work.

Not sure if I'm going about this the right way so any help would be great.

There are no errors with the aroma-config but the updater-script aborts and says that type.prop does not exist, I also tried a viewbox in aroma but it shows nothing there so the writetmpfile command is not creating any file at all.:confused:

aroma-config:

if
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.6 - 10.4.4.25/WW DEODEX" ||
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.6 - 10.4.4.25/US DEODEX" ||
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.7 - 10.4.4.25/WW DEODEX" ||
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.7 - 10.4.4.25/US DEODEX"
then
writetmpfile("/tmp/aroma-data/type.prop", "TYPE=DEODEX");
endif;

if
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.6 - 10.4.4.25/WW ODEX" ||
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.6 - 10.4.4.25/US ODEX" ||
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.7 - 10.4.4.25/WW ODEX" ||
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.7 - 10.4.4.25/US ODEX"
then
writetmpfile("/tmp/aroma-data/type.prop", "TYPE=ODEX");
endif;

updater-script:

#################### ROM TYPE ############################

ui_print("Detecting Rom Type");

if
file_getprop("/tmp/aroma-data/type.prop","TYPE") == "DEODEX"
then
ui_print("DEODEX Detected...");
endif;

if
file_getprop("/tmp/aroma-data/type.prop","TYPE") == "ODEX"
then
ui_print("ODEX Detected...");
endif;

######### DEODEX SYSTEM ##############
if
file_getprop("/tmp/aroma-data/type.prop","TYPE") == "DEODEX"
then
package_extract_dir("SystemUIs/DEODEX/Blue/Stock", "/system");
endif;

I have never used the writetmpfile command so not sure if I have the syntax correct here, so could really use the help.

Thanks
[Android Software/Hacking General [Developers Only]] $tefanDroid:
Hello guys!

Got a Syntax error on line 733 col 1

I can't find the issue! Please have a look at it maybe you find something...

dl.xda-developers.com/attachdl/9a81...d7065/517ab8b2/1/9/1/1/2/8/7/aroma-config.txt

:D:):beer:

Sendt from my shooteru using Tapatalk 2
[Android Software/Hacking General [Developers Only]] grzesdroid:
@up

410 - gone :/

SGS III / Grisza Monster Beam v8.1 / Perseus 36 / JKay deluxe framework 14.93.4 / JB Domination / Tapatalk 2 / Swype
[Android Software/Hacking General [Developers Only]] franzyroy:
Yes but you can make it easily with avabox for example.
[Android Software/Hacking General [Developers Only]] Patrics83:
if
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.6 - 10.4.4.25/WW DEODEX" ||
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.6 - 10.4.4.25/US DEODEX" ||
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.7 - 10.4.4.25/WW DEODEX" ||
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.7 - 10.4.4.25/US DEODEX"
then
[COLOR="red"]writetmpfile("type.prop", "TYPE=DEODEX"); [/COLOR]
endif;

if
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.6 - 10.4.4.25/WW ODEX" ||
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.6 - 10.4.4.25/US ODEX" ||
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.7 - 10.4.4.25/WW ODEX" ||
file_getprop("/system/build.prop", "ro.build.display.id") == "CleanROM Inheritance 3.4.7 - 10.4.4.25/US ODEX"
then
[COLOR="Red"]writetmpfile("type.prop", "TYPE=ODEX");[/COLOR]
endif;

It should work now ;)

Good luck!
[Android Software/Hacking General [Developers Only]] pjc21:
Thank you very much, got it working now :good:

also had to change the /tmp/aroma-data/type.prop in updater-script to just /tmp/aroma/type.prop but all working now :)
[Android Software/Hacking General [Developers Only]] Patrics83:
Your welcome :)

The change in the updater-script shouldn't be needed at all.

Correct path to the props are /tmp/aroma-data/

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] pjc21:
Yeah I found that strange that I had to change the updater-script as all other .prop files work fine with /tmp/aroma-data/ but the one created with writetmpfile - updater-script gets error saying file does not exist.

So the below works fine but if I change the type.prop path to /tmp/aroma-data/type.prop it fails :confused:

if
file_getprop("/tmp/aroma-data/system.prop","selected.0") == "1" && file_getprop("/tmp/aroma-data/systembar.prop","selected.0") == "1" && file_getprop("/tmp/aroma/type.prop","TYPE") == "DEODEX"
then
ui_print(" - Blue - Stock");
package_extract_dir("SystemUIs/DEODEX/Blue/Stock", "/system");
endif;

Anyway it work fine now so thanks again.
[Android Software/Hacking General [Developers Only]] k2wl:
(solved) plz help me with aroma config

i am trying to make an aroma for my rom.

but i always says "aroma-config syntax error at line 125 col 6"

i am attaching meta-inf folder here. kindly somebody plz help me...

UPDATE - problem solved. i put an extra comma in one of the lines. now everything is fine.

thanks for the awesome thread
[Android Software/Hacking General [Developers Only]] dariolob:
TWRP says "syntax error on line 232 column 7" (last line in my case) but I couldn't find anything strange :(

Thanks in advance for your help!
[Android Software/Hacking General [Developers Only]] Patrics83:
Remove red marked ","

122: "smemo2",	"A stand alone equalizer",	0[COLOR="Red"],[/COLOR] #-- item.1.8

Remove red marked ","

122:	"I8190N",	"The NFC version",	0[COLOR="red"],[/COLOR] #-- item.1.3

And you are missing ");" at line 128.
[Android Software/Hacking General [Developers Only]] Spex:
hmm I dont know whats wrong

status 1

line 181 coloum 10

red is 181 line
[Android Software/Hacking General [Developers Only]] Harbir:
need ur above aroma.confi as the problem is there not here ;)

lol there is another error which will show after remove ,:D

# #
# SELECT INSTALLATION ITEMS #
# #
checkbox(
#-- Title
"Premium Xperia Install",

#-- Sub Title
"Select Wipes and Apps",

#-- Icon:
"@install1",

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

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

"Wipes", "", 2, #-- Group 1. key = "item.1.x"
"Wipe Cache", "Wipe partition cache after ROM installation", 1, #-- item.1.1
"Wipe Userdata", "Wipe partition user data after ROM installation", 1, #-- item.1.2

"Apps", "", 2, #-- Group 2. key = "item.2.x"
"E-mail", "e-mail app", 0, #-- item.2.1
"Exchange", "exchange app", 0, #-- item.2.2
"Gtalk", "google talk app", 0, #-- item.2.3
"Livewallpapers", "support for live wallpapers", 0, #-- item.2.4
"Radio", "FM radio app", 0, #-- item.2.5
"STK", "sim toolkit app", 0, #-- item.2.6

"Plugings", "", 2, #-- Group 3. key = "item.3.x"
"ANT", "Ant+ support", 0, #-- item.3.1
"Facebook", "Sony facebook integration", 0, #-- item.3.2
"Social engine", "Social engine core plugin", 0, #-- item.3.3
"Timescape", "Timescape plugin", 0, #-- item.3.4

"Addons", "", 2, #-- Group 4. key = "item.4.x"
"NXT Lockscreen", "Xperia NXT Lock screen", 1, #-- item.4.1
"NXT Smallapps", "Xperia NXT Small apps", 0, #-- item.4.2
"NXT Widgets", "Xperia NXT Widgets", 1[COLOR="Red"],[/COLOR] #-- item.4.3

#----------------------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]-----------------------#
);
[Android Software/Hacking General [Developers Only]] Spex:
here is my aroma :)

http://www.mediafire.com/?xqoswky48scbows
[Android Software/Hacking General [Developers Only]] Harbir:
problem

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

solution

#-- Will be saved in /tmp/aroma/other_demo.prop
"other_demo.prop",
endif;

and also the above solution ;)
[Android Software/Hacking General [Developers Only]] Spex:
now i get status 1

line 174 col 6 :silly:
[Android Software/Hacking General [Developers Only]] Harbir:
solution my bad didnt saw that last time :D

menubox(
#-- Title
"Cancelling...",

#-- Sub Title
"Choose one of the options:",

#-- Icon
"@cancel",

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

[COLOR="Red"] "option 1","sub words","@icon",
"op 2","sub","@icon",
"op 3","sub","@icon"
);[/COLOR]
endif;

u have to make some options to choose and a ); as it is menu box
[Android Software/Hacking General [Developers Only]] Spex:
i solved(?) it like this

##
# MISC MENU
#
if prop("boot.prop","selected")=="3" then
if
confirm(
#-- Title
"Exit",
#-- Text
"żBack to recovery?",
#-- Icon (Optional)
"@exit"
)=="yes"
then
#-- Exit - NOTE: Add dummy argument
exit("");
endif;
endif;
endif;

EDIT

It didnt work with this

still same error
[Android Software/Hacking General [Developers Only]] Harbir:
no like this

##
# MISC MENU
#
if prop("boot.prop","selected")=="3" then

#-- Show Other Demo
menubox(
#-- Title
"Cancelling...",

#-- Sub Title
"Choose one of the options:",

#-- Icon
"@cancel",

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

"option 1","sub words","@icon",
"op 2","sub","@icon",
"op 3","sub","@icon"
);
endif;
[Android Software/Hacking General [Developers Only]] Spex:
I fixed it
[Android Software/Hacking General [Developers Only]] dariolob:
Thank you very much :)
[Android Software/Hacking General [Developers Only]] vishal_android freak:
I am having a syntax error at the end of the aroma config.. The very last line..

Below finish on the first column.. Please help.. :(
[Android Software/Hacking General [Developers Only]] Harbir:
the last line should not have any other codes expect aromas own codes remove it
[Android Software/Hacking General [Developers Only]] vishal_android freak:
here is my aroma config.. please see it.. :(
[Android Software/Hacking General [Developers Only]] Harbir:
kk do this red = remove blue add

line 173

"System Info Demo", "Get and show device/partition informations", "@info"[COLOR="Red"],[/COLOR] #-- selected = 2);

line297

"Unlocked Bootloader", "HTC IME with T9 Support", 0[COLOR="Red"],[/COLOR] #-- selected.4 = 2

line 406-408

[COLOR="Blue"]reboot("onfinish");
endif; [/COLOR]

that's all;)
[Android Software/Hacking General [Developers Only]] vishal_android freak:
Bro u rock man.. :D it worked.. But Wen I click on install it says fromat() needs 2 argu got 4..
[Android Software/Hacking General [Developers Only]] Harbir:
Post the new aroma.confi
[Android Software/Hacking General [Developers Only]] vishal_android freak:
here it is

Edit: I changed my updater-binary-installer with uhd's and it flash my rom, but problem is some of the options not getting flashed.. :( what should I do?? Should I rename my present update binary n replace it??
[Android Software/Hacking General [Developers Only]] Harbir:
paste ur META-INF zip ;)

Edited

Below ans those problem are related to ur rom not the aroma :D
[Android Software/Hacking General [Developers Only]] vishal_android freak:
thanks a ton mate.. all is working good.. ;)

Edit: suddenly after flashing my Rom now, my sound enhancement is not working in Walkman.. and nothing is getting downloaded also.. from stock as well as other browser.. :(

any help here please.. :o
[Android Software/Hacking General [Developers Only]] Sneakyghost:
force_colorspace issue

Regarding function: ini_set("force_colorspace","rgba");

Hello dear supporters/devs,

got an issue trying to fix the Venom Viper One S ROM to run properly on the newer TWRP 2.5.0.0. This is for the Ville. The Recovery has recently undergone a kernel change towards the newer jellybean based kernels and as such uses RGB_8888 or RGBX_8888 as ColorSpace. Now, when setting the force_colorspace to RGBA (which is working correctly for ffmpeg and pulling screenshots), it results in a crash/getting stuck of the aroma script.

The line is placed at the top most ini_set section of the script.

According to this post here on this thread, the allowed values are rgba, bgra, abgr and argb. All four lead to the following [EDIT]thanks to Carl1961 i could add another 3 values to the test[/EDIT]:

rgba=crash/stop of execution

bgra=turquoise tint

abgr=blue tint

argb=crash/stop of execution

gbra=dark green tint

grba=dark green tint

brga=dark blue tint

Now my question is this: are there still other values allowed to be used? Or else: do we need to wait until the Aroma-Binary has been adjusted to run with those newer kernels?

Thank you.
[Android Software/Hacking General [Developers Only]] badwolf94:
Hey guys,

Every time i try to run my AROMA installer is gives me,

SYNTAX!!! aroma-config on line 93 col 3

I've searched through the config and that line is

);

After reading through this thread and trying all the various suggestions i couldn't seem to fix it. (Though i did find some missing "," and removing those at the end of the appropriate lines)

Any help would be appreciated :D
[Android Software/Hacking General [Developers Only]] Harbir:
???? strange

ur aroma is working no problem see your self :)
[Android Software/Hacking General [Developers Only]] badwolf94:
Really? lol dear me i just don't know anymore, anyway thanks for the confirmation :D

Edit: Success i have have the issue, if i try to run the aroma that has syntax errors, then after fixing them, unless i flash something else it keeps saying the syntax errors exist weird.
[Android Software/Hacking General [Developers Only]] Sneakyghost:
Hello,

did anyone see my request here at all? Maybe i am posting it to the wrong thread? Should i ask over at the other Aroma thread?

Or do you guys just don't know an answer? Or am i too impatient maybe? :D

Seems like solution is an update to the Aroma-binary according to here: http://xdaforums.com/showpost.php?p=37758591&postcount=1075

Is that being worked on? Does anyone know?
[Android Software/Hacking General [Developers Only]] Spex:
My aroma starts, i choose my options, installation starts but doesnt show progress and finishes right away and doesnt install anything

If anyone wants to check out here is my meta-inf

http://www.mediafire.com/?kp2pgx0z52pgj06
[Android Software/Hacking General [Developers Only]] Harbir:
It's an update script problem so can u do one thing

When the installation process starts save the logs and past them here .;)
[Android Software/Hacking General [Developers Only]] Spex:
problem is that it doesnt save logs
[Android Software/Hacking General [Developers Only]] carl1961:
I would take the update.binary and update-binary-installer from a known working aroma installer for your phone, then see if it logs
[Android Software/Hacking General [Developers Only]] Spex:
It has same update binary as other rom with working aroma
[Android Software/Hacking General [Developers Only]] Harbir:
Carl I also have this problem in my universal aroma mod which works on 27devices and not for 1device only .and have same symptom like him
[Android Software/Hacking General [Developers Only]] Sneakyghost:
Hey guys, what's the reason i am not getting a reply to my question regarding the colorspace issue with the newer htc kernels in recoveries?

I tried to explain it 6 days ago here and didn't get any answer since, not even a "we don't know" or anything...

I'd really like to be answered, as i currently haven't really gotten an idea where to go with this issue. The colorshift does annoy quite a few users by now and we have to work around it by using older recoveries over at the Ville forum, which is kind of, well, not as good as it could be.

I was really hoping to get an idea here how to proceed and if Amarullz could maybe include another ini_set("force_colorspace","????") that would be about perfect.

Thanks for your attention.
[Android Software/Hacking General [Developers Only]] Robobob1221:
Think you're gonna have to wait till amarullz announces the new aroma core/system he's working on for a fix to this issue. It a limitation of the current implementation of the binary. It's explained somewhere in this thread better than I can.
[Android Software/Hacking General [Developers Only]] carl1961:
Same here (tested with my update-binary files)

AROMA INSTALLER version 2.58

(c) 2012 by amarullz xda-developers

ROM Name : Badwolf: The Chameleon Circuit

ROM Version : 1.1 XXDME1

ROM Author : badwolf94

Device : International Samsung Galaxy Note II - N7100

Start at : Sun May 19 08:48:18 2013

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

+ Samsung Galaxy Note II +

+ Badwolf: The Chameleon Circuit +

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

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

+ Formatting Partitions +

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

+ Installing system... +

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

+ Installing selected options +

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

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

+ Completed! +

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

unmount of /system failed; no such volume

unmount of /data failed; no such volume

unmount of /preload failed; no such volume

script result was []

Installer Sucessfull (Status 0)

End at : Sun May 19 08:48:18 2013