yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] DjSound:
This would be a really cool features!

Someone could help us?
[Android Software/Hacking General [Developers Only]] cojo11:
Have anyone a Idea whtats going wrong here,the installtion abortet every time

Aroma-config
[Android Software/Hacking General [Developers Only]] Stoux2:
I'm not really a Pro in this, but it seems to me that you dont have a Cam.Prop in your Aroma-Config file while you have it in your updater file. So the updater tries to read something that doesnt excists and gives you an error.
[Android Software/Hacking General [Developers Only]] crybert:
Hey amarullz, I don't know if this was mentioned already but i have some Problems with translated changelogs:

I have several translation for my Rom.

de.lang

en.lang

hu.lang

In every lang file there is the following line:

changelog=changelog/*.txt (* replaced with de/en/hun )

In aroma-config I have the following textbox for loading the suitable changelog file

textbox(

"Changelog",

"Crybernation Changelog",

"icons/info",

resread(lang("changelog"));

);

To my problem:

The english changelog is displayed right, because in english language there are no special characters. But when I load hungarian or german translation then the changelog will but cut off when a special character arrives.

Here an example:

This is my changelog

Crybernation 1.0
- Toggle2G
- 14 TogglesMod
- "SwipeToRemoveNotification" standardmäßig aktiviert
- ScriptManager wird für die StockKernel nicht mehr benötigt
- Unterstützung für Shutdown-Scripts (bartito)
- MediaScanner (an/aus) in Aroma hinzugefügt
- einiges ICS-Theme Apps gemoddet (hatte dies vergessen)
-Camera.apk
...

This is how it will be displayed

Crybernation 1.0
- Toggle2G
- 14 TogglesMod
- "SwipeToRemoveNotification" standardm

So the changelog will be cut off before the "ä".

I hope you understand what I mean and have a solution for me.

Greets Crybert

EDIT:

Problem is solved really easy. Just opened the de.txt in Notepad++ and converted it in UTF8. Now it works perfect
[Android Software/Hacking General [Developers Only]] amarullz:
Sorry Guys

:( :( :(

I drop my phone.. It was broked.

So I don't have any Android phone again.

For now I will stop the development until I got a new phone (don't know when)..

Thanks for all of support

And keep the Android Development Alive...

Bye
[Android Software/Hacking General [Developers Only]] ruffneckZeVo:
Sounds like we need to get this guy a phone
[Android Software/Hacking General [Developers Only]] amarullz:
Thanks, but I will try to take it to service center first... The screen was heavy broken & device won't even turn on,.. I hope it was fixable, and won't cost me too much..
[Android Software/Hacking General [Developers Only]] FBis251:
:(. I'm sure we can get some donations going your way, AROMA has been very well received in our community.
[Android Software/Hacking General [Developers Only]] alessandrospa:
i get error at last line of script here:

###
#
# Check if reboot checkbox was checked
if
getvar("reboot_it")=="1"
then
#
# reboot("onfinish"); - Reboot if anything finished
# reboot("now"); - Reboot Directly
# reboot("disable"); - If you set reboot("now") before, use this command to revert it.
#
reboot("onfinish");
endif;

#---- FINISH

tnks
[Android Software/Hacking General [Developers Only]] cojo11:
@ cybret

dont write the German ö

write oe ae ue

Aroma is confused with öÖ äÄ üÜ
[Android Software/Hacking General [Developers Only]] grayn0de:
That usually happens when something is wrong in the code above. Likely you missed a "," somewhere or put an extra one where it was not expected. Go back over your functions and check the syntax. Hint: The last code you worked on is usually the best place to start.

If you want further assistance, you should provide the exact error and a pastebin of your aroma-config.
[Android Software/Hacking General [Developers Only]] franzyroy:
Hello amarullz,

Already, i say you: "Thanks, it's really a great work, there aren't words for qualify your genius!"

I would like to know if it exist a command for see if an application is here or not.

And too, if it's possible of ask question at installation (yes/no), precisely related to the question above?

Many regards!
[Android Software/Hacking General [Developers Only]] shubhamchamaria:
Dunno about app..but question can be asked:

[b]IN AROMA-CONFIG[/b]

"ARE YOU STRAIGHT OR GAY?","",2,
"YES",
"This will install a gay theme", 1,
"NO",
"WARNING: This is for straight people only",0,

[b]IN UPDATER-SCRIPT[/b]

# THEME
if
file_getprop("/tmp/aroma-data/mods.prop","selected.1") == "1"
then
ui_print("@ Installing Gay Theme");
package_extract_dir("customize/theme/gay_theme", "/");
endif;
if
file_getprop("/tmp/aroma-data/mods.prop","selected.1") == "2"
then
ui_print("@ Installing Straight Theme");
package_extract_dir("customize/theme/straight_theme", "/");
endif;

This is just an example! You will need to modify it according to your rom!
[Android Software/Hacking General [Developers Only]] franzyroy:
Thanks! although I would have preferred a different response. Strange exemple but... it's not the subject! ;) :p
[Android Software/Hacking General [Developers Only]] Stoux2:
Hey guys,

Terrible 'bout your phone Amarullz :(!

I got a question, I made this bit of code for the AROMA-config file, however it doesn't work.

if ( (prop("customize.prop","item4.4")=="1") && (prop("customize.prop","item 4.5")=="1") ) then
alert(
"Oh-oh!",
"You have chosen both Google music & Google Music Inverted!\n\n"+
"Since this is the same app but just themed, only the normal google music will be installed.\n\n"+
"Press OK & then press back if you want to change this!",
"@info"
);
endif;

Selection code:

Customize.prop

"Music Players", "",	2, #-- Group 4. key = "item.4.x"
"CM9 Player", "A porting of CM9 Music Player", 0, #-- item.4.1 = Selected by default
"MiuiV4 Player", "Miui Official Player",	0,	#-- item.4.2 = Un-Selected by default
"Apollo!", "New! Music Launcher with black Theme",	1, #-- item.4.3 = Un-Selected by default
"Google Music", "Standard Google Player",	0, #-- item.4.4 = Un-Selected by default
"Google Music Inverted", "Inverted Google Player",	0 #-- item.4.5 = Un-Selected by default

Anyone have an idea why :/?

Stoux
[Android Software/Hacking General [Developers Only]] alessandrospa:
this is my aroma-config file. I have an error on the last row...

htttp://pastebin.com/VcFLkPmF

(remove a t on htttp)
[Android Software/Hacking General [Developers Only]] Turge:
Probably caused by the 2 missing brackets below:

setvar ("data_total",	getdisksize("/data","m"));

setvar ("data_free",	getdiskfree("/data","m"));
[Android Software/Hacking General [Developers Only]] grayn0de:
I believe it should be:

if (prop("customize.prop","item4.4")=="1") && if (prop("customize.prop","item 4.5")=="1") then
[Android Software/Hacking General [Developers Only]] alessandrospa:
Sorry, but this doesn't solve my error :(:(:(
[Android Software/Hacking General [Developers Only]] grayn0de:
Try putting parenthesis around the functions in your if statements in the aroma-config (not needed in the updater-script).

Example:

if (prop("type.prop","selected")=="1") then

This might not work (at least for me... not sure why?):

if prop("type.prop","selected")=="1" then
[Android Software/Hacking General [Developers Only]] alessandrospa:
still does not work:confused::mad::confused:
[Android Software/Hacking General [Developers Only]] Stoux2:
Nope, get a syntax error then :(
[Android Software/Hacking General [Developers Only]] Turge:
Ok, but you still need them.
[Android Software/Hacking General [Developers Only]] cojo11:
What number of line comes the error???

Maybe save a error log
[Android Software/Hacking General [Developers Only]] grayn0de:
Revert to how you had it and try using a textdialog instead of an alert. alert has a character limit (not certain what) that will cause an error. Syntax is the same.

if ( (prop("customize.prop","item4.4")=="1") && (prop("customize.prop","item 4.5")=="1") ) then
textdialog(
"Oh-oh!",
"You have chosen both Google music & Google Music Inverted!\n\n"+
"Since this is the same app but just themed, only the normal google music will be installed.\n\n"+
"Press OK & then press back if you want to change this!",
"@info"
);
endif;

I just ran into this in my installer, but I'm not using multiple conditions for my if statement, so not sure if it will work for you.
[Android Software/Hacking General [Developers Only]] Stoux2:
Tried, didn't work. He doesn't give a Syntax error so he accepts the code, it just doesn't work. For some reason he doesn't get the && >.<. || works fine tho :(
[Android Software/Hacking General [Developers Only]] grayn0de:
You could nest the if statements. More code, but it should work. This is how I've been doing it, since logic operators had been iffy for me in the past. Not sure if you need to double them up or if that will give you double alerts. You'll have to test this.

Example:

if (prop("customize.prop","item4.4")=="1") then
if (prop("customize.prop","item 4.5")=="1") then
textdialog(
"Oh-oh!",
"You have chosen both Google music & Google Music Inverted!\n\n"+
"Since this is the same app but just themed, only the normal google music will be installed.\n\n"+
"Press OK & then press back if you want to change this!",
"@info"
);
endif;
endif;
if (prop("customize.prop","item4.5")=="1") then
if (prop("customize.prop","item 4.4")=="1") then
textdialog(
"Oh-oh!",
"You have chosen both Google music & Google Music Inverted!\n\n"+
"Since this is the same app but just themed, only the normal google music will be installed.\n\n"+
"Press OK & then press back if you want to change this!",
"@info"
);
endif;
endif;

Also, if you use the back function, you can put them back on the correct menu to correct their choices.

back("1");
[Android Software/Hacking General [Developers Only]] Stoux2:
Been doing it the same way, but I just couldn't figure out why || would work and && not, prob something in Aroma haha! Anyways thanks for the help, small question: where do I put the back (1); line :)? Under @info?

Stoux

Edit:

Like this right?

if (prop("customize.prop","item4.4")=="1") then
if (prop("customize.prop","item 4.5")=="1") then
alert(
"Oh-oh!",
"You have chosen both Google music & Google Music Inverted!\n\n"+
"Since this is the same app but just themed, only the normal google music will be installed.\n\n"+
"Press OK & then press back if you want to change this!",
"@info"
);
back("1");
endif;
endif;
[Android Software/Hacking General [Developers Only]] grayn0de:
Correct.
[Android Software/Hacking General [Developers Only]] Turge:
Amarullz... Hopefully, this brings you one step closer to getting a new phone. Even if you get your current phone fixed, you still deserve some donations for everything you've given us.

Trans. Id: 49N995766P6962007
[Android Software/Hacking General [Developers Only]] RayYung:
Don't leave.

Guys, let's buy him a new phone.

--EDIT--

Hope this help : Confirmation number: 9DK61984MY917384E.
[Android Software/Hacking General [Developers Only]] amarullz:
Thanks man, it will help me alot :o

Don't worry, I won't leave, I am still here.. but I can't develop any new version and other project without phone, because it wasn't a kind of program that can developed in emulator.

Service center already told me to replace the screen, but it cost me too much :D. I will saving some money to buy the new (second hand :cool:) android device, but I can't give an ETA when I can afford to buy it :D. I have 2 more unfinished project that I should continue develop.
[Android Software/Hacking General [Developers Only]] shubhamchamaria:
You can get a hTC One V for 300$....

Or maybe a One S if the budget permits for around 500$....
[Android Software/Hacking General [Developers Only]] amarullz:
I can't afford it for now :D, I need to save my money for about 2-3 month for just One V,.. maybe 2nd hand htc desire was the best choice for me.
[Android Software/Hacking General [Developers Only]] Aternus:
Hey Amarullz,

Did you get my PM message about the documentation for AROMA Installer?

I think we can raise donations with this eBook to get you a new phone...

Please let me know what do you think! :D
[Android Software/Hacking General [Developers Only]] amarullz:
did I am not say yes back then :confused:?... I think your ebook will become usefull for chef. And offcourse you can write the documentation about it. Just tell me if it finished, and If it was free, I will be happy to add it in the first page..
[Android Software/Hacking General [Developers Only]] Hammerfest:
can someone point a non-developer like myself in the direction I am looking for...

I am trying to DE-Armoa a rom (EDIT: IE, if i remove a file/folder tree from "\" what files do i need to edit to remove the option in the installer to prevent issues/fubars)

Its not that I dont like it, its just that I am used to using CM drops, which is simple for me since I normally trim things out and replace things (like replacing SuperUser with SuperSU, and Launcher and such), I have a ROM developer I like/use his rom's, but the file has gone from 90Mb~ to 170Mb~ with launchers, fonts, apps, galore and I give up about the 5th time when I end up with stuff I dont want installed (thus breaking the rom due to my constricted system partition), but not breaking the Aroma installer by removing the .apk's and folders...

Thanks for anyone who can help.... and I hope OP can get a new phone soon...
[Android Software/Hacking General [Developers Only]] Aternus:
I didn't get any answer from you :(

It is finished but it need your review because some of the stuff there are my assumptions. I will make it free for everyone to collaborate, maybe its better you create a WIKI on your domain? The only thing I'm asking is proper credits for my contribution :)
[Android Software/Hacking General [Developers Only]] franzyroy:
Yet my message,

I konw, shubhamchamaria answer to me but it does not satisfy me only half, my question is:

And if it's not possible to know if an application is already in the system, i could make a comparison and jump (go to the next) the installation.... Euh!!! I think that i answered my question! ;)

Amarullz, if you thinks there is a possibility to know if an application is in the system.... then tell it me!

Thanks!!

my project, put this script below in

updater-script

if it's good... of course

if
file_getprop("/tmp/aroma/customize.prop","item.1.13") == "1"
then
ui_print("@ Installating Contact Black");
if
"comparison"=="comparison"
then
if
confirm(
"Exist Already!",
"Do you want continue?",
#-- Icon (Optional)
"@info"
)=="yes"
then
package_extract_dir("Franzymod/Contacts_Blk/system", "/system");
else
ui_print("@ No Install Contact Black");
ui_print("@ Exist Already!");
endif;
else
package_extract_dir("Franzymod/Contacts_Blk/system", "/system");
endif;
endif;

My only problem is:

I would like to make a comparison with an application on the system already existing!
[Android Software/Hacking General [Developers Only]] notDroid:
Hi, amarullz can you see my aroma-config? When I try install my Custom ROM I've got Syntax error and I don't know why.

Ty
[Android Software/Hacking General [Developers Only]] Stoux2:
Anyone know how to delete a file from the SD-Card in Aroma-Config (So not in the updater).

Tried this:

delete("/SDcard/supertemp.prop");

Gave an error on the )

Also: is there a way to make an "if back button then" when someone uses the back button?
[Android Software/Hacking General [Developers Only]] franzyroy:
I think that it will be more this:

delete("/mnt/SDcard/supertemp.prop");

For the condition of back button, i thinks at one thing but it's not easy to write here... you must put a condition in the previous menu (before the back button) who will be activated just before the back button, so when you come back in this menu, you will have the condition. Condition can to be: put a value at "1" for exemple. By cons, you should thought to reset this value at the start or another moment!

I hope to have being clear!
[Android Software/Hacking General [Developers Only]] alessandrospa:
Can you watch this installer-script plz

LG Optimus 2X P990

Start at : Sun May 27 17:43:21 2012

line 992 col 19: syntax error, unexpected $end

1 parse errors

Installer Error (Status 6)

End at : Sun May 27 17:43:21 2012

hhttp://pastebin.com/embed_iframe.php?i=aXSQS9fu
[Android Software/Hacking General [Developers Only]] franzyroy:
In this script:

# SUPERNOVA ics
if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "3"
then
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
delete_recursive("/system/lib/modules");
package_extract_dir("customize/kernel/super/system", "/system");
package_extract_dir("data", "/data");
set_perm_recursive(0, 0, 0755, 0755, "/system/lib/modules/");
set_perm(0, 0, 0755, "/system/xbin/mkbootimg");
set_perm(0, 0, 0755, "/system/xbin/unpackbootimg");
set_perm(0, 0, 0755, "/system/xbin/rh");
ui_print("Extracting Kernel files...");
package_extract_dir("customize/kernel/super/kernel", "/tmp");
ui_print("Installing kernel...");
set_perm(0, 0, 0777, "/tmp/dump_image");
set_perm(0, 0, 0777, "/tmp/mkbootimg.sh");
set_perm(0, 0, 0777, "/tmp/mkbootimg");
set_perm(0, 0, 0777, "/tmp/unpackbootimg");
run_program("/tmp/dump_image", "/dev/block/mmcblk0p5", "/tmp/boot.img");
run_program("/tmp/unpackbootimg", "-i", "/tmp/boot.img", "-o", "/tmp/");
run_program("/tmp/mkbootimg.sh");
run_program("/sbin/busybox", "dd", "if=/tmp/newboot.img", "of=/dev/block/mmcblk0p5");

There isn't "endif;" then that there is one "if"!
[Android Software/Hacking General [Developers Only]] evodev:
im a bit confused how to add this to my custom rom. for the basic ui do I just add the file to meta-inf? then how to i tweak the options? (im new to making roms fyi)
[Android Software/Hacking General [Developers Only]] FBis251:
Start reading from here:

http://xdaforums.com/showthread.php?p=21755966#post21755966
[Android Software/Hacking General [Developers Only]] evodev:
while reading through it i didnt quite get it at first. now I just need some to to figure out how i want it setup exactly and how.
[Android Software/Hacking General [Developers Only]] SilentEYE:
is there any way to install a patch.zip fie without using aroma installer which is implemented in my custom Rom?

I want to patch a pdroid zip file but aroma installer even doesnt start that file. (error1)
[Android Software/Hacking General [Developers Only]] mattmanwrx:
Hi, a quick question...

Is it possible to ask a user which install they want, and then to be put onto that "page" with different options...

For example, I have some boot animations, some have black backgrounds, others have white... Is it possible to ask "which background do you want?" And then depending on.their answer send them to the next select box for which colour boot anim they want, with the respective background colour?

Thanks, Matt
[Android Software/Hacking General [Developers Only]] yy1155:
The collection. Slowly learning.
[Android Software/Hacking General [Developers Only]] agismaniax:
hi amarullz, you can try looking new desire in FJB at www.kaskus.com. cdma version is cheaper than gsm version. ;)

there are so many roads to roma, roma dulu la ya... :D
[Android Software/Hacking General [Developers Only]] Keito Tokunome:
Great job :), I love the visual environment and being able to touch everything so.
[Android Software/Hacking General [Developers Only]] Aternus:
Its possible, you are only limited by your imagination...

Take in mind that it might annoy users since this is a linear based wizard and not everybody might remember what they chosen at the first few screens...
[Android Software/Hacking General [Developers Only]] mattmanwrx:
Hi, thanks for your reply...

Is it possible for anyone to give me a quick syntax to start with? I've gone through the newest 2.00 but couldnt get what I wanted...

Bassically, first option to ask for black or white, if user chooses white then go to this screen, and if black then go to this screen... (the black and white is bootanimation background)

From there I then want the user to choose which boot animatin they want... (with different colours)...

Possible Please?
[Android Software/Hacking General [Developers Only]] Aternus:
You have an error in your logic;

It should be:

1) Boot Animation choice

2) Boot Animation customization

Unfortunately its impossible to provide any code unless one knows the structure of your folders and the boot animations you are gonna have. :)

First you need to present a selectbox with a list of boot animations.

Then in the next screen based on the input from the previous screen, you need another selectbox with the applicable customizations to that particular boot animation, there you can group items together (for eg. background colors, etc).
[Android Software/Hacking General [Developers Only]] mattmanwrx:
Thank you again, I'm out of thanks today, but you get some from me tomorrow..

How do I create the "based on the input from the previous screen"

my current selectbox - has all 6 animations there

selectbox(
"Choose Boot Animation",
"Please choose the boot animation you want",
"icons/apps",
"custom.prop",

"Boot Animation","",2,
"Green X - White","White Back Ground With Green X",1,
"RED X - White","White Back Ground With Red X",0,
"All Blue - White","White Back Ground With Blue HTC and X",0,
"Green X - Black","Black Back Ground With Green X",0,
"RED X - Black","Black Back Ground With Red X",0,
"All Blue - Black","Black Back Ground With Blue HTC and X",0
);

my updater script - obviously you can see my folder structure there too..

if
file_getprop("/tmp/aroma-data/custom.prop","selected.1") == "1"
then
ui_print("-> White Back Ground With Green X");
package_extract_dir("extras/white/green-x", "/system/customize/resource");
endif;
if
file_getprop("/tmp/aroma-data/custom.prop","selected.1") == "2"
then
ui_print("-> White Back Ground With Red X");
package_extract_dir("extras/white/red-x", "/system/customize/resource");
endif;
if
file_getprop("/tmp/aroma-data/custom.prop","selected.1") == "3"
then
ui_print("-> White Back Ground With Blue HTC Writing & Blue X");
package_extract_dir("extras/white/blue-all-round", "/system/customize/resource");
endif;
if
file_getprop("/tmp/aroma-data/custom.prop","selected.1") == "4"
then
ui_print("-> Black Back Ground With Green X");
package_extract_dir("extras/black/green-x", "/system/customize/resource");
endif;
if
file_getprop("/tmp/aroma-data/custom.prop","selected.1") == "5"
then
ui_print("-> Black Back Ground With Blue Red X");
package_extract_dir("extras/black/red-x", "/system/customize/resource");
endif;
if
file_getprop("/tmp/aroma-data/custom.prop","selected.1") == "6"
then
ui_print("-> Black Back Ground With Blue HTC Writing & Blue X");
package_extract_dir("extras/black/blue-all-round", "/system/customize/resource");
endif;

I'm not asking for you to do the work for me, I want to learn how to do it... But I would also want it done, and I can't figure it out on my own ;)

So yea, how to get the "show screen from user input"?

Thanks again! :)

EDIT: I understand the first selectbox - black or white - then second selectbox being red, blue or green, but how to make the step inbetween?