yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] erlucky:
Hi amarullz

I resize the icons ---> 32x32

I set my screen ---> dp calculated with = round(min(240,320) / 160) ---> now is ok.

The touch is ok now.

I have only one problem little font.

" you should also resize the font, but you need re-arrange the font mark in first row of png." ---> How?

fontresload( "0", "ttf/DroidSans.ttf;ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;", "12" ); #-- Use sets of font (Font Family)

ON

fontresload( "0", "ttf/DroidSans.ttf;ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;", "14" ); #-- Use sets of font (Font Family)

AND

# SET LANGUAGE & FONT FAMILY

#

if prop("lang.prop","selected.0")=="1" then

loadlang("langs/en.lang");

fontresload( "0", "ttf/DroidSans.ttf", "12" ); #-- "0" = Small Font ( Look at Fonts & UNICODE Demo Below )

fontresload( "1", "ttf/DroidSans.ttf", "18" ); #-- "1" = Big Font

endif;

ON

# SET LANGUAGE & FONT FAMILY

#

if prop("lang.prop","selected.0")=="1" then

loadlang("langs/en.lang");

fontresload( "0", "ttf/DroidSans.ttf", "14" ); #-- "0" = Small Font ( Look at Fonts & UNICODE Demo Below )

fontresload( "1", "ttf/DroidSans.ttf", "18" ); #-- "1" = Big Font

endif;

Is OK?????

Bye
[Android Software/Hacking General [Developers Only]] benjamingwynn:
This has so much potential! I've already got this in .sense but I want to make it more than a few mods and tweaks...
[Android Software/Hacking General [Developers Only]] erlucky:
Hi amarullz

Now is all ok i set small font to 18 and now i will try for 20 if is better ---> i changed all "12" with "18" and now i can read good the font in all installer

Big font set to 20......or 22

I have set also splash and sample.png for my screen.

Thank you for all now your installer 2.00 A4 is ok for my Huawei U8160 240x320 touchscreen mdpi.

If you want i can send you my meta-inf...

Bye.
[Android Software/Hacking General [Developers Only]] Tarpe:
1 parse errors

line 731 col 19: syntax error, unexpected $end

ui_print(" ");

ui_print(" ");

ui_print("@Finished...");

set_progress(1.0)
[Android Software/Hacking General [Developers Only]] amarullz:
Just add it in your selectbox or checkbox, then modify the updater-script. If you already know well how to customize it, you can add customize as much as you want..

Great :D . You can share the meta-inf here.. but what I want is, screenshoot or photo shoot :D

you forget to add ";" at the end of set_progress(1.0)
[Android Software/Hacking General [Developers Only]] Tarpe:
thank's I will try
[Android Software/Hacking General [Developers Only]] amarullz:
Can you run this zip in recovery? : http://www.amarullz.com/_downloads/tools/displaycapture3.zip

and dump the logs. But you better join the chat, so I can help you with your problem. I am online everyday at 7AM-4PM GMT+7.
[Android Software/Hacking General [Developers Only]] Tarpe:
1 parse errors

line 731 col 19: syntax error, unexpected $end

Installer Error (Status 6)

ui_print(" ");

ui_print(" ");

ui_print("@Finished...");

set_progress(1.0); :confused::confused::confused:
[Android Software/Hacking General [Developers Only]] FBis251:
You better post your whole aroma-config and updater-script somewhere.
[Android Software/Hacking General [Developers Only]] kylon:
i can run it,but i can find the folder tmp
[Android Software/Hacking General [Developers Only]] boa19861105:
MOD EDIT: XDA is an english speaking forum....
[Android Software/Hacking General [Developers Only]] amarullz:
There is 4 displaycapture zip in: http://www.amarullz.com/_downloads/tools/

You can try one of em.
[Android Software/Hacking General [Developers Only]] vivi suzanna:
Hi, amarullz,

Can samsung galaxy mini use aroma installer?:beer::beer::)
[Android Software/Hacking General [Developers Only]] amarullz:
[DEVELOPER ONLY]

