yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] [] AL []:
Sorry to barge in; I haven't read all the 25 pages of this thread nor even tried your installer yet..

But a question that came to my mind after reading the OP is: can/could it easily output some sort installation-specific config file?

I mean, such a file could give valuable extra info to the devs when end-users submit ROM bug reports. That file joined to a logcat or desmeg could have some debugging added-value maybe...-as opposed to the "normal" full zip installation- ...again, it's just an idea...

Thanks for your work.

Edit:

If I understand it right, the screenshot attached shows a changelog file (of your installer version) saving/sharing option screen; same with a rom installation config file would be nice...
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
@amarullz

Sorry for my language, but this **** rocks :)

Only 2 days ago I was thinking if there might be some way of making different installation from one ZIP based on users choice.

Only one thing to report. On my Desire the buttons to not respond very well. I'm talking about the Back and Next buttons. I have to press them multiple times in order for them to respond. All the rest of the selections, scrolling etc. responds fine. Just not the two buttons.

And just one more time. Great job :)
[Android Software/Hacking General [Developers Only]] amarullz:
It works well if you calibrating it carefully... I am also desire user. AROMA Installer default calibration value is "8","20","8","20" and it was HTC Desire calibration data. You can pass the calibration by pressing menu key in calibration tools then you will get the touch is accurate... :D
[Android Software/Hacking General [Developers Only]] Akishima:
Wow,, You make us so proud man!

I use this in one of the custom ROM that I used.

lanjutkan kang! :D
[Android Software/Hacking General [Developers Only]] ciscogee:
Could I get some pointers on how to edit the functions to read what rom and mods to install. And asking the where would dif mod zip go etc...

Thanks for this its great! Touch in cwm 2. 5 :)
[Android Software/Hacking General [Developers Only]] caloyzter:
You're a f**kin' GENIUS man! Welcome to new era of flashing! :)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
@amarullz

I have one idea for your Installer. However it will properly require a big deal of work, so I am not sure how interested you will be. Not even sure it will be possible without implementing functions.

An option to make a loop in the aroma script.

By this I mean the possibility to jump to an earlier point in the script.

F.eks. If a user select something, then you check something else, give an alert, and jump the user back to the prev. select.

Hope this makes sense?

Instead of functions, maybe something like anchors from HTML?
[Android Software/Hacking General [Developers Only]] TweetyPeety:
NEW Version of Pikachu Edition with Aroma Installer in 3 Languages during the installation. Choose between German, English or Spanish

Amarullaz you are AWESOME man, love your AROMA Installer

http://www.custom-android.de/roms/miui-pikachu-edition-rom/

thanks
[Android Software/Hacking General [Developers Only]] dtbinh:
Hi amarullz!

Could you helpme to put your Aroma Installer to my ROM for Sensation XE?

Thank you!
[Android Software/Hacking General [Developers Only]] NRGZ28:
Why dont you read his instructions and do it yourself ?
[Android Software/Hacking General [Developers Only]] FBis251:
+1. All ROM chefs should learn at least a little edify.
[Android Software/Hacking General [Developers Only]] avss:
Mainly because its not so hard to understand...not at all :)
[Android Software/Hacking General [Developers Only]] ciscogee:
Could u point me in the direction to understanding how to write it?
[Android Software/Hacking General [Developers Only]] Namaless:
Thanks for your work.. I tried aroma installer in my rom but I found one problem with touchscreen.. for choose need to touch with more power... I calibrate but is not good.

My device is Samsung I9003 and this is calibration data:

calibrate("0.8835","39","0.9660","19");

I have already tried alternative driver.

Thanks.
[Android Software/Hacking General [Developers Only]] amarullz:
Try with the latest nightly:

http://www.amarullz.com/_downloads/aroma-nighly/aroma-1.50-nightly-018d.zip

This nightly build include: Add support for mxt224 touch screen (SYN_MT_REPORT event)
[Android Software/Hacking General [Developers Only]] Namaless:
What files need update?

Thanks man for your work its beautifull install system :-)

Inviato dal mio GT-I9003 usando Tapatalk
[Android Software/Hacking General [Developers Only]] amarullz:
Just try it first (flash it, it won't install anything), and try to calibrating your touchscreen without alternative method (select no), then try the touch screen, is it works & responsive.

If you already wrote the scripts, just replace the update-binary with the newest build.
[Android Software/Hacking General [Developers Only]] :
[/HTML]

you can use colors to make some differences between the texts...

selectbox(
"Extra Features",
"Please select the features that you want to <#ff6e00>-ADD</#>",
"@default",
"extras.prop",
"<#F00>Sound Mods</#>", "" , 2,
"<#33B5E5>Install Original Sound System by Samsung</#>", "Samsung sound by Default",0,
"<#33B5E5>Install DSP Sound Manager</#>", "DSP Beats Super Bass Mod",0,
"<#33B5E5>Install ViPER4Android FX-2211</#>", "Viper Sound Manager<#2ce30c>-Try this option</#>",0,
"<#F00>Wigets Selector</#>", "" , 2,
"<#33B5E5>Install Original Wigets</#>", "Install original Wigets by Samsung",0,
"<#33B5E5>Install Transparent Wigets</#>", "Install Transparent Wigets <#2ce30c>-Try this option</#>",0,
"<#F00>General System and Toggles</#>", "" , 2,
"<#33B5E5>23 Toggles by Wanam</#> ", "23 Toggles & <#d03cf2> Floating Multiwindos</#>",0,
"<#33B5E5>25 Toogles by Simplistic Framework</#> ", "25 Toogles & Simplistic Framework <#d03cf2>Floating Multiwindos</#>",0,
"<#FFFF00>Only change Theme</#> ", "<#FE9A2E>Choose this if you already installed the rom</#>",0
);
[Android Software/Hacking General [Developers Only]] Flashalot:
Any Body?

would greatly appreciated
[Android Software/Hacking General [Developers Only]] sbdags:
Where does it fail? Any error messages to give us a clue? What does the recovery.log say?
[Android Software/Hacking General [Developers Only]] Flashalot:
This Is What I Get

Edit

Well i got home and checked it and it was a mount error but i switched to

mount("ext4", "EMMC", "/dev/block/mmcblk0p33", "/system");

mount("ext4", "EMMC", "/dev/block/mmcblk0p35", "/data");

Instead of

run_program("/sbin/busybox", "mount", "/system");

run_program("/sbin/busybox", "mount", "/data");

but any way this is what i get now

AROMA INSTALLER version 2.70B6

(c) 2013 by amarullz xda-developers

ROM Name : KingCobraAOI Mod Pack

ROM Version : Build 1

ROM Author : Flashalot

Device : HTC One S

Start at : Tue Sep 3 18:27:46 2013

================================

|KingCobraAOI Mod Pack |

|By Flashalot |

|For Use With KingCobra rom only|

================================

Installing BE PATIENT!

Checking Model ID

Success!

Mount

Mounting partitions

Begin Installation...

Installing Tweaks

Installing Transparent App Drawer and Notifications

Extract: /system/system/app/Rosie.apk

Extract: /system/system/app/SystemUI.apk

Installer Error (Status 0)

End at : Tue Sep 3 18:27:47 2013
[Android Software/Hacking General [Developers Only]] upndwn4par:
I can also confirm this is working perfect on the S4. :D

Thanks!!!
[Android Software/Hacking General [Developers Only]] Unknownforce:
Confirmed! Awesome! No more having to setup pages of a single option! Thanks! I'll buy ya a couple beers when I get paid!
[Android Software/Hacking General [Developers Only]] :
I'm glad that people are helping each other. I guess we still wouldn't have touch working if you didn't corporate with others. Power of XDA . Kudos
[Android Software/Hacking General [Developers Only]] Snuzzo:
Anybody with some input? The files would hold user selected values.
[Android Software/Hacking General [Developers Only]] MattBooth:
Trying to debug a problem with a TWRP theme that causes AROMA to crash.

When I get to a certain page, the installer freezes and I must hard reset. There is no way to get a log

I have the source files so I can make a change just for my personal use to debug, but I can't figure out where to/how to do this.

I tried changing the log variable from

(AROMA_TMP "/.install.log")

to

("/cache/.install.log")

and

("/cache/recovery/.install.log")

But when I hard reset, they're not there. I need to figure a way of streaming the log to that folder from the moment the installer is initialised...
[Android Software/Hacking General [Developers Only]] Harbir:
Why use cache ,use data or sd card it works to collect log ,and why don't u pull the log from tmp folder it more better and working way ;)
[Android Software/Hacking General [Developers Only]] sbdags:
In the theme.prop everyone seems to have the same error:

img.progress=button.9

img.prograss.fill=button_press.9

Shouldn't the second line here be like the first i.e., progress not prograss?

img.progress=button.9

img.progress.fill=button_press.9

EDIT:

Yes this fixes the progress bar in 2.70

Surprised no one else has noticed :)
[Android Software/Hacking General [Developers Only]] MattBooth:
That's the thing, I can't get the log when AROMA crashes because it forces a hard reset... which I assume clears /tmp/ on boot?
[Android Software/Hacking General [Developers Only]] CNexus:
Good find

