yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] wesamothman:
Change aroma application selection from your long list of 91 apps to more pages of select boxes. It is usually a possible reason for that.

So break down your select boxes to 15 apps per select box : 6 select boxes and last one contains 16 apps.

Try that.
[Android Software/Hacking General [Developers Only]] enotar:
Thank you it works

Another question:

How can I have 2 options:

1-install the complete rom + mods selected

2-just install mods selected

Do I need to have 2 updater-script?

Thank you
[Android Software/Hacking General [Developers Only]] HypoTurtle:
Is it possible to display a variable within a checkbox? Something like -

selectbox(
#-- Title
"Install Type",

#-- Sub Title
"Please Select the install type:",

#-- Icon
"icons/apps",

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

#-- Group 1
"Install Location", "", 2, #-- Group 1. key = "selected.1"

"ROM 1",
"getvar("RM1")", 0, #-- selected.1 = 1

"ROM 2",
"getvar("RM2")", 1, #-- selected.1 = 2

"ROM 3",
"getvar("RM3")", 0, #-- selected.1 = 3

"ROM 4",
"getvar("RM3")", 0 #-- selected.1 = 4
);
[Android Software/Hacking General [Developers Only]] hlxanthus:
Never tried, but by quoting it like that tells it to simply print what is within the quotes. Might work if not quoted though. Try it out . .
[Android Software/Hacking General [Developers Only]] HypoTurtle:
Removing the quotes worked; thanks...

FYI. the original quoting resulted in an error
[Android Software/Hacking General [Developers Only]] raulx222:
Hey :)

I'm trying to build an installer but i get a error in aroma-config on line 2 col 35...whats wrong? :/..i cant find it :/

Here's the aroma-config file: http://pastebin.com/fiLDtzhC

And here is the updater-script: http://pastebin.com/ztCw10x9

I have LG G2 D802 and I use TWRP 2.8.2.0

And here's the aroma installer zip: https://dl.dropboxusercontent.com/u/21559131/aroma-2.70RC2.zip

EDIT: fixed
[Android Software/Hacking General [Developers Only]] M47Z:
Hi everybody!

So heres the story: I used archi kitchen to create a flashable rom from stock img files, and then used Lazy Aroma to create an aroma rom.

First I got error status 0 but fixed that more or less quickly by replacing update-binary-installer.

Now i still get an error:

line 698 col 1: syntax error, unexpected $end, expecting IF or STRING or '!' or '('
1 parse errors

Installer Error (Status 6)

I checked the updater-script and aroma-config and cant find the issue... also I tried using win2unix, just to be sure, still same issue.

I alreasy asked in the Lazy Aroma thread like 2 weeks ago but seems like nobody can help me there, so you guys are my last hope! :)

PS: I added .txt to the files so I could upload them here, in the zip itself of course they dont have it ;) so no thats not the issue

EDIT: I solved my issues, here you can read what i did:

http://xdaforums.com/showpost.php?p=58705022&postcount=64

for those who have simular issues ;)
[Android Software/Hacking General [Developers Only]] amarullz:
Version 3.00b1 is available, need more tester & feedback
[Android Software/Hacking General [Developers Only]] xXNahNahXx:
Probably a stupid question, but can I use aroma to do a clean install of stock android? And if so how?
[Android Software/Hacking General [Developers Only]] blackcodetech:
Hi Guys

I have a problem with aroma installer ... the aroma installer launche normally I can see my selectbox( and can chose too ... but when the wizard finish it does not run the "updater-script" juste show finish. and recovery doesn't returne any error message .it just shows installation completed !! But rom doesnt flash :confused:
[Android Software/Hacking General [Developers Only]] M3RS3:
Hi any want to help me..

My Aroma Installer work.. but :confused: in the confirmation install give me that error.. what happen??.. Thanks for the helps...
[Android Software/Hacking General [Developers Only]] brito300:
How do I remove Aroma from a ROM???
[Android Software/Hacking General [Developers Only]] demkantor:
You'll need to make a new updater-script and change update-binary as well as remove the aroma folder

Then zip, sign and flash
[Android Software/Hacking General [Developers Only]] -MightyMouse-:
Hi

About a year ago a developer here on xda let me use his AROMA installer, and since then I have learned a bit about the code. I was beginning to have troubles with the original one so I decided to build a new one. Well I now get a syntax error on the last line which is blank. I've read here that its supposed to be that way. Can anyone tell me what could be going on?

Thanks

Phongeekjr
[Android Software/Hacking General [Developers Only]] hlxanthus:
Usually that means you have left an argument or something open like missing a " ); " somewhere so it goes to the end looking then errors. My suggestion is using syntax highlighting track thru your script to see where it is missing.

Sent from my Nexus 6
[Android Software/Hacking General [Developers Only]] -MightyMouse-:
I checked with one and still can't find anything.

here is the aroma-config

EDIT: I had to upload in a .txt format. it wasn't that way when I was working on it.
[Android Software/Hacking General [Developers Only]] hlxanthus:
I think you are missing an "endif:" here . .

"Full Wipe","Wipes system and data partitions - recommended",1
## "Update only","",0
);

