yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Dblfstr:
This should be this, I think

"Miuiscotland" +ini_get("rom_version")+,

Syntax:

###################################################################################################################
#
# STEP 5 - SHOW MENUBOX - (STEP 6 + STEP 7)
#
menubox(
#-- Title
"MIUI Scotland AROMA Installer",

#-- Sub Title
"Please select a installation method",

#-- Icon
"@apps",

#-- Will be saved in /tmp/aroma/menu.prop
"menu.prop",

#-------------------------+-----------------[ Menubox Items ]-------------------------+---------------#
# TITLE | SUBTITLE | Item Icons #
#-------------------------+-----------------------------------------------------------+---------------#

"Default installation", "ROM will be normally installed.", "@install", #-- selected = 1
"Custom installation", "You can choose different kernels", "@default", #-- selected = 2
);

Remove comma after @default here.
[Android Software/Hacking General [Developers Only]] cyber6:
Format() expects 2 args, got 3

I have a problem at installation by formating the cache, i got the error :

format() expects 2 args, got 3

and here is the script:

if
file_getprop("/tmp/aroma-data/rom.prop","selected.1") == "1"
then
set_progress(0.20);
ui_print("@Executing Full Wipe");
ui_print("-- Erasing & formatting /cache as EXT4");
unmount("/cache");
run_program("/sbin/erase_image", "cache");
format("ext4", "EMMC", "/dev/block/mmcblk0p27");

ui_print("-- Erasing & formatting /system as EXT4");
unmount("/system");
run_program("/sbin/erase_image", "system");
format("ext4", "EMMC", "/dev/block/mmcblk0p25");

ui_print("-- Erasing & formatting /data as EXT4");
unmount("/data");
run_program("/sbin/erase_image", "userdata");
format("ext4", "EMMC", "/dev/block/mmcblk0p26");

ui_print("-- Removing system files from SD Card");
delete_recursive("/sdcard/.android_secure");
delete_recursive("/sdcard/.bookmark_thumb1");
delete_recursive("/sdcard/.data");
delete_recursive("/sdcard/Android");
delete_recursive("/sdcard/Android/data/com.google.android.apps.maps");
delete_recursive("/sdcard/LazyList");
delete_recursive("/sdcard/LOST.DIR");

ui_print("-- Checking filesystems for errors");
run_program("/sbin/e2fsck", "-p", "/dev/block/mmcblk0p25");
run_program("/sbin/e2fsck", "-p", "/dev/block/mmcblk0p26");
run_program("/sbin/e2fsck", "-p", "/dev/block/mmcblk0p27");

else
set_progress(0.20);
ui_print("@Non Wipe");
ui_print("	Delete Cache");
unmount("/cache");
run_program("/sbin/erase_image", "cache");
format("ext4", "EMMC", "/dev/block/mmcblk0p27");
ui_print("	Delete Dalvik-Cache");
unmount("/data");
run_program("/sbin/erase_image", "userdata");
format("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data");
delete_recursive("/data/dalvik-cache");
endif;

Can someone help me pls ...
[Android Software/Hacking General [Developers Only]] Dblfstr:
Error Line 298, is the );

I am not sure how this works with your if statement.

[FONT=&quot]if prop("menu.prop","selected")=="1"[/FONT]
[FONT=&quot] then[/FONT]
[FONT=&quot] #-- IF "Default" Installation, don't show configuration, then write default mods.prop[/FONT]
[FONT=&quot] #-- NOTE: mods.prop should exists, or updater-script will error[/FONT]
[FONT=&quot] writetmpfile([/FONT]
[FONT=&quot] #-- Prop file will write to /tmp/aroma/mods.prop[/FONT]
[FONT=&quot] "mods.prop",[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot] #-- Default Values[/FONT]
[FONT=&quot] "selected.1=1\n"+ #-- Default Kernel = SiyahKernel v3.3.1[/FONT]
[FONT=&quot] "selected.2=6\n"+ #-- Default Modem = XXLPS[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot] );[/FONT]
[FONT=&quot] endif;[/FONT]
[FONT=&quot] if prop("menu.prop","selected")=="2"[/FONT]
[FONT=&quot] [/FONT][FONT=&quot]then[/FONT]
[FONT=&quot] selectbox([/FONT]
[FONT=&quot] #-- Title[/FONT]
[FONT=&quot] "<~installmain.title>",[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot] #-- Sub Title[/FONT]
[FONT=&quot] "<~installmain.subtitle>",[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot] #-- Icon: <AROMA Resource Dir>/icons/default.png or <ThemeDir>/icon.default.png[/FONT]
[FONT=&quot] "@default",[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot] #-- Will be saved in /tmp/aroma/mods.prop[/FONT]
[FONT=&quot] "mods.prop",[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot] #-----------------------------------[ Selectbox With Groups ]----------------------------------#[/FONT]
[FONT=&quot] # TITLE | SUBTITLE | Initial Value #[/FONT]
[FONT=&quot] #------------------+-----------------------------------------------------------+---------------#[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot] "Kernel", "", 2, #-- Group 1. key = "selected.1"[/FONT]
[FONT=&quot] "SiyahKernel v3.3.1", "installing Siyah kernel", 0, #-- selected.1 = 1[/FONT]
[FONT=&quot] "N.E.A.K. v2.0.5x ", "installing N.E.A.K. kernel", 0, #-- selected.1 = 2[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot] "Modem", "", 2, #-- Group 2. key = "selected.2"[/FONT]
[FONT=&quot] "KE7", "Installing KE7", 0, #-- selected.2 = 1[/FONT]
[FONT=&quot] "KH3", "Installing KH3", 0, #-- selected.2 = 2[/FONT]
[FONT=&quot] "KI3", "Installing KI3", 0, #-- selected.2 = 3[/FONT]
[FONT=&quot] "KI4", "Installing KI4", 0, #-- selected.2 = 4[/FONT]
[FONT=&quot] "KL1", "Installing KL1", 0, #-- selected.2 = 5[/FONT]
[FONT=&quot] "XXLPS", "Installing XXLPS", 0, #-- selected.2 = 6[/FONT]
[FONT=&quot] "NEKF2", "Installing NEKF2", 0, #-- selected.2 = 7[/FONT]
[FONT=&quot] "NELP2", "Installing NELP2", 0 #-- selected.2 = 8[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#[/FONT]
[FONT=&quot] );[/FONT]
[FONT=&quot]endif;[/FONT][FONT=&quot][/FONT]
[Android Software/Hacking General [Developers Only]] Dblfstr:
Comment out that section and see what else happens.

I do not understand why it does not like the ending semicolon after closing the writetmpfile.

writetmpfile(

stuff,

stuff,

stuff

);
[Android Software/Hacking General [Developers Only]] Rueben_:
Quick question guys. I have the installer fully working and it great good work. My Q is is I would like the user to have the option to choose what apps they wish to install were do I store the APk files then ? Regards :)
[Android Software/Hacking General [Developers Only]] Dblfstr:
I think you just create a folder in the root of your directory

rom_updater/zip

---Your Folder
--------------App 1
--------------App 2
--------------App 3

--meta-inf
--------------com
--------------------google
--------------------------android
--------------------------------------aroma
[Android Software/Hacking General [Developers Only]] thommy86:
Doesnt really matter where you place the apps.. you need to set the right code in the updater-script. like this:

# Apex Launcher
if
file_getprop("/tmp/aroma/apps.prop","item.1.4") == "1"
then
ui_print("@ Installing Apex Launcher");
package_extract_dir("[COLOR="Red"]apps/Apex[/COLOR]", "/system/app");
endif;
[Android Software/Hacking General [Developers Only]] Rueben_:
Do I put this code in the updater script then or the Aroma-config ? :) thanks guys great help
[Android Software/Hacking General [Developers Only]] mattmanwrx:
Hi Aternus,

Thanks for all your help with this scripting for me...

