yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] franzyroy:
I think you should test few modifications in the original 'Aroma installer' before to make anything. Seriously, you have seen this type of script to work somewhere? it looks like nothing. I do not want to be mean... trying to do something more structured! Like the script of Aroma (aroma-config & updater-script).
[Android Software/Hacking General [Developers Only]] Harbir:
please explain the problem in brief ..........what error , what is shown
[Android Software/Hacking General [Developers Only]] franzyroy:
Read these scripts, you'll understand why I said that (above). a little of structure, this helps to find the issues.
[Android Software/Hacking General [Developers Only]] nimo1996:
error

##

#

# AROMA Installer - based on the Mod-installer by KamikaZeeFu

# (c) 2011 by Ahmad Amarullah

# amarullz - xda-developers

# http://www.amarullz.com/

theme("sense");

calibrate("0.9263","21","0.9944","1","yes");

viewbox(

"<#999>Welcome</#>",

"\n\n\n\n\n"+

" <#999>You're about to flash</#>\n"+

" <#999>ICYBLAST</#>\n\n"+

"\n\n\n"+

"<#999>Press Next to continue the installation...</#>",

"icons/info"

);

textbox(

#-- Title

"ICYBLAST ROM",

#-- Subtitle

"FEATURES",

#-- Icon

"@update",

#-- Arg 4

resread("changelogs.txt")

);

selectbox(

"LAUNCHER",

"Pick a launcher",

"icons/apps",

"launcher.prop",

"Home", "v3.20 ANDROID: 2.0+",0,

"Nova launcher", "v1.2.8 ANDROID: 2.2+",0,

);

appendvar("installmsg","\n\nPlease Select Installation Type Below:");

install(

"Installing",

"<#999>Now flashing ICYBLAST ROM...\nPlease Wait...</#>",

"icons/install"

);

# Set Next Text fo Finish

ini_set("text_next", "Finish");

viewbox(

"Installation Completed",

"<#080>Congratulations...</#>\n\n"+

"<#999>Your installation is now complete\n\n</#>"+

"<#999>Press Finish, reboot and enjoy.\n\nThanks</#>",

"icons/info"

);

showing error :(
[Android Software/Hacking General [Developers Only]] Harbir:
Use this one I have corrected it

##
#
# AROMA Installer - based on the Mod-installer by KamikaZeeFu
# (c) 2011 by Ahmad Amarullah
# amarullz - xda-developers
# [url]http://www.amarullz.com/[/url]
theme("sense");

calibrate("0.9263","21","0.9944","1","yes");

viewbox(
"<#999>Welcome</#>",
"\n\n\n\n\n"+
" <#999>You're about to flash</#>\n"+
" <#999>ICYBLAST</#>\n\n"+
"\n\n\n"+
"<#999>Press Next to continue the installation...</#>",
"icons/info"
);

textbox(
#-- Title
"ICYBLAST ROM",

#-- Subtitle
"FEATURES",

#-- Icon
"@update",

#-- Arg 4
resread("changelogs.txt")
);

selectbox(
"LAUNCHER",
"Pick a launcher",
"icons/apps",
"launcher.prop",

"Home", "v3.20 ANDROID: 2.0+",0,
"Nova launcher", "v1.2.8 ANDROID: 2.2+",0

);

appendvar("installmsg","\n\nPlease Select Installation Type Below:");

install(
"Installing",
"<#999>Now flashing ICYBLAST ROM...\nPlease Wait...</#>",
"icons/install"
);

# Set Next Text fo Finish
ini_set("text_next", "Finish");

viewbox(
"Installation Completed",
"<#080>Congratulations...</#>\n\n"+
"<#999>Your installation is now complete\n\n</#>"+
"<#999>Press Finish, reboot and enjoy.\n\nThanks</#>",
"icons/info"
);
[Android Software/Hacking General [Developers Only]] lesscro:
For info and learn a it :

"Nova launcher", "v1.2.8 ANDROID: 2.2+",0[COLOR="Red"][SIZE="5"],[/SIZE][/COLOR]

End of selectbox argument, then last choice does not have a "," @ end... :laugh:
[Android Software/Hacking General [Developers Only]] nimo1996:
i did it right even the select box came but what ever i select in it both of them gets installed :confused: how :rolleyes: and thx for your help
[Android Software/Hacking General [Developers Only]] Harbir:
please upload the update sript and aroma .confi....so we can take look
[Android Software/Hacking General [Developers Only]] nimo1996:
hey guz please see what is wrong in my above post i cant figure it out i need it to be done
[Android Software/Hacking General [Developers Only]] kevinrocksman:
just because u need it done saying u need it done doesnt make it any faster...
[Android Software/Hacking General [Developers Only]] Harbir:
try changing this to

"Home", "v3.20 ANDROID: 2.0+",1,
"Nova launcher", "v1.2.8 ANDROID: 2.2+",0
[Android Software/Hacking General [Developers Only]] bawffg85:
Thanks,this is very helpful
[Android Software/Hacking General [Developers Only]] franzyroy:
Replace that:

"Installation", "Install Xperia Ultimate HD", "@install"[COLOR="Red"],[/COLOR] #-- selected = 1
);

by

"Installation", "Install Xperia Ultimate HD", "@install" #-- selected = 1
);

and

"Unlocked Bootloader", "Select This If Your Bootloader is Unlocked", 0[COLOR="Red"],[/COLOR] #-- selected.7 = 2

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

by

"Unlocked Bootloader", "Select This If Your Bootloader is Unlocked", 0 #-- selected.7 = 2

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

Not of comma before parenthesis of end!
[Android Software/Hacking General [Developers Only]] vishal_android freak:
Everything else is correct??
[Android Software/Hacking General [Developers Only]] Harbir:
yes
[Android Software/Hacking General [Developers Only]] franzyroy:
Like that it is said! ;)
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Anyone know what's going on here? Aroma works flawlessly, but does not actually install anything at all. It gets to the install window, and just says finished without doing anything. Log is below. META folder attached.

AROMA INSTALLER version 2.56
(c) 2012 by amarullz xda-developers

ROM Name : Midnight Inverts
ROM Version : v2.0
ROM Author : cajunflavoredbob
Device : 4.2.x Only
Start at : Thu Jan 1 19:00:36 1970

line 208 col 13: syntax error, unexpected STRING, expecting $end
1 parse errors

Installer Error (Status 6)

End at : Thu Jan 1 19:00:36 1970
[Android Software/Hacking General [Developers Only]] Jayd3n_420:
SYNTAX ERROR!!! aroma-config on line 182 col 7 (status 1) the only thing on that line is a endif;. i did try removing it but gave the same error but in line 181. how can i fix this?

View attachment aroma-config.zip
[Android Software/Hacking General [Developers Only]] vishal_android freak:
+1 similar issue.. :(
[Android Software/Hacking General [Developers Only]] Mukiai:
Have you tried with an empty line at the end??

And line 162 you just have " ) ". Don't you have to put " ); " instead?
[Android Software/Hacking General [Developers Only]] EAGLEBOOY:
+1 same problem here

hi i need help

i know how to add options and items

but when i install it from cwm , it get me error

i don't know why

please help me , please

here is my aroma :http://d-h.st/e95

SYNTAX ERROR!!! aroma-config on line 240 col 17

E:Error in /sdcard/....zip

(Status 1)

installation aborted.
[Android Software/Hacking General [Developers Only]] Harbir:
change in 238

this

"BRAVIA® Engine 2", "use more battery", 1 #-- selected.6 = 2

to

"BRAVIA® Engine 2", "use more battery", 1[COLOR="Red"],[/COLOR] #-- selected.6 = 2

---------- Post added at 09:24 PM ---------- Previous post was at 09:16 PM ----------

try removing

this

ini_set("text_next", "Next >");

[COLOR="Red"]ini_set("text_next", "Next >");[/COLOR]

) is correct & this will not help

its a update script problem .....

i would suggest u to make it again without copy the present one make it again (as there could be some problem )
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Thanks. Is there any way to know right away which script is giving trouble? I mean, in this case, I looked in the aroma config first, and saw a blank line on that row. The update script has a line there updating the status bar position, so I figured that was it, but I saw no errors around that line or column.
[Android Software/Hacking General [Developers Only]] Harbir:
there could be a way but i don't know ?? that happens to me as well sometimes and that the only solution i have got and it work :D
[Android Software/Hacking General [Developers Only]] cajunflavoredbob:
Got it. Thanks for the info. That does suck though, since this script is so darn long. Good thing I'm off for the rest of the day.
[Android Software/Hacking General [Developers Only]] EAGLEBOOY:
hi , thanks for your help

now i get another error

SYNTAX ERROR!!! aroma-config on line 245 col 2

E:Error in /sdcard/....zip

(Status 1)

installation aborted.

here is my aroma(same as above):http://d-h.st/e95

can you say me how can i find lines and cols?

i use notepad++

line 245 in notepad++ is just this(below):

);
[Android Software/Hacking General [Developers Only]] Harbir:
u found the right line kk ;)

upload the new aroma.confi
[Android Software/Hacking General [Developers Only]] EAGLEBOOY:
ohhh, sorry

here is new one that i get error line 245 col 2

View attachment aroma-config.txt

but no different

about my previous problem (line240) you say me i should fix line 238 , why?

---edit---

ok ok ok , i understand

and now what is the problem for line 245 col 2?

i'm so sorry but this is my first aroma, please help
[Android Software/Hacking General [Developers Only]] Jayd3n_420:
Nope it didnt work it just moved the error up to line 181 col 7
[Android Software/Hacking General [Developers Only]] Jayd3n_420:
i fixed my problem i just re type the aroma-config out but now it wont install my Rom. i select what i want apps i want installed than press install and a progress bar came up and it said 0.00% and installing for a couple of secounds than goes. on the last page where you press Finnish its say blah blah blah installer status: 6. what is wrong??

View attachment META-INF.zip

View attachment JellyBolt.zip.log.txt

EDIT: in the log file it gives me this "line 265 col 6: syntax error, unexpected ENDIF, expecting $end 1 parse errors Installer Error (Status 6)". i went to that line and replace it with what they want and it still gives that error
[Android Software/Hacking General [Developers Only]] Harbir:
here is the solution

change

"ON", "use more battery", 0, #-- selected.7 = 2

to

"ON", "use more battery", 0[COLOR="Red"],[/COLOR] #-- selected.7 = 2

NO COMMA AFTER THAT LAST '0' remember ;)

the aroma only have total 165 no of lines ?? upload full META-INF zip
[Android Software/Hacking General [Developers Only]] Jayd3n_420:
I did in my last post and i think its not the aroma-config file that gives the error but the updater-script because there is endif on that line.
[Android Software/Hacking General [Developers Only]] Harbir:
kk

why have u put an 265 endif there not required
[Android Software/Hacking General [Developers Only]] EAGLEBOOY:
hi i want to apply a script with aroma but some of them applied but some of them not

what is the problem?

here is my aroma with scripts

View attachment EAGLEBOOY.zip

clear phase works good

but bravia 1 and bravia 2 and super stamina and buttons light on/off not works

what is wrong
[Android Software/Hacking General [Developers Only]] EAGLEBOOY:
please help

i just want to remove some lines from build.prop and add some line to build.prop with aroma

i want that if users want to change build.prop , they can just chose it
[Android Software/Hacking General [Developers Only]] MaxAndroided:
Hello can somebody helpe me finding the syntax issue I can´t find :confused:

I think my poste was in the wrong thread :(

here my problem with aroma updater-script :(:eek:

single post

Edit: my recovery.log and aroma.zip.log are both empty :(
[Android Software/Hacking General [Developers Only]] EAGLEBOOY:
hi

i need help

i search so much but can't find and can't understand anything because this is my first project for scripts

i can't understand scripts

here is my aroma:http://d-h.st/PJG

i have 3 selectable options in aroma for edit build.prop by scripts that Each have two options ,example:"yes" or "no" ,,,,,"bravia1"or"bravia2"

one of options apply successfully but others not success (clear phase works but bravia and super stamina not works)

after applying my mod , i can't see any change for bravia and super stamina

i want to remove lines and add new lines

i found these:

http://xdaforums.com/showpost.php?p=19093919&postcount=20

http://xdaforums.com/showpost.php?p=25966976&postcount=6
[Android Software/Hacking General [Developers Only]] Robobob1221:
You can just make copies of the build.prop with the changes, and have the updater delete the old one and replace it with the edited version.
[Android Software/Hacking General [Developers Only]] EAGLEBOOY:
hi

i need a script for edit build.prop

i want a script that change lines and add them if they don't exist

http://xdaforums.com/showpost.php?p=19093919&postcount=20

http://xdaforums.com/showpost.php?p=25977898&postcount=15

but i can't understand why they don't work

i find this way and this works good with gscript but not work from cwm

simple sed method:

#!/bin/bash

sed -i '/linetobereplaced/c\replacedline.' /system/build.prop
[Android Software/Hacking General [Developers Only]] Dr01nE:
Why not create the script for the line replacement and add it to the flash package and run it while flashing.?
[Android Software/Hacking General [Developers Only]] Harbir:
why dont u make an sh script to edit the built props

something like

#!/sbin/sh
echo " " >> /system/build.prop
echo "persist.sys.skin=com.htc.skin.xyz" >> /system/build.prop

done .......;)
[Android Software/Hacking General [Developers Only]] EAGLEBOOY:
thanks

my problem is solved already now
[Android Software/Hacking General [Developers Only]] Harbir:
good to hear i could have helped u but was very busy .....;)
[Android Software/Hacking General [Developers Only]] Harbir:
Why don't u make a animation folder and put ur animation there and flash it directly through update script to system/....?

I think aroma can't handle such big coding , that's why it when sometime reach a limit it gives an status error...
[Android Software/Hacking General [Developers Only]] demkantor:
Well these are multiple options to be applied, wouldn't I need aroma to choose the options or am I missing what you are saying?
[Android Software/Hacking General [Developers Only]] Harbir:
U have this error in the above line

set_perm_recursive() expects 4+ args, got -1094153152

This happen when u miss some (,) or something in that code set...

Can u explain ur problem in brief....
[Android Software/Hacking General [Developers Only]] demkantor:
well like i said it only happens sometimes. really strange issue at least im not seeing the error. so a common time this happens was like from the log posted above

this is from update script in this section

set_progress(0.2);

# ----------------------------------------------------------------------------------
# --------------------------------Shutdown Animation--------------------------------
# ----------------------------------------------------------------------------------

ui_print("@Installing Shutdown Animation");

# Shutdown Stock
# --------------
if (file_getprop("/tmp/aroma/shutdown_choices.prop", "selected.1")=="1") then
ui_print("Installing Stock Shutdown Animation");
package_extract_dir("system/media/video/shutdown-stock", "/system/media/video/shutdown");
set_perm_recursive(0, 0, 0644, "/system/media/video/shutdown");
endif;

# TV Off Animation
# ----------------
if (file_getprop("/tmp/aroma/shutdown_choices.prop", "selected.1")=="2") then
ui_print("Installing TV Off Shutdown Animation");
package_extract_dir("system/media/video/shutdown-tvoff", "/system/media/video/shutdown");
set_perm_recursive(0, 0, 0644, "/system/media/video/shutdown");
endif;

# Leave Shutdown Alone
# --------------------
if (file_getprop("/tmp/aroma/shutdown_choices.prop", "selected.1")=="3") then
ui_print("Not Going To Touch Your Shutdown Animation!");
endif;

set_progress(0.25);

this is aroma in this section

# -------------------------------------------
# Shutdown Animation choices using selectbox.
# -------------------------------------------
selectbox(
"Custom Shutdown Animations",
"Choose the Shutdown Animation to install to your device",
"@personalize",

"shutdown_choices.prop",

#------------------------------------[ selectbox With Groups ]---------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#

"Shutdown Animation Choices",	"",	2, #-- Group 1. key = "selected.1"
"Stock SK4G",	"",	0, #-- selected.1 = 1
"Tv Off",	"",	0, #-- selected.1 = 2
"Leave It Alone!",	"Not Touching it!",	1 #-- selected.1 = 3
);
appendvar("installer_title", "\n\n<b>Shutdown Animation Choices</b>");
appendvar("installer_title", iif(prop("shutdown_choices.prop", "selected.1")=="1", "- Stock SK4G ", ""));
appendvar("installer_title", iif(prop("shutdown_choices.prop", "selected.1")=="2", "- TV Off ", ""));
appendvar("installer_title", iif(prop("shutdown_choices.prop", "selected.1")=="3", "- Leave It Alone! ", ""));
[Android Software/Hacking General [Developers Only]] Harbir:
Hmm that's look alright to me...

I also used a custom or stock shutdown Animation selection on a rom once, will see what u have done as compared to mine.....
[Android Software/Hacking General [Developers Only]] demkantor:
yeah this one is really stumping me cant see why aroma jumps ahead and begins next command before previous is finished. also dont see why it only happens sometimes...

weird thing is if i flash each piece of the installer separate it works always, if i choose from every option this occasionally happens.

Im starting to think it is the phone, or really the recovery as i have similar scripts in other phones that never once have had this issue.

yeah any help would be awesome though!
[Android Software/Hacking General [Developers Only]] RagzDog:
hi guys i've a problem with aroma .....

the aroma config wirk fine and the rom is installed succesfully !

but at reboot the phone remain on "samsung galaxy S3"

i saved an aroma log but i lose it. I remember that the error was in smilinkin that failed. Thanks for the help ;)
[Android Software/Hacking General [Developers Only]] grzesdroid:
if you want to save the log, save it, but do not reset the phone just go to revovery

SGS III / Grisza Monster Beam v8.1 / Perseus 36 / JKay deluxe framework 14.93.4 / JB Domination / Tapatalk 2 / Swype
[Android Software/Hacking General [Developers Only]] RagzDog:
I click to save a lot of time but it comes not saved !! I save it on extsd ! Can u halp me ?

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] grzesdroid:
I always do this:

Save logs (show the window to confirm), I click finish, and the last screen uncheck "reboot now" and the phone goes to recovery, reboot the phone in recovery to the system. Works for me that way

SGS III / Grisza Monster Beam v8.1 / Perseus 36 / JKay deluxe framework 14.93.4 / JB Domination / Tapatalk 2 / Swype
[Android Software/Hacking General [Developers Only]] RagzDog:
ahahah now i saved. Why if i check on reboot the log there isn't ?

this is aroma log ....
[Android Software/Hacking General [Developers Only]] grzesdroid:
I do not know ;)

SGS III / Grisza Monster Beam v8.1 / Perseus 36 / JKay deluxe framework 14.93.4 / JB Domination / Tapatalk 2 / Swype
[Android Software/Hacking General [Developers Only]] RagzDog:
can u control it ??

nice rom the grisza rom :laugh: the mine in RagzRom :o
[Android Software/Hacking General [Developers Only]] grzesdroid:
You can add to the updater-script command to automatically create logs

Yes I saw your Rom and I have to say that very good Rom

