yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] C13v3r0n3:
Got it to work by itself, haven't put it in with a rom install yet, here is snippets:

aroma-config:

selectbox(
"Select Theme",
"Choose the installation type that best suits your needs.",
"@install",
"theme.prop",

"Black","J Black theme NO XML ver.",0
);

updater-script:

set_progress(0.10);
ui_print(".oOo.Mounting System.oOo.");
ui_print(" ");
mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");

#Black
if file_getprop("/tmp/aroma-data/theme.prop","selected.0") == "1" then
ui_print(".oOo.Installing Black theme.oOo.");
show_progress(0.2, 4);
package_extract_dir("Axe/themes/vrfiles", "/sdcard/vrtheme");
show_progress(0.2, 1704);
package_extract_dir("Axe/themes/jblack/system/app", "/sdcard/vrtheme/system/app");
show_progress(0.2, 169);
package_extract_dir("Axe/themes/jblack/system/framework", "/sdcard/vrtheme/system/framework");
ui_print(".oOo.Setting Permissions.oOo.");
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");
ui_print(".oOo.Running Install Script.oOo.");
ui_print(".oOo.Please Be Patient.oOo.");
ui_print(".oOo.This Can Take A Couple Of Minutes.oOo.");
ui_print(".oOo.Progress Bar Will NOT Move.oOo.");
run_program("/sdcard/vrtheme/installtheme.sh");
endif;

Hope this helps.
[Android Software/Hacking General [Developers Only]] demkantor:
Try updating to a newer version of aroma, the latest you should need touch screen calibration at all
[Android Software/Hacking General [Developers Only]] C13v3r0n3:
Go here

http://xdaforums.com/showthread.php?t=1461712
[Android Software/Hacking General [Developers Only]] ^I'm_With_Stupid:
Updated Aroma Installer and the touchscreen is still buggy and unresponsive and the indication bar is still flickery. Whenever you use the hardware keys to navigate or touch one of the options, it gravitates back to an option in the middle of the screen :(

Has anyone ever experienced this before?
[Android Software/Hacking General [Developers Only]] demkantor:
So your screen is 480x854 and you have calibrated touch yourself? When you updated to newer aroma did you try to comment out any line about calibration/screen resolution etc?
[Android Software/Hacking General [Developers Only]] ^I'm_With_Stupid:
In the updated Aroma Installer, I left all the default settings in the aroma config. But should I have changed any settings?

Thank you so much for helping me by the way :D
[Android Software/Hacking General [Developers Only]] demkantor:
The more recent aroma packages should automatically calibrate (should but not always) so try a newer aroma and comment out any lines in your aroma config that has to do with calibrations and then test, I've been using the 2.56 aroma on multiple devices without any issues. Ran into some snags with the 2.7 beta ones but use what works for you
[Android Software/Hacking General [Developers Only]] grzesdroid:
can anyone help? I don't know what is wrong.. I use Aroma b7

http://www.mediafire.com/view/?ch8ve7c2xp1j564
[Android Software/Hacking General [Developers Only]] Harbir:
Get a save log from aroma ,paste it here and also explain the problem too ! So we can look that way
[Android Software/Hacking General [Developers Only]] grzesdroid:
http://www.mediafire.com/view/?u7ioocnjnxxdjx4
[Android Software/Hacking General [Developers Only]] Harbir:
Try changing formats codes to this

format("ext4", "EMMC", "/dev/block/mmcblk0p9");

assert(unmount("/cache") || ui_print("(cache is unmounted already)"));

format("ext4", "EMMC", "/dev/block/mmcblk0p8");

ui_print("@Mounting partitions");

Have u replace ur update binary installer with ur previous aroma one?
[Android Software/Hacking General [Developers Only]] grzesdroid:
Yes, I replaced the update binary

Edit

I copied all the text and changed some update script, at the moment it does not show the information of installation was just all the time shows "installation" and so on, I have already ideas what is wrong
[Android Software/Hacking General [Developers Only]] lacoursiere18:
Hi

Im trying to fix my updater script to set permissions on a folder in xposed../data/data/de.robv.android.xposed.mods.appsettings/shared_prefs/ModSettings.xml.. I need to set the permissions to all boxes so that it will work on boot. If not my app settings per dpi will not stick.. My script looks like this:

ui_print("Writing Data & System");
package_extract_dir("data", "/data");
set_progress(0.4);
set_progress(0.5);
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/xposed");
set_perm_recursive(0, ,0, 0777, 0777, "/data/data/de.robv.android.xposed.mods.appsettings/shared_prefs/ModSettings.xml");
package_extract_dir("system", "/system");
set_progress(0.6);

But when I flash aroma everything goes through but at the end when it loads all the files.. I see 0% with the progress bar not moving and then it ask me to reboot with nothing loaded.. Any help would be appreciated!
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
Can you save the aroma log and post it along with your updater-script. It will give us an idea of what may have gone wrong.
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
You can use the start function from the shell to check the perms on another xml settings file like this:

This will show you the uid/pid/mode.

In regards to setting the perms on that xml file, I think you only have a little mistake... I think this:

Should look like this:

You forgot the /data/data portion of the path ;)
[Android Software/Hacking General [Developers Only]] Deckoz2302:
Woah awesome! I didnt even think of stat from shell. And lol I feel dumb for forgetting /data/data now haha
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
It's so easy to miss those little things when your staring at mounds of code ;)