if prop("wipe.prop","selected.0") !="3" then

selectbox(
"<~HTC One Model>",
"<~Model Options>",
"@device",
"model.prop",

"International and unlocked HTC One","",0,
"HTC One AT&T","",0,
"HTC One T-Mobile","",0,
"HTC One Sprint","",0
);
endif; <============================= ADD THIS HERE !!
######################HTC Apps###########################

checkbox(
[Android Software/Hacking General [Developers Only]] -MightyMouse-:
K gotta wait for my phone to charge before I can test but thanks for that.

edit: Ok I don't have anymore syntax errors but now when I go through all the options and am about to install I get nothing. I click next and it shows status 6 error. I think its my updater-script now. Could someone help me with that?

Thanks

Phonegeekjr
[Android Software/Hacking General [Developers Only]] hlxanthus:
. . . not without your updater script . . .

Sent from my Nexus 6
[Android Software/Hacking General [Developers Only]] -MightyMouse-:
I'm a bonehead today. Here is the updater-script.
[Android Software/Hacking General [Developers Only]] Xpid3r:
Deleted
[Android Software/Hacking General [Developers Only]] chris199:
hey, i get an error but i dont have the line. help please. the aroma config is first to test. i make changes step by step. :angel:

i put the scripts in a zip file to upload :angel:
[Android Software/Hacking General [Developers Only]] Xpid3r:
Here you Go Use this file..

Using Galaxy S4
[Android Software/Hacking General [Developers Only]] chris199:
Thank you :victory: i see the mistake :D but this file was original by the aroma installer :confused: so amarullz have to correct it in the download of aroma installer :)
[Android Software/Hacking General [Developers Only]] Xpid3r:
You are using V3 beta and its still showing v2.7

And the Language files has error so i fixed it.. [emoji4]

Using Galaxy S4
[Android Software/Hacking General [Developers Only]] _Bon_Bon:
So, ive battled with this for a while now and can't get it to work

the error is on the last line, the empty one.

I understand that the problem is that i have an end somewhere and the script doesn't like it or understand it, but whatever i do, it doesn't go away

file as an attachment.

Edit-

Fixed it, thanks anyways ^^
[Android Software/Hacking General [Developers Only]] chris199:
I have another problem and i cant fix it. i have an error on line 692 col 4 but i cant find my error :confused:
[Android Software/Hacking General [Developers Only]] hoangluongvinh:
Help me. I have an aroma rom with Chineese language, how to translate all content in menu install to English? I use notepad++ to read Aroma Config file.
[Android Software/Hacking General [Developers Only]] invasion2:
Alright, thanks! It's a bit confusing, but I'll try :)
[Android Software/Hacking General [Developers Only]] Robobob1221:
Have a go :good:. Yeah it is a bit confusing at first

If you get stuck, post up your config and updater script and someone will try and help.
[Android Software/Hacking General [Developers Only]] ngh55:
Yes I have but as I stated I was looking to team with someone more skilled than me for this task.

I already made the mods and they install and work just fine, just wanted to make it more eye candy.
[Android Software/Hacking General [Developers Only]] ciscogee:
Anyone know how to make my /system ext4 ro mount as rw?
[Android Software/Hacking General [Developers Only]] Ozadroid:
Here's how you do it. was that so hard ?:eek:
[Android Software/Hacking General [Developers Only]] Ozadroid:
Help! Help! Help!

I modified the whole aroma-script and updater script. and almost removed all options except the necessary ones.

now i am getting a " line/col error at each '(' "

if i comment out that line in which the error is den the error is shown in the next line containing '(' .

uploading my both files!
[Android Software/Hacking General [Developers Only]] ciscogee:
Thx.. I used google but overthought what to search for
[Android Software/Hacking General [Developers Only]] iok1:
Hello! I'm back again (hopefully for the last time) I get a random syntax error at a delete command (like before, but i couldn't solve it). As I said before, the install box is completely blank when it installs. So I attached the updater-script and the log. Thanks for any help. Hopefully i don't have to return with any more problems after this time ;)
[Android Software/Hacking General [Developers Only]] Renate:
Missing semicolon on line #85

ui_print("Uninstalling")
[Android Software/Hacking General [Developers Only]] iok1:
Sometimes you need another man's eyes to see the obvious ;) thanks.

Sent from my jelly bean
[Android Software/Hacking General [Developers Only]] amarullz:
Check the latest: Small Update for : AROMA Installer http://bit.ly/wglJrB and Filemanager http://bit.ly/aromafm - Now supported Galaxy Nexus ;)
[Android Software/Hacking General [Developers Only]] Ozadroid:
Any1 ??
[Android Software/Hacking General [Developers Only]] _neutron_:
edit

problem solved
[Android Software/Hacking General [Developers Only]] Robobob1221:
Are you editing the config using notepad++?

If so make sure you are using UNIX. Go to the edit menu. EOL Conversion and select UNIX if not.

I was running into a similar problem and that fixed it for me.
[Android Software/Hacking General [Developers Only]] Ozadroid:
Yes i am using notepad++. But i dont change the file type. I just press save.

But still will try this aswell.

Thnx
[Android Software/Hacking General [Developers Only]] Ozadroid:
yes it is already in UNIX as that option is greyed out! :(
[Android Software/Hacking General [Developers Only]] Robobob1221:
line 134 there doesn't appear to be close bracket );

ini_set("mod_version", "2.8.3"
[Android Software/Hacking General [Developers Only]] Ozadroid:
OMG! such a lame mistake. duh!

but still its giving more errors ahead. but now i am getting pain in my head by looking at the code coz i havent slept properly.

i'll try tomorow n will tell :)

thnx bro :)
[Android Software/Hacking General [Developers Only]] Волк:
Since I have encountered this alot myself and have never had a syntax error message which pointed to the correct line, I don't think the messages actually point to the line with the error. If I am mistaken and there's more to line/Col than what's obvious, eg, line 3 Col 2 is the third line from the top and the second position in from the left on that line, then myself and alot of others would appreciate it if we are corrected.
[Android Software/Hacking General [Developers Only]] chris199:
Do you want to have a multilanguage install?

Gesendet von meinem GT-I9505 mit Tapatalk
[Android Software/Hacking General [Developers Only]] hoangluongvinh:
I need translate install language to English. Now all oppotions are China language.

Can I copy all content, translate by Google, paste again to Aroma config file and drag it to .zip rom?
[Android Software/Hacking General [Developers Only]] chris199:
Yes, only translate the china to english and put it to the zip. If it dont work, post it and i would see what is wrong.

Gesendet von meinem GT-I9505 mit Tapatalk
[Android Software/Hacking General [Developers Only]] -MightyMouse-:
Hi

My updater-script is giving a status 7 error. Could I get some help

Thanks

MM
[Android Software/Hacking General [Developers Only]] demkantor:
Kind of a long script to dig through on my phone, any other parts to the error message? Status 7 is often due to a mistype in your script but is usually accompanied with more info such as "unexpected X in line X" do you have any other info?
[Android Software/Hacking General [Developers Only]] Vivek_Neel:
You must post the full error: message. Which should let you know where the error has occured.

That way. It's easy for us to dig into your script and provide you the solution.
[Android Software/Hacking General [Developers Only]] -MightyMouse-:
It says error status 7 when it is about to load the kernel. That's all it gives me
[Android Software/Hacking General [Developers Only]] -MightyMouse-:
OK I found some details that could help.

I have tried to find the problem and I have narrowed it down to the part of the script where it installs the kernel. I have the aroma set up to install different kernels per the selection in the aroma-config. The process that installs the boot.img starts at line 86. Some of the kernels have additional files and those lines start at line 331.

Please help as I have tried everything I can think of

Thanks

MM

(edit) So I forgot to put in the error. it says

symlink:some symlinks failed

then it ends with

Installer Status:7
[Android Software/Hacking General [Developers Only]] demkantor:
That does narrow down a bit, there are some extra )s in there at the end of each kernel install

Also you may consider doing a different method of flashing the kernel choices, dd commands can be dangerous, especially if someone mistakenly flashes this to the wrong phone and kernel is in a different partition
[Android Software/Hacking General [Developers Only]] -MightyMouse-:
Actually I hadn't thought of that. Do you have a recommendation?

MM
[Android Software/Hacking General [Developers Only]] demkantor:
I started writing a guide on this some years back and I believe I went few a different methods you can use that are safer