---------- Post added at 10:19 AM ---------- Previous post was at 10:16 AM ----------

I'm still not sure what you mean / trying to achieve. Can you give a sample scenario?
[Android Software/Hacking General [Developers Only]] Droid Premium:
Please help!

I am having a Status 1 error when trying to flash the ROM i made. It says line 66 col 2.

);

that is line 66 and col 1,2.

Please help me fix this error. I have probably built this ROM 20 times trying to fix the Aroma issue.
[Android Software/Hacking General [Developers Only]] Patrics83:
adb pull /tmp/recovery.log and you will see all errors in your aroma-config

Also use notepad++ and select "language" > shell (highlights syntax)

And always when you get an error like that the script error can be found above that line...

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] kelvinvalencio:
great job !
[Android Software/Hacking General [Developers Only]] Patrics83:
Google is your friend.... ;)

Edit:

line 66 col 2: syntax error, unexpected ')', expecting IF or STRING or '!' or '('
line 87 col 4: syntax error, unexpected STRING, expecting ',' or ')'
line 115 col 4: syntax error, unexpected STRING, expecting ',' or ')'

Correct those errors in your aroma-config with the help of my previous post.

Edit2: And update your aroma binary as well... V2.0 is very old :p

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] Droid Premium:
Bro im completely lost. it seems like it should be correct. Here is my aroma config setup:

### LICENSE:
#
# Copyright (C) 2011 Ahmad Amarullah ( http://amarullz.com/ )
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
### FILE INFO:
#
# AROMA Installer 2.56 - AROMA Installer Test Script Configuration
# (c) 2011-2012 by Ahmad Amarullah
# amarullz - xda-developers
# http://www.amarullz.com/
#
# Binary Version : 2.56
# Binary Codename : Edelweis
#

ini_set("rom_name", " GE-Wiz");
ini_set("rom_version", " Release 4");
ini_set("rom_author", " Droid Premium");
ini_set("rom_device", " Galaxy Note II");
ini_set("rom_date", " 9/7/2013");

fontresload( "0", "ttf/Roboto-Regular.ttf;ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;", "12" ); #-- Use sets of font (Font Family)
viewbox(
"Welcome",
"You are about to flash <b>"+
ini_get("rom_name")+
"</b> for <b>"+ini_get("rom_device")+"</b>\n\n"+

" VERSION\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
" AUTHOR\t: <b><#selectbg_g>"+ini_get("rom_author")+"</#></b>\n"+
" RELEASED\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+

"Press Next to Continue the Installation...",
"@welcome"
);

