yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] CosmicDan:
Re: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

The example script covers all the possible menu structures and is very well commented when you view it for editing. This is common practice in the developer world - its a script-driven GUI, so it only makes sense to learn and experiment with the included sample script.

Many other script-driven programs will not include any sample script. Just contain a massive document of all possible syntax. That's much harder to learn from, and amarullz has done a great job on the included feature tour. The structure is great, the formatting flawless and the comments elaborate - its the best documentation for any developer tool I've seen in years.

You may not like it, but nobody else has complained. I personally think the docs for it can't be improved in any way whatsoever - but that's probably because I'm the type who learns by doing instead if reading a book.

Sent from Xperia Play (R800a) running Turbo UI Classic with Tapatalk
[Android Software/Hacking General [Developers Only]] Dblfstr:
In all fairness, this particular part was confusing to me and others. Amarullz posted this information here: http://xdaforums.com/showpost.php?p=23901174&postcount=586 because other people were not quite sure how this works. When you read it it makes sense, but one can not assume how the naming convention works. I would suggest adding it to the OP. (Do not recall if it is in the example) A suggestion, not a complaint.

---------- Post added at 08:47 AM ---------- Previous post was at 08:43 AM ----------

Definitely a better solution. I would go this route.
[Android Software/Hacking General [Developers Only]] _escape_:
i got strange Screenshot ... see pic attached please.

Any suggestions ? :)
[Android Software/Hacking General [Developers Only]] Harbir:
Re: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

Devs need help

Custom back and forth in menu options make my aroma installer abort how to solve it

As I think the problem come from the props created on the selection of menu of ( is there a way I can delete the unwanted props of different menu ):confused:
[Android Software/Hacking General [Developers Only]] CosmicDan:
Try rotating or refreshing a few times. If it doesn't work, this is a kernel issue with framebuffer code and we cannot help. Try an older kernel for making screenshots.

Post your script in the other scripting help thread.
[Android Software/Hacking General [Developers Only]] _escape_:
Ok i will, thx :)
[Android Software/Hacking General [Developers Only]] niki1999kir:
How to remove this installer from update.zip
[Android Software/Hacking General [Developers Only]] bgcngm:
What's the idea behind it?
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
Using the File Manager to Install ROMs

Hey, so I'm currently working on an idea to save data usage stats between ROM flashes. Now, obviously a huge obstacle for this is finding out where the data usage stats are kept (anyone who knows this, I'd really appreciate some info).

The next phase is making sure that any ROM can take advantage of this. My plan is to use the Aroma File Manager to accomplish this. The user would simply boot the File Manager in Recovery Mode, select their ROM, and then a script backing up the data usage stats would run before the ROM install and a script restoring it would run after.

My big question for the folks here is: Can I use the File Manager that way? Can I select a ROM in the file manager and flash it like that? essentially having the Aroma updater-script trigger the ROM updater-script.

Thanks in advance.
[Android Software/Hacking General [Developers Only]] CosmicDan:
Nope. Aroma lacks Edify API. Update ZIP's must be run from recovery. Regardless, you would have to edit source code of Aroma FM and probably also TWRP/CWM to enable such a thing.

Best off waiting for Aroma Core, which (I think) will also have Aroma Recovery.
[Android Software/Hacking General [Developers Only]] carl1961:
read here Titanium Backup save that, maybe you can learn from the app where it is stored, I beleive it is in the userdata area, and if you do back it up I think you cannot restore it until rom sets up the userdata stuff

http://xdaforums.com/showpost.php?p=29551122&postcount=11
[Android Software/Hacking General [Developers Only]] CosmicDan:
It's in the Settings Provider (or maybe Telephony Provider) SQLite database. You'll need to manually run a script to pull/inject the row to/from database table. Very difficult because different ROM's use a different index, and the index cannot change. You can only know this by examining initial database from a ROM already set up.

Besides, off-topic. Aroma can do anything you can do in a shell script via exec() command, so yes you can. But you won't get help for it here, and you can't browse the filesystem in Aroma Intstaller.
[Android Software/Hacking General [Developers Only]] BanB:
Hey guys could you help me.... I get every time this error:

AROMA INSTALLER version 2.56
(c) 2012 by amarullz xda-developers

ROM Name : CommuniSation - Leopard Sense 4.1/VilleC2
ROM Version : 2.0.0
ROM Author : BanB
Device : HTC Sensation Z710e/Z715e/4G
Start at : Thu Feb 28 22:18:00 2013

line 1124 col 19: syntax error, unexpected $end
1 parse errors

Installer Error (Status 6)

End at : Thu Feb 28 22:18:00 2013

My last line is:

ui_print("done");

This should be the wrong line?
[Android Software/Hacking General [Developers Only]] kevinrocksman:
this is not the place to put this man.... but your missing a endif; somewhere

posting the files would help so we could look at it but there is a section for support
[Android Software/Hacking General [Developers Only]] BanB:
AW: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

Oh sorry. :) ill check my files again :D

Edit: Ok i'm fixed it....
[Android Software/Hacking General [Developers Only]] AndyFox2011:
Re: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

-Ignore this post... I iz pressing wrong buttons again-
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
Thanks for the advice. What is Aroma Core? Haven't heard of it yet.

Also, is there a site online where people post their Aroma themes? I'm not much of a graphic designed, so I would be very interested to see what folks have cooked up.
[Android Software/Hacking General [Developers Only]] _escape_:
I downgrade my Hboot to 1.17, and back to my first official ROM, GB 2.3.4 ... nothing changed. Screenshots are still weird ...

i'm using 4EXT Recovery Touch v1.0.0.5 RC8, could it be this, ginving me troubles ?

If someone knows what i can do ...

BTW thx for all :)
[Android Software/Hacking General [Developers Only]] kevinrocksman:
hey amarullz made a site specifically for helping with aroma if thats ok with you: http://teamdart.net/forum/index.php?board=27.0

let me know if its not ok
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Looking for the location of the variable for <~welcome.text1> at the beginning of the aroma-config. It seems to be outputting gibberish in place of where my name should be. It kind of reminds me of a bunch of Lucky Charms cereal.

"Welcome

To (lots of random symbols)'s installer for blah blah blah..."

So, where is <~welcome.text1> calling its text?
[Android Software/Hacking General [Developers Only]] OMJ:
I've been stuck @ aroma 2.50 for some time now, this is on a HTC Evo 4G LTE. When I try to update to 2.56 the touchscreen does not work at all. Vol up/dn & home buttons work though.

I would just stay @ 2.50 but aroma freezes frequently when using the touchscreen. Rarely when using the buttons only. I was hoping an update to 2.56 would resolve the freezing.

There is also a aroma color issue when using TWRPs latest recovery.....per TWRP dev eyeballer, aroma needs to be updated for HTCs color formats...

any help? thx
[Android Software/Hacking General [Developers Only]] franzyroy:
I've a question!

If a folder (not a file) doesn't exist on the SDCard (or other emplacements)... Is it possible to create it since the file 'aroma-config'? And how?

Thanks!
[Android Software/Hacking General [Developers Only]] Patrics83:
Sv: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

Yes you can. But this should be discussed/asked in FAQ...

This will check if directory exists, if not it will create the directory.

if exec("/sbin/busybox","test","-d","/sdcard/dir1")=="1" then
exec("/sbin/busybox","mkdir","-p","/sdcard/dir1");
endif;

Or skip the if statement and use this,

exec("/sbin/busybox","mkdir","-p","/sdcard/dir1");

The -p is used only to prevent it from giving errors if the directory already exists.

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] franzyroy:
Great! ;)
[Android Software/Hacking General [Developers Only]] max_choco:
you genius?? --- yes..! your genius
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Does anyone know the answer to this?

Does anyone know a workaround, even? Is it possible to replace <~welcome.text1> with actual text instead of that variable?

Can this:

#-- Text
"[COLOR="red"]<~welcome.text1>[/COLOR] <b>"+
#-- Get Config Value
ini_get("rom_name")+
"</b> <~common.for> <b>"+ini_get("rom_device")+"</b>.\n\n"+

Be changed to this:

#-- Text
"[COLOR="Red"]Welcome to cajunflavoredbob's installer for[/COLOR] <b>"+
#-- Get Config Value
ini_get("rom_name")+
"</b> <~common.for> <b>"+ini_get("rom_device")+"</b>.\n\n"+

It does the same thing in the Changelog screen as well. At the top I see "(Random symbols) Changelog"
[Android Software/Hacking General [Developers Only]] carl1961:
Re: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

You change it best in the Lang files, search your aroma folder. Example : en.lang.

welcome.title=Welcome

welcome.text1=You are about to Installing welcome.text2=AROMA Installer was the first and the only Touch and Customizable ANDROID ROM Installer in the World.

welcome.version=VERSION

welcome.codename=CODENAME welcome.updated
[Android Software/Hacking General [Developers Only]] franzyroy:
Good, I found my answer

For delete file or folder since 'aroma-config'.

It's Like that:

exec("/sbin/busybox","rm","-f","/sdcard/my_file.prop");

That works fine.
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
You are my hero. I was pulling my hair out on this one.
[Android Software/Hacking General [Developers Only]] CosmicDan:
That's what happens when you don't read the OP fully and/or examine the included script example.
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Where was my question answered in this thread, or in the sample? I only posted the question here after spending three hours unable to locate the answer myself and a week learning the scripts enough to even get this far in the first place.
[Android Software/Hacking General [Developers Only]] CosmicDan:
The very first selectbox() in the sample is a languge select, followed by conditionals with e.g. loadlang("langs/en.lang"); command, and straight after it is a viewbox:

###################################################################################################################
#
# SHOW LANGUAGE TEST MULTILINE
#
viewbox(
#-- Title
lang("langtest.title"), #-- you can use lang("langtest.title") function or directly in string "<~langtest.title>"

#-- Text
"<~langtest.multiline>",

#-- Icon
"@info"
);

Pretty self explainatory.
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
It's only self explanatory now that I know what to look for. I saw that in my many run throughs in the search for my answer, but that did not lead me anywhere, since it didn't make sense to me. I had assumed it was calling on a specific file that I didn't have, which is where my frustration came from when I couldn't solve this one. Short story is it seems I took the example text too literally. In hindsight, I don't know what it could have been named to make me realize that was what I was looking for, so I'm not blaming or suggesting any changes.
[Android Software/Hacking General [Developers Only]] CosmicDan:
Yeah well I will admit that the example/docs *could* be expanded upon in some areas, but then the experienced scripters and developers would complain about it being too verbose and inefficient :p
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Even XDA veterans need a kick in the ass sometimes. :p

(which is exactly what this scripting is doing to me right now...)
[Android Software/Hacking General [Developers Only]] CosmicDan:
We all put one too many brackets or miss a comma somewhere every no and then, doesn't really change (or get less frustrating) the more you work with aroma :P
[Android Software/Hacking General [Developers Only]] Patrics83:
I was hoping you would continue this in the FAQ, that's why I didn't answer ;)

But yes that's correct... And to remove a directory:

exec("/sbin/busybox","rm","-r","/sdcard/my_dir");

"exec" is really a nice addition to the AROMA, and don't forget about the "resexec" function.

With it you can execute sh scripts stored in the zip.

Good luck with the coding!
[Android Software/Hacking General [Developers Only]] franzyroy:
Sorry, I'll go to the FAQ the next time.

And still thanks! ;)
[Android Software/Hacking General [Developers Only]] niki1999kir:
Because I cant build my port of miui rom for the desire. When I try to boot it shows the animation and reboots
[Android Software/Hacking General [Developers Only]] CosmicDan:
Wtf does this have to do with Aroma Installer? Stay on topic please.
[Android Software/Hacking General [Developers Only]] g2435:
i keeping getting error cannot find

file_getprop("/tmp/aroma/type.prop","Selected") == "1"

ui_print(" -Extracting /data files...");
package_extract_dir("data", "/data");
if
file_getprop("/tmp/aroma/type.prop","Selected") == "1"
then
ui_print("You Have Selected Default Installation Chosen...");
endif;
[Android Software/Hacking General [Developers Only]] CosmicDan:
Don't use capital S, use lowercase.
[Android Software/Hacking General [Developers Only]] g2435:
okay ill try and let you know
[Android Software/Hacking General [Developers Only]] CosmicDan:
If it still doesn't work, ask it in the other script help thread.
[Android Software/Hacking General [Developers Only]] g2435:
still get file tmp/aroma/type.prop file cannot be find no such directory
[Android Software/Hacking General [Developers Only]] CosmicDan:
I don't know. Post your full aroma script in the script help thread (not this one).

This thread is not for script help but development talk and bug reports.
[Android Software/Hacking General [Developers Only]] Patrics83:
Sv: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

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

alt.

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

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] CosmicDan:
Not if it's a menubox property. Impossible to tell because he didn't share that info.

As I said though, doesn't belong in this thread. Please stay on topic and post your problem in the script help thread - link is in the OP.

(Sick of saying this)
[Android Software/Hacking General [Developers Only]] Patrics83:
Well he is using wrong directory for the props ;)

But yes this thread has way too much OT posts, welcome to XDA :D

All we can do is to give the answer to user who posted needed info and also post a link to FAQ

Cheers!
[Android Software/Hacking General [Developers Only]] CosmicDan:
One of them is the pre 2.xx location and it symlinks to the new one for backwards compatibility, so it doesn't matter :)
[Android Software/Hacking General [Developers Only]] OMJ:
bump! I pm'd amarullz w/ no response, are there any other devs that work w/ him on this project?
[Android Software/Hacking General [Developers Only]] MicQo:
please help me

Please help me, don't run me custom ROM in aroma installer

Write: SYNTAX ERROR!!! on aroma-config in line 8 col 1

but the line is empty, what a problem ?

Sorry for bad english :) thanks for help me.
[Android Software/Hacking General [Developers Only]] Harbir:
Re: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

Post the aroma confi in support section ....see op for that
[Android Software/Hacking General [Developers Only]] Patrics83:
Sv: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

First of all you are in wrong thread. Go to FAQ for questions like this :)

Hint about the error, check line 7 for errors.

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] MicQo:
please help me

aroma config

pastebin.com/amQuVCWj
[Android Software/Hacking General [Developers Only]] Harbir:
Re: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

I think that u should interchange line 6 with 7 see if it works as Ron device should come last .....
[Android Software/Hacking General [Developers Only]] MicQo:
please help me

please help me on http://xdaforums.com/showthread.php?p=39206089#post39206089
[Android Software/Hacking General [Developers Only]] VyrruS:
I get an error when I try to retouch_binaries... What is the command that retouches binaries in AROMA?
[Android Software/Hacking General [Developers Only]] carl1961:
did you try removing ;

ini_set("dp","2"); #-- MDPI ( 340x480 / HVGA );
[Android Software/Hacking General [Developers Only]] franzyroy:
Hi,

I know that I must post in the FAQ this style of question, I've made it but no answer... it's no easy, I hope you'll understand my request.

I'll have to need a help in aroma-config, I gonna try to be clear in my explication, I would make like that. I've two backups that I restore (modscomparison.prop & mods.prop), at the start, they are identical, modscomparison.prop is the backup which will be here for the comparison, mods.prop will be here for modify. Therefore, I put all the data of mods.prop at "0" before modification. After, I would make that if a data of mods.prop is changed (therefore different of "0"), then modscomparison.prop take the value of mods.prop but only the data modified.

I've tried this, only, nothing change for this data.

if prop("mods.prop","selected.1") !="0" then
prop("modscomparison.prop","selected.1") == prop("mods.prop","selected.1");
endif;

