yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] -Happy Feet-:
Thanks ;)

Gesendet von meinem HTC One X mit Tapatalk 2
[Android Software/Hacking General [Developers Only]] TakuyaZ:
Can somebody help me here?

Im making aroma for cm10, and i cant seem to start the installer, it keep giving me line error

the line it is pointing to is ");" (line 222)

don`t know what could be the problem

I attached the aroma-config. (added .txt for xda upload)

thanks in advance
[Android Software/Hacking General [Developers Only]] Patrics83:
219
[Android Software/Hacking General [Developers Only]] TakuyaZ:
Did`n noticed that, thanks for pointing out

re-testing !

(hope it works)

Edit: it worked! thanks for pointing out that minor mistake i`ve made XD
[Android Software/Hacking General [Developers Only]] -Happy Feet-:
i hope anyone can help me.

when i would flash my ROM with Aroma Installer, i became this Error:

-- Verify md5 for /sdcard/endeavoru_signed_062613_192124.zip
-- No md5 file found, ignoring
-- Install /sdcard/endeavoru_signed_062613_192124.zip ...
Finding update package...
I:Update location: /tmp/sideload/package.zip
Opening update package...
Installing update...
line 4 col 6: syntax error, unexpected STRING, expecting $end
1 parse errors
E:Error in /tmp/sideload/package.zip
(Status 6)
* Verifying filesystems...
I:=> Let's update filesystem types via verifyFst aka blkid.
* Verifying partition sizes...

and this is the updater-script from this ROM. http://pastebin.com/ifVTyn6p

what is wrong? can anyone help me?
[Android Software/Hacking General [Developers Only]] TakuyaZ:
The problem is in aroma-config. Please post that
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
Hey guys,

So I have created an aroma installer for my stock ROM for my SGH-I757M. The installer works perfectly, but I think I may be having some issues with the updater script and am hoping someone can help me out.

My installer is set up so that the user can do a Clean Flash or Dirty Flash. This will wipe the /system, /data and /cache dirs. Then, the ROM is flashed. It then installes the user selected stock apps to install and the third party apps to install. Next it roots the phone if you chose to root it and then flashes the modems that were chosen.

Everything works perfectly except for two things, I can't get root to work. The files are flashed, but show as 0kb after I boot into the os after flashing. I use package_extract_file() to copy them to the /system/app and /system/xbin dirs respectively. I set the permissions on these, set_perms(0, 0, 06755, "/system/xbin/su") and I've tried setting the perms on the Superuser.apk to 0644 and 06755. The Superuser.apk appears in my list of installed apps only when setting the perms to 0644, and only if I copy them to the /data/app dir.

The Superuser.apk when installed to /data/app with perms 0644 will run, but complains that the binary is out of date and needs updating, so I click the button to update su and it errors out stating that it cannot update the binary. When I check /system/xbin/su, it exists, but shows as 0kb. It appears to me that it did not copy correctly, but I'm not sure why???

The other problem I'm experiencing is the terminal emulator, installed to /data/app keeps crashing. If I uninstall it and install it from the market, it works without issue, it's copied to the /data/app dir with the other 3 third party apps that I'm including and all 3 of those work just fine. Any ideas why this would be?

So the two things holding me up is root and terminal emulator. I have attached both my aroma-config and updater-script for reference to my code.

I'm running aroma installer 2.70B6 if that makes any difference. And my install log is clean, meaning no errors. It says every operation finished successfully.

Any help would be greatly appreciated :)
[Android Software/Hacking General [Developers Only]] cleverior.ipul:
can anyone help me ?

why this error happened when i try to flash aroma 2.70B6 Flamboyan thru cwm ?

i've changed the update-binary and update-binary-installer to 2.56 Edelweis but still error like on the right SS. im using galaxy pocket.

T.I.A :)
[Android Software/Hacking General [Developers Only]] Slayer321:
The problem is with aroma config. check the codings nicely.

you should edit aroma config and update script only.

not the the update binary or installer.

Send from Batman's Bat- Phone
[Android Software/Hacking General [Developers Only]] cleverior.ipul:
I tried to flash aroma Flamboyan 2.70B6 directly through CWM without being altered but still error. see the left screenshot.
[Android Software/Hacking General [Developers Only]] Slayer321:
Maybe the zip file is corrupted.

Have you try Aroma File manager Or official aroma installer(by amarullz)?

Just give those a try and see if they're working or not?

If yes, then the problem is with the aroma config and you should edit that.!
[Android Software/Hacking General [Developers Only]] Slayer321:
HELP

Ive got the aroma installer Working!

But im facing trouble with the Installation part.

Im getting this error in log.txt

Aroma and update script attached below.
[Android Software/Hacking General [Developers Only]] Patrics83:
line: 46

end_if;
[Android Software/Hacking General [Developers Only]] Slayer321:
Thanks. didnt notice that! :D

Its working now.....:)

Send from Batman's Bat- Phone
[Android Software/Hacking General [Developers Only]] Slayer321:
HELP

How to change the font size?? Its too big...

Ive try changing value

Also i try changing the font type but still the same .[BIG]

Help Please :(

I thought writing this aroma installer was a piece of cake but i find it is harder than i thought.
[Android Software/Hacking General [Developers Only]] demkantor:
Haven't tried 2.7 yet but the best way to see what is happening as far as the bad flash goes is to print your aroma log and post it here, along with your aroma and update binary
[Android Software/Hacking General [Developers Only]] demkantor:
Nothing stands out at a quick glance but on my phone so I'll take a better look when I get near a PC, or someone else can jump in too

What if you only select ROM in aroma, nothing else, will it still not boot? Also for fun if you dirty flash the ROM with aroma over the one already installed on your tablet will it cause it not to boot?
[Android Software/Hacking General [Developers Only]] demkantor:
Then if its the same updater-script its possible a file is missing or misslabled? I'd check through these, maybe compare your recovery log when it works (assuming your recovery has it) to your aroma log and see if something is skipped in the flash like kernel or a dependent file, if you can post that log too (working one) and when I get back home I'll take a look again
[Android Software/Hacking General [Developers Only]] demkantor:
Nice! What was it, kernel not installing?

By input you mean how touch is messed up in landscape? Have tried calibrating yet? I haven't used 2.7 yet but there should be a calibration option if the default won't work
[Android Software/Hacking General [Developers Only]] cleverior.ipul:
I download the file more than three times but still error. I downloaded directly from here http://xdaforums.com/showthread.php?t=1461712
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Any idea why this is not flashing anything? The Aroma installer runs properly, but at the end, there is no text in the installation window. It doesn't install anything, but it tells me it was a success.

For reference, I've also attached a previous, working version. The 2.4 version works perfectly. The 2.6 version gives me nothing.
[Android Software/Hacking General [Developers Only]] Harbir:
can u SAVE LOG FROM THE AROMA AT THE TIME OF INSTALL and past it here it will make work fast.:D
[Android Software/Hacking General [Developers Only]] dwitherell:
These can be so painful sometimes...

The problem was in the updater-script. Line 521 to be exact - you had

set_progress(0.74;

and it should be

set_progress(0.74);

Hope that helps :)
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Thank you so much!

Yea, Aroma kept saying it was a success and there was no error in the logs, so I couldn't figure it out. I don't know how you guys find these things so quickly, but I sure do appreciate it.
[Android Software/Hacking General [Developers Only]] TeamNecessity:
So how do I add this into my ROM? I am so confused. Do I just replace the meta-inf in my rom with the aroma meta-inf and then add in my rom's updater script. Is that it or is there way more I need to do? Can someone give me the step by step process on how to do this?
[Android Software/Hacking General [Developers Only]] Slayer321:
Yes...add the meta folder from aroma. Containing "aroma" folder, aroma config, update, update binary and installer.

You need to edit the update script according to your aroma config.(i.e. how the Wizard UI works).

The update script should work according to option selected in the aroma config(i.e during the wizard).

If you know, C# or Java programming. This wont be hard.

Try downloading aroma installer(official) by amralluz.

Those demo will help you out. ;)

Send from Batman's Bat- Phone
[Android Software/Hacking General [Developers Only]] dwitherell:
No prob - glad to lend a hand and in particular for this project you've been working on :)
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Thanks for the assistance. Is there any easier way that you guys find these mistakes other than scanning each line? When the aroma script gets as large as mine, it's a huge time killer to scan each line looking for one single missing character.

I mean, if that's what it takes, then so be it, but I was hoping you guys had a secret so I don't have to pop in here every time I get cross eyed from stating at Notepad++ for an hour searching each line.
[Android Software/Hacking General [Developers Only]] dwitherell:
This one was pretty brutal I'm not going to lie, but basically I ran a neutered version of your script (didn't do anything except for the if/then loops ad ui_print calls) to get the option to save the log - in there I saw the unexpected end error and that it was looking for a missing , or ), and it gave the line number of the last line in the updater-script. So then I just went through and made sure there were no missing ) - which in my head was the most likely culprit - and I found that one. But I definitely went line-by-line looking through it, and it was on line 520ish, so yeah... no magic secret there really.
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Geeze. I'm just going to have to either be more careful with these script edits, or have an older version handy to revert back to then.

In any case, I greatly appreciate the help. That kept me from having to revert to a script change that was two version old.
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
Files not being copied and no errors

Hey guys,

I posted a couple of pages back about root not working properly and my terminal emulator Force Closing (will debug this after root is working properly). The ROM flashes fine without aroma installer, and it flashes with root and without the terminal emulator (root works in my original rom... the one before I made it an aroma installer. This is it's default setup and it works.

I want to break that all down with my aroma installer and allow the user to root/unroot the installation so I removed the lines in my updater script that pertain to su and Superuser.apk in the section of my updater script where the rom is flashed, ie: setting the symlink and the permission on the su binary since su/Superuser.apk is extracted by package_extract_dir("system", "/system") in the regular rom zip file. In my aroma installer, these files are not flashed with the earlier mentioned package_extract_dir command during the rom flash, but are later extracted from extras/root/system to /system.

For some reason, when I use package_extract_dir on extras/root/system, the /system/app/Superuser.apk and /system/xbin/su files both are reported as 0 bytes by ES File Explorer. The aroma installer completes successfully, and the log is clean. The recovery.log is also clean, no errors about not being able to extract or errors about permissions or anything of the sort.

I have tried both package_extract_dir and package_extract_file both with the same results. I have not tried putting my extras/root at the root of the zip as I don't see why that would make a difference, but I will try that next, and as a last resort, I think I might just let the rom flash as normal then delete root if they do not want root as it works fine when root is part of the system dir at the root of the zip instead of inside extras/root/system.

Anyone have any ideas why these methods that have always worked on my device don't work when using aroma installer. I'm baffled. The same commands are used to flash the rom itself, and that works perfectly, but not for the root files.

I have also tried two different update-binary-installer one that was packaged with my stock rom after using the kitchen and the other one that came from our CM10 zips. Both seem to operate the same, but are different sizes and are obviously different so I tried them both, but it made no difference.

I posted my updater-script and aroma-config files at the following post if anyone needs to see them, and any help would be really appreciated :)

http://xdaforums.com/showpost.php?p=43016014&postcount=955
[Android Software/Hacking General [Developers Only]] Moriarty82:
Hey guys,

Im already using AROMA installer for my rom.

Is there any way we could have Radio buttons instead of check boxes for mods to avoid multiple selections..

Thanks in advance...!!! :)
[Android Software/Hacking General [Developers Only]] judas1977:
Hello, i just started my adventure with aroma installer and i spotted some problems/config issues. Coud somebody review my code?

There is error in line 86, row 20 (after "type.prop"), and i can't solve that problem... If somebody with experience could review rest of my code - Thanks in advance:)

http://pastebin.com/HPCXwEXA
[Android Software/Hacking General [Developers Only]] Harbir:
u have an error at line 82 column 120 remove red

change

#line 82
"Custom", "Choose which program or mod features you want to installed.", "@customize[COLOR="Red"],[/COLOR] #-- wybor = 2
#line 131
"Quickpic", "", 0[COLOR="Red"],[/COLOR]
#line 158
"Ad-block hosts", "Removes ads from applications", 0[COLOR="Red"],[/COLOR]

to

#line 82
"Custom", "Choose which program or mod features you want to installed.", "@customize #-- wybor = 2
#line 131
"Quickpic", "", 0
#line 158
"Ad-block hosts", "Removes ads from applications", 0

NO COMMA AFTER THAT LAST '0'
[Android Software/Hacking General [Developers Only]] judas1977:
Thank You very much!!! I will try tomorrow, too sleepy now;)).
[Android Software/Hacking General [Developers Only]] Robobob1221:
Ok I took a look and I think the error is as follow

#-------------------------+-----------------[ Menubox Items ]-------------------------+---------------#
# TITLE | SUBTITLE | Item Icons #
#-------------------------+-----------------------------------------------------------+---------------#

"Install", [COLOR="Red"] [B] "This will turn your menu key into a back key",	[/B][/COLOR]"@install", #-- selected = 1
[COLOR="red"][B] "and your back key into a menu key",[/B][/COLOR]
"Uninstall", "Reverts the keys back to default", "@alert" #-- selected = 2
);

The two lines are for the same option. So after the first line you need to have a + and remove the comma. Otherwise the installer is expectinh another function/argument. So I think the two lines should look like this

"Install", "This will turn your menu key into a back key"[COLOR="Red"]+[/COLOR]	"@install", #-- selected = 1
"and your back key into a menu key",

I think that should fix your argument issue. Anyone else agree??
[Android Software/Hacking General [Developers Only]] iok1:
Thanks, i Will try that.

Sent from my jelly bean
[Android Software/Hacking General [Developers Only]] Волк:
I think that with just + all the text will be on the same line. You may need to make tow lines like you have it in your script so it would be: line one\n" +

"Line two",
[Android Software/Hacking General [Developers Only]] iok1:
Thanks for your answer, now that I have added the + instead of the comma i get a syntax error at line 216 col 61, which is on this line:

"and your back key into a menu [COLOR="Red"]key[/COLOR]",

and col 61 is on the k in the red "key".

I'm confused on what i should do now.
[Android Software/Hacking General [Developers Only]] Robobob1221:
This line in the install section

"@install", #-- selected = 1

Place it on the second line after 'and your back key into a menu key' so that its like this

#-------------------------+-----------------[ Menubox Items ]-------------------------+---------------#
# TITLE | SUBTITLE | Item Icons #
#-------------------------+-----------------------------------------------------------+---------------#

"Install", "This will turn your menu key into a back key"+
"and your back key into a menu key", "@install", #-- selected = 1
"Uninstall", "Reverts the keys back to default", "@alert" #-- selected = 2
);

I hope this works out for you :)
[Android Software/Hacking General [Developers Only]] iok1:
Thanks for your help, the installer works almost fine now, have to fix the installation now :cool:
[Android Software/Hacking General [Developers Only]] Волк:
Ok, I'm about ready to wrap up my first release but I want to add my own icons, I see that all the samples are 72X72pixels, is that the only resolution we can have? The icons are rendered at a much smaller size than their actual physical size.

edit: I figured I'd try it and see what happened, it automatically renders at 72X72 pixels. OP, this is good information for people to know, can you post this info in the appropriate area.

Also, I think we have to set the status bar progress in the config, not the updater-script. I'm running my script right now and I am getting no progess bar movement, when it finishes, I'll fix it and double check.

Edit again: Looking at it, I can't see how it would go in the .config. In the samples the progress bar is coded in the updater-script. I'm attaching my script, if someone can tell me why it's not showing progress bar movement that'd be great.
[Android Software/Hacking General [Developers Only]] Robobob1221:
I'm guessing that it runs the same as the os in terms of resolution so 72x72 is the settings icon size. what size you planning on using? You could always give them a go and see what happens with them
[Android Software/Hacking General [Developers Only]] Robobob1221:
show_progress("1.34", "300");

show_progress("1.34", "600");

These I don't think follow the set_ progress logic. These would be be after 300/600 files extracted to show 134% completed I believe.

How do you want progress to be shown, just percentage, over time, or after file extraction?

Check this from aroma default updater-scrip

## INFO COMMAND FOR AROMA
#
#-- DIFFERENT BEHAVIOUR
#
# set_progress(0.5);
# Set Progress position: 0.0 = 0%; 0.5 = 50%; 1.0 = 100%
#
# show_progress(0.2, 400);
# show_progress( progress size, number of files to be extracted );
# if we had 50 files, and want to "add" 0.2 into progress after all finished
# use (0.2, 50)
#
# show_progress(0.2, "-2000");
# show_progress( progress size, wait for 2000ms );
# For show progress with time as progress indicator, use negative value. After 2second progress will add 0.2/20% into the value
# use (0.2, "-2000"). Note, use quote for value "-2000"
#
[Android Software/Hacking General [Developers Only]] Волк:
Well, that's just like looking at the south-end of a north-bound dog. If you look in threads such as:

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

It's supposed to be how much to fill the progress bar and over how many seconds.

Since I'm not extracting files how am I supposed to create a time-based progress bar like has always worked?
[Android Software/Hacking General [Developers Only]] Robobob1221:
This is whats in the aroma installer. I followed it and my progress works as expected.

I think that is for in recovery not the aroma installer. I'm not sure. Bt following what amarullz has put in the updater script you'd want as follows

show_progress(0.2, "-2000")

This shows 20% after 2seconds

yours accordingly I think:

show_progress(1.34, "-60000")

I still don't understand why you want to show 134%
[Android Software/Hacking General [Developers Only]] Волк:
Ok, I'll check it out and see if making a negative value gives me a positive progress bar, his explanation wasn't very clear. it sounded like it would wait that many seconds THEN fill the progress bar that much.
[Android Software/Hacking General [Developers Only]] Robobob1221:
Ah perhaps, well one way to find out I guess:good:
[Android Software/Hacking General [Developers Only]] Dblfstr:
Information added to the common errors section (4.) Not really a common error, but it is easier to find there.
[Android Software/Hacking General [Developers Only]] Волк:
Thanks, maybe not a problem, but it's a good question. And I have another question: can I make a select box within an if command? I realized that I can make my tool an aio wipe tool for my phone, but the easiest way for the end user is one menu which leads to the menu system for the path they want, versus just one big long menu.

Edit: Just quickly butchered my config to see if the menu within an if then statement would work fine, and it did. This is going to be great.
[Android Software/Hacking General [Developers Only]] iok1:
Hi again. Everything is going fine and all, except that i can't get it to install anything. When I get to the installer page it's just a blank box. I've checked for anything in the updater-script that can cause the error and found nothing. I did however, save the log. It says something about installer error (status 6) I've attached the log and zip. Thank you.
[Android Software/Hacking General [Developers Only]] Dblfstr:
Remove the space between delete and ()

if
file_getprop("/tmp/aroma/install.prop","Install") == "1"
then
ui_print("Installing....");
delete ("/system/usr/keylayout/sec_key.kl");
delete ("/system/usr/keylayout/sec_touchscreen.kl");
package_extract_dir ("keychanger/install", "system/usr/keylayout");
endif;

if
file_getprop("/tmp/aroma/install.prop","Uninstall") == "2"
then
ui_print ("Uninstalling")
delete ("/system/usr/keylayout/sec_key.kl");
delete ("/system/usr/keylayout/sec_touchscreen.kl");
package_extract_dir ("keychanger/uninstall", "system/usr/keylayout");
endif;

really do not know if that is the problem. :D But your syntax error is on that line, and that is the only thing I see right now.
[Android Software/Hacking General [Developers Only]] iok1:
Thanks man, unfortunately i've reached my 8 thanks for today.
[Android Software/Hacking General [Developers Only]] amarullz:
Ok about progress, I think rom development also confused from the very start before even aroma installer exists.

Because recovery use 1.34 as 100%, and i dont know what reason is it for?

When I developed aroma installer, it doesnt make any sense for me,, so I change it to 1.0 as standard of 100%.

The first aroma release only support progress by number of files, but in version 1.5 I also add progress by time. Because positive number already used for progress by files, So i change it to negative number (for backward compatibility)
[Android Software/Hacking General [Developers Only]] Robobob1221:
So would that mean

show_progress(1.0, "-60000");

Does that show the progress bar increasing to 100% over 1 minute? Or after 1 minute the bar shows 100% complete.

an enviousOG