I added more boot animations, a complete new "version" with a cenetered x too...

My scripting now looks like this (for others to look at too), and all works perfectly...

# CENTERED GREEN X
if
( file_getprop("/tmp/aroma/animationtype.prop","selected.1") == "1" ) && ( file_getprop("/tmp/aroma/animationposition.prop","selected.1") == "2" );
then
if
file_getprop("/tmp/aroma/animationconfig.prop","selected.1") == "1";
then
package_extract_dir("centered/black/green-x", "/system/customize/resource");
ui_print("Green Centered X with a Black background copied");
endif;
if
file_getprop("/tmp/aroma/animationconfig.prop","selected.1") == "2";
then
package_extract_dir("centered/white/green-x", "/system/customize/resource");
ui_print("Green Centered X with a White background copied");
endif;
endif;
# NORMAL GREEN X
if
( file_getprop("/tmp/aroma/animationtype.prop","selected.1") == "1" ) && ( file_getprop("/tmp/aroma/animationposition.prop","selected.1") == "1" );
then
if
file_getprop("/tmp/aroma/animationconfig.prop","selected.1") == "1";
then
package_extract_dir("normal/black/green-x", "/system/customize/resource");
ui_print("Green X with a Black background copied");
endif;
if
file_getprop("/tmp/aroma/animationconfig.prop","selected.1") == "2";
then package_extract_dir("normal/white/green-x", "/system/customize/resource");
ui_print("Green X with a White background copied");
endif;
endif;

There are also Red X, Red X Centered, Blue X and Blue X Centered...

All about user choice!

Thanks again,

Matt

---------- Post added at 10:31 AM ---------- Previous post was at 10:25 AM ----------

what you quoted there was updater-script. The aroma-config would be

selectbox(
# Title
"Launcher",

# Sub Title
"Please Select ROM Mods Below:",

# Icon
"icons/apps",

# Will be saved in /tmp/aroma-data/mods.prop
"apps.prop",

# Group 1 - Launchers
"Launcher","",2,

# Item 1.4
"Apex launcher","",0,

With the other 3 options infront of it, the first being default (I would have thought)...

Take a look through the most recent AROMA installer aroma-config and updater-script, and put the two together... :)
[Android Software/Hacking General [Developers Only]] Rueben_:
Another quick question lol Were do I put the apps like Facebook and Twitter they bshould be in this menu no?
[Android Software/Hacking General [Developers Only]] thommy86:
Did you see my edit yesterday.. the fault isnt at that line.. so comment out the section isnt an option.. still searching here.. but i read the first post.. read the complete script before is started editing.. so its should be like the example..!
[Android Software/Hacking General [Developers Only]] mattmanwrx:
You have to create the folder structure, it can be anything you want... Just when extracting you need to extract from the folder structure you created..
[Android Software/Hacking General [Developers Only]] thommy86:
After removing the language part of the script.. everything worked.. so it will run in english.. will keep on searching to get these options working.. but for now.. its english..!:cool:
[Android Software/Hacking General [Developers Only]] Dblfstr:
Line 244. you commented "loadlang" out.

240 ##
241 ##-- Back To English :D - and Use DroidSans.ttf
242 ##
243 alert("Back To English","OK, Multilanguage demo ends here... It will use english 243 now...", "@info");
244 #loadlang("langs/en.lang");
245 ontresload( "0", "ttf/DroidSans.ttf", "12" );
246 fontresload( "1", "ttf/DroidSans.ttf", "18" );
247 ##
248 ##
[Android Software/Hacking General [Developers Only]] Dblfstr:
Found thisw on another site.

Read below:

>>> ** For future reference, it is the update-binary causing problems! Replace it with a binary from another build that takes format and mounts commands in the correct amount of arguments. ** <<<

The binary from the Desire HD takes:

-3 arguments for format

EX: format("MTD", "yaffs2", "system");

- and 4 arguments for mount

EX: mount ("MTD", "yaffs2", "system", "/system");

meanwhile, in AOSP, the update-binary takes

-2 arguments for format

