yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] mark fly:
status 1 syntax error aroma-config on line 311 col 2

plz help me...

####
# Customize Install
###

selectbox(
#-- Title
"Main Features",

#-- Sub Title
"Please choose an option for each of the items:",

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

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

#-----------------------------------[ Selectbox With Groups ]----------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#

"On-Screen-Button", "",	2, #-- Group 1. key = "selected.1"
"22dpi+original_icon", "On-Screen-Button 22dpi+ICON+chiness",	1, #-- selected.1 = 1
"22dpi", "On-Screen-Button 22dpi", 0, #-- selected.1 = 2
"no", "Landscape_mode_without_navigation_bar", 0, #-- selected.1 = 3
"recovery","_original_file", 0, #-- selected.1 = 4

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
); [B][COLOR="red"]//←line 311 col 2[/COLOR][/B]
###################################################################################################################
#
# STEP 8 - CUSTOMIZE YOUR INSTALLATION
#

checkbox(
#-- Title
"Customize",

#-- Sub Title
"Choose apps that you want to be installed:",

#-- Icon: <AROMA Resource Dir>/icons/personalize.png or <ThemeDir>/icon.personalize.png
"@personalize",

#-- Will be saved in /tmp/aroma/customize.prop
"customize.prop",

#------------------------------------------------[ Checkbox Without Group ]----------------------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-------------------------------------------------------------------------------------+---------------#

"PanelSettings", "下拉快捷設定中文版", 2, #-- Group 1. key = "item.1.x"
"XT", "安裝時選擇Quick Panel setting: Xperia T style才需要", 0, #-- item.1.1
"ICS", "安裝時選擇Quick Panel setting: ICS style才需要, 我還沒放檔案...",	0, #-- item.1.2

"SystemUI",	"連線符號改回H", 2, #-- Group 2. key = "item.2.x"
"XT", "安裝時選擇Quick Panel setting: Xperia T style才需要",	0, #-- item.2.1

"Xloud", "", 2, #-- Group 3. key = "item.3.x"
"fix",	"fix xloud",	1,	#-- item.3.1

"Other Mods", "", 2, #-- Group 4. key = "item.4.x"
"Cybershot Camera","Cybershot Camera Mod V6.7.2 For more info check Xperia Arc Theme & apps forum",	0, #-- item.4.1

"Advanced",	"",	2,	#-- Group 5. key = "item.5.x"
"Cache & Delvik Clean Tweaks","WARNING: do not use them with increase internal memory tweaks like Ad2SD",1	#-- item.5.1

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);
[Android Software/Hacking General [Developers Only]] Dri94:
Im making an Aroma rom. i have the aroma-config done. but i get a syntax error status 1 at a line that doesn't exist (ends at say line 164 then error is at 165 col 1) when i try to run it. i heard this means there is a missing endif; in the updater-script but i cant find it. can someone help me?

Files are attached, i added a .txt to the end so that it would let me upload them

edit: solved.
[Android Software/Hacking General [Developers Only]] Robobob1221:
In the group before this line remove the comma after the last 0 if you haven't already.

Sent from my SC-02E using Xparent Skyblue Tapatalk 2
[Android Software/Hacking General [Developers Only]] Robobob1221:
Did you check the lines from the aroma log for the errors in your updater script?

I think Kevinrocksman pointed out two lines to you in the other forum:

then* * ui_print("@ Samsung Service & Sync);* * * * package_extract_dir("aroma/samsung/service", "/system");endif;if* * file_getprop("/tmp/aroma-data/samsung.prop","item.0.10") == "1"then* * ui_print("@ S Voice);* * package_extract_dir("aroma/samsung/svoice", "/system");endif

Your two ui_print are both missing a " at the end.

Check near the line errors in the log usually before it and look for any missing comma, indents etc

Sent from my SC-02E using Xparent Skyblue Tapatalk 2
[Android Software/Hacking General [Developers Only]] md4dodge:
I'm flashing now, and it appears to be fixed, thank you for your quick response... had an error on the install, but the whole rom installed and it works fine, think it;s in my file structure, should be a quick fix. :) :highfive: :good:
[Android Software/Hacking General [Developers Only]] mark fly:
syntax error aroma-config on line 356 col 14 (status 1)

