yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] andmax66:
Also getting the same problem with the aroma-config and updater-script that worked fine using aroma V2.50 but they won't work with V2.56 I have attached them also.
[Android Software/Hacking General [Developers Only]] josegalre:
Hello, I have a syntax problem,

Error in aroma-config line 116 column 2

could tell me what syntax error,

thank you very much
[Android Software/Hacking General [Developers Only]] mikep99:
remove the last comma in line 112:

"Nova Launcher 1.3.4", "Highly customizable & Smooth launcher", 0,

should be:

"Nova Launcher 1.3.4", "Highly customizable & Smooth launcher", 0
[Android Software/Hacking General [Developers Only]] josegalre:
Thank you very much, problem fixed
[Android Software/Hacking General [Developers Only]] krabappel2548:
I used AROMA in the past, it was version 2.00 working perfect :)

But now I updated to latest release: 2.56, the problem is:

The installer goes perfectly throught the menu's I made, but when coming to the installation step it installs nothing and goes straight to the reboot screen..

My files are attached here
[Android Software/Hacking General [Developers Only]] mai77:
remember, you can resize font sizes between 2 screens.

very helpful feature sometimes ! :laugh:

big fonts if there is only few text, smaller for large texts.

---------- Post added at 06:51 PM ---------- Previous post was at 06:48 PM ----------

on SGY-phone, aroma does nothing during updater-script when called from android system recov, but works perfectly when called from CWM.

So I use ASR call for "dry runs" ! nice feature ! :cowboy:

---------- Post added at 06:53 PM ---------- Previous post was at 06:51 PM ----------

make sure opening and closing brackets are the same number
[Android Software/Hacking General [Developers Only]] krabappel2548:
What's ASR? Is it Android System Recovery? :p And I run AROMA from CWM recovery v6 :)

I develop for Sony Xperia phones and have never heard of ASR, we don't have a stock recovery with Sony phones :p

So if anyone knows what's the problem, please check the attached files and help me :victory:
[Android Software/Hacking General [Developers Only]] Deadly:
Yes, asr means android system recovery.. which doesn't apply to you as you stated above..

____________________________________________

ಇದು ನನ್ನ ಆಪ್ ಸಿಗ್ನೇಚರ್

ΧΔΑ Fraternity: TOT Time! & IRC Info

If my post doesn't make sense, Ask HTC;)
[Android Software/Hacking General [Developers Only]] mai77:
yes
[Android Software/Hacking General [Developers Only]] Kurtoid:
install per commandline

Hi,

I've working aroma-installer-tools in zip-format and I can start this tools from recovery-tools (cwm, 4extrecovery). Now I want to build a mini-android, witch starts this tools directly from commandline (or shell-scripts). The mini-android and my shell-script is running, but I don't find, how to start the aroma-tools in the zip-file... can somebody tell me where I can find this in the xda-forum (I've search many threads, but can't find it)...

thanks

Kurt.
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
Multiple If Conditions

Ok, so I'm making an installer for both Android 4.1 and 4.2. Basically some of the options work for only 4.1, some work only for 4.2, and some work for both. For the ones that work for both, I'm looking to have a special kind of double if statement. Here's a sample of what I mean:

if

file_getprop("/tmp/aroma/4.1.prop", "selected.1") == "1"

OR

if

file_getprop("/tmp/aroma/4.2.prop", "selected.1") == "2"

then

Now, first of all, I know my syntax was wrong there. The point of what I'm trying to do is I want to avoid duplicate code by being able to say "if either of these two conditions are true, do this". That way I won't have to write a 4.1 and a 4.2 section of the code for things that work in both.

So what would the exact syntax be for that? Any help would be great. Thanks.
[Android Software/Hacking General [Developers Only]] bgcngm:
Is this what you want?