Seriously, for what :eek: ?. I don't think you even know what is it for from your last PM. Will it make your phone better? ( Answer NO ).. Ask chef who works with your device.

Sorry fellow... But please don't ask me to make a rom for your device... and don't make me feel

embarrassed

because there is too many noobs from my own country asking stupid question like this in my own thread and my PM :mad: [ SAD ]. If you proud with my works as a fellow indonesian, please learn about development and make something that can be proud(ed) for everyone in our country.

I love my country, but I want it changed... I struggle to change the view about our country (in technology area, specially on mobile) in the eye of others people around the world, and to become an example :( . but too many noobs will destroy all my struggle.
[Android Software/Hacking General [Developers Only]] Kalashnikitty:
calm down amarullz :) the noobs are everywhere. especially here @ XDA, thats why a lot of devs leaving xda. useless mods & millions of noobs!
[Android Software/Hacking General [Developers Only]] benjamingwynn:
Good work, keep it up!
[Android Software/Hacking General [Developers Only]] optimuswhite:
On behalf of Indonesian noobs I ask forgiveness to you.

And I will spread the message to all noobs and 'alay's in the world to just shut up if they don't know what they're talking about, find out before do something silly, just sit and watch the expert do the job.
[Android Software/Hacking General [Developers Only]] Leigh Kennedy:
This is just mindbogglingly brilliant!
[Android Software/Hacking General [Developers Only]] TweetyPeety:
only a small bug for me, nothing big,,,

using the new Aroma 2.0 A4;; when I go back a screen I loose some kind of Touch. Going forward works flawless and looks really nice now that it supports all kind of letters, but pressing back, the Touch is kind of lost and only Volume Buttons work.
[Android Software/Hacking General [Developers Only]] amarullz:
Yes, thanks,.. will fix it.
[Android Software/Hacking General [Developers Only]] fonix232:
Tried the latest, 2.0A4 nightly on my Asus Transformer TF101, and although it has an Atmel maxtouch panel, touch does not work (calibration did not detect any touch).

Would it be possible to fix it? I can help out with testing, etc.

EDIT:

Apparently it was a recovery problem. After rebooting, and going back to recovery, touchscreen works.

EDIT2:

Spoke too soon, while the AROMA scripting works, the install() function does not load the installer-script. Tried both 1.63 and 2.0A4, neither loaded the script. And thanks to this, I can't even get a log of the install (the return log file is empty).
[Android Software/Hacking General [Developers Only]] fonix232:
Got some logs, all I get is a "Installer Error (Status 0)". Any idea?

EDIT:

Looks like the update-binary isn't working out for the Transformer. Will look further into it.

EDIT2:

Fixed it. Replaced the update-binary-installer with my own one, now works :D
[Android Software/Hacking General [Developers Only]] kylon:
@amarullz

none of them is working

no tmp folder !!

anyway this is the things i can see with displaycapture4short

xres 240

yres 320

xres_virtual 240

yres_virtual 640

xoffset 0

yoffset 0

bits_per_pixel 16

display1 doesn t work(not compatible?)

display2

other things

red 11,5

green 5,6

blue 0,5

transp 0,0

nonstd 0

activate 0

display3

smem_len 634000

type 0

visual 2

xpanstep 0

ypanstep 1

ywrapstep 0

line_lenght 512

these are the only things i can see in my phone.
[Android Software/Hacking General [Developers Only]] RoadXY:
Having a strange error:

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

SYNTAX ERROR!!! aroma-config on line 654 col 7
E:Error in /sdcard/update.zip
(Status 1)
Installation aborted.

Phone is HTC HD2 (EU), standard aroma-config with standard updater-script works.

Tried standard updater-script with my custom aroma-config without succes.

Funny thing is that the specified line and colum is the last character in my aroma-config.

Don't know what I'm doing wrong here.

Anyone willing to help?

Full update.zip attached.