http://xdaforums.com/showthread.php?t=2290009

Edit:

Never mind that looks about where I stopped, take a look at some of my ROMs or aroma packages under my profile, I have a few different options there, I'm on my phone so its hard to write it in full without errors but something like

write_raw_image ("/temp/boot image.img", "boot");

If you need further help let me know and when I'm near a PC it will be easier, but feel free to copy and paste any scripts from any of my aroma packs
[Android Software/Hacking General [Developers Only]] -MightyMouse-:
Thanks I will definitely look into that. Is this what could be causing the symlink error that I'm getting or is that something else.

MM
[Android Software/Hacking General [Developers Only]] demkantor:
I thought it was failing before kernel install? Weren't symlinks after? Either way they often fail because they don't exist, can you pull the aroma log and get any more info? If not double check that anything be symlinked exists
[Android Software/Hacking General [Developers Only]] Robbie P:
I might be wrong here, but does the kernel partition need to be mounted before it is written to?

Also, can

assert(package_extract_file("kernel/cdma/stock/boot.img", "/tmp/boot.img"),
run_program("/sbin/dd", "if=/tmp/boot.img", "of=/dev/block/mmcblk0p35"));

be

package_extract_file("kernel/cdma/stock/boot.img", "/dev/block/mmcblk0p35");

?
[Android Software/Hacking General [Developers Only]] edzamber:
Hi,

The better thing to do is :

package_extract_file("kernel/cdma/stock/boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
[Android Software/Hacking General [Developers Only]] demkantor:
I never mount kernel first, and yes this way will work fine

True, calling the path by name will people flashing the wrong .zip but also note that not all SoCs allow for this so path can differ

It is also true it is not the developers fault if this happens, but anyone creating a flashable.zip, dev or not, should always do what they can to prevent bricked devices which often only takes a few moments of their time
[Android Software/Hacking General [Developers Only]] -MightyMouse-:
Thanks. Will work on it after school
[Android Software/Hacking General [Developers Only]] kien_vip:
i prepare to release new version of my mod but get stuck at error: line 5 col 13: status 6, installation aborted. i did some research but can't find out issues . the update script already in unix format, try both ANSI and utf-8 but not success . here is my update script:
[Android Software/Hacking General [Developers Only]] demkantor:
Is this the entire script? Or is it part of a larger armoa script? The message you are getting shouldn't come from just this script, if you can post you're entire updatet-script as is it will be easier to help, just zip that file up and post it
[Android Software/Hacking General [Developers Only]] kien_vip:
this is entire script. i dont use aroma.... the things i changed is: upgrate windows 10 and use lastest java to sign zip file. so this can cause issues:confused:
[Android Software/Hacking General [Developers Only]] demkantor:
The signing isn't the problem, status 6 is an issue in the script, but the line 5 column 13 doesn't show any issue, any chance of just uploading the entire .zip?
[Android Software/Hacking General [Developers Only]] kien_vip:
send you the zip. thanks . waiting result
[Android Software/Hacking General [Developers Only]] -MightyMouse-:
Hi

So I fixed my status 7 error, but I came upon another problem. My Aroma installer shows no errors but my ROM won't boot. It boots up to the splash screen and then it goes black with nothing showing. Its almost like nothing was installed. I have tried other roms so I'm pretty sure its not my phone, but I cant figure out what it is.

Do you want my aroma or the whole zip.

Thanks

MM
[Android Software/Hacking General [Developers Only]] ROBERT CM:
Great work

thanks for this guide
[Android Software/Hacking General [Developers Only]] wolfi76:
Hi.

I am trying to make an aroma-based flashable zip .

Everything's going well until i finish chosing options ...

Aroma installer returns no errors , it says finishing installation , and the log is blank .

I guess the updater script doesnt work and can not figure it out.

Please help !
[Android Software/Hacking General [Developers Only]] yuzhengwen:
Your updater script has problems

Post a screenshot

Sent from my Powerful, Awesome Z3

Running YRom
[Android Software/Hacking General [Developers Only]] wolfi76:
Hi , u need my updater's code or aroma's screenshot?
[Android Software/Hacking General [Developers Only]] yuzhengwen:
updater script screenshot.

Your aroma config is fine

Sent from my Powerful, Awesome Z3

Running YRom
[Android Software/Hacking General [Developers Only]] wolfi76:
Here's my script:
[Android Software/Hacking General [Developers Only]] yuzhengwen:
Ok Icouldn't find any errors but this happens because if error in updater script. Eg missing quotation or end if

Save a log from aroma installer and read the errors in the log

Sent from my Powerful, Awesome Z3

Running YRom
[Android Software/Hacking General [Developers Only]] wolfi76:
Ok , as i said above the log was blank . im so confused.
[Android Software/Hacking General [Developers Only]] yuzhengwen:
I meant after installation press the save logs button then view the log

Sent from my Powerful, Awesome Z3

Running YRom
[Android Software/Hacking General [Developers Only]] wolfi76:
Yes it is blank
[Android Software/Hacking General [Developers Only]] yuzhengwen:
I'm not sure why sorry

Sent from my Powerful, Awesome Z3

Running YRom
[Android Software/Hacking General [Developers Only]] guitardedhero:
#Dolby

if

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

then

package_extract_dir("META-INF/com/google/android/Patcher/dobly/system", "/system");

package_extract_dir("META-INF/com/google/android/Patcher/dobly", "/tmp/ds");

run_program("/sbin/busybox", "unzip", "/tmp/ds/ds.zip", "META-INF/com/google/android/*", "-d", "/tmp/ds");

run_program("/sbin/busybox", "sh", "/tmp/ds/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/ds/ds.zip");

endif;
[Android Software/Hacking General [Developers Only]] opticyclic:
Question 1)

