yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] BOOTMGR:
I was about to post the same problem.The files became 0 bytes.For me recovery.log was OK but when i read aroma log.On the top of it i found that mounting of /system was failed : device (blahblahblah) was busy.I think that's what causing the empty files (because there is no chance of any other errors.aroma installer status 0 upon exit) .So modified updater-script so that it first unmounts /system ,then mounts it normally and then remounts it using

run_program("/sbin/busybox", "mount", "-o", "rw,remount", "/system");

(yeah i know it looks useless, but thats what worked for me)

I also noticed thatinstalling aroma package after unmounting /system from CWM doesn't suffer through this problem.

For me the problem was solved.I'm still testing it ( this happened last night ).But i'm sure that problem is related to aroma installer because same script works fine with normal flashable zips.
[Android Software/Hacking General [Developers Only]] Slayer321:
for mounting you need only 3 arguments. or else the aroma wont accept it.

as for the status 0 error(exit); that is cause due to unexpected ending on your aroma config. So check that.

I think you know what you're doing. So no need to tell, im not an expert myself. :D

Send from Batman's Bat- Phone
[Android Software/Hacking General [Developers Only]] KINGbabasula:
Hi i tried all the solutions but no success... always the same error in aroma-config line 76 col 6

Please help me :)
[Android Software/Hacking General [Developers Only]] Harbir:
u have these error remove red

change

#line75
"Skip","Skip this step",0[COLOR="Red"],[/COLOR]
#line 91
"Skip","Skip this step",0[COLOR="Red"],[/COLOR]
#line 107
"Skip","Skip this step",0[COLOR="Red"],[/COLOR]
#line 121
"Skip","Skip this step",0[COLOR="Red"],[/COLOR]
#

to

#line75
"Skip","Skip this step",0
#line 91
"Skip","Skip this step",0
#line 107
"Skip","Skip this step",0
#LINE 121
"Skip","Skip this step",0

same on line 133,145 &163 no ( , ) after 0 and before );
[Android Software/Hacking General [Developers Only]] judas1977:
Hello, yesterday i posted my aroma-config and you helped me to solve some issues. there were more, but i managed to make it bugs free (i made some small changes):

http://pastebin.com/LcZNiwTN

and here is my updater-script:

http://pastebin.com/H8z1qAW3

Now when i chose default installation - wizard works for second and says installation complete (installs nothing of course)

When i choose default - it stay on 0.00% forever...

So maybe there is something in updater-script?

Or maybe i messed something with files? I mean i don't know for sure which files should be from my rom zip and which from aroma installer zip (update-binary etc.).

Again, TIA.
[Android Software/Hacking General [Developers Only]] demkantor:
Do you have ROM zipped inside aroma.zip? All your folders should be in the main folder, as in at the same level as meta-inf

Browsing your pastebin quick on my phone it looks as aroma-config and updater-script is correct, double check all folders and files are in the proper place, if they are, I or someone else can look over your updater-script better
[Android Software/Hacking General [Developers Only]] Harbir:
here is the error in update script

u haven't placed endif at right places ADD BLUE

#Launcher#
ui_print("Launcher / Instalacja Launchera");
#Stock#
if
file_getprop("/tmp/aroma-data/mods.prop","selected.2") == "1"
then
package_extract_dir("minimal/apps/launcher/stock", "/preload");
[COLOR="RoyalBlue"]endif;[/COLOR]

#Nova#
if
file_getprop("/tmp/aroma-data/mods.prop","selected.2") == "2"
then
package_extract_dir("minimal/apps/launcher/nova", "/preload");
[COLOR="RoyalBlue"]endif;[/COLOR]

#Apex#
if
file_getprop("/tmp/aroma-data/mods.prop","selected.2") == "3"
then
package_extract_dir("minimal/apps/launcher/apex", "/preload");
[COLOR="RoyalBlue"]endif;[/COLOR]

#Browser#
ui_print("Browser / Instalacja przegladarki");
#Stock#
if
file_getprop("/tmp/aroma-data/mods.prop","selected.3") == "1"
then
package_extract_dir("minimal/apps/browser/stock", "/preload");
[COLOR="RoyalBlue"]endif;[/COLOR]

