yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] amarullz:
Uncomment the setcolor(".... command in aroma-config here:

##
# Set UI Color
# foo = Main Color ( If Gradient, it was Top Color )
# foo_g = Main Color Gradient ( Bottom Color )
#
# winbg : Main/Top Most Window Backgroud
# textbg : Textbox, Checkbox, and any scrollable UI Background
# textfg : Textbox, Checkbox, and any scrollable UI Text Foreground
# textfg_gray : Gray Text ( on Optionbox/Checkbox Item Description )
# controlbg : Control / Button / Checkbox border - Background Color
# controlfg : Button Text Color
# selectbg : Selected Element Background ( Pushed/focused Button/items, etc )
# selectfg : Selected Element Text/Foreground Color
# titlebg : Window Title Background
# titlefg : Window Title Text Foreground Color
# navbg : Bottom Bar (Navigation Bar) Background. Next-Previous Area
# border : Common Border Color
#
#--- If not sets, It will use default colors ( Sense Like )
#
# Supported 3 & 6 Char Hex Colors:
# #fff or #ffffff
# #469 or #46689a
#
#--- Uncomment to use custom color scheme: (Dark)
# setcolor("winbg", "#444");
# setcolor("winbg_g", "#222");
# setcolor("textbg", "#333");
# setcolor("textfg", "#fff");
# setcolor("textfg_gray", "#bbb");
# setcolor("controlbg", "#444");
# setcolor("controlbg_g", "#222");
# setcolor("controlfg", "#fff");
# setcolor("selectbg", "#653");
# setcolor("selectbg_g", "#542");
# setcolor("selectfg", "#ffd");
# setcolor("titlebg", "#333");
# setcolor("titlebg_g", "#000");
# setcolor("titlefg", "#fff");
# setcolor("navbg", "#333");
# setcolor("navbg_g", "#222");
# setcolor("border", "#666");
# setcolor("border_g", "#444");
[Android Software/Hacking General [Developers Only]] TweetyPeety:
as I said, not having much time right now, but trying to understand everything, runs good.

I have some small questions

1. is it possible to get a screen before everything with the Option to choose the language, so that if I choose German it goes to the script in German, and the same in English ( anyway, nothing important, only an idea )

2. if I click on standard or customized installation, both will go further with the screens for choosing the options ??? I think only customized should do it and standard should install straight away.

3. to install it as a Standard Version how to I get this code tried

but nothing ?

4. and strange I tried to get this one to work, but don't think it had worked, maybe you know my error

and later

what do you think
[Android Software/Hacking General [Developers Only]] mickey-r:
@jack_nuclear & wserfer

It is because this feathur is not implemented yet.

You need to wait release 2.0, this one will support utf8 font ...
[Android Software/Hacking General [Developers Only]] amarullz:
Seriously? then what it is?

I reply to your question directly after your post... did you read my answer???

I still can't help you, because it WASN'T supported yet...

I am try to make it support for unicode in version 2, but wtf did you think am I?

If you read the whole thread, I always try to answer any question, even if I cant help it now, maybe I can help it with an update...

So please dont become such arogan man, we need each other... I dont ask anything to you... but please be respect...

And note.. it was sunday now... just fell happy that I still answer for what you ask....

Just wait... wait is gold :D.. And I try my best to make it available... for UNICODE
[Android Software/Hacking General [Developers Only]] wserfer:
amarullz, what about FreeType?
[Android Software/Hacking General [Developers Only]] amarullz:
Yes, I already successfull using freetype.. it will support ttf and otf..

I already create tiny utf8 decoder, so it will support unicode chars for aroma-config and Text loaded by aroma..

just wait.. I am only have 1brain & 2 hands.. :D
[Android Software/Hacking General [Developers Only]] Kalashnikitty:
ok im testing 1.60 now. works good so far ;)

But there is one small graphical glitch, i think you know it.

When you leave the installer and go back to the recovery, there is a flickering.
[Android Software/Hacking General [Developers Only]] amarullz:
yes I notice it..
[Android Software/Hacking General [Developers Only]] crybert:
Hey amarullz,

is there anything else I can do to help you solve the graphic issues with my phone?
[Android Software/Hacking General [Developers Only]] wserfer:
[ deleted ]
[Android Software/Hacking General [Developers Only]] amarullz:
Try replace update-binary with the one in attachment. ( Update Binary 1, or Update Binary 2 ). Please try both files, is only binary 1 or both binary works for you?

The problem with your device was, it don't give an installer the valid color position:

Here is your device framebuffer info:

VAR
xres : 480
yres : 800
xres_virtual : 480
yres_virtual : 1600
xoffset : 0
yoffset : 800
bits_per_pixel : 32
[COLOR="Red"] red : 24, 8
green : 16, 8
blue : 8, 8
transp : 0, 8[/COLOR]
nonstd : 0

it said:

red location = 24

green location = 16

blue location = 8

alpha location = 0

So with this info your color should be:

AABBGGRR

10 20 30
01234567 89012345 67890123 45678901
-----------------------------------
0 8 16 24
===================================
AAAAAAAA BBBBBBBB GGGGGGGG RRRRRRRR

RRRRRRRR GGGGGGGG BBBBBBBB AAAAAAAA

But from your photos, it seems that it was:

RRGGBBAA

because:

AAAAAAAA BBBBBBBB GGGGGGGG RRRRRRRR
| | | |
| | | | [COLOR="SeaGreen"][ Become ][/COLOR]
v v v v
RRRRRRRR GGGGGGGG BBBBBBBB AAAAAAAA

In the last screenshoot, http://xdaforums.com/attachment.php?attachmentid=919656&d=1330201654 . The arrow icon (phone with arrow) color was blue... It should be green. And there is no red channel in there...

So use the binary below, and tell me if it's works.

It was just hack test... In next version, you should add this line in top of aroma-config:

ini_set("force_colorspace","RGBA");

I WANT YOU TO RUN THIS

* Download: This Display Capture

* Extract it (example to c:\), then run (with adb) - In android mode (not recovery)

C:\>adb push c:\displaycapture /data/
C:\>adb shell chmod 777 /data/displaycapture
C:\>adb shell /data/displaycapture

If you run it in recovery, please change the /data into /tmp

And dump here the result... It will looks like:

Starting AROMA Display Capture
(c) 2012 by amarullz.com

COMMAND LINE INFO
=================
Argument (0): /data/displaycapture

OPENING FRAMEBUFFER
===================

VAR
xres : 480
yres : 800
xres_virtual : 480
yres_virtual : 1600
xoffset : 0
yoffset : 0
bits_per_pixel : 32
red : 0, 8, 0
green : 8, 8, 0
blue : 16, 8, 0
transp : 0, 0, 0
nonstd : 0
activate : 16
height : 80
width : 48
left_margin : 0
right_margin : 0
upper_margin : 0
lower_margin : 0

FIX
smem_len : 3145728
type : 0
visual : 2
xpanstep : 0
ypanstep : 1
ywrapstep : 0
line_length : 1920

I want to know the value of:

red : 0, 8, 0
green : 8, 8, 0
blue : 16, 8, 0
transp : 0, 0, 0
[Android Software/Hacking General [Developers Only]] Namaless:
Wait!!

You have requested me, in a private message if I could teach you to make the script to install your rom. I answered that I had no time to teach, but if you wanted to I could do the script for you. You answered me that you were going to learn in another place.

Do not accuse me unfairly, I think I have been very helpful and I did not like your arrogance.

You avoid in the future to make accusations towards me.
[Android Software/Hacking General [Developers Only]] hei1125:
Some of my rom's user find the touchscreen not responsive. Is it the installer issue or rom issue?
[Android Software/Hacking General [Developers Only]] amarullz:
It may recovery issue... is the touch works but not responsive or the touch completely not works?
[Android Software/Hacking General [Developers Only]] hei1125:
It works in the installation process. After that, when users touch the screen, only the soft key light up but the Mon is not responsive
[Android Software/Hacking General [Developers Only]] vijai2011:
Should I need to edit any code or is it ready to be used in rom other than copying my rom's update-binary and updater-script(Please confirm should I copy my update-binary and updater-script)
[Android Software/Hacking General [Developers Only]] amarullz:
New version in up in first page....
[Android Software/Hacking General [Developers Only]] crybert:
Hey amarullz, thank you for your instructions. So here are my results

So the update-binary1 gives me a blue picture

http://dl.xda-developers.com/attach...05e/9/2/1/8/4/2/Foto_am_27.02.12_um_10.42.jpg

With update-binary2 I get this. And it looks so good. Thank you :)

But It hangs/freezes when I run the installer a second time.

http://dl.xda-developers.com/attach...010/9/2/1/8/3/9/Foto_am_27.02.12_um_10.38.jpg

http://dl.xda-developers.com/attach...024/9/2/1/8/4/0/Foto_am_27.02.12_um_10.39.jpg

http://dl.xda-developers.com/attach.../9/2/1/8/4/1/Foto_am_27.02.12_um_10.39__2.jpg

displaycatpure during system running

These are the values for the colors.

red : 24, 8, 0
green : 16, 8, 0
blue : 8, 8, 0
transp : 0, 8, 0

And the whole output

COMMAND LINE INFO
=================
Argument (0): /data/displaycapture

OPENING FRAMEBUFFER
===================

VAR
xres : 480
yres : 800
xres_virtual : 480
yres_virtual : 1600
xoffset : 0
yoffset : 0
bits_per_pixel : 32
red : 24, 8, 0
green : 16, 8, 0
blue : 8, 8, 0
transp : 0, 8, 0
nonstd : 0
activate : 16
height : 127
width : 76
left_margin : 14
right_margin : 16
upper_margin : 1
lower_margin : 28

FIX
smem_len : 3072000
type : 0
visual : 2
xpanstep : 1
ypanstep : 1
ywrapstep : 0
line_length : 1920

displaycapture during recovery

red : 24, 8, 0
green : 16, 8, 0
blue : 8, 8, 0
transp : 0, 8, 0

And the whole output:

COMMAND LINE INFO
=================
Argument (0): /tmp/displaycapture

OPENING FRAMEBUFFER
===================

VAR
xres : 480
yres : 800
xres_virtual : 480
yres_virtual : 1600
xoffset : 0
yoffset : 0
bits_per_pixel : 32
red : 24, 8, 0
green : 16, 8, 0
blue : 8, 8, 0
transp : 0, 8, 0
nonstd : 0
activate : 16
height : -1
width : -1
left_margin : 14
right_margin : 16
upper_margin : 1
lower_margin : 28

FIX
smem_len : 3072000
type : 0
visual : 2
xpanstep : 1
ypanstep : 1
ywrapstep : 0
line_length : 1920
[Android Software/Hacking General [Developers Only]] amarullz:
Did the binary 1 also freeze??
[Android Software/Hacking General [Developers Only]] crybert:
No it doesn't freeze.
[Android Software/Hacking General [Developers Only]] amarullz:
Can you try this binary... It was based on latest 1.60 & Check for big/little endian architect
[Android Software/Hacking General [Developers Only]] crybert:
Doesn't freeze but the picture is blue again. Or Have I to add the strings you mentioned?

ini_set("force_colorspace","RGBA");
[Android Software/Hacking General [Developers Only]] vijai2011:
Any input for this?
[Android Software/Hacking General [Developers Only]] amarullz:
just edit the zip in first page. edit aroma-config and updater-script as you need, then rename your old update-binary to update-binary-installer then replace one in aroma zip files... copy your rom contents in there...
[Android Software/Hacking General [Developers Only]] vijai2011:
K K thanks
[Android Software/Hacking General [Developers Only]] amarullz:
I will add it into the binary (last but should be works)..

Now I am hit the wall about it (but i hope i can break it soon :D), I don't know why the info was wrong.... it wasnt the big/little endianess problem, and your msb_right not different with my Device...
[Android Software/Hacking General [Developers Only]] crybert:
Let me know then, which version I have to use :D

And thank you very much for your efforts.
[Android Software/Hacking General [Developers Only]] jack_nuclear:
Namaless You misunderstood me. I do not blame you. I thought you invented a way to help me with Cyrillic. You thought that I would like to learn how to write scripts. I wanted figure out but himself. Thanks for the responsiveness. You really can write a script for ROM? How much will it cost? it would be nice.

Sry for eng! not my native language.

Sorry again. We have a language barrier =)
[Android Software/Hacking General [Developers Only]] amarullz:
If you had a problem, just post here... I can help you for free, anything that you ask... but please be nice :D. I love to help anyone who interest in my project :)

About adding non-ASCII chars, please wait the version 2.00. I try my best to make it possible.

What Namaless mention before about adding a language was "IDEA". He give an idea for next version to make it possible to support more language... Then I reply how the method will be writed (example) for next version.. :)

If you want to convert your ROM to included AROMA Installer (But for ASCII languages only for now), just ask me here... :cool: :cool:
[Android Software/Hacking General [Developers Only]] amarullz:
Use this nightly: aroma-nightly-1.61-120228-027.zip

Add in topmost of aroma-config:

##
# Fix Colorspace Issue
#
# For device which have a problem with color ( not display the correct color )
# try to set "force_colorspace" with ini_set. It may caused by wrong framebuffer
# information that passed by kernel into framebuffer device.
#
# You can use one of following values:
# "rgba", "abgr", "argb", "bgra"
#
# NOTE: It must be in top most script, or you will got the color flicker
#
ini_set("force_colorspace","rgba");

In release version & next nightlies, i will comment this line, but you can always uncomment it ;) .

I hope it fix your issue...
[Android Software/Hacking General [Developers Only]] vijai2011:
Added aroma installer to my rom and its really awesome but sorry to say this touch calibration should be improved because its very inaccurate.
[Android Software/Hacking General [Developers Only]] amarullz:
You can edit the value to make it more accurate. sometime the x & y value was same...

Here the image:
[Android Software/Hacking General [Developers Only]] thedawn2009:
This is truly awesome. I'm working on baking this into my rom. The latest nightly contains well-documented code and is pretty easy for a new guy to modify and use. Great job!
[Android Software/Hacking General [Developers Only]] jack_nuclear:
amarull Thank you. I'll wait for version 2.0, but for now I'll try look into script
[Android Software/Hacking General [Developers Only]] crybert:
Thanks for the update.

Now I have the right colors, when I set this

ini_set("force_colorspace","rgba");

But there are still freezes.

I only get it to run 1 time out of ten tries.
[Android Software/Hacking General [Developers Only]] :
I really, really love this Mod, thank you for your work!
[Android Software/Hacking General [Developers Only]] mwr666:
how to use the themable progressbar opt??
[Android Software/Hacking General [Developers Only]] amarullz:
When exactly the freeze happened?.. Can you dump the recovery.log when it freeze (use adb)?
[Android Software/Hacking General [Developers Only]] Nottach:
Hello,

would some one be kind enough to explain && and || to me.

i assume they are also and is not but i'm not sure.

it would help me out a lot.

thanks.
[Android Software/Hacking General [Developers Only]] amarullz:
It was (and) and (or), you can use it in logical statement like this

if
("100"=="100")||("100"=="200") #-- TRUE
then
.. It will run
endif;

if
("100"=="100")&&("100"=="200") #-- False
then
.. It wont run
endif;

Easy isn't it?
[Android Software/Hacking General [Developers Only]] Nottach:
cool, so what would it be if:

("100"=="100")||("100"=="200")&&("100"=="300")

will run if 1 & 2 are true and 3 is false?

also how would i do 'or'?
[Android Software/Hacking General [Developers Only]] amarullz:
Why don't you just add Parentheses ( )? to make sure how it parsed.

if
("100"=="100")||(("100"=="200")&&("100"=="300")) #-- TRUE
then

if
(("100"=="100")||("100"=="200"))&&("100"=="300") #-- FALSE
then

if
(("100"=="100")&&("100"=="200"))||("100"=="300") #-- FALSE
then
[Android Software/Hacking General [Developers Only]] Nottach:
i get it now. thank you, great project youve got here. revolutionary

---------- Post added at 12:15 AM ---------- Previous post was at 12:07 AM ----------

So if I want true for 7 & 8 and false for 1-6 I do

if
(file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "7" && file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "8") || file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "1" || file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "2" || file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "3"..........
then

??
[Android Software/Hacking General [Developers Only]] amarullz:
Here some progress & screenshoot for AROMA Installer version 2.00 (Codename: DAHLIA).

What's works

UTF8 Decoder... You can save aroma-config in utf-8 now.. (But don't save updater-script in utf-8, or you will got ERROR!!!). It was full UNICODE Support

FreeType - Support TTF and OTF.

Change the font on the fly (But not on the string)

For ASCII only.. I suggest to stay with AROMA png-font (still supported) because the font file took some size and render took 0.5x slower than freetype... But feel free to use freetype :)

About Speed.. It still fast :D . I don't try it in recovery yet... But in recovery it should be faster, because /tmp is actually ramdisk... In my development, I extract the font into /data (real storage). yet it still fast....

The D*mn difficult features not implemented yet

RTL (RIGHT TO LEFT)

and WTH is it :D

​
[Android Software/Hacking General [Developers Only]] Nottach:
need a little more help,

in the below example i want true for 6 & 8 and false for 1,2,3,4,5,7.

what do you think?

if
(file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "6") && (file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "8") || (file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "1" || file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "2" || file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "3" || file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "4" || file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "5" || file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "7")
then
[Android Software/Hacking General [Developers Only]] mickey-r:
Ok Nottach

the "selected.1" of ramfix.prop can't be in a same time 6 and 8,

it's the property for an option button ... (&& isn't the correct way in your case)

in your case, you must use something like that :

if "selected.1" equal 6 OR (||) "selected.1" equal 8 then i do this thing

else, i do other thing.

if file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "6" || file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "8"
then
# do something for 6 and 8
else
# do something for 1, 2, 3, 4, 5 and 7
endif
[Android Software/Hacking General [Developers Only]] amarullz:
It just:

if
(
(file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "6") ||
(file_getprop("/tmp/aroma-data/ramfix.prop","selected.1") == "8")
)
then
.. 6 or 8 command ...
else
.. 1,2,3,4,5,7 command ..
endif;

if it was aroma-config script, I suggest to use prop, like this:

if
(
(prop("ramfix.prop","selected.1") == "6") ||
(prop("ramfix.prop","selected.1") == "8")
)
then
.. 6 or 8 command ...
else
.. 1,2,3,4,5,7 command ..
endif;

Also in new version (1.60), the real temporary dir was "/tmp/aroma". But you still can use "/tmp/aroma-data", because it was symlinked to "/tmp/aroma"

--- edit ---

You are faster :D
[Android Software/Hacking General [Developers Only]] Nottach:
damn, makes so much sense now.

thanks guys.
[Android Software/Hacking General [Developers Only]] Nixda99:
Multi language with resource files

Hi amarullz, thank you for your great installer.

I want to make a multi language installation with resource files.

How can I read a ressource file from zip with "file_getprop" command. The command works only with the aroma tmp folder. I would do it like this:

if (file_getprop("/tmp/aroma/lang.prop","selected.1") == "1") then
#Englisch
setvar("Lang","Resources/en-EN.prop");
endif;
if (file_getprop("/tmp/aroma/lang.prop","selected.1") == "2") then
#France
setvar("Lang","Resources/fr-FR.prop");
endif;
if (file_getprop("/tmp/aroma/lang.prop","selected.1") == "3") then
#Deutsch
setvar("Lang","Resources/de-DE.prop");
endif;

viewbox(
file_getprop(getvar("Lang"),"welcome"),
file_getprop(getvar("Lang"),"info"),
"icons/info"
);

It doesn't work, that's why I create a temp file in aroma tmp folder and use this file:

#Write the ressource file to temp path, don't work directly at the moment?
writetmpfile("res.prop",readfile_aroma(getvar("Lang")));
setvar("Res","/tmp/aroma/res.prop");
viewbox(
file_getprop(getvar("Res"),"welcome"),
file_getprop(getvar("Res"),"info"),
"icons/info"
);

Works also, but the direct way would be better:D.

P.S. Can I use UTF8 resource files in new 2.0 version?
[Android Software/Hacking General [Developers Only]] amarullz:
Just use resprop, or zipprop to read prop files inside the zip, the different is resprop relatively in aroma resource dir, but zipprop was absolute location from root zip path.

META-INF/....../aroma/test.prop

just use:

resprop("test.prop","keyname");

or

zipprop("system/build.prop","keyname");
[Android Software/Hacking General [Developers Only]] hei1125:
How to make multiple roms in one rom file? The original update-binary is not the same.
[Android Software/Hacking General [Developers Only]] qarclub:
I look forward to receiving...................:D
[Android Software/Hacking General [Developers Only]] Nixda99:
Thank you for your answer, it works. Must check if it is slower than the tmp variant, because there are many resources;).

Why are the text cutted in the selectbox group header and entry text (not description), there is enough space? (Screenshot SelectBox.png)

Sometimes the new bold text function didn't work correctly in selectbox header (only if i use resources). I have see it working and next run it didn't work. Viewbox didn't have the problem (Screenshot SelectBoxBoldHeader.png):

selectbox(
"<b>" + file_getprop(getvar("Res"),"SelectMainMods") + "</b>",
file_getprop(getvar("Res"),"SelectKernelMod") + ":",
"icons/apps",
"mods.prop",
[Android Software/Hacking General [Developers Only]] Namaless:
Test: remove bold from title and check again.. I'm not sure the title can get style..
[Android Software/Hacking General [Developers Only]] amarullz:
it should be supported.. but the title was limited to 32 chars... I will extend it limitness in next version
[Android Software/Hacking General [Developers Only]] crybert:
Sorry for letting you wait. Here is the recovery.log

-- Installing: /emmc/Archiv.zip
Finding update package...
I:Update location: /emmc/Archiv.zip
Opening update package...
Installing update...
aroma/s: Initializing
Starting AROMA INSTALLER version 1.61
(c) 2012 by amarullz xda-developers
aroma/s: Saving Arguments

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

aroma/s: Open Archive
aroma/s: Initializing Resource
aroma/s: Mute Parent
aroma/s: Starting Interface

And my question: Do yo do the screenshots of aroma with ddms? I tried it but everytime I get the follwing error. I think our CWM is a bit buggy :D

02:40:01 W/ddms: Unable to get frame buffer: timeout
02:40:13 W/ddms: Unable to get frame buffer: timeout
[Android Software/Hacking General [Developers Only]] Namaless:
Yes I can take screeshots with ddms, I used in few past days :)

I don't know because to you not working.. sorry...
[Android Software/Hacking General [Developers Only]] Nixda99:
Problem is that the text has only 24 chars and sometimes it works (no </b> at the end and it is bold), sometimes it has the </b> at the end. But it's not a big problem, we can avoid bold in header. If you mean the group header, it's a good idea to extend the limit, it's too small and there are space for more:D.

Bigger problem are the french accentuated caracters, like é, è, ê and à. Is this possible with the new version? Sounds like it will work from your Version 2 post, but i'm not sure.

Edit: Sorry see it, should work with freetype.