yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Perseus:
[MENTION=4469503]RErick[/MENTION] I tried Busybox after setting execute bit on it, I was pleasantly surprised that it actually worked just fine. Thanks!!

First and foremost thanks a lot of taking the time to help. I appreciate that.

The first thing I had tried was mount("MTD", "userdata", "/data"); when my original code failed. I didn't mention in the original post just to present a clear and short problem statement. this device and/or its filesystem really has something goofy. It did give me trouble over providing only 3 arguments to Mount command. Even after including yafss2 didn't help.

package_extract_dir("data", "/data"); did work. but only after successful mount.

Your logic for checking on successful mount is very nice. I do need it eitherway. So I will test to see if it actually prints the output of is_mounted.

P. S. - Both of your thanks buttons have been pressed.
[Android Software/Hacking General [Developers Only]] TheDriller:
What's really neat about busybox is you can package it in your zip and have the installer extract to a tmp file for those that do not currently have busybox on their phones. This way you can still successfully mount anything you need and make it more universal. All my ROMs installers mount /system in this manner and it never fails me. It is especially useful with finicky mount points

Tapatalk 4 sucks
[Android Software/Hacking General [Developers Only]] Perseus:
Funny thing is, its the same Mount point I used yet it failed with standard Mount.

Your point is valid. It does help to make generic.

Long Live Busybox!
[Android Software/Hacking General [Developers Only]] abo hani:
Hi there :)

When installing my Rom , i got into Aroma then selected the mods i want , when pressing install the ROM it skip the installing from 0% to 100% without installing !
[Android Software/Hacking General [Developers Only]] Harbir:
Past ur update script and aroma log also by clicking on save log button
[Android Software/Hacking General [Developers Only]] abo hani:
META-INF : http://www.tusfiles.net/3w7xstddle7u

for errors i fixed it , i may uploaded old Aroma config

Log :

AROMA INSTALLER version 2.70B6

(c) 2013 by amarullz xda-developers

ROM Name : Honami Style

ROM Version : V3 - Ultra Edition

ROM Author : Xperian Team

Device : S/SL/AS/ION

Start at : Sat Sep 28 18:42:33 2013

line 1005 col 1: syntax error, unexpected $end

1 parse errors

Installer Error (Status 6)

End at : Sat Sep 28 18:42:33 2013
[Android Software/Hacking General [Developers Only]] ShaneDiNozzo:
Hi! I have a question. I want to create an AROMA Installer to remove and install apps. My installer has 2 prop files. 1 for the installs (install.prop), and 1 for the removes (remove.prop). But here is the problem. If I don't want to remove apps (I don't select any apps on the remove page), then the remove.prop file will not created by AROMA, and the flashing will crush, cause the remove.prop file not exists. My question is, How can I write a command, to skip the remove method and go to the install method, if the remove.prop file does not exists?
[Android Software/Hacking General [Developers Only]] TheDriller:
Add an option on the remove.prop for "Skip" or "None" at the bottom or something and then on the updater script run

if remove prop == selected.numberforskip

Then

uiprint "@skipping app remover"

And continue on with update script

If coded properly you can make it skip the app installer if this choice is selected even if they choose to install things.

Tapatalk 4 sucks
[Android Software/Hacking General [Developers Only]] demkantor:
I take it the script still isn't working, upload your meta-inf again and I'll help you fix it
[Android Software/Hacking General [Developers Only]] ShaneDiNozzo:
Here is the full zip file

https://db.tt/1ZCuHPcs
[Android Software/Hacking General [Developers Only]] Patrics83:
Use "writetmpfile"

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] ShaneDiNozzo:
Thanks for your reply, but writetmpfile and readtmpfile are in the script.

aroma-config

https://db.tt/eYTx01on

updater-script

https://db.tt/Ov62pfZ2
[Android Software/Hacking General [Developers Only]] demkantor:
[MENTION=4512129]ShaneDiNozzo[/MENTION]

its looking bettter! couple things to try

change these :

if
file_getprop("/tmp/aroma/remove.prop","item.1.1") == "1"
then

to this

if (file_getprop("/tmp/aroma/remove.prop", "item.1.1")=="1") then

for all of the if then endifs, and if that doesnt help maybe try to add a if then surrounding the whole remove.prop, being you have the menu

if (prop("menu.prop","selected")=="1") then
all of the updater-script options for remove.prop here
endif;