EX: format("MTD", "system");

- and 3 arguments for mount

EX: mount("MTD", "system", "/system");

This should solve the problem.. and it took me 2 days to figure this out..

ANyway, what I gather is this;

EDIT:

After reading a bit more. I realize that is probably not your updater-binary, but your syntax.

I think "EXT4" is not necessary, Since EMMC is EXT4.

Try

format("EMMC", "/dev/block/mmcblk0p26");
[Android Software/Hacking General [Developers Only]] da-pharoah:
So I gotta find out why I'm getting a syntax error when trying to install.. it doesn't actually install anything due to a syntax error in line 590 of my code. Only issue I have is that my code doesn't equal 590 lines... at most it ends at 576 in the updater script.... sooo.... I think, let me say that again I think the scripts are getting combined into one and then ran that way? Idk.. but thats the only way I can see me getting a syntax error at line 590 is combining the aroma-config and the updater-script .. but I know by reading the op that don't happen so maybe it puts it all in the same temp prop file or something idk ... someone correct me if I'm wrong . But now I got some reading to do.

Edit

Here is the link to the error log..

http://db.tt/VcGZfKLe
[Android Software/Hacking General [Developers Only]] Dblfstr:
First, when you add a url you should make sure the Bold and Underline are not in between the URL tags.

Like so.

http://db.tt/VcGZfKLe

Otherwise the link will not work.

Second, need to see your scripts to determine a problem.

This is not enough:

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

ROM Name : Hellfire Sandwich
ROM Version : Version 1.8
ROM Author : x0x0Hellx0x0
Device : T-Mobile G2x
Start at : Sun Jun 10 08:08:11 2012

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

Installer Error (Status 6)

End at : Sun Jun 10 08:08:11 2012

But it looks liek you have too many or not enough endif in your code.
[Android Software/Hacking General [Developers Only]] da-pharoah:
sorry I was on my phone when I did that so I thought I had it right... thanks for the responce.. let me see if I can upload my scripts here...

edit

fixed link now... let me work on getting the scripts here, im at work and this will be difficult with the fact that tmobile has throttled me... ugh..... thanks again btw.
[Android Software/Hacking General [Developers Only]] da-pharoah:
edit:

Thank god for firefox on my phone... only browser able to upload... I cant post them here they are too long... so you will have to download them for review...

and sorry for the crappy .txt after it.. Im super limited here at work... but thanks again.
[Android Software/Hacking General [Developers Only]] Dblfstr:
Where did they go?
[Android Software/Hacking General [Developers Only]] da-pharoah:
they are there now.. i was going to try and be cool and add them into the html code bit that we can use... but they are too long for the max characters allowed... so I updated that post you quoted... it has the scripts..

edit:

and dang it I just realized I uploaded the halfway updater-script... I started pieceing it out yesterday to find out my error since I didnt see it looking at the whole. So the updater-script stops at the nova launcher part... and the full script is at home... ugh... what a day today has been...

My new issue is it not wiping as it should when I chose full wipe in aroma... dang it... So I just left it there. After all day of syntax errors yesterday, I wanted to give it a go and found out it wasnt even wiping. Now I gotta find out why its not wiping before I piece my script back together. or maybe i'll just say eff it and put it all back in and see whats up... but that shouldnt matter should it? as long as there are no syntax errors it should wipe right?
[Android Software/Hacking General [Developers Only]] Dblfstr:
Seems there is a problem with this:

[FONT=&quot]run_program("/sbin/busybox", "mount", "/system");[/FONT]

Is busybox needed here?

or

mount("MTD", "system", "/system");

Just saw your edit...
[Android Software/Hacking General [Developers Only]] da-pharoah:
dang it! I forgot to take that part out of the baseband script... So I have that set default to '0' in aroma-config since im not on the new bb for the g2x.. think that would make it act up? I wonder why its not wiping tho?
[Android Software/Hacking General [Developers Only]] Dblfstr:
Sorry, I am losing my train of thought.

Start a new thread in the proper forum and PM me a link.