#Opera Mini#
if
file_getprop("/tmp/aroma-data/mods.prop","selected.3") == "2"
then
package_extract_dir("minimal/apps/browser/opera", "/preload");
[COLOR="RoyalBlue"]endif;[/COLOR]

#Dolphin Mini#
if
file_getprop("/tmp/aroma-data/mods.prop","selected.3") == "3"
then
package_extract_dir("minimal/apps/browser/dolphin", "/preload");
[COLOR="RoyalBlue"]endif;[/COLOR]

#Keyboard#
ui_print("Keybord / Instalacja klawiatury ekranowej");
#Stock#
if
file_getprop("/tmp/aroma-data/mods.prop","selected.4") == "1"
then
package_extract_dir("minimal/apps/keyb/stock", "/preload");
[COLOR="RoyalBlue"]endif;[/COLOR]

#AOSP#
if
file_getprop("/tmp/aroma-data/mods.prop","selected.4") == "2"
then
package_extract_dir("minimal/apps/keyb/AOSP/preload", "/preload");
package_extract_dir("minimal/apps/keyb/AOSP/system", "/system");
[COLOR="RoyalBlue"]endif;[/COLOR]

#Camera#
ui_print("Camera / Instalacja aplikacji aparatu");
#Stock#
if
file_getprop("/tmp/aroma-data/mods.prop","selected.5") == "1"
then
package_extract_dir("minimal/apps/camera/stock", "/preload");
[COLOR="RoyalBlue"]endif;[/COLOR]

#nexus#
if
file_getprop("/tmp/aroma-data/mods.prop","selected.5") == "2"
then
package_extract_dir("minimal/apps/camera/nexus/preload", "/preload");
package_extract_dir("minimal/apps/camera/nexus/system", "/system");
[COLOR="RoyalBlue"]endif;[/COLOR]

#Gallery#
ui_print("Gallery / Instalacja Galerii");
#Stock#
if
file_getprop("/tmp/aroma-data/mods.prop","selected.6") == "1"
then
package_extract_dir("minimal/apps/gallery/stock", "/preload");
[COLOR="RoyalBlue"]endif;[/COLOR]

#quickpic#
if
file_getprop("/tmp/aroma-data/mods.prop","selected.6") == "2"
then
package_extract_dir("minimal/apps/gallery/quickpic", "/preload");
[COLOR="RoyalBlue"]endif;[/COLOR]
[Android Software/Hacking General [Developers Only]] judas1977:
AND again. I added that "endif;" lines, now both default and custom installations ends in just a second".

The installation log (rather short;)) below:

__

AROMA INSTALLER version 2.70B6

(c) 2013 by amarullz xda-developers

ROM Name : Minimal by Judas77

ROM Version : 1.5

ROM Author : Judas77

Device :

Start at : Wed Jul 10 10:20:11 2013

line 1 col 78: syntax error, unexpected BAD

1 parse errors

Installer Error (Status 6)

End at : Wed Jul 10 10:20:11 2013

__

What's wrong?

Wysyłane z mojego GT-I8160 za pomocą Tapatalk 2
[Android Software/Hacking General [Developers Only]] franzyroy:
Line 1 apparently!

Envoyé depuis mon GT-I9000 en utilisant Tapatalk 4 Beta
[Android Software/Hacking General [Developers Only]] judas1977:
1st line of updater-script? It's just ui_print line...

What's that "BAD"?

Look at my files (post 993)

Wysyłane z mojego GT-I8160 za pomocą Tapatalk 2
[Android Software/Hacking General [Developers Only]] demkantor:
[MENTION=3841151]judas1977[/MENTION]

can you upload your new updater-script to pastebin
[Android Software/Hacking General [Developers Only]] judas1977:
I'll do it later. Maybe it's because of using "wrong" tools. I'm at work now and couldn't use nothing except wordpad to do last modifications, but I'm pretty sure i didn't touch that first line;)

Wysyłane z mojego GT-I8160 za pomocą Tapatalk 2
[Android Software/Hacking General [Developers Only]] Harbir:
don't past the update script in past bin instead of that u can just attach the same file u are using in ur aroma this time :D or both
[Android Software/Hacking General [Developers Only]] demkantor:
Never mind, you don't need to post it as all edits to your script needs to be unix formatted which word pad won't do. Just change it when you get home with notepad++ or whatever you use
[Android Software/Hacking General [Developers Only]] judas1977:
Yes, thats what did. Testing in couple of minutes (or this evening).

Some stupid questions: what files should come froma aroma installer pack?

Only "aroma" folder + aroma-config + updater-script ?

In my rom package there should be update-binary from Aroma installer and update-binary-installer (renamed update-binary from my rom)?

I'm confused;)
[Android Software/Hacking General [Developers Only]] demkantor:
Download the demo, only extra folder in meta-inf is the one named aroma, probably the only thing you would change in here is splash image or change log etc.

Then you have the four files, you know what to do with aroma-config and updater-script already. Leave the update-binary as is, but take the update-binary from a ROM for your device and rename it update-binary-installer and swap it with the one in aroma zip
[Android Software/Hacking General [Developers Only]] judas1977:
Hmmm... it works, at least partially...

Default installation seems to work properly (only issue is that gauge goes to 100% very fast, but installation takes long time)

But Custom installation got stuck at 0,00% (maybe there is something that triggers it, because previously i managed to run it, it says installation complete but did nothing).
[Android Software/Hacking General [Developers Only]] demkantor:
The installation status bar is something you control in your updater script, you can change that with the set or show process. Any chance you can post your aroma log, its hard to see errors on my phone
[Android Software/Hacking General [Developers Only]] judas1977:
I'm afraid there will be no log, because installation process never stops, and so there it can't write log.
[Android Software/Hacking General [Developers Only]] Harbir:
u can set the install process % by putting

from 0.1 ,0.2 to 1 (which is 100%)

set_progress(0.1);

and for custom install i all seem fine but u can give this a try

change in aroma confi

# Main Mods / Glowne modyfikacje #
if (prop("type.prop","selected")=="1") then
writetmpfile(
"mods.prop",
"selected.1=1\n"+ #-- ChainDD
"selected.2=1\n"+ #-- Touchwiz
"selected.3=1\n"+ #-- Stock Browser
"selected.4=1\n"+ #-- Samsung IME
"selected.5=1\n"+ #-- Samsung Camera
"selected.6=1\n" #-- Stock Gallery
);

else
selectbox(
"Main Features",
"Please select main mods of the ROM:",
"@default",
"mods.prop",

"Root Access App", "", 2, #sel1
"SuperSu",	"Chainfire",	1,
"SuperUser",	"ChainsDD",	0,
"SuperUser",	"ClockworkMod",	0,

"Launcher", "", 2, #sel2
"Touchwiz", "Default Samsung Launcher", 1,
"Nova Launcher", "", 0,
"Apex Launcher", "", 0,

"Browser", "", 2, #sel3
"Stock Browser", "Stock Android 4.1.2 Browser", 1,
"Opera Mini", "", 0,
"Dolpini Mini", "", 0,

"Input Method", "", 2, #sel4
"Samsung IME", "Default Samsung Keyboard", 1,
"Android IME", "Android AOSP Keyboard", 0,

"Camera", "", 2, #sel5
"Samsung Stock Camera", "", 1,
"Nexus Camera", "Android 4.3 Camera App, no photosphere", 0,

"Gallery", "", 2, #sel6
"Stock Gallery", "", 1,
"Quickpic", "", 0
);
endif;

to

# Main Mods / Glowne modyfikacje #
if (prop("type.prop","selected")=="1") then
writetmpfile(
"mods.prop",
"selected.1=1\n"+ #-- ChainDD
"selected.2=1\n"+ #-- Touchwiz
"selected.3=1\n"+ #-- Stock Browser
"selected.4=1\n"+ #-- Samsung IME
"selected.5=1\n"+ #-- Samsung Camera
"selected.6=1\n" #-- Stock Gallery
);
endif;

if (prop("type.prop","selected")=="2") then
selectbox(
"Main Features",
"Please select main mods of the ROM:",
"@default",
"mods.prop",

"Root Access App", "", 2, #sel1
"SuperSu",	"Chainfire",	1,
"SuperUser",	"ChainsDD",	0,
"SuperUser",	"ClockworkMod",	0,

"Launcher", "", 2, #sel2
"Touchwiz", "Default Samsung Launcher", 1,
"Nova Launcher", "", 0,
"Apex Launcher", "", 0,

"Browser", "", 2, #sel3
"Stock Browser", "Stock Android 4.1.2 Browser", 1,
"Opera Mini", "", 0,
"Dolpini Mini", "", 0,

"Input Method", "", 2, #sel4
"Samsung IME", "Default Samsung Keyboard", 1,
"Android IME", "Android AOSP Keyboard", 0,

"Camera", "", 2, #sel5
"Samsung Stock Camera", "", 1,
"Nexus Camera", "Android 4.3 Camera App, no photosphere", 0,

"Gallery", "", 2, #sel6
"Stock Gallery", "", 1,
"Quickpic", "", 0
);
endif;

it might work :fingers-crossed:
[Android Software/Hacking General [Developers Only]] judas1977:
Yes, i changed one of "else" to "endif; if" but forgot abot second one.

And, it seems to work (i have to check all combinations before releasing rom, and check logs, but i think i'm much closer now;))

Thank you all!!!
[Android Software/Hacking General [Developers Only]] Harbir:
Wow that worked!!! I just guessed that lol ;) we are glade to help u :)
[Android Software/Hacking General [Developers Only]] judas1977:
I don't know if that worked because sometimes it still get stuck on 0.00 percent and I have to track down what triggers it:)

Wysyłane z mojego GT-I8160 za pomocą Tapatalk 2
[Android Software/Hacking General [Developers Only]] Moriarty82:
Can anyone shed some light on the contents of META_INF folder...

I made AROMA installer using the files of DAHLIA - 2.00 like update-binary,update-binary-installer,Cert.RSA,Cert,Manifest.mf

Now everytime I try to make the aroma installer with 2.56, the AROMA hangs before vibrating sometimes...

I used Cert.rsa, Cert, Manifest.mf,update-binary(renamed to update-binary-installer) from a working rom and copied update-binary from the aroma-2.56.zip

The aroma-config and updater-script are working fine on DAHLIA - 2.00.

Thanks in advance. :fingers-crossed:
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Try using the update-binary from a working ROM zip from your device.
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
Multiple Fonts on Same Screen

Hey guys,

I was wondering if there was a way to use more than 1 font style on a page... What I want is for the whole installation page (the one with progress bar) to display with my Samsung Rosemary font, but would like to use a Monospace font for the console output... Can that be acheived? I couldn't find anything about using more than 1 font per page.
[Android Software/Hacking General [Developers Only]] abo hani:
got error in line 104 syntex error col 14

aroma + updater script in attachment

i used Aroma-Config that my friend gave me it(test one)
[Android Software/Hacking General [Developers Only]] Harbir:
Replace ( . ) with ( , ) in line 104

"apps.prop".

Kk
[Android Software/Hacking General [Developers Only]] c0rsaro381:
hello.

* I have a problem and do not understand where I'm wrong.

* gives me a syntax error line 201 with 28.

sometimes I get errors in the case, how can I solve?

thanks in advance on the aid
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
It looks to me like your missing "," after the last item in each group. Only the very last item in your selectbox won't have a "," ;)
[Android Software/Hacking General [Developers Only]] c0rsaro381:
I'm sorry but I did not understand very well ... could you explain better? ?

Inviato dal mio Bestifonino c0rso_rom V 1.2
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
For example, you have the following line in your code:

"No","Dont install Pack CodeX",1

This should be replaced with:

"No","Dont install Pack CodeX",1[COLOR="Red"],[/COLOR]

Notice the "," I added at the end of the line. This is only omitted on the last item in your selectbox.
[Android Software/Hacking General [Developers Only]] abo hani:
Ok thanx but i got another error -_- never mind i tried another one from xtream rom and worked but go error 0 after finishing :(

here is meta-inf
[Android Software/Hacking General [Developers Only]] TehJibba:
Ok so ive got most everything worked out and i dont get any syntax errors but upon installing my rom a few of the options dont install because of either file not found (even tho its there ive tripple checked) and one of them i cant add to /data.app as it says file or directory not found.

package_extract_file: can't open /data/app/mxplayer-codec-1.apk for write: No such file or directory
package_extract_file: no applications_addons/OND/OND.apk in package

There is indeed an OND.apk in the package. And im guessing the /data/app folder needs to have perms set but im not sure. This is my first attempt at using aroma for an installer so some advice is welcome
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
I've had issues using package_extract_dir. It only works for me for unpacking the Rom to /system and my extras dir to /tmp. I've had to extract all my extras to /tmp and use busybox to copy to the right place.

So for example, all my extras reside under extras/ in my zip, so I do the following:

Then use something like the following:

Making sure your data partition is mounted of course ;)

This works flawlessly for me even though it's quite a bit of extra code, at least it works as expected.
[Android Software/Hacking General [Developers Only]] TehJibba:
Awesome thank you for the info. Ill give that a shot in the next test. I was abl to solve the OND.apk issue by renaming it, maybe aroma (version 2.5 in my case right now) doesnt like short filenames or something

*Edit* still a no go but thank you anyways :)

*Edit2* Ended up fixing it by simplifying the package_extract line and changing it from package_extract_file to package_extract_dir so now it just extracts everything from that dir to /data/app
[Android Software/Hacking General [Developers Only]] chavv:
Is it possible to use multiple commands in ifelse true/false condition block?

ie:
[Android Software/Hacking General [Developers Only]] chentz78:
Hi,

I'm new to Aroma and I have one questions.

This is about the process of load Aroma Installer. I download the version 2.56 of Aroma and if I unpack this, pack again without modifications then test in CWM (6.0.3.3 in my Thl W8) the aroma Installer work without problem. But if I unpack and copy "META-INF" to my test distrib folder "test" then CWM doesn't start aroma installer and show "Installation Abort" in console.

In first situation my zip structure is like this :

Zip File -> META-INF/ <Original Aroma files and folders>

and the second is :

Zip File -> test/META-INF/ <Original Aroma files and folders>

How to solve this problem ?

Thanks
[Android Software/Hacking General [Developers Only]] KINGbabasula:
You must remove test folder. META-INF must be in the first directory of the zip

Inviato dal mio GT-I9070 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] chentz78:
Ok, but where I put my extras files ?

For example, this part of update-script for install UBoot:

ui_print("- Installing Uboot 8GB Image...");
assert(
package_extract_file("lk.bin", "/dev/uboot")
);
ui_print(" - Uboot 8GB Installed.");

I try to copy "lk.bin" file to "/META-INF", "/META-INF/com/google/android/aroma" and "/META-INF/com/google/android", but in these folder the "assert(package_extract_file(..." throw an exception.
[Android Software/Hacking General [Developers Only]] KINGbabasula:
Like any other flashable zip in a different folder from META-INF

Inviato dal mio GT-I9070 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] chentz78:
That's it. I don't see this detail.

Thank you.
[Android Software/Hacking General [Developers Only]] C13v3r0n3:
I am having an issue i can not seem to find an answer for, aroma boots up and i can go through all of my selections, but it doesnt seem like the updater-script is running. It just shows done after a few seconds, i have searched everywhere but can not find an answer anywhere.