if (file_getprop("/tmp/aroma/4.1.prop", "selected.1") == "1") || (file_getprop("/tmp/aroma/4.2.prop", "selected.1") == "2")
then
...
endif;
[Android Software/Hacking General [Developers Only]] TenderloinShadow:
yes exactly. The || was what I didn't know. So what you wrote there is basically saying "if either of these two things are true, then do this". Because that's exactly it. Thanks a lot for this.
[Android Software/Hacking General [Developers Only]] bgcngm:
No, to be correct the code says "if either one of the conditions is true, then do this...", meaning that the first can be true and the other false or vice-versa, or even both true. If you are thankful, just hit "Thanks" button.
[Android Software/Hacking General [Developers Only]] hockeyfamily737:
Very useful info. Along similar lines is there a way to script it where both conditions must be met? I've been trying to figure it out for a while and haven't yet.

eg: if this condition and this condition are met then do whatever task.
[Android Software/Hacking General [Developers Only]] bgcngm:
Sure, that's as simple as this (the same conditions as previous example):

if (file_getprop("/tmp/aroma/4.1.prop", "selected.1") == "1") [COLOR="Red"]&&[/COLOR] (file_getprop("/tmp/aroma/4.2.prop", "selected.1") == "2")
then
...
endif;
[Android Software/Hacking General [Developers Only]] amarullz:
if the problem was in Installation processes, try to replace your update-binary-installer with your common update-binary.

note: the update-binary is aroma installer binary, so dont replace it, but copy your old update-binary and rename it to update-binary-installer
[Android Software/Hacking General [Developers Only]] Kalashnikitty:
Finally it was not encoded in UNIX i think... damn notepad++ :D

Thanx for the Tip Amarullz with the binary, now i can use 4 args ;)

---------- Post added at 10:11 AM ---------- Previous post was at 10:00 AM ----------

Ok next error incoming :)

log output is:

aroma-config: selectbox() expects 4 args +3 args per items, got 14

selectbox code is:
[Android Software/Hacking General [Developers Only]] amarullz:
Delete the 1 before iif

selectbox(
"Waehle Main Mods",
"Bitte waehlen:",
"icons/apps",
"mods.prop",

"SD-EXT Mods","",2,
"Natives A2SD",
"A2SD von Sandvold - per Terminal einstellbar", 0,

[B]"AD2SDX",
"DATA2EXT Methode von Amarullz - Empfohlen",
iif(getvar("ad2sdx_support")=="yes","0","3")[/B]
);
[Android Software/Hacking General [Developers Only]] avss:
Yippy :-) :-)

Replaced your update-binary-installer with the one I normally use and it installs fine now. Tried it couple of times and all went good now.

Little question tho...

Is it possible to read a choice a user makes back into aroma.

I use a confirmation screen just before installation begins and I want the choice they made repeated back on that confirmation screen.

Example... "you selected xxx are you sure you want to continue? "

Then xxx must be the choice they made.

Verstuurd van mijn GT-I9100 met Tapatalk
[Android Software/Hacking General [Developers Only]] Chaqmol:
Hi

I want to make RCTweaks optional in my rom...i wrote proper code in both aroma-config and Updaterscript....but it doesn't apply changes in the rom...

(RCTweaks includes some apps and some files in framework)
[Android Software/Hacking General [Developers Only]] avss:
And if you use your old update-binary and rename it to update-binary-installer and replace the one in aroma directory?

Verstuurd van mijn GT-I9100 met Tapatalk
[Android Software/Hacking General [Developers Only]] avss:
I found the answer to my question.

Downloaded runnymede's config script and saw how he did it.

Verstuurd van mijn GT-I9100 met Tapatalk
[Android Software/Hacking General [Developers Only]] amarullz:
You mean confirmation dialog?

you can use confirm function. but i am sorry, its sunday, i don't use my pc yet, so cant give you the example.

but yes runnymede aio script was the best learn.
[Android Software/Hacking General [Developers Only]] bar3200:
Can you answer my question please? :)
[Android Software/Hacking General [Developers Only]] avss:
Published my next release powered by Aroma Installer

Yess.

Today i got it all finished and working great.

Time to release it to my loyal fan's and i'm looking forward to their comments on this new way of installing stuff to our devices.

Again, many thanks to you Amarullz :)

It's donation time!! :)

a generous 9JL68036XB711643M for your great work.
[Android Software/Hacking General [Developers Only]] V6-Maniac:
Got one issue with the installer.

After some pm's with amarullz i decided to rebuild the script from scratch.

The following issue comes up and don't have an answer to this.

I working ona a HTC Sensation with 4EXT Touch Recovery and Aroma 011.

I need the line below to mount for example the /data partition.

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

But mounting it this way the installer gives me a error:

mount() expects 3 args, got 4

Deleting one of the strings isn't a option because it will fail in mounting the partition.

Amarullz can it be something is missing in the install binary?
[Android Software/Hacking General [Developers Only]] eoghan2t7:
did you try?

mount("ext4", "EMMC", "/data");
[Android Software/Hacking General [Developers Only]] V6-Maniac:
Nope, and why i didn't try it?

You need to point where the block is, right?

My 2ct: If i don't give the "/dev/block/mmcblk0p23" string the installer can't located the partition block, right?
[Android Software/Hacking General [Developers Only]] Perka:
Great :) Now I just have to get the touch working :)

In some script or?

for sgs1

EDIT: used volume rockers to navigate :)
[Android Software/Hacking General [Developers Only]] Kalashnikitty:
Hey.,

this means the binary can only execute 3 arguments, you have 4 arguments.

Take the binary-installer from your previous Rom and rename the update-binary to

update-binary-installer and copy it over to your new rom with aroma. this should help.
[Android Software/Hacking General [Developers Only]] V6-Maniac:
Wouldn't work,

This string is from the previous rom.

There is no other way to mount.
[Android Software/Hacking General [Developers Only]] Kalashnikitty:
Go to your previuos rom and rename the updater-binary to update-binary-installer.

copy this binary to your new aroma rom and replace the one inside from amarullz.

now you can use 4 args again

understand? :P
[Android Software/Hacking General [Developers Only]] V6-Maniac:
Holy Smoke,

It did twice today after Amarullz suggested it and it didn't work.

First time Aroma wouldn't start and the second time Aroma started it self within the Aroma installer.

Now tried it for the third time and it does work.

thx anyway...
[Android Software/Hacking General [Developers Only]] Kalashnikitty:
Android is a ***** :) Thats why we´re using it! Glad it works for you :)
[Android Software/Hacking General [Developers Only]] eoghan2t7:
I don't think so I have seen many updater scripts with the block removed and just points to the folder e.g. /data etc..
[Android Software/Hacking General [Developers Only]] hockeyfamily737:
So if I did this:

if (file_getprop("/tmp/aroma/ui.prop", "selected.1") != "1")&& (file_getprop("/tmp/aroma/type.prop", "selected.3") != "1")

then

write this default.prop

else

show these choices

endif;

It should work? Interesting. That was the first thing I tried. I must have had bad syntax elsewhere.
[Android Software/Hacking General [Developers Only]] bgcngm:
That should work, but please note that the previous example was applicable to updater-script. If you are referring to aroma-config, it should be:

if (prop("ui.prop", "selected.1") != "1") && prop("type.prop", "selected.3") != "1") then
...
else
...
endif;
[Android Software/Hacking General [Developers Only]] hockeyfamily737:
Haha...yeah I was taking about the config. I'm using Tapatalk, so it was just easier to copy/paste your code and change the == to != and change the prop names. Thank you for the clarification.
[Android Software/Hacking General [Developers Only]] raimondomartire:
Anyone, please, can explain how to take screenshots in aroma? i try droid explorer, eclipse, etc on Nexus 4 and zero screenshoots
[Android Software/Hacking General [Developers Only]] sniper:
How to take screenshots in aroma? In the android SDK tools folder open ddms, select your device when it opens, then hit I think device then screen capture or something like that in the top menus. I don't have it out in front of me, sorry.

Click here for custom mods for your E4GT
[Android Software/Hacking General [Developers Only]] raimondomartire:
Thanks for answer, but ddms when in aroma don't read device. I try a lot of times
[Android Software/Hacking General [Developers Only]] sniper:
When your device is on does adb work with your computer? It sounds like the SDK or drivers aren't installed correctly.

Click here for custom mods for your E4GT
[Android Software/Hacking General [Developers Only]] raimondomartire:
Yes, when on sdk see correctly nexus 4. Install fir colums in DDMS is number of device the second ?? as in this link

https://dl.dropbox.com/u/72778206/galaxy nexus 4/Immagine.png
[Android Software/Hacking General [Developers Only]] sniper:
Hmm :confused: ddms works fine for my device. Maybe someone else with a nexus 4 can be of some help.

Click here for custom mods for your E4GT
[Android Software/Hacking General [Developers Only]] Kurtoid:
start it from shell-script

Hi,

I want to build a mini-android, witch starts this tools directly from commandline (or shell-scripts). The mini-android and my shell-script is running, but I don't find, how to start the aroma-tools in the zip-file... can somebody tell me where I can find this in the xda-forum (I've search many threads, but can't find it)...

thanks

Kurt
[Android Software/Hacking General [Developers Only]] bgcngm:
The standalone version of DDMS is deprecated. Try using Android Device Monitor instead (run monitor instead of ddms).
[Android Software/Hacking General [Developers Only]] azoller1:
Has anyone gotten this to work on the LG Spectrum?
[Android Software/Hacking General [Developers Only]] raimondomartire:
Thanks, but don't work with monitor in windows and also linux. Aroma with Nexus 4 have problem start but anytime stuck before finish installation. keys are dead. Never had problem with aroma with gs3
[Android Software/Hacking General [Developers Only]] letama:
I don't know if others have the issue, but on Xperia S, Aroma gets stuck from time to time at startup.

I believe that the issue is with recent cwm double-buffering, Aroma assumes it's started with a buffer with virtual port at 0, it's true only if cwm is on buffer 0, not on buffer 1.

Here is a workaround that seems to cure the problem, I didn't test it much but so far I didn't see it again:

diff --git a/edelweis/src/libs/aroma_graph.c b/edelweis/src/libs/aroma_graph.c
index bb69b79..4567ce5 100644
--- a/edelweis/src/libs/aroma_graph.c
+++ b/edelweis/src/libs/aroma_graph.c
@@ -53,6 +53,7 @@ static int ag_dp; //-- Device Pixel
static byte agclp;
static byte ag_font_onload=0;
static byte ag_oncopybusy=0;
+static int ag_isonsecond=0; // double buffering status

/****************************[ DECLARED FUNCTIONS ]*****************************/
static void *ag_thread(void *cookie);
@@ -168,6 +169,15 @@ byte ag_init(){
//-- Init Info from IO
ioctl(ag_fb, FBIOGET_FSCREENINFO, &ag_fbf);
ioctl(ag_fb, FBIOGET_VSCREENINFO, &ag_fbv);
+
+ //-- Verify if we're not on second buffer
+ if(ag_fbv.yoffset) {
+ //-- We are, reset it to first
+ LOGS("PL Workaround for double buffering\n");
+ ag_isonsecond = 1;
+ ag_fbv.yoffset = 0;
+ ioctl(ag_fb, FBIOPUT_VSCREENINFO, &ag_fbv);
+ }

//-- Init 32 Buffer
ag_canvas(&ag_c,ag_fbv.xres,ag_fbv.yres);
@@ -278,6 +288,14 @@ void ag_close(){

//-- Cleanup Canvas & FrameBuffer
ag_ccanvas(&ag_c);
+
+
+ //-- Restore virtual to what it was
+ if(ag_isonsecond) {
+ ag_fbv.yoffset = ag_fbv.yres;
+ ioctl(ag_fb, FBIOPUT_VSCREENINFO, &ag_fbv);
+ }
+
close(ag_fb);
ag_fb = 0;

@@ -2001,4 +2019,4 @@ byte ag_text_exl(CANVAS *_b,int maxwidth,int x,int y, const char *ss, color cl_d

free(sams);
return 1;
-}
\ No newline at end of file
+}

I don't know if viewport restore is needed for cwm, I added just in case.
[Android Software/Hacking General [Developers Only]] franzyroy:
If I understood, I have no need this in the last version!

ini_set("dp","3");

calibrate("1.8700","32","1.2100","24");
[Android Software/Hacking General [Developers Only]] bgcngm:
That's correct, calibration is deprecated since version 2.55.

Although, you may still want to force device pixelate size. ;)
[Android Software/Hacking General [Developers Only]] franzyroy:
Other question, I was on the version 2.5.0, now, I want to use the 2.5.6, I have kept certains files like updater-script and aroma-config, I have looked my scripts, I do not seem to have errors, however, when I choose "Reboot" or "Return in the Recovery", I have this error:

E:Error in /sdcard/my emplacement/my file.zip
(status 0)
Installation aborted

here are my files, if anyone can help me!

I want to say that it worked well on version 2.5.0...

Thanks!
[Android Software/Hacking General [Developers Only]] bgcngm:
Do you get that error at the end of installation? You could try to check /tmp/recovery.log (and even aroma logs) for more detailed information.
[Android Software/Hacking General [Developers Only]] franzyroy:
I haven't tried the installation, I would just see if Aroma works correctly with my modification between 2.5.0 and 2.5.6.

How do I make to have a log? I forgot this.
[Android Software/Hacking General [Developers Only]] franzyroy:
To answer at that (in red)... The installation works correctly, I have tried, it's to exit of Aroma that I've this error above. with these commands:

# reboot("onfinish"); - Reboot if anything finished
# reboot("now"); - Reboot Directly
# reboot("disable"); - If you set reboot("now") before, use this command to revert it.

yet it's the same between the 2.5.0 and 2.5.6.

Edit

:

Otherwise, I think that the tactile is too sensitive... is it possible to set it? Or then to have a slider to avoid of tick/untick when we want to scroll up/down... Or still, that it tick/untick only on the boxes, not on the menu.

Reminder of the resulting error

:

E:Error in /sdcard/my emplacement/my file.zip
(status 0)
Installation aborted

Files with error

:

- My Aroma files
[Android Software/Hacking General [Developers Only]] DC_MTP:
does this work on rooted odexed touchwiz (Sac23's Custom S rom)?
[Android Software/Hacking General [Developers Only]] johnhany97:
Anyone ?? I just want to know how to make AROMA compiled from source and added to the final zip of the ROM when it is finally built from source ??? :confused:
[Android Software/Hacking General [Developers Only]] franzyroy:
No answer???

Otherwise:

Is there a place where I can have with Aroma Aroma Installer 2.5.6 with File Manager 1.8.0 as it existed before?
[Android Software/Hacking General [Developers Only]] masterex567:
Need a bit of help..

In the customized install option of aroma. I see codes like:

if (prop("type.prop","selected")=="1") then
writetmpfile(
"customize.prop",
"item.1.1=1\n"+
"item.1.2=1\n"+

I don't understand it, and i don't know how to implement it in my aroma installer...

I have a directory of:

"/.../..../1stfolder/one.apk"

"/.../.../1stfolder/two.apk"

"/.../.../2ndfolder/onee.apk"

"/.../.../2ndfolder/twoo.apk"

"/.../.../3rdfolder/oneee.apk"

"/.../.../3rdfolder/twooo.apk"

Ofcourse that's not the real path, i put it in such a way to save me the time typing the whole path.

I've added the paths correctly to package_extract_dir.

NOW, suppose i want a default installation of the one.apk, onee.apk and oneee.apk...How do i do that in the aroma-config.

I'd appreciate a quick response. ^_^

Cheers
[Android Software/Hacking General [Developers Only]] mikep99:
inside your if statement you'd have something like:

if ....default selected....

package_extract_file("/.../..../1stfolder/one.apk", "/system/app/one.apk");

package_extract_file("/.../..../2stfolder/onee.apk", "/system/app/onee.apk");

package_extract_file("/.../..../3stfolder/oneee.apk", "/system/app/oneee.apk");

endif

use extract_file not extract_dir

I think this is what you're after?
[Android Software/Hacking General [Developers Only]] masterex567:
Nooo.

I wrote the paths wrong in that post.

Wait, let me type the paths to exactly what i use.

These are the directories.

Now, for example the launchers, this is what i do:

ui_print(" ");
ui_print(" =");
ui_print(" Installing Launcher ");
ui_print(" =");

# stock Launcher
if file_getprop("/tmp/aroma/launcher.prop","selected.1") == "1"
then
ui_print("@ Installing stock Launcher");
package_extract_dir("aroma/apps/launchers/stocklauncher", "/system/app");
endif;

# other Launcher
if file_getprop("/tmp/aroma/launcher.prop","selected.1") == "2"
then
ui_print("@ Installing other Launcher");
package_extract_dir("aroma/apps/launchers/otherlauncher", "/system/app");
endif;

So now, i've included a menubox at the start of aroma to choose from Default, No Bloatware, and Customized.

If user clicks default, i want the stockcamera, stocklauncher, stocktheme and stockthemeconf directories to be extracted ONLY.

If user clicks customized, well he chooses.

What i am after is what to do next after adding that menubox. I studied other aroma-configs..and i've included a reference below.

This is my menubox:

menubox(
"Rom Installation",
"Please select Installation Method for Rom",
"@install",
"type.prop",
"Default Installation",	"Install all apps and Bloatware","@default",	#-- selected = 1
"Remove Bloatware",	"All Bloatware will be removed","@customize",	#-- selected = 2
"Custom Installation",	"Choose what to install","@personalize" #-- selected = 3
);

Now, after that I don't know what to do. I don't know how to personalize which apps go into default.

I studied another aroma-config of a similiar rom with the same type of menubox and this is what was next:

if (prop("type.prop","selected")=="1") then
writetmpfile(
"customize.prop",
"item.1.1=1\n"+
"item.1.2=1\n"+
"item.1.3=1\n"+
"item.1.4=1\n"+
"item.1.5=0\n"
);
endif;

if (prop("type.prop","selected")=="2") then
writetmpfile(
"customize.prop",
"item.1.1=0\n"+
"item.1.2=0\n"+
"item.1.3=0\n"+
"item.1.4=0\n"+
"item.1.5=0\n"
);
endif;

I don't understand this code ^, and i want help understanding it so that i can implement it to my directories.

sorry for the long post. :/
[Android Software/Hacking General [Developers Only]] mikep99:
have a look at the attached which i use.

they should help with setting up your default/debloated install.

for the customisable install, I think you will need to include a checkbox if selected=3.

Hope this helps.
[Android Software/Hacking General [Developers Only]] masterex567:
Ok. I'm going to look at that..

And it seems i'll have to install a checkbox.

Isn't there a way to create three windows, instead of a checkbox?

Like one for launcher, one for camera and one for theme using the same customize.prop??

I guess not. :/

But, isn't there any way to make the user only select one.

because, for example, the user checks both themes. It will conflict and the rom won't boot.
[Android Software/Hacking General [Developers Only]] mikep99:
you can have a selectbox with different groups so only 1 entry in each group can be selected.

have a look at my aroma-config.
[Android Software/Hacking General [Developers Only]] masterex567:
Mate, can i send you my aroma-config, and updater-script in your PM, and you do it for me? ^_^

I'll include you in credits...
[Android Software/Hacking General [Developers Only]] shubhamchamaria:
Just post it here and we all can help you out...I can create aroma scripts but I'm not an expert but I should be able to help you.
[Android Software/Hacking General [Developers Only]] mikep99:
yep - whatever suits you :) I'll only be around for 30 minutes though.
[Android Software/Hacking General [Developers Only]] masterex567:
Ok. I'm going to upload my /aroma and meta-inf folder in a compressed .zip file here.

thanks for the help

---------- Post added at 08:56 PM ---------- Previous post was at 08:49 PM ----------

Here you go:

Check my next post BELOW for the new aroma.zip