SGS III / Grisza Monster Beam v8.1 / Perseus 36 / JKay deluxe framework 14.93.4 / JB Domination / Tapatalk 2 / Swype
[Android Software/Hacking General [Developers Only]] RagzDog:
i will try it ! when i will finish my release .

have you found the error in my aroma log ? i asked in the correct thread ?
[Android Software/Hacking General [Developers Only]] grzesdroid:
check carefully for a moment and let you know

Edit:

Do you have problems with the "mount" and "symlink"

SGS III / Grisza Monster Beam v8.1 / Perseus 36 / JKay deluxe framework 14.93.4 / JB Domination / Tapatalk 2 / Swype
[Android Software/Hacking General [Developers Only]] ai6908:
I have been searching to find answer for this, but I dont think I got lucky yet! Maybe someone here can help me with it...

How do I display file names when copying folders? In the sense, I am copying a folder from SD Card to the device, with files in it. I want to display as a message what files are copied. The files are not the same everytime, so I should have the ability to read them on the fly.

Is it possible with aroma?
[Android Software/Hacking General [Developers Only]] Волк:
Check the busybox man page. I don't think that with the busybox distro of cp it's possible to get a verbose out put, I'm busy trying to get the hang of AROMA but I have a copy of cp which may or may not work with android, which I took from a Debian install from BotBrew.

Edit:

Well, I'm at a loss, I've copied and pasted code exactly from the samples and modified only the info without changing the layout. I get to the install screen, tell it to install and it acts like it's going to do something then doesn't. I even pasted in a command which i know would take a while and nothing happened. The recovery log doesn't show any errors nor does the AROMA log.

I can't find detailed info for the install UI on this thread or the other.
[Android Software/Hacking General [Developers Only]] Dblfstr:
In your updater script, you do not tell the system what to do. The only commands you have are print lines :ui_print("This is the single-wipe"):

I imagine you you see that output.

This is the single wipe.

OR

This is the dual-wipe.

____________________________________________

Sorry if I am telling what you already know.
[Android Software/Hacking General [Developers Only]] Волк:
I don't understand, in the sample updater-script you have lines such as these:

if
file_getprop("/tmp/aroma/customize.prop","item.1.3") == "1"
then
ui_print("@ Installing AdobeFlashPlayer");
run_program("/tmp/aroma/sleep","300");
endif;

run_program("/sbin/busybox", "cp", "/tmp/recovery.log", "/sdcard/log.log");

Should be no different and I also don't see the text it's supposed to print.
[Android Software/Hacking General [Developers Only]] Dblfstr:
What do you see when you run it? Exactly what you see.

***************************************************

In your aroma you have:

Calibrate

Fontresload

A selectbox with two options

-Single Wipe

-Dual Wipe

Install nullifier test

Finish

In your updater-script (which is where I think all the code belongs to tell the updater what actions to take based on what is selected from the aroma-config).

if single wipe is selected, print "This is a single-wipe"

if dual wipe is selected, print "This is the dual-wipe"

Run_program to copy recovery.log to sdcard.

*************************************************************************

Are you getting any errors?

Is your intent to ONLY show text in this script?

Is the recovery.log copied?

Edit:

Also, I think, in the code:

if
file_getprop("/tmp/aroma/test.prop","selected") == "1"
then
ui_print("This is the single-wipe");
endif;

"selected" should be "selected.0"
[Android Software/Hacking General [Developers Only]] Dblfstr:
I have a question:

what is run_program("/tmp/aroma/sleep","500");

It is used a lot in the sample script, it seems that is is used when an item is selected to be installed? So What is sleep?
[Android Software/Hacking General [Developers Only]] Robobob1221:
I think that rather than running an actual command

i.e package_extract_dir("")

Just the installer waits 5ms until next instruction. Its an idle command

Its a dummy run of the installer

If you run the aroma installer as is it looks like things are being installed when in fact they aren't.