Any help would be great.
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
I'm pretty sure this means that there is an error on the updater script. Did you save the "install log"? That would tell you where the error was.
[Android Software/Hacking General [Developers Only]] C13v3r0n3:
Yea I chose to save the log but it does not exist in the directory I saved it too.
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
Try saving it a couple of times, I had the same thing happen so now when I save a log, I save it 4 times. This usually works, but sometimes it doesn't. The other thing you can do is create a blank text file with your zip filename as filename and see if it's just having difficulty creating the file.
[Android Software/Hacking General [Developers Only]] C13v3r0n3:
Im a dumbass, somehow I deleted updater-binary-install.
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
Oops, that would do it ;) glad it's working now!
[Android Software/Hacking General [Developers Only]] c0rsaro381:
hello. I have a problem, I'm trying to insert vrtheme my themes in flavor, aroma, I can select in quietly, only to end configuration wizard does not start the installation ... I have tried many configurations but does not want to leave.

but if I remove the theme configuration in aroma-config script and then the system works.

I enclose the meta inf.

thanks to all of the aid
[Android Software/Hacking General [Developers Only]] C13v3r0n3:
1 issue:

# Allshare
if file_getprop("/tmp/aroma/customize.prop","item.1.1") == "1" then
ui_print("@ Installing Allshare");
package_extract_dir("c0rso_rom/apps/Allshare", "/system");
endif;

I am pretty sure the prop files are stored in /tmp/aroma-data/ so it would look like this:

# Allshare
if file_getprop("/tmp/aroma-data/customize.prop","item.1.1") == "1" then
ui_print("@ Installing Allshare");
package_extract_dir("c0rso_rom/apps/Allshare", "/system");
endif;

there are a lot of those entries in your updater script. does it allow you to save a log file after it fails?

also, to wipe the partitions just do something similar to this:

mount("ext4", "EMMC", "/dev/block/mmcblk0p27", "/preload");
delete_recursive("/preload");

your blocks are different than mine so don't use my code for your phone, just plug in the numbers.
[Android Software/Hacking General [Developers Only]] c0rsaro381:
no, it makes me save any logs. even starts to install, it gives me only blank page without any written immediately after asking the restart.

the problem is that when I take the inpostazioni of the last things included (themes and other things) then begin tranquillamete, but if I insert the themes will not start
[Android Software/Hacking General [Developers Only]] C13v3r0n3:
Change all instances of

/tmp/aroma/

To

/tmp/aroma-data/

---------- Post added at 05:00 PM ---------- Previous post was at 04:54 PM ----------

You should have the following files structure:

Aroma

Aroma-config

Update-binary

Update-binary-installer

Updater-script

Do you have all of these files and folder?

What version of aroma are you using.

try this updater-script and let me know...
[Android Software/Hacking General [Developers Only]] c0rsaro381:
Yes i have all of this file in my aroma

Aroma

Aroma config

Update-binary

Update-binary installer

Update-script

The version of aroma is 2.56

For the script thanks tomorrow I try and let you know

Inviato dal mio Bestifonino c0rso_rom V 1.2
[Android Software/Hacking General [Developers Only]] c0rsaro381:
hello. I tried to put the file that you gave me, but nothing to do. starts only blank page and then asks to restart:banghead::banghead::banghead:

Inviato dal mio Bestifonino c0rso_rom V 1.2
[Android Software/Hacking General [Developers Only]] C13v3r0n3:
Did you take update-binary from your rom and rename it to update-binary-installer and over write the one in the aroma file?
[Android Software/Hacking General [Developers Only]] c0rsaro381:
nothing even so. starts but during installation restarts aroma

Inviato dal mio Bestifonino c0rso_rom V 1.2
[Android Software/Hacking General [Developers Only]] C13v3r0n3:
What rom base are you on?
[Android Software/Hacking General [Developers Only]] c0rsaro381:
MG1 ...

could create problems?

Inviato dal mio Bestifonino c0rso_rom V 1.2
[Android Software/Hacking General [Developers Only]] C13v3r0n3:
I have a theory I havent tested yet, maybe you have to mount the sdcard. I am going to test it here in a bit.
[Android Software/Hacking General [Developers Only]] c0rsaro381:
ok thank you. in the meantime I also try other configurations. await news

Inviato dal mio Bestifonino c0rso_rom V 1.2