How can I get the free space in /system before and after installing?

Ideally I would like to display it all in the logs together at the end.

e.g.

Free Space Before = 200 MB

Free Space After = 300 MB

You have saved 100 MB!

Question 2)

Is there any way to modify system settings such as:

Turn on developer options

Enable USB debugging

Advanced Reboot

Set Cyanogenmod Default Theme

Question 3)

Is this the correct command to install AdAway? It doesn't appear to get installed.

if
file_getprop("/tmp/aroma/system.add.prop", "item.1.1") == "1"
then
ui_print("Installing AdAway 3.0");
package_extract_file("customize/apk-user/AdAway_3.0.apk", "/data");
endif;
[Android Software/Hacking General [Developers Only]] Robbie P:
q3- shouldn't it be installed to /data/app?
[Android Software/Hacking General [Developers Only]] demkantor:
Yeah, it depends on android version and device, most your apps should go to /data/app

But you may also need libs for certain apps and sometimes need to set permissions too

For free space there certainly can be a script to write that can pull this info, aroma can handle it just fine but you would have to write one

As far as changing developer options you would need at the very least various system.apks to be flashed depending on what the user chooses, maybe more than that needs to be done but I haven't tried to set that through aroma before
[Android Software/Hacking General [Developers Only]] störte:
Hi.

I work on a MM Rom for the S6 Edge with Aroma

I try to make xposed to be installed in Aroma . it gets detected but cant be activated.

Could your script work also for the xposed ?
[Android Software/Hacking General [Developers Only]] störte:
Good Morning

Question. What can cause that the Aroma first time failed but after rebooting into Recovery it works without problems.
[Android Software/Hacking General [Developers Only]] dexter91:
I keep getting an error file_getprop:failed to stat "tmp/aroma-data/mod.prop" : No such file or directory.

Can anyone please help me, I have also attached aroma-config and updater-script files. Thanks
[Android Software/Hacking General [Developers Only]] edzamber:
Did you add all yours Folders nicobelik605/app/name-of-mod-folder at the root of your Rom zip ? ?

If yes, verify that all Folders are there compare to your updater-script. If it miss one, Aroma will fail.
[Android Software/Hacking General [Developers Only]] dexter91:
I have verified the folders and it seems ok.
[Android Software/Hacking General [Developers Only]] Robbie P:
are you getting "error file_getprop:failed to stat "tmp/aroma-data/mods.prop" : No such file or directory." with an S?

I can't see any reference to mod.prop in either file, but can see mods.prop in both.
[Android Software/Hacking General [Developers Only]] dexter91:
Mods.prop
[Android Software/Hacking General [Developers Only]] dexter91:
Help please..
[Android Software/Hacking General [Developers Only]] Pinu'u:
Hi, i just started with aroma, and get error 1 line 227 column 4.

Where did i go wrong ?
[Android Software/Hacking General [Developers Only]] demkantor:
* "BusyBox",* * * * * * * * * * * * * * * * * "", * * * * * * * * * * * * * * * * 0, ** * #-- item.1.4

Remove the

,

After the zero and try again
[Android Software/Hacking General [Developers Only]] Pinu'u:
Thx, that did the trick. I had some errors a few lines later, also related to the ",".

Now Aroma shows up.

Thx for helping.