There, upload the full aroma-config and updater-script and lets start from the beginning.

-Dblfstr
[Android Software/Hacking General [Developers Only]] da-pharoah:
Ok I'll have to do that when I get home.. thanks for the assistance..
[Android Software/Hacking General [Developers Only]] iba21:
guyz, i need help :rolleyes:

the problem is.. i have to copy a script in init.d folder.. the script needs root permission to run.. ok.. where's the problem?

i don't find a command witch force filesystem RW for init.d folder.. if rom doesen't have filesystem rw by default, script will be copy into init.d folder, but, it couldn't run, until have full permission (and no 755) and RW (and not RO)

how to force filesystem RW of a folder?

thank you ;)

p.s. i tryed with busybox mount -o rw command, and -w.. doesen't work

i suppouse need root.. but.. how to root the busybox command? :confused:
[Android Software/Hacking General [Developers Only]] Zen Arcade:
Add "remount," after -o and before rw.

After copying script, run "chmod 0755 <script name>".
[Android Software/Hacking General [Developers Only]] iba21:
so

run_program("/sbin/busybox", "mount", "-o remount rw", "/system/etc/init.d");

or

run_program("/sbin/busybox", "mount", "-o", "remount", "rw", "/system/etc/init.d");

?
[Android Software/Hacking General [Developers Only]] Zen Arcade:
You need a comma between remount and rw. Any place you have a space you need a separate quoted parameter. You should be able to pass "remount,rw" as one parameter. "-o" should be separate.
[Android Software/Hacking General [Developers Only]] Turge:
I might be missing something, but when in recovery, you have full rw access to /system/etc/init.d.
[Android Software/Hacking General [Developers Only]] iba21:
yep.. i see now..

run_program("/sbin/busybox", "mount", "-o", "remount,rw", "/");

i'll try it now! thank you for now ;)

EDIT: no works.. after reboot init.d folder already R/O

i used

run_program("/sbin/busybox", "mount", "-o", "remount,rw", "/system/etc/init.d");
[Android Software/Hacking General [Developers Only]] Turge:
You can't mount /system as rw from recovery. Instead, try doing it from an init.d script.

/system/etc/init.d/10mountrw

#!/system/bin/sh
mount -o remount,rw /system
[Android Software/Hacking General [Developers Only]] pimpmaneaton:
HELP!

Okay guys I am in desperate need of some help here. Myself and two other devs have been trying to get Aroma to work on the Kindle fire and have had no success yet with getting the touch screen to calibrate correctly.

Running the calibtool and touching the dots correctly the numbers that return are way off and are extremely huge numbers, and after touching the 5th(center) dot, you should see a large dot where you touch and that does not happen. But if you go through the set up as though the tablet would be portrait, you get some descent calibrate numbers back, and after the 5th dot, the screen does show touches now, just not in the correct position.

So running normaly throught set up it has you touch points A,B,C,D. But the result from that is usless. But if you touch it as C,A,D,B I get some descent numbers which are

calibrate("1.9490", "74", "6.4672", "8")

But now my touches are actully 90 degrees off. On the caveman drawn x y chart. If I move my finger up and down they y axis, the dot will actually move along the x axis, and visa versa. Was wondering if there is a way to take the calibrate numbers from above and convert them to rotate my touches 90 degrees.

Any help on this would be greatly appreciated, thanks in advance.
[Android Software/Hacking General [Developers Only]] :
You should add Arconium ICS from doomed151
[Android Software/Hacking General [Developers Only]] nadimac:
Nice

No more flash and flash and flash kernesl, themes etc etc with this is soo easy intall all you need thank
[Android Software/Hacking General [Developers Only]] lvcio:
Bro Aroma is So SICK! FckYeah!

But hey :'( sorry the bad and about Desire ),:

Fck! The world need more people like You (Y)

Keep it good men, Hope see more of this on the future! For example, *Idea* OTA Internet WIFI ROM Download maybe? *Idea* :)

Cheers, Cya!
[Android Software/Hacking General [Developers Only]] ...Awesome...:
Can someone help me???

Im trying to add an Alert to the Aroma like this

#-- Alert Box After Selecting Performed Full Wipe

alert("<~warning.Support.title>","<~warning.Support.text>", "@info");

Where do i change what i want the alert to say???

so far it only says

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

|Warning: Support |

|and the text is empty |

-----------------------​

thanks in advance
[Android Software/Hacking General [Developers Only]] FBis251:
You noticed that you typed in Suppor t, and not Support. You have a space between the R and the T.

To change what they say you have to edit the lang files. Look further up for examples on translating the interface since that's what you need even if you do keep it in English.
[Android Software/Hacking General [Developers Only]] anryl:
Changed in quote

Or in lang file create strings warning.supporttitle="title".....
[Android Software/Hacking General [Developers Only]] ...Awesome...:
Awesome thanks it worked
[Android Software/Hacking General [Developers Only]] Dblfstr:
what is the full text of the error?

Is there a full log here?

/tmp/recovery.log or /cache/recovery.log.
[Android Software/Hacking General [Developers Only]] thommy86:
now i wanted to flash again to get the right log for you.. and the script is working..

so when i am testing the script.. do i need to reboot the complete device or recovery?

because i just stay in the recovery and mount the device.. copy the zip and flash.. when i get an error.. i do the same again..
[Android Software/Hacking General [Developers Only]] ...Awesome...:
Restart the recovery or change the name of the file and reflash if not you will get the same results from the previous flash
[Android Software/Hacking General [Developers Only]] DsturbD:
request - is there a way to get the log file to be named with a time stamp? if you flash the same rom it just overwrites the last one. case in point, Mr. Apocalypse uses Aroma installer for Genesis V1 on the LG G2x, and he has lots of options. it would be nice to have time stamped log files to see the difference when choosing different options. right now each time i flash and save a log file it just overwrites the last one

by the way, Aroma Installer and File Manager are sweet!! donation will be forthcoming to help you get a new phone!!! well deserved!!
[Android Software/Hacking General [Developers Only]] amarullz:
Good idea, Will add it into next version,..

Also I will change the calibration method with AROMA Filemanager calibration method (more accurate - Old calibration will still supported, but I will mark it as deprecated), and playing around with NEON instruction for faster performance. (Will release in 2 build - With NEON or without NEON).

Will buy a phone soon.. (when my web project has been payed :D) and continuing my lovely projects.
[Android Software/Hacking General [Developers Only]] pimpmaneaton:
Will the new calibration by chance help out me with my problem on the kindle fire. I have a post about my problem a couple of posts back.

Launched for a great Thor ICS Rom!!!
[Android Software/Hacking General [Developers Only]] amarullz:
Just try http://bit.ly/aromafm (Aroma Filemanager), if it works, it will works :D
[Android Software/Hacking General [Developers Only]] TweetyPeety:
Hi Amarullz

still great TOOL that you created, but I have now one small problem.

I am using a Popup to ask for language.

if
confirm(
"Language/Sprache",
"",
"@no",
"English",
"Deutsch"
)=="yes"
then
writetmpfile(
"lang.prop",
"selected=2\n"
);
else
writetmpfile(
"lang.prop",
"selected=1\n"
);
endif;

works perfectly !!!!!

I am also using your Aroma Installer with Aroma Filemanager and the skip to File Manager works also, but coming back kills the language, the same for coming back out of System Information. Once it kills the whole language so only strings can be seen and once it sets the language to German, although I have chosen English.

To make it more clear I have uploaded my meta-inf, don't worry updater-script is empty so nothing will happen.
[Android Software/Hacking General [Developers Only]] Justin Read:
Tiramisu & Aroma

Hi,

I was hoping you may be able to help me.

I just installed the Tiramisu Rom which uses your installer and am 99% happy

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

Do you have a zip I could install to get iCS standard dialer. The one on the above mentioned rom is ugly and doesn't sync facebook sns's into contacts. Very strange????

Thanks guys and keep up the great work