yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Robobob1221:
Delete Option

I was wondering if I could get some advice.

I'm trying to include an option to remove some mods from a device from within the installer.

Its an option in the menubox, which proceeds to a checkbox where there are three delete options to choose.

If these options are included in the updater-script will they be run independently or as part of the whole updater thus rendering them kind of useless as the whole point is to only remove the mods and not reflash the whole ROM.

Can anyone point me in the right direction, be it a thread/post, or a pointer?! Thanks
[Android Software/Hacking General [Developers Only]] Dblfstr:
I would think, that if you have a "Remove Mods" menu box, that led to a list of the mods in a checkbox, that writes to remove.prop, Then you could have the updater-script check : if remove.prop selected =1, then remove whatever mod.

The problem I see is maybe if that mod is not installed, and you try to remove it, you may get an error.
[Android Software/Hacking General [Developers Only]] Androguide.fr:
Exactly, the solution I use is to run a simple shell script to remove the mods, so that if it's not there, no error is triggered.

So you could simply do something like :

if file_getprop("/tmp/aroma-data/remove.prop","selected.1") == "1" then
package_extract_file("yourmodpath/yourmod", "/tmp/yourmod");
set_perm(0, 0, 0777, "/tmp/yourmod");
run_program("/tmp/yourmod");
endif;

Where yourmod is something like :

#!/system/bin/sh

rm -f /removepath/modtoremove
[Android Software/Hacking General [Developers Only]] evil1art:
is there a size limit or menu limit for the installer?

the problem is after the rom install it doesnt reboot, and if I remove some options to the rom it will reboot fine?
[Android Software/Hacking General [Developers Only]] vaibhavknockout:
Help please!

Dear all,

I am currently facing a CWM bootloop on my micromax funbook infinity tablet due to flashing of an untested recovery.img. Every time i restart the system, the tablet enters the CWM back. I looked up at various places for solution and the best solution seems to flash a working recovery.img through edify script.

My problem is that although in the past, i have tried a zillions times to write, zip and sign my CWM flashables, it never worked. And this time too, it didn't. Here's what i am trying to do -

package_extract_file("misc.img","/tmp/misc.img");

write_raw_image("/tmp/misc.img","recovery");

delete("/tmp/misc.img");

Attached is the complete zip file for you to inspect where misc.img is a working recovery for my tablet. Can an expert be kind enough to look into the zip file and guide me further with this? Any help would be highly appreciated...:angel:

Best,

Vaibhav
[Android Software/Hacking General [Developers Only]] Turge:
I fail to see why you even thought of posting this here, but just flash the working recovery through fastboot:

fastboot flash recovery c:\misc.img

If you need further help, do some searches. There are a LOT of resources out there about flashing from the bootloader using fastboot.
[Android Software/Hacking General [Developers Only]] vaibhavknockout:
Thanks for your reply, i appreciate it. I know a bit about fastboot commands and it's capabilities. The problem is that there no known method of entering into fastboot mode for funbook infinity (it lacks any physical buttton except home and power). Else it would have been a cakewalk with the command that you have mentioned (I've used it zillion times for my phone). And yes i have googled the issue before posting.

Is there anyone who can look into the zip file and guide me further with this. Thanks.
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
New User, Weird Issue

Hey, I'll admit I'm new to the world of coding but trying to learn as much as possible. Looking at the various Aroma scripts that have been created by other devs, I see that they skip lines between different blocks of code. This makes the code easier to read, which I like. I use notepad++ to put my Aroma together. I started using the GUI package creator, and then modifying it with all the additional stuff that I want to add that the GUI can't do. Everything I've done works, I've made a fully functional installer that works great. But the updater-script will only work if I leave it in the computer-manufactured 1-line script. If I skip lines after each semicolon, it causes it to fail. I'm sure there's something simple that as a beginner I'm just missing. If someone could throw me a bone on this one that'd be great.
[Android Software/Hacking General [Developers Only]] JesusAlber1:
CWM says to me that there is any wrong in the last line of this part of aroma-config... There is a SINTAX ERROR but I don't see it, the line and column are painted in red, at the end.