Glad I could help!
[Android Software/Hacking General [Developers Only]] Deckoz2302:
Yea and when your working on like 8 things at once lol. Thanks again man
[Android Software/Hacking General [Developers Only]] BarakOsama:
I have a Chinese developed ROM with awesome AROMA installer for Korean Galaxy Note.

It's in Chinese language, Is there any way to change the ROM's installation language?? :confused:
[Android Software/Hacking General [Developers Only]] lesscro:
Translate Aroma config i think... or change ttf or something lke that... What your AROMA looks like ?
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
Checkout the aroma demo... It has examples of using Chinese unicode, I believe that korean would be the same, unicode ;)
[Android Software/Hacking General [Developers Only]] BarakOsama:
I'll try.. :)
[Android Software/Hacking General [Developers Only]] hlxanthus:
Hey all,

I am trying to add the option of xPosed an aroma config I am working on. My original attempt worked but I had it simply add all the modules along with the xposed frameworks. Well, to make a long story short, if xposed is chosen within my System Modifications section I want it then to give a checkbox of the various modules they might want to install. I have no issues getting my updater-script to do what I have in my prop files so I will only post the aroma-config bits. I can only figure I am not telling it to search the prop file correctly. I have tried it various way but no luck

checkbox(
"System Modifications",
"Check the ones you want",
"@personalize",
"sysmods.prop",

"Quick Reply MMS","",0,
"xPosed Framework","Framework Installer must be run and reboot then activate modules and reboot",0,
"TouchWiz Camera","This is beta and not yet fully working",0,
"Viper4Android","",0
);

if (prop("sysmods.prop","selected")=="2") then

checkbox(
"xPosed Module Selection",
"Check the ones you want",
"@personalize",
"xposed.prop",

"GravityBox","",0,
"xPosedAdditions","",0,
"xBlastTools","",0,
"xThemeEngine","",0,
"IconThemer","",0,
"PerAppDPI","",0,
"Greenify","",0,
"Pics2SD","",0,
"CallRecording","",0,
"SysScopeBlaster","",0,
"RemoveUnsafeVolumeWarning","",0,
"TabletUI","",0
);
endif;

EDIT: fix figured out, sorry for bothering you all. I was calling on the prop like it was a selectbox not a checkbox. Lesson learned

checkbox(
"System Modifications",
"Check the ones you want",
"@personalize",
"sysmods.prop",

"Quick Reply MMS","",0,
"xPosed Framework","Framework Installer must be run and reboot then activate modules and reboot",0,
"TouchWiz Camera","This is beta and not yet fully working",0,
"Viper4Android","",0
);

if prop("sysmods.prop","item.0.2") == "1" then

checkbox(
"xPosed Module Selection",
"Check the ones you want",
"@personalize",
"xposed.prop",

"GravityBox","",0,
"xPosedAdditions","",0,
"xBlastTools","",0,
"xThemeEngine","",0,
"IconThemer","",0,
"PerAppDPI","",0,
"Greenify","",0,
"Pics2SD","",0,
"CallRecording","",0,
"SysScopeBlaster","",0,
"RemoveUnsafeVolumeWarning","",0,
"TabletUI","",0
);
endif;
[Android Software/Hacking General [Developers Only]] Alex_rac:
set different color text

hi , i need help

is it possible to set different color text in this list of elements?

my code:

####

# Customize Install

###

selectbox(

#-- Title

"Main Title",

#-- Sub Title

"Choose your favourite color:",

#-- Icon: <AROMA Resource Dir>/icons/default.png or <ThemeDir>/icon.default.png

"@default",

#-- Will be saved in /tmp/aroma/mods.prop

"mods.prop",

#----------------[ Selectbox With Groups ]--------------------#

# TITLE | SUBTITLE | Initial Value #

#-------------+------------------------------------+-----------------#

"Colors", "", 2, #-- Group 1. key = "selected.1"

"BlackThemeBlueAccent", "BlackThemeBlueAccent color resource", 1, #-- selected.1 = 1

"BlueTheme", "BlueTheme color resource", 0, #-- selected.1 = 2

"BlackTheme", "BlackTheme color resource", 0, #-- selected.1 = 3

"GreenTheme", "GreenTheme color resource", 0, #-- selected.1 = 4

"OrangeTheme", "OrangeTheme color resource", 0, #-- selected.1 = 5

"PinkTheme", "PinkTheme color resource", 0, #-- selected.1 = 6

"PurpleTheme", "PurpleTheme color resource", 0 #-- selected.1 = 7

);

what i want to do is set the text color of the list with the corrisponding one like....

BlueTheme in blue color

GreenTheme in green color

and so on....

please help
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
Enclose the text inside ams tags like this:
[Android Software/Hacking General [Developers Only]] Alex_rac:
best thanks i m trying right now :)

TESTED ALREADY HIT THE THANKS BUTTON :highfive:
[Android Software/Hacking General [Developers Only]] C13v3r0n3:
Can also do this.

ui_print("@text here")

This will change the text to the theme color you are using.
[Android Software/Hacking General [Developers Only]] Al_Shoot:
Can anyone help me? installer gives me status 6 to finish but the updater does nothing:confused:

View attachment Aroma.rar
[Android Software/Hacking General [Developers Only]] hlxanthus:
Okay guys, so this works. Except if you DONT choose xposed and don't generate that xposed.prop the updater-script fails. So I need to generate my prop with all zero values. I need help with turning this into an if/else clause and building that prop with the writetmpfile command. Every attempt I make fails. Can someone post a working structure that I can mimic? I have already pulled the values I need to transplant into the writetmpfile structure, just cant seem to implement it
[Android Software/Hacking General [Developers Only]] titanic_fanatic:
There's an example of this in the aroma installer demo aroma-config ;)
[Android Software/Hacking General [Developers Only]] hlxanthus:
Actually I have tried that like 5 times and each time aroma fails to load due to syntax errors. I will try and rebuild another one tonight so I can post for feed back. Either way I still would appreciate another example

Sent from my Galaxy S4

EDIT: Here is one of my gererated if/else attempts. Do you see anything wrong?

if prop("sysmods.prop","item.0.2") == "1" then

checkbox(
"xPosed Module Selection",
"Check the ones you want",
"@personalize",
"xposed.prop",

"GravityBox","Allows you to edit your quick tiles, transparency, battery, clock, and a lot of other cool stuff too",0,
"xPosedAdditions","Adds screen on options for the power button, home button, or both in Display settings",0,
"xBlastTools","Similar to GravityBox, in addtion it allows you to change individual parts' colors and your carrier name",0,
"xThemeEngine","Allows you to theme the ROM similar to TMobile Theme Chooser",0,
"IconThemer","Allows you to use icon theme sets",0,
"PerAppDPI","...Per App DPI",0,
"Greenify","Control how the system handles app hibernation",0,
"Pics2SD","Saves your pictures to SDcard",0,
"CallRecording","Enables call recording for you crazy politicians",0,
"SysScopeBlaster","Supposedly makes the system think it's official",0,
"RemoveUnsafeVolumeWarning","Remove unsafe volume warning",0,
"TabletUI","Supposedly a switch to select tablet ui",0
);
else
writetmpfile(
"xposed.prop",

"item.0.1=0\n"+
"item.0.2=0\n"+
"item.0.3=0\n"+
"item.0.4=0\n"+
"item.0.5=0\n"+
"item.0.6=0\n"+
"item.0.7=0\n"+
"item.0.8=0\n"+
"item.0.9=0\n"+
"item.0.10=0\n"+
"item.0.11=0\n"+
"item.0.12=0\n"
);
endif;
[Android Software/Hacking General [Developers Only]] demkantor:
[MENTION=4129069]hlxanthus[/MENTION]

Can you upload your meta-inf folder here along with exact error your getting
[Android Software/Hacking General [Developers Only]] hlxanthus:
Doesn't it figure that when I thru and built the version above it worked?
[Android Software/Hacking General [Developers Only]] DHD22800:
aroma-config

Hi, my aroma config, do a syntax error on the last line. How do i fix it ?

My aroma config
[Android Software/Hacking General [Developers Only]] Harbir:
U don't have ); in the end of one select box

selectbox(

"Applicazioni",

"Scegli se rimuovere o meno le applicazioni",

"icons/apps",

"apps.prop",

"Non rimuovere nulla",0,

"Rimuovi Applicazioni",1,

And remove the , from 1
[Android Software/Hacking General [Developers Only]] Patrics83:
I posted this is the Q&A AROMA Installer thread but so far I had no response...

Maybe others will see it here :)
[Android Software/Hacking General [Developers Only]] Phil3759:
Have no idea about aroma getvar, but, if you are parsing a file for key=value, there are some shell scripts to do it. I use a very simple way in ors mounter sh file and in my i9100 zip installers

If it's what you are looking for, let me know
[Android Software/Hacking General [Developers Only]] Patrics83:
Thanks for your input :)

I have found a solution that works as I want, a bit long codes but that doesn't matter as long I can set the variable at one place and then use it over over again just like in a sh script. :highfive:

Here is the solution
[Android Software/Hacking General [Developers Only]] hlxanthus:
Okay guys, here I go again. I am trying to call 2 different prop values and I am not sure on the syntax. I have tried it a few different ways. I know this isn't correct. Any ideas or thoughts? Basically I am using a build.prop editor

if
file_getprop("/tmp/aroma-data/navbar.prop","selected.0") == "2"
file_getprop("/tmp/aroma-data/tweaks.prop","selected.0") == "1"
then
package_extract_dir("tweaks/system", "/system");
package_extract_dir("tweaks/tweaks_no_navbar", "/tmp");
set_perm(0, 0, 0777, "/tmp/mytweaks.sh");
run_program("/tmp/mytweaks.sh", "mytweak");
set_perm(0, 0, 0777, "/system/etc/init.d/0lag");
set_perm(0, 0, 0777, "/system/etc/init.d/1zipalign");
set_perm(0, 0, 0777, "/system/etc/init.d/2tweaks");
set_perm(0, 0, 0777, "/system/etc/init.d/5db_maint");
delete("/system/build.prop.bak");
endif;
[Android Software/Hacking General [Developers Only]] nelikp:
So if I doesn't have any single rom come with aroma installer

where i can get "update-buinary/update-binary-installer" for my device

* i repeat, no any single rom come with aroma for my device *

see my device development here

anyone can help me out?

the META-INF with aroma+old update-binary i attached

View attachment META-INF.rar
[Android Software/Hacking General [Developers Only]] hlxanthus:
You take the update-binary from a working rom, rename it update-binary-installer, and replace the one from the aroma package.

Sent from my Galaxy S4
[Android Software/Hacking General [Developers Only]] nelikp:
Tried but not work

i can go and install/sellected everything but whwn reboot

=nothing installed
[Android Software/Hacking General [Developers Only]] Patrics83:
You must call "if file_getprop"

And "endif;" should look like this.

Also make sure that /system and /data partitions are successfully mounted.

Edit:

file_getprop /tmp/aroma/Mods.prop selected.1 == 1
then
package_extract_dir("Honami/Main Mods/Home/Original/system", "/system");
endif

if file_getprop("/tmp/aroma/Mods.prop", "selected.1") == "1" then
package_extract_dir("Honami/Main Mods/Home/Original/system", "/system");
endif;

You need to carefully look through the whole updater-script for missing syntax etc.

Sent from my HTC One X
[Android Software/Hacking General [Developers Only]] nelikp:
Still doesn't work

maybe i don't really understand

can you do me a favour?

edit it for me?

please..:)
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
Unecpected end? Check for missing , and )

These are common.

If your script doesnt start then there isa syntax error, if it starts but extract nothing then its a .prop value error!

If you post your updater script and aroma config I could help you out?

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

As for my question!

Does anyone know why this is wiping internal sdcard?

http://pastebin.com/nDrArCZH

really got me boggled....
[Android Software/Hacking General [Developers Only]] hlxanthus:
My guess is the delete_recursive(data) you have in there. Many new devices actually store the internal storage there.

Try commenting that line out and trying it. You might need to find a script that will wipe data without wiping internal storage.

Sent from my Galaxy S4
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
will test now thanks!

---------- Post added at 12:24 AM ---------- Previous post was at 12:19 AM ----------

come to think of it, my device does mount sdcard as /data/media

hmm... think theres a way around this? my rom needs to format data :/

also i just tries calling a sh file from updater-script

note i mounted mmcblk1p1 as external_sd

#!/sbin/sh

mkdir /external_sd/TSLD

cd /data/media/

for f in $(ls)

do

mv $f /external_sd/TSLD/$f

rm -r /data

mkdir -p /data/media

mv /external_sd/TSLD/$f /data/media/$f

done

but still not backing up?
[Android Software/Hacking General [Developers Only]] hlxanthus:
I suck with scripts so I can't help there. Just curious why you can't just let the user or yourself do a recovery factory reset? That will leave the internal storage intact.

Sent from my Galaxy S4
[Android Software/Hacking General [Developers Only]] nelikp:
thank you...

I attached my meta-inf on post 1091

thank for your help
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
i could do that. guess im gonna have to for now! but thatnks! MASSIVE HELP!

deserves a thanks!
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
found your problem, you need a different .prop file each time, your calling the same .prop file numerously...

arome just sets the props then runs the updater-script...

it does not run the package during aroma!

if you would like an example i could link you to one of my old mod packs that you could use the META-INF folder?

ofcoarse if you want to publish with it credits need to be inserted ;)

also aroma runs on all phones your just not using it correctly! close though!
[Android Software/Hacking General [Developers Only]] nelikp:
and now what should I Do?
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
download my modpack and use my script as a base, too much to replace in yours!
[Android Software/Hacking General [Developers Only]] eliteforce:
DEL:cowboy:
[Android Software/Hacking General [Developers Only]] nelikp:
OK thanks for your help

Give me your link I will try and see is it work for my device

And sure about proper credits
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
http://xdaforums.com/showthread.php?t=2402925

Dont flash it! Change tje files anf the mmcblk*** to your devices!!
[Android Software/Hacking General [Developers Only]] kinglauryl:
No errors but my aroma did not work please help

Good day sir ricky310711 its my first time using Aroma, I intend to distribute my next patch on my ROM using this but I encountered problem, I made a script to simply extract an APK and delete a certain file from my System\app directory but it failed to work, yet no errors occurred, please help. Here is the link of my script http://d-h.st/TBT and can you check what did I do wrong, thank you for your help in advance.
[Android Software/Hacking General [Developers Only]] DataUnit:
STATUS 0

I was going to create two packages but none of them worked.

After Saving Logs, and reading it using "ADB Shell", I found out that it was "Status 0" error.

I checked out my "updater-script" and all lines of file seem to be correct, but I don't know why these packages don't work!

It maybe 'cause of "update-binary-installer", but I don't know!

My packages are these:

1. AROMA BusyBox Installer

2. AROMA Superuser Installer

I've attached them for you.

Help me if you can! ;)
[Android Software/Hacking General [Developers Only]] Perseus:
I'd dearly love some help. I have been breaking my head on this for a week now.

I did search this thread and google as well. Guess my search was not looking for correct point. Here's my problem.

I have a android device with ICS 4.0.4, that has "yafss2" format. I have attached the mountpoint info, partition info and my updater script.

I am trying to mount the /Data Partition. Although edify script requires the format

mount(type, device, mountpoint);

I need to do

mount("yafss2","MTD", "/dev/block/mtdblock7", "/data");

Anyway, even then its somehow not working. The subsequent "package_extract_dir" operation is not successful and I can see the files are not getting copied.

I'd dearly appreciate any pointers and advice.
[Android Software/Hacking General [Developers Only]] TheDriller:
Have you tried using the busy box mount command?

Tapatalk 4 sucks
[Android Software/Hacking General [Developers Only]] Perseus:
No I did not. I wondered if I had got the mount point correct. If that's correct, then I could try Busybox Mount.
[Android Software/Hacking General [Developers Only]] Dblfstr:
For mount, try:

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

You can try this to see if it is mounted correctly:

Function Name: is_mounted
Function Syntax: is_mounted(mount_point)
Parameter Details: mount_point = string, mount point to check if is mounted
Action: Checks if a filesystem is mounted.
Returns: The mount point if mounted, otherwise, returns null

So:

mount("MTD", "userdata", "/data");
is_mounted("/data");
ui_print(is_mounted("/data")); #Don't know if this will print out or not.
package_extract_dir("data", "/data"); #Whatever you are trying to extract.

Other information:

mount(TYPE, DEV, PATH); This is one version of the mount command. The TYPE arg is usually "MTD", which refers to memory technology device. The DEV for a MTD would be something like "system", "userdata", "cache", and the PATH would be "/system", "/data", or "/cache". You will also see TYPE be "vfat".

mount(FSTYPE, TYPE, DEV, PATH); This seems to be the more current mount command. It adds in the file system type. Ex. "ext3", "yaffs". TYPE with this command can be "MTD" or "EMMC". You would use "EMMC" with "/dev/block/mmcblk0p8". ) -mmcblk0p8-This would be for SD cards