textbox(
"Important",
"GE-Wiz MUST READ",
"icons/info",
readfile_aroma("Thanks.txt")
);

selectbox(
"Kernel",
"Select the one you want",
"@personalize",
"kernel.prop",

"Stock MD1 Kernel","",1,
"SaberKernel",0,
);

selectbox(
"Web Browser",
"Select the one you want",
"@personalize",
"browser.prop",

"Dolphin Browser","",1,
"Boat Browser","Support Flash",0,
"Google Chrome", "", 0
);

checkbox(
"System Apps",
"Check the ones you want",
"@personalize",
"debloat.prop",

"Allshare","",1,
"Groupcast,"",0,
"Mail,"",0,
"Polaris Office 4,"",0,
"Accuweather,"",0,
"YouTube,"",0,

);

selectbox(
"Music Players",
"Pick your preferred music player",
"@personalize",
"music.prop",

"Google Play","",1,
"Noozy,"",0,
"Omich,"",0,
"XenoAMP,"",0,

);

selectbox(
"Launchers",
"Pick your preferred launcher",
"@personalize",
"launcher.prop",

"Apex Launcher","",1,
"Buzz Launcher,"",0,
"Lightning Launcher,"",0,
"Nova Launcher,"",0,
"Holo Launcher,"",0,
"Windows Launcher,"",0,

);

checkbox(
"Mods",
"Select the Mods you want!",
"@personalize",
"mods.prop",

"Viper4Android","",1,

);

install(
"Installing",
"Installing GalaxySbean...",
"@install"
);

ini_set("text_next", "Finish");

viewbox(
"Installation Completed",
"<#080>Congratulation...</#>\n\n"+
"GE-Wiz has been installed successfully.\n\n"+
"Press finish and reboot your phone.\n\nEnjoy!\n\n"+
"This has been a Lethal Development Production",

"@info"
);

See anything unusual?
[Android Software/Hacking General [Developers Only]] Patrics83:
Yes I do.

Last entry in menuboxes, checkboxes etc. Shouldn't have "," at the end.

Ex: checkbox(

"Mods",

"Select the Mods you want!",

"@personalize",

"mods.prop",

"Viper4Android","",1,

);

Change it to:

checkbox(

"Mods",

"Select the Mods you want!",

"@personalize",

"mods.prop",

"Viper4Android","",1

);

Edit: Rich is getting old and slow :p;)

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] RichmondoUK:
Check all the commas ( , ) they should not be at end of every line

Eg

selectbox(

"Launchers",

"Pick your preferred launcher",

"@personalize",

"launcher.prop",

"Apex Launcher","",1,

"Buzz Launcher,"",0,

"Lightning Launcher,"",0,

"Nova Launcher,"",0,

"Holo Launcher,"",0,

"Windows Launcher,"",0,

);

Should be

selectbox(

"Launchers",

"Pick your preferred launcher",

"@personalize",

"launcher.prop",

"Apex Launcher","",1,

"Buzz Launcher,"",0,

"Lightning Launcher,"",0,

"Nova Launcher,"",0,

"Holo Launcher,"",0,

"Windows Launcher,"",0

);

---------- Post added at 07:03 PM ---------- Previous post was at 07:00 PM ----------

Speedy Pat you beat me to it :P

EDIT Pat is young and supersonic
[Android Software/Hacking General [Developers Only]] CNexus:
Please post really long blocks of code between HIDE tags
[Android Software/Hacking General [Developers Only]] RichmondoUK:
Look at line 84, says there is an error

Windows launcher bit

"Holo Launcher,"",0,

"Windows Launcher,"",0

Also last bit at end

Sorry not at pc otherwise will do it for you
[Android Software/Hacking General [Developers Only]] Droid Premium:
Sorrry about that. I fixed it! Thanks man.

---------- Post added at 02:22 PM ---------- Previous post was at 02:21 PM ----------

Line 84 is just a blank line

---------- Post added at 02:37 PM ---------- Previous post was at 02:22 PM ----------

Anymore suggestions??
[Android Software/Hacking General [Developers Only]] Patrics83:
Example of errors found in your aroma-config.

Making CNexus happy :D :p ;)

### LICENSE:
#
# Copyright (C) 2011 Ahmad Amarullah ( http://amarullz.com/ )
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
### FILE INFO:
#
# AROMA Installer 2.56 - AROMA Installer Test Script Configuration
# (c) 2011-2012 by Ahmad Amarullah
# amarullz - xda-developers
# http://www.amarullz.com/
#
# Binary Version : 2.56
# Binary Codename : Edelweis
#

ini_set("rom_name", " GE-Wiz");
ini_set("rom_version", " Release 4");
ini_set("rom_author", " Droid Premium");
ini_set("rom_device", " Galaxy Note II");
ini_set("rom_date", " 9/7/2013");

fontresload( "0", "ttf/Roboto-Regular.ttf;ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;", "12" ); #-- Use sets of font (Font Family)
viewbox(
"Welcome",
"You are about to flash <b>"+
ini_get("rom_name")+
"</b> for <b>"+ini_get("rom_device")+"</b>\n\n"+

" VERSION\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
" AUTHOR\t: <b><#selectbg_g>"+ini_get("rom_author")+"</#></b>\n"+
" RELEASED\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+

"Press Next to Continue the Installation...",
"@welcome"
);

textbox(
"Important",
"GE-Wiz MUST READ",
"icons/info",
readfile_aroma("Thanks.txt")
);

selectbox(
"Kernel",
"Select the one you want",
"@personalize",
"kernel.prop",

"Stock MD1 Kernel","",1,
"SaberKernel",0
);

selectbox(
"Web Browser",
"Select the one you want",
"@personalize",
"browser.prop",

"Dolphin Browser","",1,
"Boat Browser","Support Flash",0,
"Google Chrome","",0
);

checkbox(
"System Apps",
"Check the ones you want",
"@personalize",
"debloat.prop",

"Allshare","",1,
"Groupcast","",0,
"Mail","",0,
"Polaris Office 4","",0,
"Accuweather","",0,
"YouTube","",0
);

selectbox(
"Music Players",
"Pick your preferred music player",
"@personalize",
"music.prop",

"Google Play","",1,
"Noozy","",0,
"Omich","",0,
"XenoAMP","",0

);

selectbox(
"Launchers",
"Pick your preferred launcher",
"@personalize",
"launcher.prop",

"Apex Launcher","",1,
"Buzz Launcher","",0,
"Lightning Launcher","",0,
"Nova Launcher","",0,
"Holo Launcher","",0,
"Windows Launcher","",0

);

checkbox(
"Mods",
"Select the Mods you want!",
"@personalize",
"mods.prop",

"Viper4Android","",1

);

install(
"Installing",
"Installing GalaxySbean...",
"@install"
);

ini_set("text_next", "Finish");

viewbox(
"Installation Completed",
"<#080>Congratulation...</#>\n\n"+
"GE-Wiz has been installed successfully.\n\n"+
"Press finish and reboot your phone.\n\nEnjoy!\n\n"+
"This has been a Lethal Development Production",

"@info"
);
[Android Software/Hacking General [Developers Only]] Droid Premium:
What should i replace? I am a little lost bro. Thanks man for all your help!

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

EDIT

I saw what i needed to do and i fixed that. I made the ROM and it booted into AROMA. I freaked out for a second but then every good thing must come to an end and it froze and then closed out. This is what was in the log:

FUNCTION ERROR!!! aroma-config: selectbox() expects 4 args + 3 args per items, got 9

Any suggestions on that??
[Android Software/Hacking General [Developers Only]] Patrics83:
Did you press the hide button? :D

All errors corrected :silly:

(can't wait until you get to the updater-script...)
[Android Software/Hacking General [Developers Only]] MattBooth:
None that I can see
[Android Software/Hacking General [Developers Only]] Droid Premium:
I got it fixed about an hour ago. Thanks all you guys for the help you gave me. Now that i know what im doing it wont take long to debug in the future!
[Android Software/Hacking General [Developers Only]] fisha21:
Has anyone tried using the new form function? Works great in AROMA, but having trouble working out the correct updater-script syntax.

For example, I have the following in my aroma-config:

"Statusbar options",
"Please select:",
"icons/personalize",
"form.prop",

"battery","Battery","","group",
"batt1","Battery with % icon","","select.selected",
"batt2","Battery without % icon","","select",
"batt3","Remove battery icon","","select",

I have tried

if
file_getprop("/tmp/aroma-data/form.prop","battery") == "1"

if
file_getprop("/tmp/aroma-data/form.prop","battery") == "2"

and

if
file_getprop("/tmp/aroma-data/form.prop","batt1") == "1"

if
file_getprop("/tmp/aroma-data/form.prop","batt2") == "1"

but it just gets skipped over during installation. Recovery logs don't mention any errors.

Any ideas? Did read back through the thread til June, when amarullz first mentioned the custombox, hopefully I didn't miss the answer!

I'm using the update-binary from 2.70RC2, or have I misunderstood and the function isn't implemented yet?
[Android Software/Hacking General [Developers Only]] prdog1:
I see comma after last aroma entry and no call of 1, 2 ect in aroma Looks like calling to calls that don't exist. :cool:
[Android Software/Hacking General [Developers Only]] fisha21:
Ah, that final comma is there as I have multiple groups in my form, I just pasted the first group to give an example :)

As for the calls, I was going by the example given in custombox_test:

#-------------+-----------------------[ Selectbox Without Group ]------------------------------#
# PROP ID | TITLE | SUBTITLE | Type #
#-------------+--------+-------------------------------------------------------+---------------#
"group1", "Group 1", "", "group",
"opt1", "Option 1", "Group 1 Optionbox 1", "select",
"opt2", "Option 2", "Group 1 Optionbox 2", "select.selected",
"opt3", "Option 3", "Group 1 Optionbox 3", "select",
"chk1", "Check 4", "Group 1 Checkbox 4", "check",
"chk2", "Check 5", "Group 1 Checkbox 5", "check.checked",

where the usual number value appears to be absent. Your comment though gives me an idea...
[Android Software/Hacking General [Developers Only]] prdog1:
Even with this can't have a comma after last entry. It is looking for the next entry that don't exist. The lack of comma tells it it is done. Then ); tells it change page or section and end dif tells the main section is done as far as I know. Ny script is much more simple than what you are trying to do. :cool:
[Android Software/Hacking General [Developers Only]] fisha21:
Yep, I know the comma thing :) Again, the reason there is a comma at the end of the second quote is because there are more groups in that example. I was just cutting them short to avoid unnecessary info. This is my full aroma entry:

form(
"Statusbar options",
"Please select:",
"icons/personalize",
"form.prop",

"battery","Battery","","group",
"batt1","Battery with % icon","","select.selected",
"batt2","Battery without % icon","","select",
"batt3","Remove battery icon","","select",

"clock","Clock","","group",
"clock1","Default Clock","","select.selected",
"clock2","Center Clock","","select",
"clock3","No Clock","","select"
);

I know it's not an aroma syntax issue as AROMA launches and runs fine. Its getting the updater-script syntax that I'm failing at :(
[Android Software/Hacking General [Developers Only]] prdog1:
Yea if Aroma runs it is good. If updater bad it will run but not do anything. I'm not great at this but PM updater and I will look. Everyone doing scripts different makes it harde to find. :cool: