Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] aroma don't work

OP zimny123z

15th May 2014, 12:50 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: May 2014
Hi.
I have a big problem with my custom rom. When I install zip I see syntax error line 190...
Please help me, why aroma don't work? When is bad code?

aroma-config
################################################## #############
############### #########
############### EDYTUJESZ NA WLANSA ODPOWIEDZIALNOSC! #########
############### #########
################################################## #############

##
# Initializing Rom Information
#
ini_set("rom_name", "Witcher OS");
ini_set("rom_version", "v1.1");
ini_set("rom_author", "zimny123z");
ini_set("rom_date", "2014-04-6");


##
# Splash screen
#
splash(4000, "splash");


##
# SET THEME
theme("franzyroy");
#

calibrate("0.9678","16","0.9161","21");

# We'll use aroma's font
setvar(font_path, "ttf/Roboto-Regular.ttf");
fontresload( "0", getvar(font_path), "12" ); #-- "0" = Small Font ( Look at Fonts & UNICODE Demo Below )
fontresload( "1", getvar(font_path), "18" ); #-- "1" = Big Font
# alert("WTF is that?","Installing RealICS", "@info");

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

################################################## ################################################## ###############
#
# STEP 2 - SHOW ROM INFORMATION
#
viewbox(
#-- Title
"<~welcome.title>",

#-- Text
"<~welcome.text1> <b>"+ini_get("rom_name")+"</b>.\n\n"+

" <~welcome.version>\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
" <~welcome.updated>\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+

"<~welcome.next>",

#-- Icon
"@welcome"
);

################################################## ################################################## ###############
#
# Select Device
#

#-- View selection box to display supported devices
selectbox(
#-- Title
"Choose your device",

#-- Sub Title
"",

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

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

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

"Supported Devices", "", 2, #-- Group 1. key = "selected.1"
"Live With Walkman", "WT19i - Coconut", 1, #-- selected.1 = 4
"Mini Pro", "SK17i - Mango", 0, #-- selected.1 = 1
"Mini", "ST15i - Smultron", 0, #-- selected.1 = 2
"Active", "ST17i - Satsuma", 0 #-- selected.1 = 3

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);

################################################## ################################################## ###############
#
# INSTALLATION SELECT ITEM
#
selectbox(
# Title
"Bootloader settings",
# Sub Title
"",
# Icon
"icons/install",
# Will be saved in /tmp/aroma-data/<file>
"bl.prop",
# Items ( per 3 arguments ): Title, Subtitle/description, Icon
# Item 1
"Locked", "Select that if you have LOCKED bootloader", "",
# Item 2
"Unlocked", "Select this if you have UNLOCKED bootloader", ""
);

checkbox(
#-- Title
"Standard Installation",

#-- Sub Title
"These standard choice in this rom. If you wish to continue click next.\n"+
"Or select an item in the list below to change how a feature is installed.",

#-- Icon:
"@install",

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

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

"Wipes", "", 2, #-- Group 1. key = "item.1.x"
"Wipe Cache", "Clean partition cache after installation ROM", 1, #-- item.1.1 = Selected by default
"Wipe Userdata", "Clean partition user data after installation ROM", 1, #-- item.1.2 = Selected by default
"Stock Apps", "", 2, #-- Group 2. key = "item.2.x"
"AVG", "Antivirus", 0, #-- item.2.1 = Un-Selected by default
"Battery", "Battery widget", 0, #-- item.2.2 = Un-Selected by default

"NXT Apps", "", 2, #-- Group 3. key = "item.3.x"
"Keyboard", "Xperia S Keyboard", 1, #-- item.3.1 = Selected by default
"PowerSaver", "Xperia NXT PowerSaver app and widget", 0, #-- item.3.2 = Un-Selected by default
"Other Apps", "", 2, #-- Group 4. key = "item.4.x"
"TerminalEmulator", "Pro uber tool for hacker", 0, #-- item.4.1 = Un-Selected by default
"TrackID", "TrackID for Android", 1, #-- item.4.2 = Selected by default
"Office", "Micro**** Office for Android", 0, #-- item.4.3 = Selected by default
"Mods", "", 2, #-- Group 5. key = "item.5.x"
"Ultra Brightness", "Disable auto brightness", 0, #-- item.5.1 = Un-Selected by default
"Disable boot audio", "Disable boot audio like stock in stock", 0, #-- item.5.2 = Un-Selected by default
"Beats Audio", "Beats Audio Engine", 1, #-- item.5.3 = Selected by default
"Wave lock screen", "Replace Xperia NXT lock screen by Wave lock screen", 0, #-- item.5.4 = Un-Selected by default


#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);

selectbox ("Select ROM Mods", "Please select if type mods below:", "@personalize", "anime.prop",
"Start System Animation", "", 2,

"SONY", "SONY make believe", 1,
"XPERIA", "Stock XPERIA boot animation", 0,
"Witcher", "Witcher is the best", 0,

"Launcher", "", 2,

"Jelly Bean", "Stock JB launcher", 1,
"Xperia", "Stock XPERIA launcher", 0,
"NEXT", "Launcher with a config option", 0,

"File Manager", "", 2,

"ASTRO", "Popular manager", 1,
"File Manager", "Light and fast explorer", 0,
"Root Explorer", "Explorer with root operation", 0,
);



################################################## ################################################## ###############
#
# INSTALLATION PROCESS
#
install(
"<~install.title>",
getvar("rom_name") + "\n" +
"<~install.desc>" +
"",
"icons/install"
);
#
checkviewbox(
#-- Title
"<~install.complete>",

#-- Text
"<#selectbg_g><b><~install.cong></b></#>\n\n"+
"<b>"+ini_get("rom_name")+" "+"</b><~install.finish>\n\n",

#-- Icon
"@welcome",

#-- Checkbox Text
"<~reboot.conf>",

#-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)
"1",

#-- Save checked value in variable "reboot_it" (Optional)
"reboot_it"
);

###
#
# 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("onfinish") before, use this command to revert it.
#
reboot("onfinish");
endif;

#---- FINISH


updater-script

ui_print("[*] Mounting Partitions And Cleaning Up");
mount("MTD", "system", "/system");
##---- Bootloader

# Locked
if
file_getprop("/tmp/aroma-data/bl.prop","selected.0") == "1"
then
ui_print("[*] Add files to LOCKED bootloader");
package_extract_dir("Witcher OS/dev/locked", "/system");
endif;

# Unlocked
if
file_getprop("/tmp/aroma-data/bl.prop","selected.0") == "2"
then
ui_print("[*] Add files to UNLOCKED bootloader");
unmount("/system");
format("MTD", "system");
mount("MTD", "system", "/system");
package_extract_dir("Witcher OS/dev/unlocked", "/system");
endif;
if
file_getprop("/tmp/aroma/install.prop","item.1.1") == "1"
then
unmount("/cache");
format("MTD", "cache");
endif;
if
file_getprop("/tmp/aroma/install.prop","item.1.2") == "1"
then
unmount("/data");
format("MTD", "userdata");
endif;
show_progress(0.1, 0);
ui_print("[*] Extracting files");
show_progress(0.7, 1330);
package_extract_dir("system", "/system");
package_extract_file("check_data_app", "/tmp/check_data_app");
set_perm(0, 0, 0777, "/tmp/check_data_app");
run_program("/tmp/check_data_app");
mount("MTD", "userdata", "/data");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");

ui_print("[*] Make symlinks");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/ctrlaltdel");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/wipe");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/cat");
symlink("/system/xbin/su", "/system/bin/su");
symlink("/factory/hdcp.keys","/system/vendor/firmware/hdcp.keys");
symlink("/data/etc/wifi/wl1271-nvs.bin","/system/etc/firmware/ti-connectivity/wl1271-nvs.bin");
show_progress(0.8, 0);
ui_print("[*] Fixing permissions");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(0 ,0 , 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/be_movie");
set_perm(0, 0, 0755, "/system/etc/be_photo");
set_perm(0, 0, 0755, "/system/etc/be_album");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 2000, 0755, "/system/bin/sysinit");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 04755, "/system/xbin/busybox");
set_perm(0, 0, 06755, "/system/xbin/su");
show_progress(0.9, 0);
#--LiveWithWalkman
if
file_getprop("/tmp/aroma/device.prop","selected.1") == "1"
then
ui_print("[*] Installing Live With Walkman system");
package_extract_dir("Witcher OS/dev/lww", "/system");
endif;
#--MiniPro
if
file_getprop("/tmp/aroma/device.prop","selected.1") == "2"
then
ui_print("[*] Installing Mini Pro system");
package_extract_dir("Witcher OS/dev/minipro", "/system");
endif;

#--Mini
if
file_getprop("/tmp/aroma/device.prop","selected.1") == "3"
then
ui_print("[*] Installing Mini system");
package_extract_dir("Witcher OS/dev/mini", "/system");
endif;

#--Active
if
file_getprop("/tmp/aroma/device.prop","selected.1") == "4"
then
ui_print("[*] Installing Active system");
package_extract_dir("Witcher OS/dev/active", "/system");
endif;


if
file_getprop("/tmp/aroma/install.prop","item.2.1") == "1"
then
package_extract_dir("Witcher OS/Apps/Stock/AVG", "/system");
endif;
if
file_getprop("/tmp/aroma/install.prop","item.2.2") == "1"
then
package_extract_dir("Witcher OS/Apps/Stock/Battery", "/system");
endif;

if
file_getprop("/tmp/aroma/install.prop","item.3.1") == "1"
then
if
file_getprop("/tmp/aroma/device.prop","selected.1") != "2"
then
package_extract_dir("Witcher OS/Apps/NXT/Keyboard", "/system");
endif;
endif;
if
file_getprop("/tmp/aroma/install.prop","item.3.2") == "1"
then
package_extract_dir("Witcher OS/Apps/NXT/PowerSaver", "/system");
endif;
if
file_getprop("/tmp/aroma/install.prop","item.4.1") == "1"
then
package_extract_dir("Witcher OS/Apps/Other/Terminal", "/system");
endif;
if
file_getprop("/tmp/aroma/install.prop","item.4.2") == "1"
then
package_extract_dir("Witcher OS/Apps/Other/TrackID", "/data");
endif;
if
file_getprop("/tmp/aroma/install.prop","item.4.3") == "1"
then
package_extract_dir("Witcher OS/Apps/Other/Office", "/system");
endif;
if
file_getprop("/tmp/aroma/device.prop","selected.1") == "1" && file_getprop("/tmp/aroma/install.prop","item.5.1") == "1"
then
package_extract_dir("Witcher OS/Mods/UltraBrightness/lww", "/system");
endif;
if
file_getprop("/tmp/aroma/device.prop","selected.1") == "2" && file_getprop("/tmp/aroma/install.prop","item.5.1") == "1"
then
package_extract_dir("Witcher OS/Mods/UltraBrightness/minipro", "/system");
endif;
if
file_getprop("/tmp/aroma/device.prop","selected.1") == "3" && file_getprop("/tmp/aroma/install.prop","item.5.1") == "1"
then
package_extract_dir("Witcher OS/Mods/UltraBrightness/mini", "/system");
endif;
if
file_getprop("/tmp/aroma/device.prop","selected.1") == "4" && file_getprop("/tmp/aroma/install.prop","item.5.1") == "1"
then
package_extract_dir("Witcher OS/Mods/UltraBrightness/active", "/system");
endif;
if
file_getprop("/tmp/aroma/install.prop","item.5.2") == "1"
then
delete("system/media/bootaudio.mp3");
endif;
if
file_getprop("/tmp/aroma/install.prop","item.5.3") == "1"
then
package_extract_dir("Witcher OS/Mods/BeatsAudio", "/system");
endif;
if
file_getprop("/tmp/aroma/install.prop","item.5.4") == "1"
then
package_extract_dir("Witcher OS/Mods/Wave", "/system");
delete("system/app/UxpNxtLockScreen.apk");
endif;
if
file_getprop("/tmp/aroma/anime.prop","selected.1") == "1"
then
package_extract_dir("Witcher OS/Apps/Boot/SONY",
"/system");
endif;
if
file_getprop("/tmp/aroma/anime.prop","selected.1") == "2"
then
package_extract_dir("Witcher OS/Apps/Boot/XPERIA",
"/system");
endif;
if
file_getprop("/tmp/aroma/anime.prop","selected.1") == "3"
then
package_extract_dir("Witcher OS/Apps/Boot/Witcher",
"/system");
delete("system/media/bootaudio.mp3");
endif;
if
file_getprop("/tmp/aroma/anime.prop","selected.2") == "1"
then
package_extract_dir(Witcher OS/Apps/Launch/JB",
"/system");
endif;
if
file_getprop("/tmp/aroma/anime.prop","selected.2") == "2"
then
package_extract_dir(Witcher OS/Apps/Launch/Mango",
"/system");
endif;
if
file_getprop("/tmp/aroma/anime.prop","selected.2") == "3"
then
package_extract_dir(Witcher OS/Apps/Launch/Next",
"/system");
endif;
if
file_getprop("/tmp/aroma/anime.prop","selected.3") == "1"
then
package_extract_dir(Witcher OS/Apps/Manager/Astro",
"/system");
endif;
if
file_getprop("/tmp/aroma/anime.prop","selected.3") == "2"
then
package_extract_dir(Witcher OS/Apps/Manager/File Manager","/system");
endif;
if
file_getprop("/tmp/aroma/anime.prop","selected.3") == "3"
then
package_extract_dir(Witcher OS/Apps/Manager/Root Explorer","/system");
endif;

unmount("/system");
unmount("/data");
show_progress(1, 0);
ui_print("[*] Finished!");
15th May 2014, 06:08 PM   |  #2  
demkantor's Avatar
Recognized Contributor
Flag mpls
Thanks Meter: 2,920
 
6,067 posts
Join Date:Joined: Nov 2011
More
doesnt show line numbers in your post (try pastebin next time)
my guess is checkviewbox, never heard of it, there is a checkbox and viewbox option for the UI but no checkviewbox that i know of
The Following User Says Thank You to demkantor For This Useful Post: [ View ]
17th May 2014, 06:33 AM   |  #3  
hnkotnis's Avatar
Senior Member
Flag Sangli, Maharashtra, India, Asia, Earth, Solar System, Milky Way Galaxy, Local Galaxy Group,Universe
Thanks Meter: 449
 
1,013 posts
Join Date:Joined: Jul 2013
More
Quote:
Originally Posted by demkantor

doesnt show line numbers in your post (try pastebin next time)
my guess is checkviewbox, never heard of it, there is a checkbox and viewbox option for the UI but no checkviewbox that i know of

I am sorry, but you are wrong
There is checkviewbox. I use this code in my Aroma Based SGY Toolkit and checkviewbox is available. I use Aroma Installer 2.56 Edelweiss.

Code:
checkviewbox(
"Ready To Install",
""+
"All information has been collected for installation.\n\n"+
"Click Next to start installation",
"icons/confirm",
"Reboot the device after installation?",
"0",
"reboot_it"
);
The Following User Says Thank You to hnkotnis For This Useful Post: [ View ]
17th May 2014, 07:38 AM   |  #4  
demkantor's Avatar
Recognized Contributor
Flag mpls
Thanks Meter: 2,920
 
6,067 posts
Join Date:Joined: Nov 2011
More
Thanks @hnkotnis, never heard of it, what is the purpose, I guess a check and viewbox combined...
Anyway, I take it aroma works but fails to flash, if so then the issue is in updater-script
Again without line numbers in post its hard to see, but look at the top of this screen shot I'm adding, issue is here with your if endif @zimny123z


Sent from my Nexus 7 using XDA Premium 4 mobile app
http://dl-1.va.us.xda-developers.com...&ts=1400305343
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-05-17-00-35-16.png
Views:	9
Size:	186.7 KB
ID:	2748113  
Last edited by demkantor; 17th May 2014 at 07:41 AM.
17th May 2014, 08:09 AM   |  #5  
hnkotnis's Avatar
Senior Member
Flag Sangli, Maharashtra, India, Asia, Earth, Solar System, Milky Way Galaxy, Local Galaxy Group,Universe
Thanks Meter: 449
 
1,013 posts
Join Date:Joined: Jul 2013
More
Quote:
Originally Posted by demkantor

Thanks @hnkotnis, never heard of it, what is the purpose, I guess a check and viewbox combined...


Sent from my Nexus 7 using XDA Premium 4 mobile app
http://dl-1.va.us.xda-developers.com...&ts=1400305343

Yes. It is a combination of check and viewbox.
Here is a screenshot of checkviewbox (Taken from my SGY Toolkit)
Click image for larger version

Name:	IMG_20140517_113520.jpg
Views:	7
Size:	244.9 KB
ID:	2748131
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes