yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Sneakyghost:
Hi Carl1961,

nice to find you here again after having had quite a few meetings on the HD2 Forum back in the days...

Thank you for your efforts.

I now checked all possible channel combinations inspired by those you posted, trying to get the TWRP 2.5.0.0 Colorspace of RGBX_8888 to render properly in Aroma. Results (including my previous 4 attempts):

rgba=crash/stop of execution

argb=crash/stop of execution

rbga=dark blue/green tint

arbg=triggers TWRP UI reload

bgra=turquoise tint

abgr=dark blue/green tint

brga=dark blue/green tint

abrg=dark blue/green tint

gbra=dark blue/green tint

agbr=dark blue/green tint

grba=dark blue/green tint

agrb=dark blue/green tint

Question: do you know how to understand the "//blue select" or "//yellow background" bit behind the function? I cannot make much sense of it other than that being comments?

I suppose it will all boil down to something having to be adjusted/added on the Aroma side of things? Or else: it all boils down to the update-binary from Amarullz needing to learn to render RGBX_8888 properly.
[Android Software/Hacking General [Developers Only]] prestige777:
I am not sure where the best place is to ask this question, but is there a way to decompile the classes.dex file inside of framework.jar replace a few files, recompile it and continue flashing the new framework.jar file using a script from a update zip? I know how to decompile/recompile the classes.dex using smali/baksmali on a computer, but I want to make a update zip that replaces certain files.
[Android Software/Hacking General [Developers Only]] k2wl:
(solved)help for kernel selection and installation in aroma

sir i am working on aroma script to include selection for kernels. but cant figure out proper way for error free installation.

can anybody please look in it . i m attaching my meta-inf folder here. i need to have boot.img installation along with it's modules.

update-solved ...
[Android Software/Hacking General [Developers Only]] Dblfstr:
You want the update.zip to decompile, edit, rebuild, and sign? That sounds like a bit much for an update.zip.

Is there a reason you cannot include the edited framework.jar in your update.zip?
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
I get the following error in my recovery.log when trying to flash my latest aroma zip. I've been over this script all day long, and I can't seem to find any error. I've check for the semi-colon and + marks at the end of the lists, but those are all fine. I've looked all around the line that the error in recovery is reporting, but no dice there either. This was working fine a few days ago until I added some extras to the zip.

Recovery error message:

Installing '/sdcard/Download/Aroma_v2.0_test13.zip'...
Checking for MD5 file...
I:Cannot find file /sdcard/Download/Aroma_v2.0_test13.zip.md5
Skipping MD5 check: no MD5 file found.
line 488 col 17: syntax error, unexpected $end, expecting ',' or ')'
1 parse errors
E:Error executing updater binary in zip '/sdcard/Download/Aroma_v2.0_test13.zip'
Error flashing zip '/sdcard/Download/Aroma_v2.0_test13.zip'

According to the error, I was looking in the aroma script, since there is no line 488 in the updater script. I figured it was loading up the aroma script before the updater anyway.
[Android Software/Hacking General [Developers Only]] Robobob1221:
[MENTION=2543015]cajunflavoredbob[/MENTION]

Line 116 you're missing a ')' at the end of the line before the semi colon

set_progress(0.10;
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
ARRRRGH! lol. Thank you!

Is there a simple way to check for those errors in Notepad++? From the looks of it, it doesn't appear that the error log in recovery is worth a crap at locating the errors. I saw it failed on line 488, so I assumed it must be the aroma-config since my updater script did not have that many lines.
[Android Software/Hacking General [Developers Only]] Robobob1221:
Your updater did have 488 lines, the last was the set_progress, line 488. The one you posted did at least.

I dunno if there is a plugin that could do that for you.
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Well, either way, I'm very grateful.
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
I'm now getting the following message in recovery.log.

Installing '/sdcard/Download/Aroma_v2.0_test15.zip'...
Checking for MD5 file...
I:Cannot find file /sdcard/Download/Aroma_v2.0_test15.zip.md5
Skipping MD5 check: no MD5 file found.
[MENTION=4368820]unm[/MENTION]ounting devices
about to run program [/sbin/busybox] with 3 args
umount: can't umount /system: Invalid argument
run_program: child exited with status 1
about to run program [/sbin/busybox] with 3 args
script aborted: file_getprop: failed to stat "/tmp/aroma/misc.prop": No such file or directory
file_getprop: failed to stat "/tmp/aroma/misc.prop": No such file or directory
E:Error executing updater binary in zip '/sdcard/Download/Aroma_v2.0_test15.zip'
Error flashing zip '/sdcard/Download/Aroma_v2.0_test15.zip'

Does this actually mean it's an error with the updater binary file or something different?
[Android Software/Hacking General [Developers Only]] RoryB:
It has been a while since I edited one for MortScript, but if all you want is a way to check your ( is closed by a ) then set the language to lua, VHDL or verilog
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
I remember the days of mortscript and lua editing... Good tip.
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Anyone know the answer to this one? I'm stumped. I replaced the updater binary with one of a working aroma zip, but still no dice.
[Android Software/Hacking General [Developers Only]] Harbir:
There are many problem (both update and aroma error are present ) please paste ur upadte script and aroma .confi so we all can have a look ;)
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
I appreciate the help. The files are attached in post 843, a few posts back.
[Android Software/Hacking General [Developers Only]] Harbir:
kk

error

change to

correct

these are invalid arguments

[COLOR="Red"]run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");[/COLOR]

valid argument

[COLOR="Blue"]unmount("/system");
unmount("/cache");
unmount("/data");[/COLOR]

and aroma to aroma-data

[COLOR="Red"]file_getprop("/tmp/aroma/misc.prop","selected.1") == "1"[/COLOR]

to

[COLOR="Blue"]file_getprop("/tmp/aroma-data/misc.prop","selected.1") == "1"[/COLOR]

try and report ;)
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Made the suggested changes. Now the recovery.log simply says "Unable to open zip file".
[Android Software/Hacking General [Developers Only]] Harbir:
can u past the log file content here??
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Sure. That's literally all it says now. Compiled the zip four times.

The zip prior to this one was working fine without the changes you previously suggested. I think I may end up just adding things one by one from the last fully working aroma version I have until it breaks.

Finished running boot script.
I:Copying file /cache/recovery/log to /cache/recovery/last_log
I:Attempt to load settings from settings file...
I:Loading settings from '/sdcard/TWRP/.twrps'.
I:Backup folder set to '/sdcard/TWRP/BACKUPS/ba4a59c6'
I:Version number saved to '/cache/recovery/.version'
I:Switching packages (TWRP)
I:Set page: 'mount'
I:Set page: 'usb_mount'
I:Set page: 'usb_umount'
Updating partition details...
Updating partition details...
Updating partition details...
I:Unmounting main partitions...
I:Set page: 'mount'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
[COLOR="Red"]E:Unable to open zip file.
Error flashing zip '/sdcard/Download/Aroma_v2.0_test16.zip'[/COLOR]
Updating partition details...
I:Set page: 'flash_done'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'confirm_action'
I:Set page: 'action_page'
I:Copying file /tmp/recovery.log to /sdcard/recovery.log
[Android Software/Hacking General [Developers Only]] Harbir:
Strange error never see like this before .

Upload the new aroma .zip:confused:

Let me see

Another Q when do u see this error in recovery or this error is see in aroma during install process .?
[Android Software/Hacking General [Developers Only]] Robobob1221:
Did you set the zip with zero compression?
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
The full zip is about 400MB, so if you really want a look at it, I'll post a link once I'm off work.

Yes.
[Android Software/Hacking General [Developers Only]] Robobob1221:
Sorry, just to confirm which update-binary did you replace?
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
There's only one in the zip. If you mean the update-binary-installer file, that, like the update-binary, has been the same through many, many fully working zips.
[Android Software/Hacking General [Developers Only]] Robobob1221:
Just checking your config, you got a main.prop but no reference in your updater-script.

You could try putting those in before your misc.prop
[Android Software/Hacking General [Developers Only]] ai6908:
How do I calibrate my touch screen? I tired a few that was mentioned in other posts...but i am not getting any good results. I am trying to calibrate for Moto Atrix HD.

PS: I dont see a Menu option when I run the AROMA!
[Android Software/Hacking General [Developers Only]] Harbir:
i only require the META-INF folder not the rom ;)

u can use this command at the top of aroma

calibtool("");
[Android Software/Hacking General [Developers Only]] willtryall:
Hi

have 2 questions

first:

want to use "if then" or "if else" but don´t know how

samplecode

selectbox(
"Choose Mods",
"icons/personalize",
"1.prop",

"First Mod", "", 2, #-- Group 1. key = "selected.1"
"Yes", "", 0, #-- selected.1 = 1
"No", "", 0 #-- selected.1 = 2
);

"Choose Mods",
"icons/personalize",
"2.prop",

"Second Mod", "", 2, #-- Group 1. key = "selected.1"
"Yes", "", 0, #-- selected.1 = 1
"No", "", 0 #-- selected.1 = 2
);

The question: if I choose "Yes" in First Mod, i don´t wan´t that aroma ask for the second / third mod

I think i have to change this just in the aroma-config (not in updater-script)

my 2nd Question:

i use in aroma the splash function for the Accuweather Widget (as example)

example:

if prop("accu.prop","selected.1")=="1" then
splash(3000, "splash/accu1");
splash(3000, "splash/accu1_1");
endif;

if prop("accu.prop","selected.1")=="2" then
splash(3000, "splash/accu2");
endif;

if I go back, because i want to choose another Accuweather Widget, aroma hangs..

so I have to pull out the battery

THX for solutions & as usual SRY for my bad english

TRIBUTE to google Translate xD
[Android Software/Hacking General [Developers Only]] ai6908:
Here is how I have it, but it doesnt run...

### Credits to:
#
# Copyright (C) 2011 Ahmad Amarullah ( http://amarullz.com/ )
#
#
#
# AROMA Installer 2.56 - ROM Cleaner
# (c) 2011-2012 by Ahmad Amarullah
# amarullz - xda-developers
# http://www.amarullz.com/
#
# Binary Version : 2.56
# Binary Codename : Edelweis
#
#
ini_set("force_colorspace","rgba");
###################################################################################################
#
#
#

#
# Show Calibrating Tools Directly before anything
#
#--- Remove this calibtool if you already know the calibrate data
calibtool("");
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Zipped up for you.
[Android Software/Hacking General [Developers Only]] Harbir:
for 1 st Q u can do this

menubox(
"Mods",
"Please select:",
"@install",
"mods.prop",

"mod 1","","@apps",
"mod 2","","@apps",
"mod 3","","@apps"
);

if prop("mod.prop","selected") == "1" then
selectbox(
"mod 1",
"Please select:",
"@install",
"mod1.prop",

"yes","(Recommended)",1,
"no","",0
);
endif;

if prop("mod.prop","selected") == "2" then
selectbox(
"mod 2",
"Please select:",
"@install",
"mod2.prop",

"yes","(Recommended)",1,
"no","",0
);
endif;

if prop("mod.prop","selected") == "3" then
selectbox(
"mod 3",
"Please select:",
"@install",
"mod3.prop",

"yes","(Recommended)",1,
"no","",0
);
endif;

update script should be corrected accordingly

and 2 nd Q

yes it a aroma bug as aroma is not meant for custom back and forth :D

It should start at the first start of aroma ,if not then try pressing menu button of phone and u will see a Calibrating button

Ur Aroma is working tested by me ,u must be doing something wrong :confused:
[Android Software/Hacking General [Developers Only]] epicsilence:
I want to edit and delete build.prop and default.prop lines from edify. ..like modifying existing lines..i do know about adding lines!!...thanks for help
[Android Software/Hacking General [Developers Only]] Stephen:
Hi Would somebody mind having a look at my installer script for me? I have been looking at it too long now and the words are starting to drain down the screen!

I would like around 3 pages of options for the users to choose from.

Installer starts and lets me select the options I want. For some reason the first option in each group is checked which I don't want. The second issue is when it goes to install it starts the process then skips everything and finishes.

I have only started learning aroma a couple of days a go so still very new to this.

I get installer status 6 at the end
[Android Software/Hacking General [Developers Only]] tp2215:
Hey guys, maybe someone could help me. I have been trying to get aroma setup and have it almost the way I like. However I get through the hole process and at the installer screen, the updater-script doesnt show up at all. It just shows a blank screen and then goes right to the finished successfully screen. After looking through the thread, I saw some people who had similar issues but no real answers that would solve mine.

Anway, this is from the aroma-config..

setvar("retstatus",
install(
"Installing",

"<b>"+ini_get("rom_name")+"</b> is being installed.\n\n"+
"Please wait while the installation wizard installs <b>"+ini_get("rom_name")+
"</b>. This may take several minutes.",

"@Install",

"The installation wizard has successfully installed <b>"+ini_get("rom_name")+
"</b>. Press Next to continue."
)
);

##
#
# Next Button is "Finish"
#
ini_set("text_next", "Finish");

and the beggining of the updater-script

set_progress(0.01);
package_extract_dir("prep", "/tmp");
set_perm_recursive(0, 0, 0755, 0755, "/tmp");
run_program("/tmp/fsck.ext4", "-fy", "/dev/block/mmcblk0p14");
run_program("/tmp/mkfs.ext4", "-O", "^ext_attr,^has_journal,^huge_file", "-L", "SYSTEM", "-b", "4096", "-m", "0", "-F", "/dev/block/mmcblk0p14");
run_program("/tmp/tune2fs.ext4", "-c", "1", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p14");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p14");
run_program("/tmp/fsck.ext4", "-fy", "/dev/block/mmcblk0p17");
run_program("/tmp/mkfs.ext4", "-O", "^ext_attr,^has_journal,^huge_file", "-L", "CACHE", "-b", "4096", "-m", "0", "-F", "/dev/block/mmcblk0p17");
run_program("/tmp/tune2fs.ext4", "-c", "1", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p17");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p17");

ui_print(" ");
show_progress(1.0, 3500);
ui_print("Preparing To B-Load...");
ui_print("@ B-Loading...");

package_extract_file("check_data_app", "/tmp/check_data_app");
set_perm(0, 0, 0777, "/tmp/check_data_app");
run_program("/tmp/check_data_app");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("data", "/data");
package_extract_dir("system", "/system");
package_extract_dir("aroma/tools/installtools","/tmp");
set_perm(0, 0, 0755, "/tmp/rehpyc.sh");
set_perm(0, 0, 0755, "/tmp/zip");

set_progress(0.7);

ui_print("@Installing Customize Packages");

Any help would be greatly appreciated!
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
I couldn't figure out why it wasn't working for me, so I redid all my changes step by step from my last working aroma zip, and I've got it going now. Thanks for the help.
[Android Software/Hacking General [Developers Only]] Harbir:
save the logs from the aroma and past it here;)

---------- Post added at 07:02 PM ---------- Previous post was at 06:46 PM ----------

sir i have fix ur aroma problem

link- http://d-h.st/rim use this one

change 1 to 0

and for the install process (update script problem) i need the aroma logs ,just save logs from the aroma at the time of installation period ;)

EDIT- I HAVE FOUND THE PROBLEM

change

set_progress(1.2);
if
file_getprop("/tmp/aroma/theme.prop","item.7.2") == "1"
then
ui_print("Extracting bootup sound to SD card");
package_extract_dir("bootanimation/sound", "/sdcard/animations");

to

set_progress(1.2);
if
file_getprop("/tmp/aroma/theme.prop","item.7.2") == "1"
then
ui_print("Extracting bootup sound to SD card");
package_extract_dir("bootanimation/sound", "/sdcard/animations");
[COLOR="Red"]endif;[/COLOR]
[Android Software/Hacking General [Developers Only]] Stephen:
Trying it now thanks very much! Would have never spotted the missing endif;!!!!
[Android Software/Hacking General [Developers Only]] Harbir:
Glade I helped sir ;)
[Android Software/Hacking General [Developers Only]] Stephen:
If you wouldn't mind again. Added a lot more options in to the installer and after I fixed it the last time it is now skipping the install again. Really cant see anything wrong with the updater script.

Also if I select everything on the first page of options I get some choices selected in the 2nd page. If I select nothing on the first the second page is all unchecked.

Also when I look at the logs all I get is [NUL][NUL] repeated. Is that normal for the aroma logs?

I now get status 0 on the installer.

Edit got the logs

Edit 2 it is something to do with how I setup the second page of options. It is messing around with the first page. If I have it all in one page it seems to work, but I would like to split up the options and not have one big long list.

EDIT 3 rebuilt from ground up and by pure luck more than skill I got it working the way I want!
[Android Software/Hacking General [Developers Only]] Harbir:
Fixed ur aroma and the problem

link http://d-h.st/a3Y
[Android Software/Hacking General [Developers Only]] ValoXis:
Hi guys. :) I've tried to install my ROM with the installer but when I touch "Install Now", the installation doesn't start. The log is empty and the installer (or recovery) doesn't give me errors. I've tried to use the solution on #4 Post but without success. How do I solve it? Thanks. :) (Sorry for my english)

EDIT:

Solved! Sorry.
[Android Software/Hacking General [Developers Only]] Harbir:
paste the logs and aroma confi and update script also here :D so we can have a look
[Android Software/Hacking General [Developers Only]] usaff22:
Hi everyone, I have the following code in my updater script:

ifelse(
file_getprop("ro.product.device") == "ville",
(
ui_print("Great! You have the correct device - HTC One S");

),
(
ui_print("Woah! Hold on a sec - you don't have a One S. This ROM isn't compatible with your device.");

)
);

If the device is not a One S, can I make the script abort after the "not compatible" message?

Thanks.
[Android Software/Hacking General [Developers Only]] Harbir:
can say about update script but i use this feature in the aroma.confi

u can use this

if
property_get("ro.product.device") == "ville"
then
writetmpfile("ID.prop","selected.0=1\n");
else
writetmpfile("ID.prop","selected.0=2\n");
endif;

if prop("ID.prop","selected.0")=="1" then #(ID CHECK)
alert (
"SUPPORTED",
"Great! You have the correct device - HTC One S",
"@alert",
"OK"
);
#rest of aroma work
endif;

if prop("ID.prop","selected.0")=="2" then #(ID CHECK)
alert (
" NON SUPPORTED",
"Woah! Hold on a sec - you don't have a One S. This ROM isn't compatible with your device.",
"@alert",
"EXIT AROMA"
);
exit("");
endif;

USING AROMA TO CHECK IS THE BEST THEN UPDATE SCRIPT ;)
[Android Software/Hacking General [Developers Only]] usaff22:
Hi,

I edited my updater-script, I might switch to Aroma soon but need to learn the basics of Aroma first, I know edify much better ;)

Do you think this would work?

Thanks.

ifelse(
file_getprop("ro.product.device") == "ville" || file_getprop("ro.board.platform") == "msm8960",
(
ui_print("Great! You have the correct device - HTC One S");

),
(
ui_print("Woah! Hold on a sec - you don't have a One S.);
ui_print("This ROM isn't compatible with your device.");
ui_print("Install aborted.");
abort();

)
);
[Android Software/Hacking General [Developers Only]] Harbir:
Can't say about that never used it .

U can try it by changing ville to other name and see if the installation aborts.
[Android Software/Hacking General [Developers Only]] :
Sorry If I'm posting in the wrong place, I'm not sure if there is a standalone thread for problems.

Anyway, after making all the needed changes, I decided to test.

I added the Aroma Installer to my ROM and, when installing via CWM I received the following error:

SYNTAX ERROR!!! aroma-config on line 345 col 1
E: Error in /sdcard/C6603_TuRdZzROM.zip
(Status 1)
Installation Aborted

I then went to check line 345...

Then there was the problem; There was no line 345, my last line was 344.

Surely it's impossible to get an error on a line that doesn't exist?!

I have also uploaded my aroma-config.
[Android Software/Hacking General [Developers Only]] Patrics83:
Line 241:

"Video", "Default Sony Video Player", 1, #-- item.2.2);

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#

Change it to:

"Video", "Default Sony Video Player", 1 #-- item.2.2);

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#

);

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] :
Thanks, trying it now...

Nope, still getting the same error (problem with line 346, the line AFTER the last line).
[Android Software/Hacking General [Developers Only]] Patrics83:
Mmmh I had too many beers tonight :beer: :)

You have several missing ");" in your aroma-config

Check them all and it will work ;)

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] :
I've made some progress, But I'm now receiving an error about line 208, col(umn) 2.

But I'm almost certain that that line and the process it plays a part in is correct...

Anyway, here's my aroma-config!
[Android Software/Hacking General [Developers Only]] Patrics83:
Try this one :)
[Android Software/Hacking General [Developers Only]] :
Yup, this is what I originally based it on...

May have to restart...
[Android Software/Hacking General [Developers Only]] Patrics83:
Uhm, what do you mean?

That's your aroma-config but without errors...
[Android Software/Hacking General [Developers Only]] :
Are you sure? Maybe I looked at the wrong file in my Downloads Folder...

EDIT: I did. :D
[Android Software/Hacking General [Developers Only]] Patrics83:
LOL

Good luck! :D
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
How would I write the script in the updater-binary if I want a file to be copied over only if the same named file already exists?

I'm trying to make my aroma zip work with both odex and deodex ROMs, so I would like to be able to have the script say "if /system/app/phonesky.odex exists, overwrite with odex/googleplay/phonesky.odex".

Is this possible, or would it be better to just have the odex as a selectable option at the beginning of the zip, and write that to an odex.prop?
[Android Software/Hacking General [Developers Only]] RagzDog:
fixed all :)
[Android Software/Hacking General [Developers Only]] Moriarty82:
EDIT: Issue Fixed :victory:
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Is it possible to change the font color in aroma for certain lines of text?