Thanx in advance!
[Android Software/Hacking General [Developers Only]] fonix232:
It seems to be a problem with the ending of the file: recovery only accepts Linux-like file (and line) endings. Try to copy this to the example script, and replace it's content, except the last line. It should work.

Another thing: would it be possible to resize the UI elements on tablets? They are simply too big, and there aren't too much things displayed at once. Currently, you can only see two and a half option on a menuview, with some optimization, it could be easily five. The gaps are unnecessarily huge, the list items too, the control areas (top and bottom bars) could be resized (height). I would do it myself, but I don't really know C/C++ sadly.

Tried some modding, but I'm not 100% sure it will work.
[Android Software/Hacking General [Developers Only]] RolluS:
Hi Amarullz :)

First, thanks for the hard work ;) Great job, really..

I've fork your project and commit some changesto dahlia, to add support for French. (Hope I haven't done mistake, please have a look)

I've sent you a pull request!

++

RolluS
[Android Software/Hacking General [Developers Only]] amarullz:
NEW DAHLIA NIGHTLY 2.00 - A5​

Chinnesse by 魂客（kinghunki)

Spanish by Earon

Merge RolluS France with mickey-r translation

Russian by dima_sk8er

Italian by erlucky

Add ini_set("dp"..) to force device pixelate size

NOTE: I didn't change the version number and changelog in aroma yet :) [ Ok,.. I am forget about it ], but not a problem... I will release it soon as Beta, if there is no other bugs..

Thanks for all translator :D .

Source also has been Updated Here >>>

Request Accepted :D

Now you can use ini_set("dp", "3"); with nightly A5 :D . You can set it to 3, 4, or another value, just try the best size. Also you may need to change the ttf font size for bigger fonts. because font also use dp to calculate size...

Thanks, already commited... :)
[Android Software/Hacking General [Developers Only]] erlucky:
Hi amarullz

This is my Meta-inf 2.00 A4 for my Huawei Smart u8160 ldpi/mdpi 2,8"...

Tomorrow upgrade with your new release A5.
[Android Software/Hacking General [Developers Only]] benjamingwynn:
Is there/could you add an "if exist" command.
[Android Software/Hacking General [Developers Only]] kdhole9:
can i flash zip on optimus one
[Android Software/Hacking General [Developers Only]] Kalashnikitty:
Its getting better an better :)

ive sent you a pull request for german language support :)
[Android Software/Hacking General [Developers Only]] RoadXY:
Thank you for your answer.

Tried your suggestion but that didn't resolve the issue.

Started all over while copying my changes to the original aroma-config and found the problem:

setvar("system_total",getdisksize("/system","m"));
setvar("system_free",getdiskfree("/system","m"));
setvar("sdext_total",getdisksize("/sd-ext","m"));
setvar("sdext_free",getdiskfree("/sd-ext","m"));
setvar("sdcard_total",getdisksize("/mnt/sdcard","m"));
setvar("sdcard_free",getdiskfree("/mnt/sdcard","m"));
setvar("data_total",getdisksize("/data","m");
setvar("data_free",getdiskfree("/data","m");

On the last two lines I forgot the ")" at the end of the lines (without the quotes offcourse). :D

The reason I didn't get the specific line in the error on exit will be something obvious in programming world I guess ;)
[Android Software/Hacking General [Developers Only]] RolluS:
If you extract the busybox in /tmp at the beginin of your updater script:

package_extract_file("etc/busybox", "/tmp/busybox");
set_perm(0, 0, 0777, "/tmp/busybox");

Then you can use the dropbox test applet ;)

if run_program("/tmp/busybox","test","-e","yourfile")
then
...
else
...
endif
[Android Software/Hacking General [Developers Only]] bar3200:
I made a Hebrew language to the aroma :)
[Android Software/Hacking General [Developers Only]] fonix232:
Thanks, and nice work. Two final touches remaining for tablets:

- Themes (some stuffs are distorted, like selection circles)

- Button width (half of the screen seems to be too much O.o)

Currently my setup for the TF101:

- DP set to 2

- Font sizes are 10 for small, 12 for big