plz help me again..:crying:
[Android Software/Hacking General [Developers Only]] omarilzz:
How do i create a full rom in aroma
[Android Software/Hacking General [Developers Only]] Dri94:
Best way to learn is to take apart another aroma rom.
[Android Software/Hacking General [Developers Only]] md4dodge:
Ok, so I spoke too soon.. It dirty flashed fine after editing the config, Everything seemed to install great, booted up and worked. When I tried to clean flash, It went to a black screen directly after splash and wouldn't boot. I recovered a backup and dirty flashed again to find out that my wifi and hotspot won't connect. I'm at a loss. Also, when I save the aroma log, it says saved it but it's not there.

Please help,

Thanks again.

http://pastebin.com/CPihMgUD

http://pastebin.com/st8A7KtY

http://pastebin.com/TaFny2Ff
[Android Software/Hacking General [Developers Only]] :
hi

i have a problem with aroma , when i start aroma installation it goes good except the last five extraction commands in updater script

example:

ui_print("Fonts");

# Stock

if

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

then

ui_print("- Stock");

package_extract_dir("aroma/font/s", "/system");

endif;

it write "- Stock" but it did not extract anything

regards
[Android Software/Hacking General [Developers Only]] hockeyfamily737:
Try this:

package_extract_dir("aroma/font/s", "/system/fonts");

^ That's assuming that your individual font.ttf files are in directory "aroma/font/s
[Android Software/Hacking General [Developers Only]] :
no, in folder s there is the folder fonts
[Android Software/Hacking General [Developers Only]] md4dodge:
Anyone have any thoughts on my issues in previous posts?
[Android Software/Hacking General [Developers Only]] carl1961:
comma missing here , line 359 col 114

"Other1","file will put in system/app", 0,	#-- item.6.1

---------- Post added at 01:26 PM ---------- Previous post was at 12:53 PM ----------

paste one I see what Robobob1221 and Kevinrocksman posted

without aroma-config file and aroma error log for paste 3 , hard to say

you posted errors that to me or system related, you need to use droid explorer to see if your tmp folder is there and see what partitonts or not mounted

I would try leaving out this in updater script to see if it is causing issues

ui_print("Optimizing the filesystem...");

show_progress(0.1, 0);

package_extract_dir("prep", "/tmp");

set_perm_recursive(0, 0, 0755, 0755, "/tmp");

ifelse(is_mounted("/system") == "/system", unmount("/system"));

ifelse(is_mounted("/data") == "/data", unmount("/data"));

run_program("/tmp/mkfs.ext4", "-O", "^ext_attr,^has_journal,^huge_file", "-L", "SYSTEM", "-b", "4096", "-m", "0", "-F", "/dev/block/mmcblk0p14");

run_program("/tmp/tune2fs.ext4", "-c", "1", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p14");
[Android Software/Hacking General [Developers Only]] AndyFox2011:
Hey guys, i got my aroma zip created today, but it keeps giving me an error, and i don't understand it, can someone help? :)

The error:

line 247 col 20: syntax error, unexpected $end
1 parse errors

The lines in the updater-script:

245: show_progress(0.100000, 0);
246: unmount("/data");
247: unmount("/system");
[Android Software/Hacking General [Developers Only]] carl1961:
each if requires a endif;

so your missing a endif; or have two many, we need complete updater.script to help you fine error
[Android Software/Hacking General [Developers Only]] AndyFox2011:
here is the updater-script

http://pastebin.com/nCFf15xf

going on what you've said I'll have a look too

Edit: think i found it, didn't close if statements :P

edit 2: nope still gives me that error :(
[Android Software/Hacking General [Developers Only]] AndyFox2011:
Right, i think i fixed that, but now AROMA doesn't launch, any idea why? It just tries to install normally :/
[Android Software/Hacking General [Developers Only]] carl1961:
can you get the aroma log? or post the aroma-config that goes with updater.script

It just tries to install normally :/ ? did you by chance replace the aroma update-binary with a non aroma update-binary ( the non aroma update-binary you rename to update-binary-installer)
[Android Software/Hacking General [Developers Only]] kevinrocksman:
not 100% sure i got everything, did a quick skim over: http://pastebin.com/19VLRAJv
[Android Software/Hacking General [Developers Only]] md4dodge:
Thank you so much, I'm gonna go try it again now, just got home.

EDIT:...

Tried it. back to the original problem.. Doesn't install anything. just runs aroma and says installed.

I don't get it. What the hell am I doing wrong. I set it up from two different Roms with working aroma, changed all the folder names, paths, etc to make it right. Went through every line to check for ( ";, :" ) every endif;, every ",,, " I don't get it. This is driving me NUTS.
[Android Software/Hacking General [Developers Only]] :
anyone know how to solve this?
[Android Software/Hacking General [Developers Only]] carl1961:
We need to know what is in the (aroma/font/s if your installing to system/fonts

Then s folder should have a fonts folder with the fonts in it. Since you see stock coping , your must.prop must be right

---------- Post added at 02:26 AM ---------- Previous post was at 01:48 AM ----------

Can you upload your META-INF folder or pm the link then i can maybe run it on a test phone
[Android Software/Hacking General [Developers Only]] apophis9283:
Need help. Everything seems to go well, but it wont actually install the rom.

Aroma-config - http://pastebin.com/w3cb8U1c

Updater - http://pastebin.com/xGTDUGXE
[Android Software/Hacking General [Developers Only]] kevinrocksman:
please go here: http://webchat.freenode.net/?channels=teamDART
[Android Software/Hacking General [Developers Only]] apophis9283:
This guy is amazing. Pretty much nothing he cant fix or figure out. Had me fixed up amd ready to go in no time. Thanks. I will be donating to you on payday. You forgot to give me your paypal info though.

Sent from my Gnex running the most awesome AOKP build
[Android Software/Hacking General [Developers Only]] kevinrocksman:
Themodder4528@Gmail.com. any challenge I will accept lol
[Android Software/Hacking General [Developers Only]] shantam:
I always get status 0 error on roms made with dsixda kitchen

Anyway to solve this problem

I have mtk 6577 phone

*Sent_From _Qmobile_Noir_A8*
[Android Software/Hacking General [Developers Only]] carl1961:
when I save the log before ending aroma, I have this at bottom, but all is working so I just assumed (Status 0) means no issues

script result was []

Installer Sucessfull (Status 0)
[Android Software/Hacking General [Developers Only]] Dblfstr:
double post
[Android Software/Hacking General [Developers Only]] Dblfstr:
Also missing comma here:

Edit; was already fixed :D
[Android Software/Hacking General [Developers Only]] Dblfstr:
That is precisely the purpose of this thread. However, we do appreciate your help.
[Android Software/Hacking General [Developers Only]] carl1961:
I think kevinrocksman main purpose was to help so thread stays cleaner ,

It would be nice though when those who post questions, when fixed post the fix for others to learn from reading ;)
[Android Software/Hacking General [Developers Only]] Dblfstr:
Indeed, but that is the purpose of this thread (not like it is cluttered with unrelated stuff).

I do not want to detract form his offering though. If someone needs help, and they get it, then all is well.

Keep up the good work.
[Android Software/Hacking General [Developers Only]] pjc21:
Cannot Delete

Hi, I am trying to delete an apk from system/app with no luck

if
file_getprop("/tmp/aroma-data/mods.prop","selected.0") == "1" && file_getprop("/tmp/aroma-data/launcher.prop","selected.0") == "1" && file_getprop("/tmp/aroma-data/version.prop","selected.0") == "1"
then
ui_print(" - Stock Launcher Green");
delete("/system/app/Launcher2.apk");
package_extract_dir("Launcher/Greenstock", "/system");
endif;

the package extract works fine, I have no errors that I can see. It will just not delete apk from system. Any help would be great.

Thanks.
[Android Software/Hacking General [Developers Only]] kevinrocksman:
I am sorry if this is off topic, I think it is something which can help everyone here in some way or another... Maybe even reduce the questions by about half. If this is off topic I am sorry and I will delete it but here it is:

This can pull log files/tmp files and other files from an aroma execution. It also allows packaging of just aroma or whole rom files

Aroma Log/Tmp Puller V1
[Android Software/Hacking General [Developers Only]] Dblfstr:
I will add to the OP. Great information.

Edit: Added to the useful links section.
[Android Software/Hacking General [Developers Only]] carl1961:
before you close aroma installer I would pull the mods.prop,launcher.prop and version.prop and verify they all have selected.0=1
[Android Software/Hacking General [Developers Only]] pjc21:
I have not pulled props, not sure how to do this but if they where not selected then it would not be extracting the correct package, which it is. Is that right? It is just flashing the correct package over the previous without picking up on the delete command.
[Android Software/Hacking General [Developers Only]] carl1961:
correct, is this at a rom install or a mod install on a rom already install

I use droid explorer while aroma is running to get the props from the tmp and copy them to a folder on my computer to veiw to what I select (have to remeber what you selected)

at end of aroma do you save the install log, it may tell you what happened

example log:

Installing busybox
about to run program [/system/xbin/busybox] with 4 args
No Boot Sound Installed!!
Extract: /system/customize/CID/default.xml
Installing init.d support...
Extract: /system/bin/sysinit
Extract: /system/etc/init.d/01wpmodule
Extract: /system/etc/init.d/99datetest
Extract: /system/etc/install-recovery.sh
Install Latest Updated Add Block host file
Extract: /system/etc/hosts
Removing Jetcet Print
Removing FlexNet
Removing Google Feedback
Customized Rom Installed
No Kernel Installed!!
Setting Permissions...
Formatting Cache...
Creating filesystem with parameters:
Size: 268434944
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 65535
Block groups: 2
Reserved block group size: 15
Created filesystem with 11/16384 inodes and 2089/65535 blocks
Finished!

UrDroid

YEAR 2013
script result was []

Installer Sucessfull (Status 0)

End at : Mon Feb 4 19:28:34 2013
[Android Software/Hacking General [Developers Only]] pjc21:
[Solved] cannot delete

After a bit more searching through file system found my issue, had to change what is deleted. Not sure why when it works fine when I flash like so

delete("/system/app/Launcher2.apk");
package_extract_dir("Launcher/Greenstock", "/system");

it works fine above just deleting the launcher2.apk but not in an if statement for some reason it needs the com.android.launcher deleted. :confused:

The if statement would still flash the correct package but the delete("/system/app/Launcher2.apk"); just does not get picked up at all.

if
file_getprop("/tmp/aroma-data/mods.prop","selected.0") == "1" && file_getprop("/tmp/aroma-data/launcher.prop","selected.0") == "1" && file_getprop("/tmp/aroma-data/version.prop","selected.0") == "1"
then
ui_print(" - Stock Launcher Green");
delete_recursive("/data/data/com.android.launcher");
package_extract_dir("Launcher/Greenstock", "/system");
endif;

anyway works this way :victory:
[Android Software/Hacking General [Developers Only]] mrRobinson:
I don't know of a code reference guide outside of the aroma OP and example file but looking at what you are trying to accomplish I see a couple pitfalls I'd avoid.

1. I try not to ever reuse prop files. So your first menubox I'd call it theme.prop and second rom.prop

2. Not sure about your function error but i can tell you customize.prop will not end how you expect. When you write it again it is not appending to the first values but writing the whole file out. So in your layout the customize.prop with only end up with item.2.1, item.2.2, and item.2.3 values.

In order for you to write out customize.prop once, knowing both answers to your questions I'd simply merge the two menubox's into a selectbox like this:

selectbox(
# Title
"Custom Kernels",

# Sub Title
"Choose the custom kernel you would like to install.",
"@apps",

"type.prop",

"Rom Theme", "", 2, #-- Group 1
"Theme 1", "Blue theme", 1, #-- selected.1 = 1
"Theme 2", "Pink theme", 0, #-- selected.1 = 2
"Carrier", "", 2, #-- Group 2
"Carrier 1", "ATT", 1, #-- selected.2 = 1
"Carrier 2", "Verizon", 0 #-- selected.2 = 2

);

endif;

Then just use if statements to build out the customize.prop one time like

if type.prop selected.1 == 1

if type.prop selected.2 == 1

writetmpfile customize.prop for Blue and ATT

endif;

endif;

etc...
[Android Software/Hacking General [Developers Only]] dissidius:
Hello everyone I'm a member of htcmania and one fellow member developed jelly bean for our device which in fact is a port well everything is good but a fix is needed to make it work couse we're stuck its needed someone with skills for fixing update scripts the zip installs but we just return to our previous rom

here is the link of the rom: http://www.mediafire.com/?feftjbbcpa9dev2

the author of this mod is herokickxx

and here is the original thread;

http://www.htcmania.com/showthread.php?t=531739:)

it's for the Vodafone Smart II aka alcatel v860
[Android Software/Hacking General [Developers Only]] Jhowlett:
Hi!

I use a busybox file in my aroma zip...I would use the busybox one who in my phone in /system/xbin.So if I change :

run_program("/update_files/ect/busybox", "mount", "/data") ;
delete_recursive("/data/dalvik-cache") ;

by

run_program("/system/xbin/busybox", "mount", "/data") ;
delete_recursive("/data/dalvik-cache") ;

the updater-script will check the busybox file in /zip/system/xbin and not in /system/xbin (in the phone).Correct?How can I do for invoke the file in the phone plz?Thx ;)

Tapatalked with my precious I9000
[Android Software/Hacking General [Developers Only]] carl1961:
try removing the ) off all the if statments

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

if (file_getprop("/tmp/aroma/mods.prop","selected.1") == "1"
[Android Software/Hacking General [Developers Only]] Kick4U:
No luck, tried:

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

and

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

also removed deleting dalvik cache, so thats not the problem

if (file_getprop("/tmp/aroma/mods.prop","selected.1") == "1") works

SOLVED:

seems I needed to have aroma-data
[Android Software/Hacking General [Developers Only]] utkaar099:
syntax error

Hi, I'm trying a blind port of my rom over to the htc evo 4g lte, and all of my testers seem to get the same error no matter what I change:

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

ROM Name : HatkaLTE
ROM Version : TEST
ROM Author : Team Hatka
Device : HTC EVO 4G LTE
Start at : Wed Feb 20 19:44:09 2013

line 368 col 1: syntax error, unexpected $end
1 parse errors

Installer Error (Status 6)

End at : Wed Feb 20 19:44:09 2013

I understand what the error is, but the thing is, whatever I do to fix it just ends up with the same error. I've converted the format to unix several times with notepad++ and I've tripled-checked to see if any "s or )s, etc are missing.

I've attached the meta-inf folder of my rom for people to take a look.. Thanks!
[Android Software/Hacking General [Developers Only]] carl1961:
in updater-script ,line 199 if statement missing endif;

if file_getprop("/tmp/aroma-data/recent.prop","selected") == "2" then

ui_print("-Keeping stock Sense recent apps...");

endif;
[Android Software/Hacking General [Developers Only]] utkaar099:
Oh wow... can't believe I missed that. Thank you!
[Android Software/Hacking General [Developers Only]] Dblfstr:
I just want to say thank you for everyone in here that is supporting this thread. I had no intention of answering every question myself. I had hoped that the community would step in and assist. The support here is greater than what I had expected and it is appreciated.

Also, thank you to those who post their questions here and not in a dev thread. This is where the questions go.

Keep it up guys.
[Android Software/Hacking General [Developers Only]] dissidius:
hey can anyone help me ive eveb pm you if someone could at least help find someone who can help it would be great

cheers
[Android Software/Hacking General [Developers Only]] Dblfstr:
Post your stuff here. Yes I remember the PM. Sorry, I have not had a chance to look at it.

Edit:

Here is the info.

There is a Jelly Bean port for the Vodafone Smart II (alcatel v860)

Needs help with the update scripts.

So the zip installs, but after reboot, nothing is changed, the previous ROM is still loaded on the phone.

ROM: https://www.dropbox.com/s/xnu95szffz...RJB.signed.zip

There is a link to the website HTCMania (but it is in Spanish): http://www.htcmania.com/showthread.php?t=531739
[Android Software/Hacking General [Developers Only]] lesscro:
Hello... i m begin with Aroma, i use notePad++ and modify original package of Arom 2.56...

everything seems to be good but there is no modification on system (i use Aroma to change system files) ?

And save lo before endring (reboot) give me status (0)...

Does i made an error somewhere ?

attached specific file !! (aroma + updater + log)

Cheers
[Android Software/Hacking General [Developers Only]] carl1961:
script looks correct just verify your folders

example: package_extract_dir("sense5/mods/stock", "/system");

make sure your app is in app folder (inside stock folder)

sense5

mods

stock

app
[Android Software/Hacking General [Developers Only]] dissidius:
oh at least you replied well the stuff is all ready there what else is needed so that i can post or i should make so that you talk with the creator of the rom??
[Android Software/Hacking General [Developers Only]] AndyFox2011:
I get this error when flashing my script

line 218 col 10: syntax error, unexpected BAD
1 parse errors

This is line 218;

ui_print(”Installing Extras");

What is happening? If you need the whole scripts to help me I can upload them
[Android Software/Hacking General [Developers Only]] lesscro:
hi, thx for quick answer... i just checked tree file...

I use sense5 folder in root of package...

then it looks like that :

package.zip/

-----------------/META-INF/

-----------------/Sense5/

-----------------------------/mods/

--------------------------------------/stock/

-----------------------------------------------/app/

-----------------------------------------------------/SystemUI.apk

All other files look like that... then i don't know... but i did'nt see any text from install script view when i select INSTALL NOW !!
[Android Software/Hacking General [Developers Only]] Jhowlett:
Somebody has an answer plz?
[Android Software/Hacking General [Developers Only]] carl1961:
You would have to mount system, so it is best to use busy box in your installer
[Android Software/Hacking General [Developers Only]] eatthatshrimp:
good

helpful thanks but i get the syntax error on the fin line and ive check all the if/if else statements i dont see any with no endif after the conditions i have attached the META-INF folder if anyone can help id really apreciate it thanks :)