yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] demkantor:
Is your goal to have these selectable? If so then add the selectbox into aroma-config and then have the command be in updater-script under that selection. If you just want the phone to power off or whatever when complete you can have it at the end of updater-script without anything in config
[Android Software/Hacking General [Developers Only]] peppe130:
Ok I got.. Thank you mate ;)
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
I've been over this script a few times going line by line. I'm about to tear my hair out.

Log:

line 383 col 17: syntax error, unexpected $end
1 parse errors

Installer Error (Status 6)

The META.INF folder is zipped up and attached. Aroma runs just fine, but no files are being copied over, nor is anything shown in the output text screen. This leads me to believe the problem is in the updater-script given that the error is shown on line 383, which is the last line of the updater-script. I looked for trailing semi-colons, misplaced commas, and other simple things, but I didn't find any problems.

I'm sure it's likely to be something simple that I've overlooked. This updater-script is based on a previously working one. The modified portion is between line 70 and 365.
[Android Software/Hacking General [Developers Only]] Robbie P:
Hi cajunflavoredbob, you need an endif in line101, also i'm pretty sure you need a blank line at 384

hope it helps
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
You rock. Works perfectly now. Gotta be more careful when I copy/paste lines.
[Android Software/Hacking General [Developers Only]] Seyaru:
Edit.

Is my bad sry
[Android Software/Hacking General [Developers Only]] ISF:
Hi. I need some help about the aroma-script. Everything is working perfectly, the splash screen works but afterwards i feel 2 vibrations and the installation freezes in recovery. I have attached both aroma-script and update-script. I would appreciate if you could take a look. Thanks!
[Android Software/Hacking General [Developers Only]] demkantor:
If it freezes after the aroma splash than the issue is in the aroma-config and more than likely just after splash. I'm on mobile now but I can take a look when I get home if you can't find it
[Android Software/Hacking General [Developers Only]] ISF:
Yes, I would greatly appreciate if you could take a look. Thanks a lot!

---------- Post added at 10:11 PM ---------- Previous post was at 09:46 PM ----------

I found out what was the problem. But now, I get an error in the installer.

ERROR!! Checkbox() expects 4 args + 3 args per items, got 54. I can't figure out where did it get 54, seems to be ok with the code...

EDIT : I found out that there was a "+" where it shouldn't.

---------- Post added at 11:00 PM ---------- Previous post was at 10:11 PM ----------

[/COLOR]

Could you please also take a look at the update-script? It's my first rom, sorry for the errors. I`m just trying to learn after 6 years on Android.
[Android Software/Hacking General [Developers Only]] demkantor:
Yeah no problem, it will be a while before I get home, but if you want to take a look at my threads there are a few aroma scripts that may help you if its your first time. I keep everything fairly neat and often add reasons why something is where it is.

But yeah when I get home I'll have a look
[Android Software/Hacking General [Developers Only]] demkantor:
just did a quick look through both scripts, all is looking good

is it flashing for you now? any errors?
[Android Software/Hacking General [Developers Only]] ISF:
Yes, it is working. It is booting up. The main problem is that wi-fi won't start... I am trying to look into that.

Sent from my GT-I9505

---------- Post added at 10:50 AM ---------- Previous post was at 10:23 AM ----------

Do you know where can I edit the title showed in Advanced Power Menu? I decompiled the framework-res.apk but I don't know where to look for that.
[Android Software/Hacking General [Developers Only]] davidwilson83:
If you're installing a new ROM on I9505 which is a later firmware than what your previous ROM was, you will need to flash a new modem/WiFi fix through Odin.

I thought that the text in Device Options menu was controlled in the GlobalActions smali when you decompile android.policy.jar?

PurifieD Domination
[Android Software/Hacking General [Developers Only]] ISF:
I managed to fix the WI-FI Problem. Thanks a lot, I will look into that!

---------- Post added at 12:53 PM ---------- Previous post was at 12:46 PM ----------

Still no luck in finding that title... :(

EDIT: I FOUND IT. It is located in android.policy.jar.out\smali\com\android\internal\policy\impl\GlobalActions$99.smali ->
[Android Software/Hacking General [Developers Only]] franzyroy:
J'y

It's an issue in your updater-script. Wrong synthax or others.

Send from my GT-I9505 using Tapatalk
[Android Software/Hacking General [Developers Only]] robertogl:
You are right, I've found the problem. Thanks ;)
[Android Software/Hacking General [Developers Only]] franzyroy:
;)