In fact, I want that if "mods.prop","selected.1" has the value "1" (for example), then "modscomparison.prop","selected.1" also has this value, without change the values of others, It's for do a backup of choice which has been modified and kept the values of others like they were before.

Finally, if you prefer, I want this to be the numerical value of another selection rather than a numerical value like that.

writetmpfile(
#-- Prop file will write to /tmp/aroma/modscomparison.prop
"modscomparison.prop",

#-- Default Values
"selected.1=1\n"+ #-- Default Kernel = Devil3 CMC
"selected.2=2\n"+ #-- Default Modem = JVU
"selected.3=6\n"+ #-- Default Boot Animation = Default
"selected.4=4\n"+ #-- Default Lockscreen = Default
"selected.5=1\n"+ #-- Default Gapps = Restore
"selected.6=0\n"+ #-- Default Font = Default
"selected.7=0\n"+ #-- Nothing MMS = Nothing
"selected.8=1\n" #-- Default Backup = Backup EFS
);

Something like that even though I doubt that it does not work as it is.

writetmpfile(
"modscomparison.prop",
"selected.1== prop("mods.prop","selected.1")"
);

Can you help me for that?

I hope that's enough clear (my explication)!
[Android Software/Hacking General [Developers Only]] CosmicDan:
Re: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

Use write command. There is currently no way to update one property in a file. Or rewrite your script to use nested conditionals and/or variables instead. There are many ways to work around it.

Sent with Tapatalk
[Android Software/Hacking General [Developers Only]] franzyroy:
I've already thought about it ... it's least easy, but if there is no other choice, so I'll do like that.

Thanks! ;)
[Android Software/Hacking General [Developers Only]] TechMasta:
Nice work :good:
[Android Software/Hacking General [Developers Only]] franzyroy:
It's good... I've found the solution in putting few conditions in the updater-script.

Thanks again for your answer! ;) Because, I'll have could to look for very longtime without.
[Android Software/Hacking General [Developers Only]] amarullz:
Re: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

New version will have many deprecated, removed and new functions. But I will try to make it easy to update from previous aroma installer.

Don't expect it to release soon, I already coded thousandsss linessss (Includes source comments) for new core alone.. And currently I managed to begin coding an installer...
[Android Software/Hacking General [Developers Only]] amarullz:
Re: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

Please someone list the bugs or problem from current versions, because I cant read whole thread (list all of it, not one problem by one man), so I can release some minor update from current version.

+Not script problem :)
[Android Software/Hacking General [Developers Only]] kevinrocksman:
so far perfect for me besides the freezing on the note 2
[Android Software/Hacking General [Developers Only]] Patrics83:
Sv: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

I think aroma freezing issue is a common issue for all devices.

However it's worse on some devices...

v2.56. Touch screen doesn't work at all on EVO-4G + all colors are messed up. Force colorspace doesn't help.

Samsung Galaxy S3 has Blueish hue, but fixable via force colorspace.

That's what I can remember for now... :)

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] venkatesh123:
Re: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

Hey Xperiance v-3 in Xperia u android development is working with aroma
[Android Software/Hacking General [Developers Only]] amarullz:
Re: [MOD][2.56] AROMA Installer :: 121004-031 :: Open Source

I know some freeze bug on back feature, currently It was tricky to make it happend, I want to find other cleaner way.

For colorspace, It cant be helped for now, because many device doesn't include valid framebuffer information. In new core, I have some workaround for it, so It can force the framebuffer to works on 32bit colorspace (even if recovery is 16bit), but I am still not sure this method will works with any devices.

For touchscreen, It was another challenge for me. There is many different implementation for it (many device have different way). So I rewrote everything and look at jellybean input service source code, to know how exactly android translate the touchscreen events. The result so far so good for my gnex & my wife sensation, but not sure for other phones.

So the best option for me is to seperate framebuffer and input device into drivers for aroma. And make it easily compile able in android build environment.