I have no idea about C language... I hope it not to be a stupid question...

menubox(
#-- Title
"Elige tu modelo:",

#-- Sub Title
"Elige el modelo de tu terminal:",

#-- Icon
"@personalize",

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

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

"Arc S",	"Sony Xperia arc S LT18i",	"@device", #-- selected = 1
"Arc",	"Sony Xperia arc LT15i",	"@device", #-- selected = 2

[COLOR="Red"]);
[/COLOR]
[Android Software/Hacking General [Developers Only]] Robobob1221:
"@device", #-- selected = 2

You need to remove the comma after the @device
[Android Software/Hacking General [Developers Only]] JesusAlber1:
Thank you, I do the same twice. Now AROMA works :D
[Android Software/Hacking General [Developers Only]] zhanjia:
everything about the updater-script was fine until i decided to add commands to flash data folder..

These was the commands i added..

ui_print("@ Extracting data....");

mount("MTD", "userdata", "/data");

package_extract_dir("data", "/data");

After flashing the system folder.. it directly finished the installation and and skipped create symlinks part andfix permissions part...

All i get was expected 4 arg, got 3

....
[Android Software/Hacking General [Developers Only]] Dblfstr:
Try:

from:

mount("MTD", "userdata", "/data");

to:

mount("ext4", "EMMC", "userdata", "/data");
[Android Software/Hacking General [Developers Only]] zhanjia:
I've made 4 attempts on fixing this, but it doesnt work

It kept on stating SYNTAX ERROR !!! aroma config on line 144 col 6...

Please give advice...
[Android Software/Hacking General [Developers Only]] Dblfstr:
Cannot open rar files. Can you just paste you code in your post? with code tags

[ code]

[/ code]

no spaces...
[Android Software/Hacking General [Developers Only]] Dblfstr:
Remove the , after the 0...

"Additional",	"", 2, #-- Group 4. key = "item.4.x"
"XDA App",	"xda-developers app, 0, #-- item.4.1 = Un-Selected by default

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);
[Android Software/Hacking General [Developers Only]] Turge:
I think Aroma errors out when you end with a comment (#---- FINISH)
[Android Software/Hacking General [Developers Only]] :
But it says there is a error on line 1 col 1, not the last line
[Android Software/Hacking General [Developers Only]] Turge:
So you tried it?

By the way, quickest way to test your Aroma Config is to create a zip with just your META-INF folder in it.
[Android Software/Hacking General [Developers Only]] :
yes, I have tried it, the only edits I did was remove some options from the original rom that I ported.
[Android Software/Hacking General [Developers Only]] Robobob1221:
Are you using the correct format, UNIX?
[Android Software/Hacking General [Developers Only]] :
Hi

I hope someone can help me... my updater-script is not running... and i dont get an error...

here are my aroma-script and updater-script. I hope someone find my mistake.

i have tested some updater-binarys from cm10 (i9300), omega v31 and other sammy stok roms... but the updater-script is not running.

Thanks

Tobi

Problem fixed...

mounting /preload deleted... script is running.
[Android Software/Hacking General [Developers Only]] Dblfstr:
Never closed parenthesis here:

###################################################################################################################
#
# STEP 11 - FINISH MESSAGE, Add Checkbox to Reboot or No. Save in "reboot_it" variable
#
# You can use return value or "reboot_it" variable to retrive checkbox value
# Example:
# if (checkviewbox(....)=="1" then
# ... checked ...
# endif;
#
[Android Software/Hacking General [Developers Only]] :
What do you mean by closed parenthesis? Can you edit my aroma config so its fixed?

Sent from a OptiMaxed Xperia Ray using Tapatalk
[Android Software/Hacking General [Developers Only]] Dblfstr:
Sorry, I did not realize those lines were commented out.
[Android Software/Hacking General [Developers Only]] Robobob1221:
Are you using notepad++?

Have you made sure EOL conversion is set to unix?

An enviousOG
[Android Software/Hacking General [Developers Only]] Robobob1221:
Is there a limit to how long an aroma config can be??
[Android Software/Hacking General [Developers Only]] zhanjia:
Nope i think, if your aroma config is big, your updater-script must be big also

I hereby support an OFF-Topic thread.
[Android Software/Hacking General [Developers Only]] zhanjia:
After aroma installation, the apps i checked in aroma didnt get installed. Why is that ?

My updater script and aroma config works fine.

The commands in the updater script is arranged at the end of the script, before the unmount system and umount data

I hereby support an OFF-Topic thread.
[Android Software/Hacking General [Developers Only]] rcade2005:
Use the old update-binary-installer file from aroma 2.0 zip. This worked for me
[Android Software/Hacking General [Developers Only]] Волк:
Dumb question:

In a select box, must I list items in numerical order?

Example:

"Title", "explanation", 2, #-- Group 2
"Do this", "What this does", 0, #-- item.2.1

"Other stuff", "Why you want this", 2, #-- Group 1
"Do This", "What this does", 0 #-- item.1.1
[Android Software/Hacking General [Developers Only]] Turge:
anything after the "#" is simply a comment...

so this is the same:

"Title", "explanation", 2,
"Do this", "What this does", 0,

"Other stuff", "Why you want this", 2,
"Do This", "What this does", 0
[Android Software/Hacking General [Developers Only]] Волк:
That's what I was afraid of. Thanks.
[Android Software/Hacking General [Developers Only]] Turge:
Why?
[Android Software/Hacking General [Developers Only]] Волк:
Means I have to change what I already wrote in a script. Just a pain. I wrote a quick, initial version for the person I'm writing it for, and am doing more work on it right now; needed to add in a group selection before the one I already wrote, which means I had to change the "file_getprop"s in my updater-script.
[Android Software/Hacking General [Developers Only]] zhanjia:
Now the problem

expected 4 arg. Got 3

Sent from my WT19i
[Android Software/Hacking General [Developers Only]] H89P:
Hey Guys,

does any of you know wether there is a possibility to combine Aroma and Villain Theme system? Found no way till now.
[Android Software/Hacking General [Developers Only]] rayford85:
yep, I've done it. Here is a small example of how you could do it ;)

aroma config

selectbox(
"Install method",
"<#999>Please Select</#>",
"icons/apps",
"villain.prop",

"Stock ICS Icons","Installs Stock ICS Statusbar Icons",1,
"Skip theme install","Skip Icon Theming",0
);

updater script

if
file_getprop("/tmp/aroma-data/villain.prop","selected.0") == "1"
then
ui_print("Running VillainTheme");
ui_print(" ");
ui_print("... VillainTheme Flasher ...");
ui_print(" ");
ui_print("For more info etc, head to www.villainrom.co.uk");
ui_print(" ");
ui_print(" ");
ui_print("Preparing to theme...");
ui_print(" ");
ui_print(" ");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
delete("/sdcard/vrtheme");
package_extract_dir("vrtheme", "/sdcard/vrtheme");
set_perm(0, 0, 0755, "/sdcard/vrtheme/installtheme.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0755, "/sdcard/vrtheme/cleanup.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zipalign");
run_program("/sdcard/vrtheme/installtheme.sh");
ui_print("UI Theming complete");
ui_print(" ");
run_program("/sdcard/vrtheme/cleanup.sh");
endif;
[Android Software/Hacking General [Developers Only]] H89P:
Thx but found out that my implementation was right and had a problem somewhere else :rolleyes:

Gesendet von meinem HTC One X mit Tapatalk 2
[Android Software/Hacking General [Developers Only]] ansonscleung:
I wrote an aroma-config for my ROM in S III LTE, however it has an error at line 381 col 1 (the end of the code)

I thought it is an endif error but I didn't found out any.

The whole META-INF is attached in the zip.

Please help if you could.
[Android Software/Hacking General [Developers Only]] kemaro30:
hey guys can you help me figure out the error i got?

i got an error in the first if statement, here it is:

menubox(
"Kemaro Rom Installation",
"@install",
"type.prop",
"Applications",	"Install Applications","@personalize",	#-- selected = 1
"Bloatwares", "Install Bloatwares","@personalize #-- selected = 2
);
if (prop("type.prop","selected")=="2") then
checkbox(
"Bloatwares Installation Mode",
"Select what to install:",
"@personalize",
"customize.prop",
"Bloatwares", "", 2,
"BarcodeReader","Best Barcode Reader App",0,
"FlashPlayer","Flash Player for Stock Browser",0,
"LookOutAntiVirus","Great Anti Virus!",0,
"NetSpeed","Monitors Download/Upload Speed Real-Time!",0,
"SMSBackup&Restore","Messages Backup and Restore App",0,
"WaveControl","Control Your Music and Video through Wave!",0
);
endif;
if (prop("type.prop","selected")=="1") then
checkbox(
"Applications Installation Mode",
"Select what to install:",
"@personalize",
"customize.prop",
"Applications", "", 2,
"DirectoryBind","Transfers Internal Memory to External Memory",0,
"exDialer","Fastest Dialer and Contacts App",0,
"Xplore","The BEST File Manager for Android!",0
);
endif;
ini_set("text_next", "Install");
viewbox(
"Ready to Install",
"The wizard is ready to begin installation.\n\n"+
"Press <b>Install</b> to begin the installation.\n\n"+
"If you want to review or change any of your installation settings, press <b>Back</b>. Press Left Hard Button -> Quit Installation to exit the wizard.",
"@install"
);

the first if got the error and i do not know why.. :/

i also attached the aroma-config.

thanks.
[Android Software/Hacking General [Developers Only]] AL92:
Hi, i've a problem... I'm trying to configure the installation of my rom through aroma, but when the last screen, the installation ends without removing anything ... just says "Installation Status: 6." These are the files AROMA with various scripts .... can someone give me a hand?

https://www.dropbox.com/sh/zahayoya9q05kr6/eYYqOAzTn4
[Android Software/Hacking General [Developers Only]] zhuhang:
Is there any thread to teach how to use this aroma from scratch?

I donno what's going on in aroma on xperia S. I keep seeing demo things, not customizing installation.

When i scroll, the phone hangs forever. Working on locked bootloader? :p

And how to make the zip?

Copy system/ to aroma zip/ ?
[Android Software/Hacking General [Developers Only]] AL92:
Help Me! :crying::crying:
[Android Software/Hacking General [Developers Only]] shubhamchamaria:
checkbox(
"Choose aditional mods",
"Please check the ones you want",
"icons/apps",
"mods.prop",

"Desense","Removes HTC Sense from the ROM and gives AOSP feel",0,
);

if prop("mods.prop","item.0.1")!="1" then
writetmpfile(
"launcher.prop",
"selected=0\n"
);
else

menubox(
"Launcher Options",
"Please select preferred launcher below",
"@apps",
"launcher.prop",

"Nova","Choose to Install Nova Launcher","@nova",
"Apex","Choose to Install Apex Launcher","@apex"
);
endif;

Can someone tell me whats wrong with this...I can't figure it out
[Android Software/Hacking General [Developers Only]] AL92:
Help :crying:
[Android Software/Hacking General [Developers Only]] RoryB:
Looks like the , after the 0
[Android Software/Hacking General [Developers Only]] shubhamchamaria:
Thanks ....i had figured that out eventually but thanks for your help

I am using aroma after a long time :p
[Android Software/Hacking General [Developers Only]] Robobob1221:
You need a comma after the rom description

"Vitality RFS", "Install the RFS version with Stock 800Mhz kernel for the Vitality", "@customize"
[Android Software/Hacking General [Developers Only]] sniper:
A bump on this from the main thread...

And I was wondering, is it possible in aroma to use multiple file_getprop's after an if statement so I could do something like if X, Y, and Z are 1 1 1 it does one thing but then with another if statement if they are 1 1 2 it will do something else and so on.

Edit: actually, I used nested if's instead and it works perfectly :)

# Blue
if
file_getprop("/tmp/aroma/themes.prop","selected.1") == "2"
then
ui_print("@ Installing CleanBlue");
package_extract_dir("sniper/themes/blue/system", "/system");
if
file_getprop("/tmp/aroma/themes.prop","selected.2") == "2"
then
ui_print("@ Installing Toggles");
package_extract_dir("sniper/themes/blue/system", "/system");
package_extract_dir("sniper/themes/blue/toggles/framework", "/system/framework");
package_extract_dir("sniper/themes/blue/toggles/MORPH", "/tmp/");
package_extract_dir("sniper/themes/qps", "/system/app");
package_extract_dir("sniper/themes/settings/MORPH", "/tmp/");
endif;
if
file_getprop("/tmp/aroma/themes.prop","selected.3") == "2"
then
ui_print("@ Installing Inverted LED");
package_extract_dir("sniper/themes/blue/bluecharge/MORPH", "/tmp/");
endif;
endif;

# Green
if
file_getprop("/tmp/aroma/themes.prop","selected.1") == "3"
then
ui_print("@ Installing CleanGreen");
package_extract_dir("sniper/themes/green/system", "/system");
if
file_getprop("/tmp/aroma/themes.prop","selected.2") == "2"
then
ui_print("@ Installing Toggles");
package_extract_dir("sniper/themes/green/system", "/system");
package_extract_dir("sniper/themes/green/toggles/framework", "/system/framework");
package_extract_dir("sniper/themes/green/toggles/MORPH", "/tmp/");
package_extract_dir("sniper/themes/qps", "/system/app");
package_extract_dir("sniper/themes/settings/MORPH", "/tmp/");
endif;
if
file_getprop("/tmp/aroma/themes.prop","selected.3") == "2"
then
ui_print("@ Installing Inverted LED");
package_extract_dir("sniper/themes/green/bluecharge/MORPH", "/tmp/");
endif;
endif;

# Red
if
file_getprop("/tmp/aroma/themes.prop","selected.1") == "4"
then
ui_print("@ Installing CleanRed");
package_extract_dir("sniper/themes/red/system", "/system");
if
file_getprop("/tmp/aroma/themes.prop","selected.2") == "2"
then
ui_print("@ Installing Toggles");
package_extract_dir("sniper/themes/red/system", "/system");
package_extract_dir("sniper/themes/red/toggles/framework", "/system/framework");
package_extract_dir("sniper/themes/red/toggles/MORPH", "/tmp/");
package_extract_dir("sniper/themes/qps", "/system/app");
package_extract_dir("sniper/themes/settings/MORPH", "/tmp/");
endif;
if
file_getprop("/tmp/aroma/themes.prop","selected.3") == "2"
then
ui_print("@ Installing Inverted LED");
package_extract_dir("sniper/themes/red/bluecharge/MORPH", "/tmp/");
endif;
endif;
[Android Software/Hacking General [Developers Only]] sniper:
Edit: Nevermind :p
[Android Software/Hacking General [Developers Only]] Patrics83:
First of all, the link doesn't work.

Status 6 is most likely caused by broken unix code in the updater-script.

Or unreadable updater-script. Renamed or moved.

If you are on windows, make sure you use notepad++

Open your updater-script with notepad++ and look at the bottom line, it should state unix and not DOS\Windows

Good luck...

"Help :crying::crying:" << As a ROM developer you should know better...
[Android Software/Hacking General [Developers Only]] ksmullins88:
Im wondering if anyone would be able to PM me and help me with my aroma script. i have it to where it will run the config and then run the installer also. no errors, but it wont actually install the things it says it is.

would anyone be willing to assist? its causing me migraines haha
[Android Software/Hacking General [Developers Only]] sniper:
Sure I'll help. Check your pm in a minute.

Click here for custom mods for your E4GT
[Android Software/Hacking General [Developers Only]] ksmullins88:
nice awesome man. thanks!
[Android Software/Hacking General [Developers Only]] kemaro30:
just want to ask something, why can't i make the commands in my updater-script work?

i got lots of package_extract_dir in my updater script but it wont work?

i got like this

if
(file_getprop("/tmp/aroma/app_choices.prop", "item.2.1")=="1")
then
ui_print("Installing Xplore");
package_extract_dir("data/Xplore", "/data/app");
endif;

the "Installing Xplore" shows, but the extract does not. im sure that i got the right update-binary-installer, i got it from the rom that i want to install, its from update-binary and changed it to update-binary-installer however it still fails?

im using 2.5.6..
[Android Software/Hacking General [Developers Only]] Ganesh A:
Edify updater-script question :

What is symlink and how to use it.

What actually it does ???

Answer : ???
[Android Software/Hacking General [Developers Only]] sniper:
Did you mount /data first?

It basically lets you have a file somewhere else but has a file left in the proper place and the system is told where to look for the actual file. Hope that makes sense.

Click here for custom mods for your E4GT
[Android Software/Hacking General [Developers Only]] kemaro30:
yes i do mount /data, i works when i use the aroma-app-package-creator.jnlp then i edit the updater script, it works too but when i tried to add all codes that was used in ROM installing then it doesn't work anymore? :/ so weird.
[Android Software/Hacking General [Developers Only]] 2GigayteSD:
Happens for me and my roms too. None of the apps (other than apps in /system/app) will actually be installed.... I mount /system and /data all the time, even though my updater-script does it for me ;)

Sent from my potato
[Android Software/Hacking General [Developers Only]] Волк:
Try changing it to package_extract_file("file-path/your-app.apk", "data/app/");

Do double check that the command layout is correct, I am mobile, so I can't check myself.
[Android Software/Hacking General [Developers Only]] Wizard0f0s:
I had the same issue on the DroidX and it turned out that the /data/app directory had to be manually created and the permissions set properly or it would just do random odd things.

Sent from my Jelly "Bean"ed SGS3
[Android Software/Hacking General [Developers Only]] Ganesh A:
Can you please explain me about show progress command..
[Android Software/Hacking General [Developers Only]] kemaro30:
ok now its working, but when i edit the aroma config and added some more codes it just damn doesn't work again, after i click the install it doesn't show anything, just blank and the buttons only to reboot or not. aren't there any explanations? or tutorials on how to make it work? it works before then i just added splash in the top most code in aroma config then it crash, ftw.
[Android Software/Hacking General [Developers Only]] mjhay19:
Syntax Error line 112

Please Help!

if (prop("type.prop","selected")=="2") then
checkbox(
"Applications",
"Select the apps you want to install: ",
"@personalize",
"custom.prop",

"Accuweather","Accuweather Widgets",1,
"ChatOn","Chat On",1,
"Dropbox","Drop box",1,
"Flipboard","Flipboard",1,
"GoogleMaps","Google Maps",1,
"GooglePlus","Google Plus",1,
"Kies","Kies",1,
"MediaHub","Media Hub",1,
"MusicHub","Music Hub",1,
"PolarisViewer","Polaris Viewer",1,
"SamsungApps","Samsung Apps",1,
"SMemo","S-Memo",1,
"SSuggest","S-Suggest",1,
"SVoice","S-Voice",1,
"VoiceRecorder","Voice Recorder",1,
"Yahoo","Yahoo Stocks Widgets",1,
"Youtube","Youtube",1,

); [COLOR="red"]<--line 112[/COLOR]

endif;
[Android Software/Hacking General [Developers Only]] sniper:
Get rid of that last comma.

Click here for custom mods for your E4GT