let me know if this helps, if not ill peek at it again

best of luck!
[Android Software/Hacking General [Developers Only]] hlxanthus:
I think this might be of some help to you. Took me a while to figure out how to writetmp files.

if prop("carrier.prop","selected.0")=="2" then

checkbox(
"Verizon Options",
"Check all the ones you want",
"@personalize",
"VZWoptions.prop",

"My Verizon Mobile","",0
);

selectbox(
"Verizon Kernel Selection",
"Check the one you want",
"@personalize",
"VZWkernel.prop",

"Stock Kernel","",1,
"Agat's Kernel","",0,
"Elite Kernel","",0
);
else
writetmpfile(
"VZWoptions.prop",

"item.0.1=0\n"
);

writetmpfile(
"VZWkernel.prop",

"item.0.1=0\n"
);
endif;

Sent from my Galaxy S4
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
Does it open thw script at all? Or does recovery abort it straight away?
[Android Software/Hacking General [Developers Only]] Fubuki273:
Recovery abort it. It say Syntax error line Xx col Xx (Status 1) always at last line. Thank:laugh:
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
that means its an updater-script error not an arome-config error, also thats due to an unexpected end.. look for lines missing a bracket ( ) or apostraphe ' commas , or even doubles... make sure every line has ; at the end also!
[Android Software/Hacking General [Developers Only]] Fubuki273:
No, It say arome-config. You 17? I'm 16:fingers-crossed: This is the first time I used the aroma installer, too many errors appear. Haizz..........:crying:
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
post your meta-inf folder and i will have a look, also there are easier ways of adding aroma, my rom kitchen for example..?
[Android Software/Hacking General [Developers Only]] Fubuki273:
My file i attach first post. Thank for test, i will try AET :)
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
ok, this is a VERY messy script... i wouldnt even start to try and look for a problem, my opinion in to use mine from my modpack(modpack for all me7 based roms) as a base for your and just change the .txt and the .prop files to yours... if you need more help or would like me to write you a script, contact me on gtalk(ricky.divjakovski@gmail.com)

hope to help!
[Android Software/Hacking General [Developers Only]] Patrics83:
Only one issue with your aroma-config as I see it :)

It has Dos\Windows code and not unix

Attached a corrected version. :good:

That's not what I call messy :P

Not even 300 lines... ;)
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
ahhahaha, i consider a script like my room :p needs to be perfect!
[Android Software/Hacking General [Developers Only]] Fubuki273:
Thank you:) it working fine. You do it on Linux Os(like Ubuntu, Mac,......) or Windows? Software?:fingers-crossed:
[Android Software/Hacking General [Developers Only]] Harbir:
Download notepad++ on win , for doing any aroma work :)
[Android Software/Hacking General [Developers Only]] The Sickness:
http:// http://xdaforums.com/showthread.php?t=2422434

This is the guide I am using for my Galaxy S4. I have 2 questions...

1. How can I add in the menu to just to install apps instead of installing my rom?

2. Lets say ive done all editing and flash...but I forgot to add something. Do I need to redo the update binary again? Or just re-edit and zip it up?

edit....

Webpage is messed up I think. Will fix when I get off work. I apologize
[Android Software/Hacking General [Developers Only]] hlxanthus:
What I did for our OctOS installer was create a menu choice for installing the ROM or apps and kernels only. The in the updater script you can use that value to incorporate in an if/then statement for your ROM wipes and system install and symlinks/ permissions

Sent from my Galaxy S4
[Android Software/Hacking General [Developers Only]] The Sickness:
I would really like to see your set up if possible...i really need that in my menu
[Android Software/Hacking General [Developers Only]] hlxanthus:
http://xdaforums.com/showthread.php?p=46113397

Just download our ROM and take a look. If you use any of our stuff just pm me and give credit too

Sent from my Galaxy S4
[Android Software/Hacking General [Developers Only]] The Sickness:
Thanks bro....I will check it out
[Android Software/Hacking General [Developers Only]] The Sickness:
I looked at your config.....very impressive. But, I still didn't see what I was looking for. I need to add the option to flash just add-ons so it doesn't flash the rom. Im on version 2.70 and it doesn't have that option.

I need to know how to add it to 2.70 cause im comfortable with that version. Any help at all on doing this is very much appreciated.
[Android Software/Hacking General [Developers Only]] hlxanthus:
In my aroma config look for this line

#--begin app installer

That is where it begins. Then look for

#--end app installer

I created a giant if/else clause that encompasses nearly the whole script. That is how you do it. Basically you are creating 2 separate paths thru aroma. One for ROM install and one for apps only. Then look at my updater script and you will see where it envelopes the system format and install as well as the symlinks and permissions bits.

Sent from my Galaxy S4
[Android Software/Hacking General [Developers Only]] The Sickness:
Thanks again bro....I will look at it tonight.
[Android Software/Hacking General [Developers Only]] DHD22800:
Hi, i've maded a aroma config for install some mods.

I've not an error with aroma-config, but when i go to install, it does not install nothing.

The files are attached

AROMA Version: 2.56
[Android Software/Hacking General [Developers Only]] demkantor:
Upload logs too
[Android Software/Hacking General [Developers Only]] DHD22800:
The aroma log is empty, because it does not install nothing, he skip all of updater script
[Android Software/Hacking General [Developers Only]] DHD22800:
Sorry but i'm a noob xD

i've found all errors, it is in lig ( sorry for my stupid reply ), i will try to fix all syntax error and I'll let you know :)
[Android Software/Hacking General [Developers Only]] demkantor:
No problem, just started to look through the updater-script on my phone, so its hard to catch the errors, but if the log has the info in it great, let me know if you need a hand but upload that log
[Android Software/Hacking General [Developers Only]] TKruzze:
I've been asked to look into an AROMA installer for possible use with our PA GApps. While I've been very impressed with the options available, I have a couple of questions before I begin development. Any and all responses are appreciated:

Since this installer will be used on hundreds of different types of devices, will I be able to make an installer that works on all of these devices without having to worry about calibration and dpi?

When creating a menu of options for the user to select, is it possible to force all options in a particular group to be selected? I realize I could just tell the user they will be installed, but I think it would be nicer to show which options are required and force their selection.

Is is possible to show an option (or group) that the user would not be able to select (because their device doesn't support it), something like a dimmed option? Again, I realize I could remove the options entirely, but this would be a slick way of telling the user that the options are not available for their device

Thanks again, in advance, for any thoughts and/or ideas.
[Android Software/Hacking General [Developers Only]] demkantor:
Don't have to calibrate touch screens for the past few builds

There are a few ways to force options to be flashed

Either not have an option to select but have ui_prints in the updater script to show them

Or you can have options selected by default in aroma and a note saying do not unselect in aroma or even a screen pops up before each section saying select this or that if you have this device with a confirmation

I'd say use the first option, even can add a screen in aroma saying these will be flashed and than when going through updater-script they will also see

You could use ifelese with getprops and another screen can pop up saying your device does not support x or y

All this is pretty straight forward to make, let me know if you need a hand with any of it

Best of luck!
[Android Software/Hacking General [Developers Only]] The Sickness:
Banging my head on the wall...

Im still in the process of doing my editing....but...while testing I have come upon the lil problem. I have looked at both my updater script and aroma config till I went cross eyed and cannot freakin find the problem.

I did a test before I starting adding commands to the updater script and everything went smooth. NO ERRORS. So I started to configure aroma with my launcher....did another test...anf this is what was the last line says on the installation screen "file-getprop: failed to stat"/temp/aroma/window1.prop" No such file or directory

I have attached both update script and aroma config.....will someone take a look and see what the problem is? Im sure its something small I am over looking.
[Android Software/Hacking General [Developers Only]] DHD22800:
I think i have found the error:

in yout aroma-config there is an if from menubox.

In your updater-script, you must have an if in an if xD

examle:

if
file_getprop("/tmp/aroma-data/menu.prop","selected") == "1"
then
ui_print("-> Installing Insanity V5");
ui_print("-> MOUNTING SYSTEM...");
run_program("/sbin/busybox", "mount", "/system");
ui_print("-> Extracting Files...");
package_extract_dir("system", "/system");

#-- SUB WINDOW 1

if
file_getprop("/tmp/aroma/window1.prop","selected.1") == "1"
then
ui_print("-> INSTALLING 5x6TouchWiz Launcher...");
package_extract_dir("alloy/Launchers/5x6TouchWiz", "/system");
endif;
endif;

Basically:

if
file_getprop("/tmp/aroma/x.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma/y.prop","selected.0") == "1"
then
ui_print("Option 1");
endif;
endif;

ok ? :)
[Android Software/Hacking General [Developers Only]] The Sickness:
That didn't work. It caused it not to install anything.

