yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] hnkotnis:
Need help

Hi friends,

I have already created some Aroma Mods, but for last 2 mods, I am getting a strange error.

When I flash from CWM recovery, I get error

SYNTAX ERROR!!! aroma-config on line
500 col 1
E:Error in /sdcard/thezip.zip
(Status 1)
Installation aborted.

What I wonder is it is the last line (and it is a comment marked by #)

I think this seems an error with if.....else. But I cannot find it.

Can anyone look the aroma-config and please help me?

Here is the link http://pastebin.com/HpejQ3p4

I have also attached the file. Please ignore # marked comments. They are just for entertainment.
[Android Software/Hacking General [Developers Only]] JustArchi:
Always leave one empty-line in aroma-config on bottom.
[Android Software/Hacking General [Developers Only]] hnkotnis:
I did as you suggested. Now I have error, at line 501 column 1
[Android Software/Hacking General [Developers Only]] JustArchi:
Then you don't have closing endif; somewhere.
[Android Software/Hacking General [Developers Only]] hnkotnis:
That's what I thought. But when I checked there are equal number of if...endif. Will you please check my aroma-config?

Thanking you in advance.
[Android Software/Hacking General [Developers Only]] JustArchi:
If you don't know where the problem is, then start from top and add next checkboxes after testing if it's still ok.
[Android Software/Hacking General [Developers Only]] hnkotnis:
I have to do trial and error job :confused::mad::sly:
[Android Software/Hacking General [Developers Only]] JustArchi:
You think it's hard?

https://github.com/JustArchi/ArchiD...NTAL/META-INF/com/google/android/aroma-config

Try mine ;).
[Android Software/Hacking General [Developers Only]] hnkotnis:
Thanks for your reply.

But I will start from Scratch.
[Android Software/Hacking General [Developers Only]] Crash:
Hi guys im getting crazy with checkbox () 4args + 3args got 36 per item

I need more eyes to see what im doing wrong hehe

Files attach

Hugs
[Android Software/Hacking General [Developers Only]] :
Solution

There are some limitations in the aroma installer. You have to give arguments inside the checkbox in aroma-config. Also the item number in the updater-script ranges from 1.1 to 1.7 AFAIK. I have attached a screen shot on where to add arguments along with this post. You can refer to my project for updater-script issues. Even though my project is not the best, I hope it can provide sufficient information on programming inside updater-script.

Here's the link to download my project: http://www.mediafire.com/download/799ix1k85ay9lb9/signed_OTX_BLOAT.zip

For aroma-config problem, see the screen shots and add the modules for every such checkbox. For more information and doubts, PM me.

Currently I am out of station. So I can help you more broadly when I reach home and I am coming home tomorrow.
[Android Software/Hacking General [Developers Only]] Crash:
Thank you very much I manage to fix it now works fine

Hugs

Sent from my Xperia Tab Z
[Android Software/Hacking General [Developers Only]] JustArchi:
https://github.com/JustArchi/ArchiD...NTAL/META-INF/com/google/android/aroma-config

https://github.com/JustArchi/ArchiD...AL/META-INF/com/google/android/updater-script

Use form() instead of checkboxes/selectboxes, check archidroid.prop to see how it's done.

It's far more flexible and it causes less problems.
[Android Software/Hacking General [Developers Only]] Okaham:
hello guys, i'd really appreciate if someone could help me with this!

AROMA Installer 2.70...

so at first, it just refused to actually install anything...the ROM and system apps installed, but none of the choices (apps, mods) added in there were installed in the ROM.

and now, the ROM won't even boot! it never gets past the splash screen...here's the interesting thing:

AROMA Installer installs fine, and gives me a "Installer Status: 0" go, but when rebooting from recovery (TWRP), it tells me that i "Don't have root/supersu installed"...and the device then proceeds to get stuck on the splash screen...i don't think anything was actually installed..?

i have tried installer another ROM and it works, so i'm sure the problem is not the device...thanks all.
[Android Software/Hacking General [Developers Only]] :
Good Question

Did you try mounting /system and other things after the installation??

If not, then try to do so.

Did you check the program and see whether there is any format command??

If not, then try to do so.

Also send me the entire code. I will check whether there is any error in the code. I will solve it and also explain you what I did with the code. Send me the code in my PM.

Happy to Help
[Android Software/Hacking General [Developers Only]] a2441918:
@amarullz and everyone here, I made an aroma installer for the galaxy S4 9500. It goes to the splash screen, shows the image and gets stuck at "Starting Aroma Installer version 2.70RC2

(c) 2013 by Amarullz xda-developers. I created the cert.sa using my aroma config and updater script but still doesnt work. Can u help me out with the reason? I have attached my META-INF folder here to check. Kindly check it and report me of any changes if are to be made to get it running.
[Android Software/Hacking General [Developers Only]] :
Solution

After reviewing your script, I found the possible reasons for the script to not work properly.

Changes to be made:

Set the calibrate value. It is device specific.

I wonder why you made some edify files in the aroma folder but not used in the script: custombox_test.edify, ams_sample.txt && language_select.edify.

I also wonder why you have created a directory in the aroma folder called "exec_demo" but not linked it with the code.

A selectbox should have minimum of 4 + 3 arguments. Check those and correct it.

A checkbox can have a maximum of 7 options(some say, 10). If the number of options exceeds, try to give it in next page with another checkbox.prop.

AFAIK, the item numbers in the updater-script ranges from item.1.1 to item.1.7. Never tried beyond. So you can test it by using that.

In this code,

if file_getprop("/tmp/aroma-data/wipe.prop","selected.0") == "2" then
package_extract_file("arun/wipe.sh", "/tmp/wipe.sh");

Place the keyword "then" on the next line.

After making these changes, make the zip and sign it again.

If it still doesn't work, send me a PM.

Press thanks if I have helped.
[Android Software/Hacking General [Developers Only]] a2441918:
I took the aroma files from another rom for my phone which has Aroma installer and works perfectly. Do I need to check the device calibration again?

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

I am unable to find any calibration lines in aroma config.
[Android Software/Hacking General [Developers Only]] :
Reply to Calibration

Yes. If the aroma-config file which you took from another rom that was meant for your phone doesn't have a calibration value, you have to add it yourself.
[Android Software/Hacking General [Developers Only]] a2441918:
The rom which had the aroma had 10 to 15 checkboxes in one page. But it worked fine. Just wanna know about this. Tats all.
[Android Software/Hacking General [Developers Only]] :
Reply to Calibration

It displays all the options but it shows its real face only when selected.

Maybe, the limitation ranges for every device.

See an already made such scripts for the calibration value.

If it works well without calibration, then well and good.
[Android Software/Hacking General [Developers Only]] a2441918:
Hey, I did what you told and now when I tried to flash the zip, I get a status 1 error at line 327 col 1. Line 326 is #---- FINISH. Can you help me out with the problem? I have also attached my aroma-config for your reference.
[Android Software/Hacking General [Developers Only]] FBis251:
Download your favorite CWM rom, open it and look in the META-INF/com/google/android directory. There you will find a file called updater-script. Open that in an editor that supports Unix line endings like Notepad++ and examine it. Read each line and look at how the script author used each command and what arguments they passed onto them.

These are the edify reference bookmarks I have saved:

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

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

http://tjworld.net/wiki/Android/UpdaterScriptEdifyFunctions

http://devphone.org/development/edify-script-syntax-explained/

http://nookdevs.com/NookColor:_Edify_Examples

Note that some of the commands may vary from phone to phone since partition layouts are different among other things. Your best bet is to examine or even take updater-scripts for ROMs made for your phone and only modify the lines you need at first. As you get more comfortable with the syntax you'll be able to do more complex things like choosing what to install using conditional operators.
[Android Software/Hacking General [Developers Only]] daxiaamu:
how can aroma support Chinese font

Great job

but

I am a Chinese romer, I want to Chinese font display ,how？Does armoa support Chinese someway？
[Android Software/Hacking General [Developers Only]] Kaskade:
That is some amazing work you've done there. Although i only use SonyEricsson phones and this doesn't benefit me (yet), it was totally worth a donation, just for the idea and realization of it.
[Android Software/Hacking General [Developers Only]] Namaless:
I tried new version and the touchscreen is more good, but I have one question: for select any button or checkbox need to two click, the first select and the second appear my old selection..

Thanks for your work, I'm working on for my rom :)
[Android Software/Hacking General [Developers Only]] TweetyPeety:
only a small question, tried your MIUI Theme and it is nice, but I changed some stuff and now I need to change the ui_print text with a @ is orange, everything else is changed to blue, but where to I define this text ???

thanks in advance for the help, nothing important, only to have it perfect :=)
[Android Software/Hacking General [Developers Only]] mickey-r:
An other contribution for your installer, a monospace font :

-------------------------- Standard sample ------------------------- ------------------------- Monospace sample -------------------------
[Android Software/Hacking General [Developers Only]] GazaIan:
Mind = blown. I've never seen anything more amazing. I seriously just spent a half hour in recovery playing with AROMA Installer, I almost forgot it was recovery. You sir, are amazing.
[Android Software/Hacking General [Developers Only]] FBis251:
Awesome!!!
[Android Software/Hacking General [Developers Only]] Namaless:
I like.. To get partitions info you can help me? I like your welcome panel :-)

Inviato dal mio GT-I9003 usando Tapatalk
[Android Software/Hacking General [Developers Only]] eoghan2t7:
Iv noticed this doesn't work with rzr recovery :'(
[Android Software/Hacking General [Developers Only]] amarullz:
Is it based on edify script with update-binary?
[Android Software/Hacking General [Developers Only]] Namaless:
In aroma-config I need to mount partitions.

I have already tried this functions but not working:

- package_extract_file (for extract busybox).

- mount.

You have idea for mounting partition for welcome box?
[Android Software/Hacking General [Developers Only]] amarullz:
in 1.50 there is restotmp function to extract file from zip to aroma tmp dir.

# from aroma assets

restotmp("busybox", "busybox");

exec("/tmp/aroma-data/busybox", "mount", "-t"...);

# or you can directly use resexec:

resexec("busybox", "mount", "-t"...);
[Android Software/Hacking General [Developers Only]] mickey-r:
@Namaless

to have partitions sizes, first you need to set var:

setvar("systemsize",getdisksize("/system","m"));

then you can use var to display it into text :

"Partitions : /system = "+iif(getvar("systemsize")!="-1","<#c68c00>"+getvar("systemsize")+" MB</#>","<#800000>N/A</#>")
[Android Software/Hacking General [Developers Only]] Namaless:
ok, if I have busybox in tools directory use this ??

restotmp("tools/busybox", "busybox");
exec("/tmp/aroma-data/busybox", "mount", "-t"...);

or with resec ??

Thanks for support :)

---------- Post added at 04:59 PM ---------- Previous post was at 04:42 PM ----------

Thanks, I used but need before mounting partition. On my I9003 CWM only sdcard is auto mounted by recovery.

Thanks for iff function, is very good option :)
[Android Software/Hacking General [Developers Only]] Screemi:
this thing is wicket. thank you so much. i read your documentation and thought: "google should use this as standard installer and give some grand to the guy who developed it. the documentation looks like something our it guys don`t even bring up when they present their projects." i hope i can afford some donation end of this month.
[Android Software/Hacking General [Developers Only]] dorimanx:
Amazing Installer menu!

Thank you very much amarullz for this great INSTALLER!

I have it already in my new ROM!

It's so cool! and beautiful!

you made my rom 200% more attractive and simple for user to install and use!

I will DONATE NOW and I have added your banner in my main page that lead to your thread!

Also thanked you officially in my main page!

GREAT WORK!!! :)
[Android Software/Hacking General [Developers Only]] Rudyfastcat:
The best installer EVER !

Thanx Amarullz for the greatest Rom Installer ever !
[Android Software/Hacking General [Developers Only]] amarullz:
Ok I open the #aroma channel in freenode.net, so I will be easier to help anyone.

NEED DIRECT SUPPORT? - JOIN

#aroma

CHANNEL AT FREENODE.NET​
[Android Software/Hacking General [Developers Only]] :
Maybe a Solution

I guess the problem is within these lines of code:

checkbox(
"",
"Google Apps List 1 - Please make your selection:",
"@install",
"google.prop",

"Chrome","",1,
"Drive","",1,
"Gmail","",1,
"Hangouts","",1,
"Magazines","",1,
"Maps","",1,

checkbox(
"",
"Google Apps List 2 - Please make your selection:",
"@install",
"google.prop",

"Music","",1,
"PlayGames","",1,
"Plus","",1,
"Search","",1,
"YouTube","",1
);

You have to close the checkbox and open a new one. There is no nested-checkboxes :p .

And the second thing I have noticed is:

setvar("retstatus",
install(
#-- Title
"",

#-- Installation Process message
"<b>"+ini_get("rom_name")+"</b> installation.\n\n"+
"Please wait while installation wizard installs <b>"+ini_get("rom_name")+
"</b>. This may take several minutes.",

#-- Installation Icon
"@install",

#-- Installation Finish Message
"The installation wizard has successfully installed <b>"+ini_get("rom_name")+
"</b>. Press Next to continue."
)[SIZE="4"];[/SIZE]
);

The syntax of install should be:

install(

statements;

);

Correct these things and try to run again.

If possible, leave a empty line in the last of the script.
[Android Software/Hacking General [Developers Only]] xdadroidabc:
When I copy data/app file more then half of time it fails (file copies but 0 byte) like this

package_extract_file("data/app/xyz.apk", "/data/app/xyz.apk");

tried to extract first to temp and then copy with busybox but still same, sometimes it works, sometimes not.

Any help will be appreciated

Thanks in advance.
[Android Software/Hacking General [Developers Only]] hlxanthus:
Is data/app a directory within your package because package_extract_file is designed only to copy from the zip to device. Try post a section of your updater-script that isn't working right and we can help debug it
[Android Software/Hacking General [Developers Only]] :
Maybe a Solution

Set the mount point of the system as rewritable and then try to do the same.
[Android Software/Hacking General [Developers Only]] xdadroidabc:
yes zip file having data/app folder and want to extract to data/app of device

can you explain bit deep how exactly ?

is this fine with bash?

busybox mount -0 rw,remount /dev/block/mmcblk0p20 /system

Thank you very much
[Android Software/Hacking General [Developers Only]] :
Maybe

I don't think bash command work in updater script.

I think mounting with busybox solves it.

run_program("/sbin/busybox", "mount", "/system");

Add this code in the updater script.

Or if you don't have busybox installed, you can add that file in your zip and give the following code

ui_print(" Mounting system...");
package_extract_dir("busybox", "/tmp");
set_perm(0, 0, 0777, "/tmp/busybox");
run_program("/tmp/busybox", "mount", "/system");

What the code does:

It copies the busybox to a temporary folder, sets permission and then runs the program to mount the system
[Android Software/Hacking General [Developers Only]] Nick_73:
I get the error

while flashing my rom then gives me Status 1 error. My Selectbox in Aroms reads:

selectbox(
"theme.prop",
"selected.1=1\n"
#-- 1=KitKat
#-- 2=TouchWiz
);

Any help would be appreciated. Thx :)

Also, the temporary file is

writetmpfile(
"theme.prop",
"selected.1=2\n"
#-- 1=Default
#-- 2=KitKat
);

If that helps
[Android Software/Hacking General [Developers Only]] :
I guess that hash-tag(#) defines the comments and not the parameter condition.

And status 1 error is for syntax AFAIK. Upload the aroma-config file and I will review it and tell you.

Anyways, Time for School!
[Android Software/Hacking General [Developers Only]] sempronk:
Good job Mr. Amarul

saya newbie di XDA devloper forum ..

dan sangat kagum dengan postingan di XDA developer..

saya tidak menyangka salah satu master XDA berasal dari Bandung Indonesia ..

terus berkarya ya bang .. bawa terus nama Indonesia .. Cheersss :good: :laugh:
[Android Software/Hacking General [Developers Only]] thewalekk:
Hi to all. Does anybody know some kind of a source that i can find about recovery codes such as delete, extract, copy, execute etc and explanation of how to use them with examples?

Thanks in advanced :)
[Android Software/Hacking General [Developers Only]] JustArchi:
https://github.com/JustArchi/ArchiD...NTAL/META-INF/com/google/android/aroma-config

https://github.com/JustArchi/ArchiD...AL/META-INF/com/google/android/updater-script

https://github.com/JustArchi/ArchiDroid/tree/2.X-EXPERIMENTAL/META-INF/com/google/android/aroma/exec

A big mine of knowledge, you just need to dig deep enough and be patient. Have fun.
[Android Software/Hacking General [Developers Only]] mrtur:
Hi, I have a question Nexus 4 shows me the colors in the aroma

This is original

This fault of the device or misconfiguration Aroma?
[Android Software/Hacking General [Developers Only]] KhocVoLe_6794:
Help me! The script format /system partition is not working on my device :(. I add format commands in updater-script:

format ("ext4", "EMMC", "/ dev/block/platform/msm_sdcc.1/mmcblk0p14", "0");

But it does not work :(. I do not know how to repair it. I use AROMA Installer version 2.70RC2. Thank you very much :)
[Android Software/Hacking General [Developers Only]] mrtur:
@up

format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/mmcblk0p14", "0", "/system");

?
[Android Software/Hacking General [Developers Only]] thewalekk:
Thanks man. I looked into the updater script. I am on my cell now and will study on it when i go home.

I was a web designer about 4-5 years ago. So aroma config file is much more like web designing its all about the interface which i created whats in my mind. But when it comes to updater script it is little bit complicate then aroma. I am gonna study it anyway but i just wanna ask a question (cant wait to go home:) ).

I wanna put all ported apk files that i use in a single aroma so every time i format its gonna be easier to flash. I put a selectionbox for all of them but instead of deleting old apk files i want to copy selected ones to sdcard for backup. Also put a stock look selection which is gonna delete ported files and restore the backup. Is that doable? Which codes do i need?
[Android Software/Hacking General [Developers Only]] KhocVoLe_6794:
I use lg f160 device. The system partition is mmcblk0p14.

Gửi từ LG-F160LV của tôi bằng cách sử dụng Tapatalk
[Android Software/Hacking General [Developers Only]] JustArchi:
selectionbox is obsolete and you should use flexible form(), as shown in my aroma-config.

Apart from that, take a look at "Titanium Backup" selection in my config and updater-script.
[Android Software/Hacking General [Developers Only]] thewalekk:
Thanks man i checked and i think i got the idea. Also noticed that you created folders in the sdcard as archidroid and 2.x . Do they remain or they are for temp too and got deleted after installation.

Galaxy S3 tapatalk 2 ile
[Android Software/Hacking General [Developers Only]] JustArchi:
They're put in proper dir, when I'm extracting to "_archidroid/apps/titaniumbackup" to "/" (and this is inside of updater-script) then I'm telling update-binary that it should take inside of this folder and put into the root of the phone. And now if you take a look in my titaniumbackup there is /data/app/com.keramidas.TitaniumBackup-1.apk, so the final result is putting .apk in /data/app and eventually creating folder if needed.
[Android Software/Hacking General [Developers Only]] linhbs:
Thanks so much.
[Android Software/Hacking General [Developers Only]] thewalekk:
Hi. I am trying to make an aroma for myself and everytime i wanna try it i copy the zip file to my phone and running it from recovery. Is there some kind of a program that i can test it on pc and see if it is working or not?

Galaxy S3 tapatalk 2 ile
[Android Software/Hacking General [Developers Only]] hlxanthus:
That's how I do it. I don't know of any other way to test a package . .
[Android Software/Hacking General [Developers Only]] thewalekk:
[MENTION=5161352]JustArchi[/MENTION] hi again :)

thank you very much for your source files again. i also installed your rom to actually see what happens at the end and still using it :)

Now i did almost everything i wanted. i can install, get backup and restore them back. But everytime i success something, i start to think one level up and trying to do something else. :)

What i wanna ask is:

When you select "previous preset" on your aroma config (which i used it to restore) it reads old props and goes directly to the installation page.

But can it be like,.. For example i installed 5 of 10 apk files and wanna restore 3 of them. when i select "previous", aroma opens me a new form with that 5 checked apk files so i can uncheck 2 of them and restore. Is that doable?

thanks...
[Android Software/Hacking General [Developers Only]] JustArchi:
Possible, I may add such function in the next version.
[Android Software/Hacking General [Developers Only]] Madaditya:
A small tool thatd automate buildin an aroma installer

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

Might help all those wanna start learning aroma codes,but are lazy to do them,just like me ;)

Ill appreciate if experienced ppl take a look and tell if its usefull
[Android Software/Hacking General [Developers Only]] franzyroy:
Hi,

I have a question that may have already requested.

When I had the Galaxy S1, I made a theme, "Franzyroy", the same name as my nickname, it was blue like the theme called ICS. But now it is yellow instead of blue on my Galaxy S4.

My question is simple, is it possible to put the blue colors like the Galaxy S1? By a simple code. Because the images are blue, not yellow. Just like the colors of the menu are also turned yellow.

Thanks!
[Android Software/Hacking General [Developers Only]] upndwn4par:
You need to force a colorspace. Put something like this at the top of your aroma-config (I use it for the Galaxy S4):

ini_set("force_colorspace","rgba");
theme("ics");

There are other colorspaces you can force if the colors still don't render properly (see aroma-config).
[Android Software/Hacking General [Developers Only]] franzyroy:
I gonna try that.

Thanks! ;)

Edit

:

It's perfect! :)