Send from my GT-I9505 using Tapatalk
[Android Software/Hacking General [Developers Only]] orbitA13:
Aroma Splash (Not-Main)

Hello,

This is my n00bish question since I am not really in to art I have a problem to replacing the aroma 1-6 splash's I added my own 6 PNG files but when it loads it looks all messed up from large photo to small and the large one being the last PNG #6, and #1 being super small ? and so on...

Q.). Do they have to be created with Transparency in order to work correctly ?

(Reason I ask is cause mine is not created or laced with any Transparent layers they are just normal PNG files.)

Sorry for the n00b question. I know it's not a syntax error or script error question as I know how to do all that well it is just that ART seems to hate me. Any help would be great..

PS. Sorry if this is the improper place to post about this problem even though it deals with Aroma Installer.

Thanks in advance,

- orbit
[Android Software/Hacking General [Developers Only]] hlxanthus:
It is pixel size that is the issue. Check the res you are saving at. Has nothing to do with art . .
[Android Software/Hacking General [Developers Only]] orbitA13:
Hello hlxanthus,

Each one is the same size saved at 240 x 320 only difference would be the actually size of the PNG it self meaning

1 - 98.5 KB, 2 - 105 KB, 3 - 105 KB, 4 - 105 KB, 5 - 105 KB, 6 - 108 KB

- orbit

[SOLVED] Using text on a PNG being interlaced caused my problem. No "INTERLACE" no problem on the PNG file... =)
[Android Software/Hacking General [Developers Only]] Oweida:
Hi

I'm facing a serious problem and I really need your help with it.

I've built a rooted custom rom for HTC E8 and it works fine.

the problem is that I have added aroma installer and luckily things where done smoothly and all functions are ok but when the rom boots up It seems that my root is lost and superuser app is showing no su binary is installed ?!

any one faced such a problem ?!

Edit: Solved :) not with aroma !!
[Android Software/Hacking General [Developers Only]] IGGYVIP:
[Q] Problem ?

Hi Guys :D

[MENTION=402300]amarullz[/MENTION] u rule :D

i have trouble/question

i have moto droid/milestone

and it uses open recovery not cwm

any time i try to use aroma zip it returns status 0

[MENTION=4334383]demkantor[/MENTION] could you shed some light ?

i had a look at the log but there is no leads there

-- Install from sdcard...
I:Set boot command "boot-recovery"
Finding update package...
I:Update location: SDCARD:eek:penRecovery/updates/cm-9.1.0d-umts_sholes_AROMA.zip
Opening update package...
I:Update file path: /sdcard/OpenRecovery/updates/cm-9.1.0d-umts_sholes_AROMA.zip
Installing update...
E:Error in /sdcard/OpenRecovery/updates/cm-9.1.0d-umts_sholes_AROMA.zip
(Status 0)
Installation aborted.
Running menu script /bin/menu_updates.sh.
Running Shell Script: "/bin/menu_updates.sh"
run_shell_script: child env variable MENU_FILE=/menu/customupdate.menu
FIX ME! implement ttyname() bionic/libc/bionic/stubs.c:360
FIX ME! implement ttyname() bionic/libc/bionic/stubs.c:360
Opening /menu/customupdate.menu.
Menu Title: Apply Update.
ITEM[0]: Go Back - menu - ..
ITEM[1]: AppsCm9.zip - update - SDCARD:eek:penRecovery/updates/AppsCm9.zip
ITEM[2]: cm-9.1.0d-umts_sholes.zip - update - SDCARD:eek:penRecovery/updates/cm-9.1.0d-umts_sholes.zip
ITEM[3]: cm-9.1.0d-umts_sholes_AROMA.zip - update - SDCARD:eek:penRecovery/updates/cm-9.1.0d-umts_sholes_AROMA.zip
I:Set boot command ""
Menu: 3, 1, SDCARD:eek:penRecovery/updates/cm-9.1.0d-umts_sholes_AROMA.zip

-- Install from sdcard...
I:Set boot command "boot-recovery"
Finding update package...
I:Update location: SDCARD:eek:penRecovery/updates/cm-9.1.0d-umts_sholes_AROMA.zip
Opening update package...
I:Update file path: /sdcard/OpenRecovery/updates/cm-9.1.0d-umts_sholes_AROMA.zip
Installing update...
E:Error in /sdcard/OpenRecovery/updates/cm-9.1.0d-umts_sholes_AROMA.zip
(Status 0)
Installation aborted.

My question: is Open Recovery supported at all ?

i'm attaching my original update-binary from rom that works in case you will want to have look ;)
[Android Software/Hacking General [Developers Only]] IGGYVIP:
bump

Is This Thread Dead ? ?

IS "OPEN RECOVERY" SUPPORTED ?

[MENTION=5019113]lankyboy29[/MENTION] do not flash other variants as there is a risk of brick

this is no place to elaborate on that but in general u flash only things that are made for your model

things made for others usually don't work or are used by advanced users that understand the flashing "code of conduct" and are aware of risk/able to recover in case something goes wrong ...
[Android Software/Hacking General [Developers Only]] demkantor:
Hey,

Never used open recovery so I'm not 100% but status 0 does mean an issue with update-binary so if you set everything up correct it is very likely that its not supported

You could try older versions of aroma as the update-binary occasionally gets changed around, otherwise maybe ask the developer of your recovery or ask amarullz if he can make some changes

Best of luck!
[Android Software/Hacking General [Developers Only]] kpirnie:
Wondering if I can get some quick help here.

Simple Aroma menubox to updater script syntax error

AROMA

menubox(
"MY ROM",
"Install or Not, it's your choice!",
"@apps",
"menu.prop",
"Install", "Install This Rom", "@install",
"QUIT", "I'm a quitter... get me outta here", "@install"
);

UPDATER-SCRIPT

ifelse(file_getprop("/tmp/aroma/menu.prop","selected") == "1",
(
ui_print("HEY THERE INSTALL ME");
),
(
ui_print("OK THEN GET ME OUTTA HERE");
)
);

Is giving me

line 1 col 8:syntax error, unexpected BAD 1 parse errors

Any thoughts? I've tried the simple

if then else endif;

, with the same failure in the log
[Android Software/Hacking General [Developers Only]] [SP]JESTER:
help me please

Hey everyone was hoping i could gain some assistance. I have fought for 3 days and still am unable to get this to install without error.

The error is Status 6 after aroma runs, Very last line. But nothings there, i read it needed another end on it but i have no idea where it would be missing at. I have looked numerous times.

Any help would be greatly appreciated so i can get this rom on our site and finish testing.
[Android Software/Hacking General [Developers Only]] hlxanthus:
I found atleast 2 "if" statements that were still open . . aka no "endif" at the end. The first one was your very first if . .

if
file_getprop("/tmp/aroma-data/flash.prop","selected") == "1" then
ui_print("Wiping Cache ...");
ui_print("*************************");
mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/cache");
delete_recursive("/cache");

set_progress(0.02);
ui_print("Wiping Dalvik Cache ...");
ui_print("*************************");
mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/data");
delete_recursive("/data/dalvik-cache");
set_progress(0.03);
if
file_getprop("/tmp/aroma-data/wipe.prop","selected.0") == "1"
then
ui_print("Wiping Data ...");
ui_print("*************************");
package_extract_file("CspireExtras/scripts/wipedata", "/tmp/wipedata.sh");
package_extract_file("CspireExtras/scripts/bash", "/tmp/bash");
set_perm(0, 0, 0777, "/tmp/wipedata.sh");
set_perm(0, 0, 0777, "/tmp/bash");
run_program("/tmp/wipedata.sh");
endif;
set_progress(0.05);
ui_print("Deleting Current System ...");
ui_print("*************************");
mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");
delete_recursive("/system");
set_progress(0.06);
ui_print("Installing System...");
ui_print("*************************");
package_extract_dir("system", "/system");
set_progress(0.5, "-10000");
[Android Software/Hacking General [Developers Only]] [SP]JESTER:
thanks, good eye there lol. ill give that one a try, the script was already made i just edited it down to bare bones again pretty much.

im assuming that below would be correct, also i posted a more cleaned up file but hadn't gotten to this at the time

if
file_getprop("/tmp/aroma-data/flash.prop","selected") == "1" then
ui_print("Wiping Cache ...");
ui_print("*************************");
mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/cache");
delete_recursive("/cache");

set_progress(0.02);
ui_print("Wiping Dalvik Cache ...");
ui_print("*************************");
mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/data");
delete_recursive("/data/dalvik-cache");
set_progress(0.03);
endif;
if

Did not fix it, will keep trying

Also it seems the beginning if, is ended under stock curtains. So it must be something further down
[Android Software/Hacking General [Developers Only]] demkantor:
Are you using windows? Status 6 errors are from using windows end of line, you need UNIX EOL
[Android Software/Hacking General [Developers Only]] [SP]JESTER:
im using notepad++ in linux EOL mode on windows. but i do have BBQLinux
[Android Software/Hacking General [Developers Only]] demkantor:
just took a look they are all UNIX, but you never hit enter on the last line so no EOL present there
[Android Software/Hacking General [Developers Only]] hlxanthus:
Anyone know if it is possible to run a script via an aroma-config and have it open a status window? Similar to the install window, to show the various "echo" and such? Or even modify the install action itself to call on my script instead of the updater-script?
[Android Software/Hacking General [Developers Only]] Kiray1982:
You can try this

setvar("resexec_retstatus", exec("/tmp/aroma-data/yourscript.sh"));

textbox( "title", "Please check for any errors in this window.", "@default", getvar("exec_buffer")+"\n\nRETURN STATUS : "+getvar("resexec_retstatus"));

All echo's In your script will also printed.

First exec can switched to zipexec or something else.

- gesendet mit meinem HTC One M8 -
[Android Software/Hacking General [Developers Only]] demkantor:
Are you looking to remove these lines from aroma config? I'm guessing not being it doesn't go up to 388 lines

Can you give a bit more detail on what you're trying to do as well as the exact error code?
[Android Software/Hacking General [Developers Only]] legion423:
I've edited it success :), anyway thank you
[Android Software/Hacking General [Developers Only]] jmo:
Not able to see output from updater-script

I don't have any errors but I have a problem. Either my updater-script is not running or AROMA isn't showing any output. I believe my code for running the install is pretty standard, I just "borrowed" it from some examples...

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

#-- Installation Process message
"The image is being installed.\n\n"+
"\n This may take several hours.",

#-- Installation Icon
"@install",

#-- Installation Finish Message
"The installation wizard has successfully installed the image"+
"</b>. Press Next to continue."
)
);

My updater-script (for now) is just repeated ui_print("-> Testing 1...2...3....");

When I run it, everything seems to work fine (no errors) but I see no output from the updater-script. I am not even certain it is running but I can't imagine why it wouldn't be running. I do get "Installer Status: 0".

Any suggestions?

Jonathan
[Android Software/Hacking General [Developers Only]] demkantor:
Can you upload your META-INF folder, that would be the best way to let you know
[Android Software/Hacking General [Developers Only]] jmo:
Thanks. You were correct, that was the problem area. I had started with the Tutorial file from ([TUTORIAL] Comprehensive Guide for AROMA Installer For Beginners!! | 27/08/13). Everything worked except the actual script. I decided to copy my files over to the original download of AROMA. It worked. So you were correct, thanks for the help.

Jonathan
[Android Software/Hacking General [Developers Only]] jmo:
Help - Change Screen Color after successful flash

I am working on a project where we are flashing hundreds of tablets at a time and due to the volume of content, it takes hours. One feature we currently have is that when the recovery process finishes, the screen turns green. That way, from a distance, we can see when a particular tablet is finished imaging. I have everything working with AROMA but would like to have this same functionality.

I am using the standard Install() function (see code below). Does anyone know how I might accomplish something similar with AROMA?

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

#-- Installation Process message
"The image is being installed.\n\n"+
"\n This may take several hours.",

#-- Installation Icon
"@install",

#-- Installation Finish Message
"The installation wizard has successfully installed the image"+
"</b>. Press Next to continue."
)
);
[Android Software/Hacking General [Developers Only]] hlxanthus:
You could call a script at the end to do it or use the splash function in aroma.
[Android Software/Hacking General [Developers Only]] jmo:
I am familiar with the splash when loading the app, can it be used at any time? I am afraid I am only familiar with edify and I am not aware of a way to change colors within it, would my script then need to call another script to change the color? Any example would be appreciated.

Thanks,

Jonathan
[Android Software/Hacking General [Developers Only]] hlxanthus:
Yes the splash can be used any time. How do you make it flash in a regular installer?

Edit: for that matter, once you finish flashing and see it is done, what is it you do? We could instead have it immediately boot up the fresh install for example.
[Android Software/Hacking General [Developers Only]] jmo:
We had someone modify the ASOP recovery itself so that the screen turns red on an error and green upon completion. It works really well, but doesn't work under AROMA. I will try some of your suggestions and see if I have any success. Thanks for the tips.

Jonathan
[Android Software/Hacking General [Developers Only]] demkantor:
What about instead have it reboot or power off when complete? This would be super easy and may accomplish the same thing?

Just a thought as when aroma finishes you can give it simple reboot commands easy
[Android Software/Hacking General [Developers Only]] Negan:
Hey guys I posted my issue I'm having in the other aroma Dev q and a thread. I also wanted to post something here and see if anyone can relate to this issue. I made a video of it to explain what's happening.

OnePlus one aroma issue: http://youtu.be/_c_Nqh_pozM

Suggestions are welcome
[Android Software/Hacking General [Developers Only]] Negan:
Still zero progress. I am completely stumped on this. I've used aroma half a dozen times and never had this before. I've tried every version of aroma and the same result every time.
[Android Software/Hacking General [Developers Only]] demkantor:
Well does aroma work for the opo yet? I tried a few months back and it didn't then, there were some issues in both recovery as well as with aromas update-binary back then, not sure if all has been fixed but you were able to proceed much farther than I could back in July

Try contacting those building the couple recoveries for the opo and see if they have some thoughts, but for sure provide logs as well

If I get some time I'll do some digging myself

Best of luck!
[Android Software/Hacking General [Developers Only]] Negan:
I appreciate the reply. Unfortunately the logs have nothing on them. Still seems to not be mounting. At least that's my beat guess
[Android Software/Hacking General [Developers Only]] Robbie P:
Hi markbencze

You have looked at aroma log, recovery log and last-kmesg/dmesg for the recovery kernel? not sure if it is possible to get a logcat from recovery terminal, worth a try though.
[Android Software/Hacking General [Developers Only]] Negan:
I have tried to get a log. It was suggested to me that perhaps the recovery itself is the issue. I don't know much about how that part works. I have tried every recovery and twrp 2.8.1 seems to be the one that goes through aroma all the way. other versions twrp will freeze before my splash screen. philz is a transparent mess.

I cannot believe how frustrating this process has been. I've never had anything like this the other times i've used aroma.

Did you by chance see my updater/config I had posted previously?
[Android Software/Hacking General [Developers Only]] demkantor:
As far as I can tell aroma still isn't compatible with the one plus one, you will need to work with [MENTION=402300]amarullz[/MENTION] or one of the kernel devs for the OPO to get it working
[Android Software/Hacking General [Developers Only]] Negan:
So one of the recovery developers has said that aroma needs to be updated so the ui uses qualcomm overlay instead of framebuffer for it to ever work with OnePlus. Anyone have any ideas on this?
[Android Software/Hacking General [Developers Only]] akramhadji:
Hi!!

hello Dev

I jwant to tell you that your guide is awsome!

but since I'm a bigginer :silly: I faced a problem in my aroma-config file, the error says "SYNTAX ERROR" "Line 576 col 2"

I reopened aroma-config and I went to line 576, the 2nd caracter, EVERYTHING IS FINE!!!!

I'm really comfused, can you help me?

I've attached my aroma-config and updater-script and changed the extension to txt (I had to), hope you will find something :good:

thanks :laugh:
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
Line 572.

this

"Kitkat UI + exDialer", "Enjoy the KitKat UI on your Tipo dual!", 0, #-- selected.1 = 2

should be

"Kitkat UI + exDialer", "Enjoy the KitKat UI on your Tipo dual!", 0 #-- selected.1 = 2
[Android Software/Hacking General [Developers Only]] akramhadji:
ohh, that mistake :p

ahh, Stupid me :silly:

Thanks alot for fast reply! (thanks pressed :good:)
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
No worries mate, pretty common syntax error with aroma
[Android Software/Hacking General [Developers Only]] enotar:
Proble aroma works good and installation does not start.

hello,

I have this updater-script and aroma-config

Aroma works well but as soon as it goes to install (after selections) it finnish very quick without errors and say all is ok but nothing has been installed.

Can someone e help me please?

Thank you so much
[Android Software/Hacking General [Developers Only]] hlxanthus:
I am not going to download and try and find errors on my phone but usually if the aroma interface works well but fails to install anything it is usually updater-script syntax errors of some sort
[Android Software/Hacking General [Developers Only]] Negan:
I have the exact same problem. However as previously mentioned (although not confirmed) Aroma apparently is not compatible with the Oneplus one
[Android Software/Hacking General [Developers Only]] enotar:
For me it is fix It was sintax errors and checkboxes numeration issue.
[Android Software/Hacking General [Developers Only]] enotar:
I have a small question: when you have a lot of checkboxes how you segment in pages for each group. I have all in one page and have to slide through all. Thank you ver much
[Android Software/Hacking General [Developers Only]] Lordomn:
just break them down into categories... then make the edits you need. it involves a little bit of work but can be done
[Android Software/Hacking General [Developers Only]] enotar:
Thank you but how aroma define it has to go to a new page? Is there a command? Or each xxxxxx.prop define it?