yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] spyrosk:
Hiding items (value 3) fom menus,slectboxes,checkboxes changes the values the others

Hello amarullz ,

I am new in aroma installer. I love it and I managed to make my first succesfull scripts.

Here is what I faced:

When tried to make a selection of available Kernels to install, I tried to reduce the items depending on the wipe option (EXT3 EXT4) to avoid wrong selection by user.

So I hided the not supported ones for the specific format but I was surprised to find out that the rest items got values like there were only them in list. That of course would result in wrong selection in update-script.

To overcome this I had to make two different selectboxes with two different prop files.

I wonder if this could be considered as "bug" and should be fixed. Otherwise I don't understand the use of hide value 3.

Thank you for your time
[Android Software/Hacking General [Developers Only]] Bologna:
You're right, it is possible after all. Problem it's not there

have tried to "save log" before the last "next" button? It's usually easy to see what the problem is reading the aroma's log.
[Android Software/Hacking General [Developers Only]] Chrack:
Is it possible to add words like "Ä or Ü or Ö"?

The installer dont show them.
[Android Software/Hacking General [Developers Only]] Macrodroid:
Yeah, I did a save log and checked it. The updater script just runs past the options. It's specific to the checkbox feature, since I do get a selection to work with the selectbox feature. I am figuring now It's either binaries, use of multiple checkbox items (using 3 different props) or a combination of all that... All this is experimental right now for me, so I've got more time to play...
[Android Software/Hacking General [Developers Only]] GrAnd1:
amarullz,

does not want to help me...

I thought for Escape characters "Backspace", but it did not help...

setvar("DateTime", "_"+getvar("exec_buffer")+[COLOR="Red"]"\x08\x08\x08"[/COLOR]); # [B]does not work[/B]
setvar("DateTime", "_"+getvar("exec_buffer")+[COLOR="red"]"\b\b\b"[/COLOR]); # [B]does not work[/B]
setvar("DateTime", "_"+getvar("exec_buffer")+[COLOR="red"]"\n\n\n"[/COLOR]); # [B]works[/B]
[Android Software/Hacking General [Developers Only]] reekotubbs:
nvm
[Android Software/Hacking General [Developers Only]] ph87:
You have to add a few lines in your aroma-config

loadlang("langs/de.lang");
fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );
fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );

And be sure, that you have the "langs" and the "ttf" folders in the aroma-folder (Only works in the aroma 2.00-2.51 versions)
[Android Software/Hacking General [Developers Only]] dany547:
im starting to hate this, i get en Syntax error on a line that doesnt exist 1010 http://pastebin.com/s12xwsVP
[Android Software/Hacking General [Developers Only]] savie:
Hello sir..

I use ur aroma to installing my kernel.. LINK..

Thanks for ur awesome work..

seeMyDOT !!!
[Android Software/Hacking General [Developers Only]] reekotubbs:
I'm having issues backing up anything to the sdcard while using aroma installer.

At first it was working, then it started hit and miss, now it won't at all.

I have a script which does:

mkdir /sdcard/.test_bkup

mv /system/app/test.apk /sdcard/.test_bkup

it does not produce any errors, but does not create directory or place file.

I also tried to do it from the updater-script

run_program("/sbin/busybox", "mkdir", "/sdcard/.test_bkup");

still does not produce any errors, but does not create directory.

any help would be appreciated.
[Android Software/Hacking General [Developers Only]] Th3Bill:
In your CWM, try this:

Go to Advanced Menu (or equivalent)

Select Report Error (or Equivalent)

Select Show Log (or Equivalent)

Then reboot recovery and flash the rom then. Sometimes an unreported error or a previous choice (from alternate Aroma based rom) will cause issues. I've done a TON of builds based in this installer, and that's a common issue that my users had.

Another thing you could try is instead of having it install to the "/data/app" folder, build the file-system inside your rom and have it extract to "/"

So

package_extract_dir("extras/app/Burg", "/data/app/");

would become

package_extract_dir("extras/app/Burg", "/");

and you would have the following folder directory in your rom

/extras/app/Burg/data/app

---------- Post added at 04:48 PM ---------- Previous post was at 04:46 PM ----------

Make a .sh script to create the folder, have aroma copy it to your /tmp folder, then set permissions, then run the script.

I've used this to make directories within Aroma :)

---------- Post added at 04:55 PM ---------- Previous post was at 04:48 PM ----------

JB based rom? I've been getting the same thing. I think it's the binary from JB that is causing it. I ran into the same thing when I tried using it on my JB based builds.... :(
[Android Software/Hacking General [Developers Only]] reekotubbs:
That's exactly what I did, but after running it a few times it stops creating the folder.

edit:

I used resexec("test.sh") to get script details, no errors and the function returned 0.

I think this may have to do with usb cord being plugged into to PC at the time, when I removed it before booting into recovery everything worked.
[Android Software/Hacking General [Developers Only]] torxx:
Hi guys,

I hope someone can help me out as it seems like that I have a nasty mistake and couldn't find it yet.

Here is my install.log: http://pastebin.com/HZ8egGhg

My thought was that it has something to do with the erase_image command but it seems clean for me, mounting points are all right, I checked it.

Here is my META-INF folder if it helps: https://www.dropbox.com/s/mcdzmrwwskt15wu/META-INF_a7-2.rar

I would appreciate any kind of help
[Android Software/Hacking General [Developers Only]] Patrics83:
I just had a quick look, so don't kill me if I'm wrong :p

But did you try to unmount /cache before erase image command?

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] torxx:
Thanks Patrics :)

I didn't try to unmount before erasing but I will try ;)

Edit: Still not working :/
[Android Software/Hacking General [Developers Only]] anryl:
Why are u using erase_img if u format it ?

Odesláno z mého HTC EVO 3D X515m pomocí Tapatalk 2
[Android Software/Hacking General [Developers Only]] manoranjan2050:
Downloading New Updates.............................. Thanks For It.....
[Android Software/Hacking General [Developers Only]] torxx:
Never mind fixed it, it wasn't the erase_image, it was formatting cache as EXT4.
[Android Software/Hacking General [Developers Only]] alirez_sos:
hi

im using aroma for my rom for desire hd

now i want to multi devices my rom for incredibles & Desire S

i know the calibration for these devices is diffrent

how i can set value for them

like

if desire hd set calibration to ....

if desire s set calibration to...

and ...

how i can do it ?

tnx
[Android Software/Hacking General [Developers Only]] mattmanwrx:
Firstly, there is a Q&A Thread linked in the OP - it is here - http://xdaforums.com/showthread.php?p=28706056

Secondly, I, personally, would advise against it. You could have people flashing for the wrong device when just going through the AROMA options. Also, it would double the download size for everyone wanting to download, which would double bandwith etc etc...

Matt
[Android Software/Hacking General [Developers Only]] torxx:
I guess you haven't heard from the HTC wvga devices and Virtuous team.

They managed to get 6 or 7 devices in 400 MB.

I like the idea of alirez and would be interested if the if sentence with calibration would work
[Android Software/Hacking General [Developers Only]] mattmanwrx:
Well they probably use the same apps through out and just change system stuff like libs etc... Seems a way of doing.it, but a bit complicated for a rom download...
[Android Software/Hacking General [Developers Only]] torxx:
Not really, it's actually really easy
[Android Software/Hacking General [Developers Only]] mrRobinson:
Following up on this...

I'm on the ATT Galaxy S3. If I do not force_colorspace I too get everything with a blue tint. If i force it with "rgba" all colors are perfect, HOWEVER, 4/5 times NOTHING will show up. When things show up they are perfect but most times I blindly have to hit menu and quit to get back to recovery as I see nothing on the screen. Meanwhile if i use "bgra" I see stuff everytime but now text is orange. (using ICS theme where it should be blue so i know this has swapped b and r from what it is supposed to be ( blue and orangeish complementary ) but using the correct value of rgba a majority of the time will result in nothing being drawn to the screen at all.
[Android Software/Hacking General [Developers Only]] cojo11:
I need a little help:(

I got a Syntax error aroma-config on line 195 col 4

But i dont find what is wrong:(

http://pastebin.com/QyuhM0rj
[Android Software/Hacking General [Developers Only]] mrRobinson:
On 194: "selected.2=1\n"+ #-- Default RIL = 725

get rid of the "+" so its just

"selected.2=1\n" #-- Default RIL = 725

---------- Post added at 08:59 AM ---------- Previous post was at 08:42 AM ----------

Not sure.... maybe the @ in the delete lines throwing it off?

can you just try wiping all of dalvik like:

delete_recursive("/data/dalvik-cache/");

get rid of those other deletes and see what happens?
[Android Software/Hacking General [Developers Only]] cojo11:
thx

but now the same at line 249 col 4

http://pastebin.com/zHf64WLe
[Android Software/Hacking General [Developers Only]] mrRobinson:
Same deal

line 246

"item.1.22=49\n"+ #SMS Backup

get rid of the + at the end.

oh and line 251 you don't want the + at the end there either.

"item.1.1=1\n"+ #-- Alarm Clock New
[Android Software/Hacking General [Developers Only]] cojo11:
shure??

now line 248???? i go crazy,i make a few roms witz arom an have no trouble like now,sorry for my bad english

i try with and without the plus
[Android Software/Hacking General [Developers Only]] trter10:
Hi! I'm also having a syntax error problem, line 281 column 2, but I'm not sure why.

Any help is appreciated!

(This file is a work in progress and I'm editing as I go along so that's why it doesn't make sense after line 281)

http://pastebin.com/pD3bhu8T
[Android Software/Hacking General [Developers Only]] mrRobinson:
get rid of the comma here

"@alert", #-- selected = 2

on 280

---------- Post added at 03:40 PM ---------- Previous post was at 03:40 PM ----------

still same pastebin?
[Android Software/Hacking General [Developers Only]] trter10:
Awesome it worked thank you so much!
[Android Software/Hacking General [Developers Only]] Smartg2os:
I tried but it didn't work, same problem :(
[Android Software/Hacking General [Developers Only]] cojo11:
thx for your help,the installation run:)

But i give up,i loos the Rootrights:( and i dont know why,with Stockrom it works great but with the Mix from Gueste CM7/20q its donst work with Aroma

I`am out:(
[Android Software/Hacking General [Developers Only]] blk_jack:
I'm having an issue where after running a shell script with run_program, Aroma silently exits with Installer Error (Status 0). The run_program ran fine before, but I've since added another run_program function (above) for another script and now I get that error. To clarify, it completes the script entirely and runs an echo after and then exits with seemingly nothing going on.

Would there be an issue with /tmp filling up or some kind of memory limitation? I'm not sure how I can debug this, but I'd obviously like to find a solution.

Thank you
[Android Software/Hacking General [Developers Only]] trter10:
EDIT: I have solved the problem :P
[Android Software/Hacking General [Developers Only]] dsb9938:
Trying to figure out how to ask two questions, then move from there.

For example, themed, or unthemed. Then transparent, or nontransparent.

And make a choice based on BOTH answers. This can result in 4 possible combinations.

I know how to ask the questions in aroma, I don't know how to do the edify based on the answers.

D

.
[Android Software/Hacking General [Developers Only]] mrRobinson:
I'd put them in a selectbox

selected.1 = 1 (themed)

selected.1 = 2 (unthemed)

selected.2 = 1 (transparent)

selected.2 = 2 (nontransparent)

these values written to a prop file like mychoice.prop

then in edify

if

file_getprop("/tmp/aroma/mychoice.prop","selected.1") == "1"

then

ui_print("@ themed...");

blah

endif;

EDIT: wait, i think you'll want to use the inline if.

so basically

if selected.1 == 1

iif selected.2 == 1

this is themed transparent

,

this is themed no transparent

endif

if selected.1 == 2

iif selected.2 == 1

this is no theme, transparent

,

this is no theme, no transparent

end if

where i have "this is blah" you write some other prop file and use that in the edify if statement.
[Android Software/Hacking General [Developers Only]] -FuFu-:
hey there,

is there a possibility to use the back("") command or any other command in aroma-config after the install command to go back to the first menu in aroma installer

or may it be possible to "restart" the aroma installer after the install command?
[Android Software/Hacking General [Developers Only]] Волк:
This is the first time I've heard of that, and I thought I read all the XDA threads on edify script. Where did you find that, or is another one of those commands specific to AROMA?
[Android Software/Hacking General [Developers Only]] mrRobinson:
yea not edify. just aroma has inline if.
[Android Software/Hacking General [Developers Only]] luisakira2301:
Hello . Amarullz can use aroma in my device ? LG P350
[Android Software/Hacking General [Developers Only]] RoryB:
I just came up with this for justinbean's aroma installer for inverted gapps.

My hope is we can create a standardized method so the same config file could be used for any aroma file.

Maybe we change it to aroma.cal since it is only calibration settings.

If I knew how calibtool sets the new calibration perhaps this code could be simpler than 8 values being imported.
[Android Software/Hacking General [Developers Only]] mercury0x000d:
AROMA output issue

Hello all.

I am working on a ZTE Warp and trying to get AROMA running properly. Everything is working great, but due to internal framebuffer issues with this phone, all output is upside-down. There's unfortunately nothing I can do about the buffer issue; even when they were porting Clockwork Recovery to our phone they encountered the inverted-display problem. My only option would be to somehow tell AROMA to invert its output. Is there any way to do this, either by something in the configuration file, or in the updater-script itself?

Thanks in advance :)
[Android Software/Hacking General [Developers Only]] Nonverbose:
This is great work, thank you for your contribution.

Something to bring to your attention, the download button for 2.50 and 2.51 are vice versa.
[Android Software/Hacking General [Developers Only]] RoryB:
Letting users have their own calibration settings saved

In aroma-config I have an if statement to check for an aroma.cal file on the sdcard, not the emmc since not everyone uses an external card. If the file is there it uses that data for calibration_matrix, if not it uses the default values in aroma-config.

if file_getprop("/sdcard/aroma.cal", "val1") != "" then
calibrate_matrix(
file_getprop("/sdcard/aroma.cal", "val1") , file_getprop("/sdcard/aroma.cal", "val2") , file_getprop("/sdcard/aroma.cal", "val3") , file_getprop("/sdcard/aroma.cal", "val4") , file_getprop("/sdcard/aroma.cal", "val5") , file_getprop("/sdcard/aroma.cal", "val6") , file_getprop("/sdcard/aroma.cal", "val7") , file_getprop("/sdcard/aroma.cal", "val8")
);
else
calibrate_matrix(
"63052.50","840.00","-903390.00","-1680.00","125895.00","-371670.00","120021.25","0"
);
endif;

The calibration data file is called aroma.cal since this concept could be used for any aroma based zip files. This works for me on my infuse.

val1=45000.000000
val2=225.000000
val3=188250.000000
val4=-255.000000
val5=48000.000000
val6=-642800.000000
val7=47000.000000
val8=15

Also, I figured a way to use the same calibration data for aromafm when you call it through aroma-config in an aroma install zip. This will use the values from /aroma/aromafm.cfg for all the other values so that is the only place the developer has to place these values.

# AROMA File Manager
#
if prop("main.prop","selected")=="1" then
if read("/sdcard/aroma.cal") != "" then
writetmpfile("aromafm.cfg",
"tooltext="+resprop("aromafm.cfg","tooltext")+"\n"+
"showhidden="+resprop("aromafm.cfg","showhidden")+"\n"+
"fontsize="+resprop("aromafm.cfg","fontsize")+"\n"+
"automount="+resprop("aromafm.cfg","automount")+"\n"+
"fadeframes="+resprop("aromafm.cfg","fadeframes")+"\n"+
"fontfamily="+resprop("aromafm.cfg","fontfamily")+"\n"+
"iconset="+resprop("aromafm.cfg","iconset")+"\n"+
"language="+resprop("aromafm.cfg","language")+"\n"+
"theme="+resprop("aromafm.cfg","theme")+"\n"+
"calibration="+
file_getprop("/sdcard/aroma.cal", "val1")+";"+
file_getprop("/sdcard/aroma.cal", "val2")+";"+
file_getprop("/sdcard/aroma.cal", "val3")+";"+
file_getprop("/sdcard/aroma.cal", "val4")+";"+
file_getprop("/sdcard/aroma.cal", "val5")+";"+
file_getprop("/sdcard/aroma.cal", "val6")+";"+
file_getprop("/sdcard/aroma.cal", "val7")+";"+
file_getprop("/sdcard/aroma.cal", "val8")
);
else
restotmp("aromafm.cfg","aromafm.cfg");
endif;
resexec("aromafm.sh");
resexec("aromafm","1","0",prop("aromafm.prop","ziplocation"));
resexec("aromafm.del");
back("1");
endif;

The aromafm.del file is a shell that deletes the "${UPDATE_PACKAGE}.cfg file that gets left behind when you exit aromafm. It is just this.

#!/sbin/sh
# Delete Configuration file

rm `echo "${UPDATE_PACKAGE}.cfg"`

My hope is we can create a standardized method so the same calibration file could be used for any aroma install file.
[Android Software/Hacking General [Developers Only]] MrTapa:
Hello. I have systax error that i cant fix.

SYTAX ERROR!!! aroma-config on line 274 col 9
(Status 1)
Instalation aborted.
[Android Software/Hacking General [Developers Only]] Patrics83:
Remove ","

0,	#-- item.5.1

I think it should work now...
[Android Software/Hacking General [Developers Only]] MrTapa:
Nope now it gives line 282 col 4
[Android Software/Hacking General [Developers Only]] Patrics83:
Oh, well I just had a quick look when on mobile...

But check all syntax.
[Android Software/Hacking General [Developers Only]] MrTapa:
I started working with aroma yesterday. For me all looks ok. But that cwm is joking with me
[Android Software/Hacking General [Developers Only]] Robobob1221:
Means you got too many lines with a comma most likely. Check out the q+a thread for common aroma errors. There's a link to it in the op I think.

an enviousOG
[Android Software/Hacking General [Developers Only]] MrTapa:
Cant find it.
[Android Software/Hacking General [Developers Only]] Patrics83:
Check line 328: )
[Android Software/Hacking General [Developers Only]] MrTapa:
Thanks but i ... now it gives me line 16 col 5
[Android Software/Hacking General [Developers Only]] Patrics83:
PM me your latest zip and I help you... ;)
[Android Software/Hacking General [Developers Only]] luisakira2301:
Any have aroma for mdpi devices?
[Android Software/Hacking General [Developers Only]] mercury0x000d:
Sounds like you have a closing parenthesis missing which would make AROMA interpret the entire rest of your script file as a complete function call. Check to make sure all of them are entered in matching sets.
[Android Software/Hacking General [Developers Only]] Androguide.fr:
Nevermind, didn't see the Q&A, sorry.
[Android Software/Hacking General [Developers Only]] sevoir:
function need

so I have two question:

is exist function as if file_exist("/system/app/Home") == 1 or like this

and how can I copy own .prop files from aroma temp dir to sdcard?
[Android Software/Hacking General [Developers Only]] RoryB:
I use if read("/system/app/Home") != ""
[Android Software/Hacking General [Developers Only]] sevoir:
can I use for dirs and files too ?
[Android Software/Hacking General [Developers Only]] RoryB:
Don't know, you could just try it and report back for others to know the results of your trying.
[Android Software/Hacking General [Developers Only]] dedraks:
Hi.

Thanks for your GREAT work.

Just to inform that I'm using AROMA Installer in my GT-P6800 kernel installer: http://xdaforums.com/showthread.php?t=1848163
[Android Software/Hacking General [Developers Only]] RoryB:
In a follow up to this I created a script section and a shell to allow the users to create their aroma.cal file through aroma. It took me a while to learn enough shell syntax to get this working.

I added this to the main menu:

"Calibration Saver", "Calibrate and then save your settings - <b>Use Alternative method only</b>", "@install" #-- selected = 3

I state use the alternative method only because I cannot get the normal method to get past the first dot. Maybe someone else can try it and let me know if it works.

This is the sub routine:

# Calibration Saver
#
if prop("main.prop","selected")=="3" then
write("/tmp/recovery.log",read("/tmp/recovery.log")+"\nCalibSaver\n\n");
calibtool("");
resexec("calibsave.sh");
if file_getprop("/tmp/aroma.cal", "val1") != "" then
alert("Calibration saver","/sdcard/aroma.cal saved");
else
alert("Calibration Saver","Nothing saved");
endif;
back("1");
endif;

This is calibsave.sh

#!/sbin/sh
#

rm /tmp/aroma.cal
sed -n -e 'H; /^CalibSaver/h; ${g;p;}' </tmp/recovery.log > /tmp/calibrate.txt

linenum1="$(awk '/calibrate_matrix/{print NR + 1}' /tmp/calibrate.txt)"
linenum2="$(awk '/calibrate_matrix/{print NR + 2}' /tmp/calibrate.txt)"
calib="$(sed -n ''$linenum1',1 p' </tmp/calibrate.txt)"
calib="$calib $(sed -n ''$linenum2',1 p' </tmp/calibrate.txt)"
calib="$(echo $calib | sed -e 's/\"//g' -e 's/ //g')"
rm /tmp/calibrate.txt

if [ "x$linenum1" = "x" ]; then
echo "Empty" > /tmp/aroma.cal
else
echo "val1=$(echo $calib | awk -F, '{print $1}')" > /tmp/aroma.cal
echo "val2=$(echo $calib | awk -F, '{print $2}')" >> /tmp/aroma.cal
echo "val3=$(echo $calib | awk -F, '{print $3}')" >> /tmp/aroma.cal
echo "val4=$(echo $calib | awk -F, '{print $4}')" >> /tmp/aroma.cal
echo "val5=$(echo $calib | awk -F, '{print $5}')" >> /tmp/aroma.cal
echo "val6=$(echo $calib | awk -F, '{print $6}')" >> /tmp/aroma.cal
echo "val7=$(echo $calib | awk -F, '{print $7}')" >> /tmp/aroma.cal
echo "val8=$(echo $calib | awk -F, '{print $8}')" >> /tmp/aroma.cal
cp /tmp/aroma.cal /sdcard/aroma.cal
fi

The creation of the aroma.cal file could be done much cleaner through the calibtool("") function, but I did this as a quick method of getting the feature. Perhaps someone that knows the source code better could offer up that version.
[Android Software/Hacking General [Developers Only]] sevoir:
ROM Modding Tools v3.1RC uses Aroma

Hi all,

Thanks for Aroma Installer.

My "ROM Modding Tools" use Aroma Installer too.

http://xdaforums.com/showthread.php?t=1881908
[Android Software/Hacking General [Developers Only]] du1sbo:
Hello to everyone. I have a Galaxy S3 (T-Mobile US), and was using HTC Sensation US version. On the Sensation, you can flash an International version rom via Aroma to the US Sensation. Aroma will then ask you on which Sensation version you have, International or US. Then Aroma will flash the Appropriate files needed for the model you have ( kernel, modem Etc.).

My Question is: Can we have something like this? have the Aroma flash the International Version Rom to US Galaxy S3, then Aroma will ask you which version you have, then flash the appropriate files needed ( kernel, modem, processor driver etc.. )

My apology if I posted this in the wrong place, Thanks and more power.
[Android Software/Hacking General [Developers Only]] dtbinh:
Could someone help me on this code:

ui_print("0. Format");

set_progress(0.01);

ui_print("-> format cache");

unmount("/cache");

run_program("/sbin/erase_image", "cache");

format("ext4", "EMMC", "/dev/block/mmcblk0p24");

It said: "format() expects 2 args, got 3"

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

It said: "mount() expects 3 args, got 4"

These codes worked well with 2.0 version, but 2.51 got error.

Sorry for my bad English.