But I did get it worked out. Will post what I did when I get off work.

Sent from a Insane S4

SICK MADE DEVELOPMENT
[Android Software/Hacking General [Developers Only]] DHD22800:
Try to post logs :)
[Android Software/Hacking General [Developers Only]] burak5:
deleted
[Android Software/Hacking General [Developers Only]] Patrics83:
Missing "endif;" for "line 401: if prop("menu.prop","selected")=="1" then"

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] [NUT]:
Came across this by chance...

Nobody probably noticed you misspelling yaffs2 as yafss2...

:cool:
[Android Software/Hacking General [Developers Only]] burak5:
ok I find the problem. it was another line where i forget endif :)
[Android Software/Hacking General [Developers Only]] The Sickness:
Actually what I did was delete the entire sub-window in aroma config.... then I cut and pasted one from the original one. I use this guide here

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

Very good guide. I recommend it....
[Android Software/Hacking General [Developers Only]] TKruzze:
OK, I've run into my first major problem (of many, I'm sure). The attached script generates an alert box that never fully displays properly and the installer just freezes. This happens on both my Nexus 4 and Nexus 7.

What's strange is that the same alert box code works just fine in the demo script. Have I missed something?

Below is the script. I've also attached the full zip if anyone wants to test (it doesn't actually do anything):

ini_set( "rom_name", "Paranoid Android 4.4 AROMA GApps");
ini_set( "rom_version", "20131031");
ini_set( "rom_author", "Paranoid Android");
ini_set( "rom_date", "October 31, 2013");
setvar( "supp_ver", "4.4");# Supported Version
setvar( "min_ver", "4.4");# Minimum Required version

# Set the variable 'board' to 'ro.product.board' from ROM's build.prop
setvar( "board", file_getprop("/system/build.prop","ro.product.board"));

# Set the variable 'release' to 'ro.build.version.release' from ROM's build.prop
setvar( "release", file_getprop("/system/build.prop","ro.build.version.release"));

ini_set("force_colorspace","rgba");

theme("ics");

fontresload( "0", "ttf/Roboto-Regular.ttf;ttf/DroidSansFallback.ttf;", "12" );
fontresload( "1", "ttf/Roboto-Regular.ttf;ttf/DroidSansFallback.ttf;", "14" );

# Show Splash for 5 seconds
splash(5000, "sample");

# Let's check to see if we have a Photosphere compatible device
if
getvar("board") == "MAKO"||getvar("board") == "mako"||getvar("board") == "flo"||getvar("board") == "deb"||getvar("board") == "tuna"||getvar("board") == "grouper"||getvar("board") == "manta"
then
# We have detected a compatible Nexus Photosphere device
writetmpfile("photosphere.prop","detected=1\n");
else
# No compatible device detected
writetmpfile("photosphere.prop","detected=0\n");
endif;

###################################################################################################################
#
# Checking to make certain user has the minimum required ROM Installed - If not, we abort
#
if
is_substring(getvar("min_ver"), getvar("release"))
then
###################################################################################################################
#
# SHOW WELCOME INFORMATION
#
viewbox(
#-- Title
"PA GApps AROMA Edition",

#-- Text
"Welcome to the PA GApps AROMA installer.\n\n"+
"You are about to install <b>" + ini_get("rom_name") + "</b>.\n\n" +

"PA GApps are designed for installation on any custom Android <b>" + getvar("supp_ver") + "</b> ROM.\n\n"+

" VERSION\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
" AUTHOR\t\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 Begin the Installation...",

#-- Icon
"@welcome"
);
else
alert(
#-- Title
"Incompatible ROM Detected",
#-- Text
"PA GApps can only be installed with Android " + ini_get("rom_req") + " ROMS.\n\n"+
"Since your ROM shows Android v" + getvar("release") + " the installer will now exit.",

#-- Icon
"@alert",

#-- Ok text
"Exit Installer"
);

# Exit Installer
exit("");
endif;

# Exit Installer
exit("");
[Android Software/Hacking General [Developers Only]] demkantor:
Well its hard to look thoroughly on my phone when I get to a PC I'll look more clear

But a couple suggestions to start with

That random exit at the end needs to go or you will never make it to updater-script

Also I would suggest making the welcome screen not a ifelse statement but just a welcome screen, then once you proceed to next screen run the board and build checks with alerts that exits or proceeds

Otherwise all is looking good on this end, try that out and I'll see if I can help more later on tonight
[Android Software/Hacking General [Developers Only]] TKruzze:
Thanks for the reply. I know about the exit at the end. I used it to end the script as all I'm doing is testing right now. Also, I can easily move the welcome screen out of the test, but that part is actually working as intended. It's the alert that just freezes everything. I'll rework it all and see how it runs.
[Android Software/Hacking General [Developers Only]] demkantor:
I guess what I'm saying is to make sure aroma opens properly to a welcome screen, then do build.prop checks

at least during testing stage to make life easier.

only had 20min to sort this out but at least you will have it start - ill be near a pc later tonight if you need more assistance (like 9hrs from now)

but Im sure you can get the rest (just minor tweaks in your script here)
[Android Software/Hacking General [Developers Only]] TKruzze:
Thanks! moving the check out of the if worked! Nice job on the graphic, BTW. I've got a new one, too. Saving it for release.

It appears that variables also don't work in alerts, so I'll have to skip them unless you know a way to make them work.

I'm busy working on 4.4 now, plus all the new apps, so I may not be able to work on this for a bit.
[Android Software/Hacking General [Developers Only]] demkantor:
No problem, never tried adding a variable to an alertbox but by taking them out of yours all sees OK, unless someone says different I assume you can't as of know but could request the feature

Let me know if there are any other issues

Best of luck!
[Android Software/Hacking General [Developers Only]] burak5:
Need Help with Aroma Installer Pls

Can anyone help me with my aroma installer pls. i want to make a updater-Script with 2 or 3 If conditions but it didnt work.

my Aroma installer: http://d-h.st/IDy

:D
[Android Software/Hacking General [Developers Only]] The Sickness:
Bangin my head against the wall...again

OK...Im in the process of updating my rom. And Im "trying" to add Nexus 7 animations (they work on Galaxy S4). Now I just noticed this today: when I set up for lets say Xperia Launcher, it goes like this:"alloy/Launchers/Experia", "/system");

But on the Nexus animations it is like this: "alloy/Animations/Nexus 7", "/sdcard/vrtheme");

Im lost on the sdcard part.I believe I missing something in my updater script. Ive been trying to figure this out for about a week now.

I can install anything that ends with "/system"); but nothing will install if it has "/sdcard/vrtheme");

So I'm hoping you fellas can shed some light on this for me...I have included my updater script and aroma config. Please keep in mind they are incomplete due to me still editing.

Edit....I figured it out
[Android Software/Hacking General [Developers Only]] dibblebill:
I'm hoping someone can help me out. I have two questions.

1) Do I use my freshly built ROM's update-binary form the zip file to create this?

2) When I do, I consistently get a "failed to stat /tmp/aroma-data/menu.prop" error. My scripts are as attached- what am I doing wrong?
[Android Software/Hacking General [Developers Only]] The Sickness:
Im looking at em now

I Think My S4 Is Insane

SICK MADE DEVELOPMENT

---------- Post added at 09:32 PM ---------- Previous post was at 09:21 PM ----------

I see no package extract in the updater-script. Unless you have it as: package_extract_dir("Aroma/Window1/Option2", "system")????

I Think My S4 Is Insane

SICK MADE DEVELOPMENT

---------- Post added at 09:37 PM ---------- Previous post was at 09:32 PM ----------

I use a update binary from another one of my roms. Not the one im building. Also, you must do the update binary BEFORE you configure Aroma

I Think My S4 Is Insane

SICK MADE DEVELOPMENT
[Android Software/Hacking General [Developers Only]] dibblebill:
I do have my script set with package_extract_dir. Should it jist be package_extract? I borrowed a binary from another Nexus 10 aroma zip

Sent from my Nexus 10

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

Update. It gets to the install phase, finishes instantly, and does nothing

Sent from my Nexus 10

EDIT: Changing to package_extract() did nothing.
[Android Software/Hacking General [Developers Only]] The Sickness:
Look at mine.

https://www.dropbox.com/s/mbgsd7vdwi9leva/my update script.rar.zip

I Think My S4 Is Insane

SICK MADE DEVELOPMENT

---------- Post added at 10:17 PM ---------- Previous post was at 10:15 PM ----------

The update binary needs to be from a rom....rename it update-binary-installer

I Think My S4 Is Insane

SICK MADE DEVELOPMENT