- Touchscreen config:

calibrate("0.9715","12","0.9640","20","yes");

EDIT:

One more request if you don't mind ;D

Could you please make it so presses are detected (on atmel maxtouch, and basically everywhere), when a TOUHC_DOWN and TOUCH_UP event occurs on the button? Currently you do it on TOUCH_DOWN (so I don't have to release the button), and it can be pretty dangerous.
[Android Software/Hacking General [Developers Only]] amarullz:
DP to 2 ??? thats was for MDPI... WVGA/HDPI (486x800) use "3" by default, you won't have any distorted picture... if you use 2, you should re-edit the images in themes & icons to make it clearer, but I don't recommended "2" for tablet...

Is your device was Asus Transformer Prime?. Try to use "NON ALTERNATIVE" calibration:

calibrate("0.9715","12","0.9640","20");

I already supported atmel maxtouch, so you don't need Alternative Touch.

@RolluS : That's was for updater-script only, for aroma-config you can easily use resexec or zipexec if you include the busybox in your zip.

#-- IF busybox in ZIP:tmp/busybox
if zipexec("tmp/busybox","test","-e","yourfile") then
...
else
...
endif;

#-- IF busybox in ZIP:AROMA RESOURCE/busybox
if resexec("busybox","test","-e","yourfile") then
...
else
...
endif;

But you can also use read to check the file is exists or not: ( Look at aroma-config in demo zip, section presistent storage )

if read("/sdcard/file.txt")=="" then
... not exists ...
else
... exists ...
endif;

But if you really want the file_exists function, I can add it next time :)
[Android Software/Hacking General [Developers Only]] XeoNoX:
wow this installer is nice and very impressive, thanks for all your time and effort.
[Android Software/Hacking General [Developers Only]] fonix232:
Well, for tablets, the controls were too huge. Setting DP to 1 resulted way too small controls (almost unpressable, and unreadable). DP at 2 was just perfect (DP at 3 is simply too big for optimal display, remember, we're in landscape here :D)

Also please note that tablets are MDPI as for pixel density. The pixel density is lower (1280*800 on 10.1") than the HDPI screens. And the images need no resizing (now, with DP set to 2, the checkboxes, etc, appear without distortion too). With DP set to 3, as I said, elements are too big, and images (what aren't 9patches) get distorted.

Nope, mine's Asus Transformer, the original, TF101. The calibration code was given by your calibration tool, and works perfectly. Except for that TOUCH_DOWN and TOUCH_UP thing. Is it the fault of the alternative calibration?
[Android Software/Hacking General [Developers Only]] benjamingwynn:
File exists command would be good.
[Android Software/Hacking General [Developers Only]] amarullz:
Yes, use calibration without alternative method... I think it will works for you...

(Or just delete the "yes" in calibration command)
[Android Software/Hacking General [Developers Only]] xpresotw:
WOW KEREN BANG... Mantep.. dua Jempol Buat Ang dah keren keren keren
[Android Software/Hacking General [Developers Only]] fonix232:
Okay, I'm on it...

Another feature suggestion would be the following:

For the install() function, would it be possible to select updater-script? So, like:

install("title","text","@icon","finishtext","script-to-load")

Of course this script-to-load parameter would only be optional. This would make it possible to create multiple installation variants, even built-in wipe scripts.
[Android Software/Hacking General [Developers Only]] amarullz:
its not possible, because updater-script was hardcoded in update-binary-installer. except maybe you can implement new update binary.

And watch out, again, the new super noobs is right before your post, quoted full first post + said non english in english forum... :sad:
[Android Software/Hacking General [Developers Only]] fonix232:
Well, there are a few solutions:

- Silliest one: rename the script-to-load to "updater-script", then run update-binary

- AROMA should use it's own update-binary

- Push a change where update-binary accepts any script file passed as an argument, and make it accepted by CM, AOSP, etc. This is the hardest one, as such a patch will hardly get through.

I'd stick with the second one: have a generic, ARMv6 based binary, it runs on every device, and it can have that very change it needs.

EDIT:

I think I made the second/third option available, although it will crash any current update process.

Attached the patch (goes to bootable/recovery, with patch -p1 < patchfile)

It changes the following way:

When you call updater-binary's main function, when it loads the updater-script, it asked for four arguments:

- version

- fd (path to the ZIP file)

- package_data

and an unknown one.

This patch makes the change so it asks for FIVE arguments: the same four as before, and as a last argument, the script's filename, relative to the path "META-INF/com/google/android/" in the zip.

I hope it's useful for the next release!
[Android Software/Hacking General [Developers Only]] kylon:
@amarullz

look this is my wildfire with aroma installer

ALL THE ICONS AND THE FONT WERE RESIZED!!!!!
[Android Software/Hacking General [Developers Only]] :
Ok im trying to add a selection of 3 kernels to this http://88.159.82.153:81/sportsstar89/aokp_tf101_aroma.zip ive gotten aroma working im just trying to add a selection of kernels gapps already placed and its for the Asus tf so it uses blob to get placed in /staging to flash kernel. Right now only stock kernel is included
[Android Software/Hacking General [Developers Only]] amarullz:
Modify the zip was overkill... And I won't add feature that not standard (that not works in all update-binary-installer). But I had an idea if you can modify your update-binary. Here:

In aroma-config, create temporary file that point into installer script, example: writetmpfile("scriptname.txt","updater-script-2");

Add new function in your modified update-binary to look at /tmp/aroma/scriptname.txt contents (you can use fopen, fread, fclose).

Use it file content to define the SCRIPT_NAME, like this:

snprintf(SCRIPT_NAME_CUSTOM,"%s%s",UPDATE_PATH, CONTENT_OF_SCRIPTNAME_TXT);.

If scriptname.txt exist, use:

const ZipEntry* script_entry = mzFindZipEntry(&za, SCRIPT_NAME_CUSTOM);

If scriptname.txt non-exist, use:

const ZipEntry* script_entry = mzFindZipEntry(&za, SCRIPT_NAME);

Easy, isn't it?

And How about calibration without alternative method? is it works in your device and fix the up event?

I am Serious,.. I need your display information. Use displaycapture from here (there is 4 files): http://www.amarullz.com/_downloads/tools/ and dump whatever it returned. If you can, please join the chat.. It was difficult to know what is your device problem.

I am sure it was because unaligned framebuffer draw,. But I don't know any information about your device framebuffer..

Just add it in selectbox in aroma-config and modify your updater-script.

example aroma-config:

selectbox(
"Select Kernel",
"Please select the kernel:",
"@default",
"kernel.prop",

"Kernel 1", "Use kernel 1 by me", 1, #-- selected.0 = 1
"Kernel 2", "Use kernel 1 by him", 0, #-- selected.0 = 2
"Kernel 3", "Use kernel 1 by her", 0 #-- selected.0 = 3
);

example updater-script:

unmount("/boot");
format("MTD", "boot");
if
file_getprop("/tmp/aroma/kernel.prop","selected.0") == "1"
then
#-- Kernel 1
package_extract_file("boot1.img","/tmp/boot1.img");
write_raw_image("/tmp/boot1.img", "boot");
delete("/tmp/boot1.img");
endif;

if
file_getprop("/tmp/aroma/kernel.prop","selected.0") == "2"
then
#-- Kernel 2
package_extract_file("boot2.img","/tmp/boot1.img");
write_raw_image("/tmp/boot2.img", "boot");
delete("/tmp/boot2.img");
endif;

if
file_getprop("/tmp/aroma/kernel.prop","selected.0") == "3"
then
#-- Kernel 3
package_extract_file("boot3.img","/tmp/boot1.img");
write_raw_image("/tmp/boot3.img", "boot");
delete("/tmp/boot3.img");
endif;
[Android Software/Hacking General [Developers Only]] fonix232:
Well, yes, would be easy if I knew any proper C :D But I'm only an OO guy, with C#/Java knowledge.

Haven't had time for that, busy with other projects what are bigger, + gf and school.

He already got the selectbox, Sportsstar89 I'll send you an updated aroma-config and updater-script in an hour, with a sample kernel installer!
[Android Software/Hacking General [Developers Only]] kylon:
I already posted a few informations 1-2 reply back

I can t find that file,maybe i need an other path instead of tmp/

Where i can find this chat?
[Android Software/Hacking General [Developers Only]] dima_sk8er:
Hey amarullz,

I just getting status 0 error on my Galaxy Nexus. Both on stable and nightly.
[Android Software/Hacking General [Developers Only]] fonix232:
Replace update-binary-install with a stock ROM's of yours update-binary. Then it will work.
[Android Software/Hacking General [Developers Only]] williamcharles:
I need to install it on my LG Optimus One P500. Do i need to just install the zip or i need to modify it before flashing?
[Android Software/Hacking General [Developers Only]] kinghunki:
amarullz, I very much hope to get your help.

This is part of the aroma-config and my updater-script.

Inside the config step 7 I need your help, Step 7 where I have a note,thank you very much
[Android Software/Hacking General [Developers Only]] deejay_trb70:
mantap bung amarullz, saya juga udah lama pake desire tp blm pernah ngoprek2, blm lama iseng2 main di xda-forum ini n nyoba2 install custom ROM, akhirnya ketagihan :D

Gak nyangka ada developer dari indonesia juga yg mantap seperti anda :) saya pake ROM runnymede yg punya sebastian dan so far puas dan menjadikan desire saya fresh lagi, keep up the good work man!
[Android Software/Hacking General [Developers Only]] amarullz:
Thanks, but, English please...
[Android Software/Hacking General [Developers Only]] dswaggz:
Will this work for the exhibit II

via Dan swagger
[Android Software/Hacking General [Developers Only]] amarullz:
Depended for what you want?... If you ROM chef, it can, I can give you support for how to make it works (if it don't work), even I can help you to customize the Installer for your ROM..

Update: New Manual - More Completed, New Example Script (from RunnyMede AIO - sebastiaan15).

Very rough Source Code is Released...

Please read (bottom most). Maybe someone can help me...

https://github.com/amarullz/AROMA-Installer
[Android Software/Hacking General [Developers Only]] Chaqmol:
amarullz...how can I make auto install script(a feature In Rcmix Roms) work in aroma?(users simply choose it and then apps install...)
[Android Software/Hacking General [Developers Only]] TweetyPeety:
Some Questions

So back home again, started and have some questions.

1.How big can the splash screen be, have it to be the same size as you ?

2.AND the most important question for me, is it possible to write with letters that aren't in the english alphabet. We GERMANS have Ü, Ä, Ö and damn they are used in so many words. I can write it with ae, oe, ue, but it looks so stupid. Not sure if it is possible.

Anyway, this works so great. Some small mistakes made it sometimes difficult because only one wrong , or " here or there and it doesn't work. So one has to be accurate.

And on the DEFY the touchscreen don't have to be touched, if ones touched nothing works anymore, the volume keys or power button are useless. It isn't really a freeze, but nothing works. So I wrote it down on the first screen.

So today the aroma-config and tomorrow the updater-script
[Android Software/Hacking General [Developers Only]] sakindia123:
omg this is genius stuff.has this been featured in xda portal?
[Android Software/Hacking General [Developers Only]] amarullz:
Build 005 Released... Look 1st page - 2nd post

@TweetyPeety: maybe you can calibrating now....

Check RunnyMede AIO Scripts.. Download Here: RunnyMede AIO Script and read Here for more info...
[Android Software/Hacking General [Developers Only]] dswaggz:
I'm not a rom chef just a tinkerer but if u would so kindly stop by our thread an tell our chefs I would greatly appreciate u dear sir

via Dan swagger
[Android Software/Hacking General [Developers Only]] amarullz:
Why don't you just tell tour chef by your self?. :confused: