[Android Software/Hacking General [Developers Only]] cincyelite22:
Hey guys Im trying to get aroma to work with multiple getprop statements after an if and I haven't been successful so far. I think there might be a syntax error in here now that I can't find. And how do my if statements look for systemui? Thanks!!!!

ui_print("Preparing to install Whompasaurus");
ui_print("Roar!!!");
ui_print("");
ui_print("Launching in 3...2...1...");
ui_print("--------------------------------------------");
format("ext4", "EMMC", "/dev/block/mmcblk0p12");
format("ext4", "EMMC", "/dev/block/mmcblk0p13");
mount("ext4", "EMMC", "/dev/block/mmcblk0p13", "/system");
ui_print("");
ui_print("Installing Core System...");
package_extract_dir("system", "/system");
ui_print("---------------------");
ui_print("Installing Options...");

#-- Launchers --#
ui_print("Launcher");

if
file_getprop("/tmp/aroma-data/launchers.prop","item.0.1") == "1"
then
ui_print(" - TouchWiz");
package_extract_dir("launchers/twoptions/tw", "/system/app");
endif;

if
file_getprop("/tmp/aroma-data/launchers.prop","item.0.1") == "1"
then
if
file_getprop("/tmp/aroma-data/mods.prop","item.0.6") == "1"
then
ui_print(" - TouchWiz w/ Scrolling");
package_extract_dir("launchers/twoptions/twscroll", "/system/app");
endif;
endif;

if
file_getprop("/tmp/aroma-data/launchers.prop","item.0.2") == "1"
then
ui_print(" - TouchWiz 5x6");
package_extract_dir("launchers/twoptions/tw5x6", "/system/app");
endif;

if
file_getprop("/tmp/aroma-data/launchers.prop","item.0.2") == "1"
then
if
file_getprop("/tmp/aroma-data/mods.prop","item.0.6") == "1"
then
ui_print(" - TouchWiz 5x6 w/ Scrolling");
package_extract_dir("launchers/twoptions/tw5x6scroll", "/system/app");
endif;
endif;

if
file_getprop("/tmp/aroma-data/launchers.prop","item.0.3") == "1"
then
ui_print(" - Nova");
package_extract_dir("launchers/nova", "/system");
endif;
if
file_getprop("/tmp/aroma-data/launchers.prop","item.0.4") == "1"
then
ui_print(" - Apex");
package_extract_dir("launchers/apex", "/system");
endif;
if
file_getprop("/tmp/aroma-data/launchers.prop","item.0.5") == "1"
then
ui_print(" - Android 4.2 Launcher");
package_extract_dir("launchers/4.2", "/system");
endif;

#-- SystemUI Mods --#
ui_print("SystemUI");
if
file_getprop("/tmp/aroma-data/center.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/statusbar.prop","selected.0") == "1"
then
ui_print(" - Black Status Bar & Center Clock ");
package_extract_dir("mods/systemui/notogglesblackcenter", "/system/app/");
endif;
endif;

if
file_getprop("/tmp/aroma-data/statusbar.prop","selected.0") == "1"
then
ui_print(" - Black Status Bar");
package_extract_dir("mods/systemui/notogglesblacknocenter", "/system/app/");
endif;

if
file_getprop("/tmp/aroma-data/center.prop","selected.0") == "1"
then
ui_print(" - Center Clock");
package_extract_dir("mods/systemui/notogglesgreycenter", "/system/app/");
endif;

if
file_getprop("/tmp/aroma-data/center.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/toggles.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/statusbar.prop","selected.0") == "1"
then
ui_print(" - 23 Toggles, Center Clock, Black Status Bar");
package_extract_dir("mods/systemui/togglesblackcenter", "/system/app/");
endif;
endif;
endif;

if
file_getprop("/tmp/aroma-data/toggles.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/statusbar.prop","selected.0") == "1"
then
ui_print(" - 23 Toggles & Black Status Bar");
package_extract_dir("mods/systemui/togglesblacknocenter", "/system/app/");
endif;
endif;

if
file_getprop("/tmp/aroma-data/toggles.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/center.prop","selected.0") == "1"
then
ui_print(" - 23 Toggles & Center Clock");
package_extract_dir("mods/systemui/togglesgreycenter", "/system/app/");
endif;
endif;

if
file_getprop("/tmp/aroma-data/toggles.prop","selected.0") == "1"
then
ui_print(" - 23 Toggles");
package_extract_dir("mods/systemui/togglesgreycenter", "/system/app/");
endif;

if
file_getprop("/tmp/aroma-data/center.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/statusbar.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/transparent.prop","selected.0") == "1"
then
ui_print(" - Center Clock, Black Status Bar, & Transparent Pulldown");
package_extract_dir("mods/systemui/notogglesblackcentertransparent", "/system/app/");
endif;
endif;
endif;

if
file_getprop("/tmp/aroma-data/statusbar.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/transparent.prop","selected.0") == "1"
then
ui_print(" - Black Status Bar & Transparent Pulldown");
package_extract_dir("mods/systemui/notogglesblacknocentertransparent", "/system/app/");
endif;
endif;

if
file_getprop("/tmp/aroma-data/center.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/transparent.prop","selected.0") == "1"
then
ui_print(" - Center Clock & Transparent Pulldown");
package_extract_dir("mods/systemui/notogglesgreycentertransparent", "/system/app/");
endif;
endif;

if
file_getprop("/tmp/aroma-data/transparent.prop","selected.0") == "1"
then
ui_print(" - Transparent Pulldown");
package_extract_dir("mods/systemui/notogglesgreynocentertransparent", "/system/app/");
endif;
if
file_getprop("/tmp/aroma-data/toggles.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/statusbar.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/center.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/transparent.prop","selected.0") == "1"
then
ui_print(" - 23 Toggles, Center Clock, Black Status Bar, & Transparent Pulldown");
package_extract_dir("mods/systemui/togglesblackcentertransparent", "/system/app/");
endif;
endif;
endif;
endif;

if
file_getprop("/tmp/aroma-data/toggles.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/statusbar.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/transparent.prop","selected.0") == "1"
then
ui_print(" - 23 Toggles, Black Status Bar, & Transparent Pulldown");
package_extract_dir("mods/systemui/togglesblacknocentertransparent", "/system/app/");
endif;
endif;
endif;

if
file_getprop("/tmp/aroma-data/toggles.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/center.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/transparent.prop","selected.0") == "1"
then
ui_print(" - 23 Toggles, Center Clock, & Transparent Pulldown");
package_extract_dir("mods/systemui/togglesgreycentertransparent", "/system/app/");
endif;
endif;
endif;

if
file_getprop("/tmp/aroma-data/toggles.prop","selected.0") == "1"
then
if
file_getprop("/tmp/aroma-data/transparent.prop","selected.0") == "1"
then
ui_print(" - 23 Toggles & Transparent Pulldown");
package_extract_dir("mods/systemui/togglesgreynocentertransparent", "/system/app/");
endif;
endif;

#-- Mods --#
ui_print("Custom Mods");
if
file_getprop("/tmp/aroma-data/mods.prop","item.0.1") == "1"
then
ui_print(" - Call Recording");
package_extract_dir("mods/misc/record", "/system");
endif;
if
file_getprop("/tmp/aroma-data/mods.prop","item.0.2") == "1"
then
ui_print(" - Disable SMS Notification Screen On");
package_extract_dir("mods/misc/smsscreen", "/system");
endif;
if
file_getprop("/tmp/aroma-data/mods.prop","item.0.3") == "1"
then
ui_print(" - Resizeable PopUp Browser");
package_extract_dir("mods/misc/popup", "/system");
endif;
if
file_getprop("/tmp/aroma-data/mods.prop","item.0.4") == "1"
then
ui_print(" - Ad Block");
package_extract_dir("mods/misc/adblock", "/system");
endif;
if
file_getprop("/tmp/aroma-data/mods.prop","item.0.5") == "1"
then
ui_print(" - Wifi Tether");
package_extract_dir("mods/misc/wifitether", "/system");
endif;

#-- Google --#
ui_print("");
ui_print("Google Apps");
if
file_getprop("/tmp/aroma-data/google.prop","item.0.1") == "1"
then
ui_print(" - Play Store");
package_extract_dir("google/market", "/system");
endif;
if
file_getprop("/tmp/aroma-data/google.prop","item.0.2") == "1"
then
ui_print(" - Maps");
package_extract_dir("google/maps", "/system");
endif;
if
file_getprop("/tmp/aroma-data/google.prop","item.0.3") == "1"
then
ui_print(" - Street");
package_extract_dir("google/street", "/system");
endif;
if
file_getprop("/tmp/aroma-data/google.prop","item.0.4") == "1"
then
ui_print(" - Google Now & Search");
package_extract_dir("google/search", "/system");
endif;
if
file_getprop("/tmp/aroma-data/google.prop","item.0.5") == "1"
then
ui_print(" - GMail");
package_extract_dir("google/gmail", "/system");
endif;
if
file_getprop("/tmp/aroma-data/google.prop","item.0.6") == "1"
then
ui_print(" - Desk Clock");
package_extract_dir("google/deskclock", "/system");
endif;
if
file_getprop("/tmp/aroma-data/google.prop","item.0.7") == "1"
then
ui_print(" - Google Talk");
package_extract_dir("google/talk", "/system");
endif;
if
file_getprop("/tmp/aroma-data/google.prop","item.0.8") == "1"
then
ui_print(" - Youtube");
package_extract_dir("google/youtube", "/system");
endif;
if
file_getprop("/tmp/aroma-data/google.prop","item.0.9") == "1"
then
ui_print(" - JellyBean Keyboard");
package_extract_dir("google/keyboard", "/system");
endif;
if
file_getprop("/tmp/aroma-data/google.prop","item.0.10") == "1"
then
ui_print(" - Play Music");
package_extract_dir("google/music", "/system");
endif;
if
file_getprop("/tmp/aroma-data/google.prop","item.0.11") == "1"
then
ui_print(" - Play Books");
package_extract_dir("google/books", "/system");
endif;
if
file_getprop("/tmp/aroma-data/google.prop","item.0.12") == "1"
then
ui_print(" - Play Magazines");
package_extract_dir("google/magazine", "/system");
endif;
if
file_getprop("/tmp/aroma-data/google.prop","item.0.13") == "1"
then
ui_print(" - Android 4.2 Camera");
package_extract_dir("google/camera", "/system");
endif;

#-- Samsung --#
ui_print("");
ui_print("Samsung Apps");
if
file_getprop("/tmp/aroma-data/samsung.prop","item.0.1") == "1"
then
ui_print(" - All Share");
package_extract_dir("samsung/allshare", "/system");
package_extract_dir("samsung/service", "/system");
endif;
if
file_getprop("/tmp/aroma-data/samsung.prop","item.0.2") == "1"
then
ui_print(" - Groupcast");
package_extract_dir("samsung/groupcast", "/system");
package_extract_dir("samsung/service", "/system");
endif;
if
file_getprop("/tmp/aroma-data/samsung.prop","item.0.3") == "1"
then
ui_print(" - Kies");
package_extract_dir("samsung/kies", "/system");
package_extract_dir("samsung/service", "/system");
endif;
if
file_getprop("/tmp/aroma-data/samsung.prop","item.0.4") == "1"
then
ui_print(" - Media Hub");
package_extract_dir("samsung/mediahub", "/system");
package_extract_dir("samsung/service", "/system");
endif;
if
file_getprop("/tmp/aroma-data/samsung.prop","item.0.5") == "1"
then
ui_print(" - Music Hub");
package_extract_dir("samsung/musichub", "/system");
package_extract_dir("samsung/service", "/system");
endif;
if
file_getprop("/tmp/aroma-data/samsung.prop","item.0.6") == "1"
then
ui_print(" - Mobile Print");
package_extract_dir("samsung/print", "/system");
package_extract_dir("samsung/service", "/system");
endif;
if
file_getprop("/tmp/aroma-data/samsung.prop","item.0.7") == "1"
then
ui_print(" - Samsung Apps");
package_extract_dir("samsung/apps", "/system");
package_extract_dir("samsung/service", "/system");
endif;
if
file_getprop("/tmp/aroma-data/samsung.prop","item.0.8") == "1"
then
ui_print(" - Pen Apps");
package_extract_dir("samsung/pen", "/system");
package_extract_dir("samsung/service", "/system");
endif;
if
file_getprop("/tmp/aroma-data/samsung.prop","item.0.9") == "1"
then
ui_print(" - S Suggest");
package_extract_dir("samsung/ssuggest", "/system");
package_extract_dir("samsung/service", "/system");
endif;
if
file_getprop("/tmp/aroma-data/samsung.prop","item.0.10") == "1"
then
ui_print(" - S Voice");
package_extract_dir("samsung/svoice", "/system");
package_extract_dir("samsung/service", "/system");
endif;
if
file_getprop("/tmp/aroma-data/samsung.prop","item.0.11") == "1"
then
ui_print(" - S Cloud");
package_extract_dir("samsung/cloud", "/system");
package_extract_dir("samsung/service", "/system");
endif;

#-- Miscellaneous --#
ui_print("");
ui_print("Miscellaneous Apps");
if
file_getprop("/tmp/aroma-data/misc.prop","item.0.1") == "1"
then
ui_print(" - Accuweather Apps");
package_extract_dir("misc/accu", "/system");
endif;
if
file_getprop("/tmp/aroma-data/misc.prop","item.0.2") == "1"
then
ui_print(" - Adobe Flash");
package_extract_dir("misc/adobe", "/system");
endif;
if
file_getprop("/tmp/aroma-data/misc.prop","item.0.3") == "1"
then
ui_print(" - Dropbox");
package_extract_dir("misc/db", "/system");
endif;
if
file_getprop("/tmp/aroma-data/misc.prop","item.0.4") == "1"
then
ui_print(" - Polaris Office");
package_extract_dir("misc/polaris", "/system");
endif;
if
file_getprop("/tmp/aroma-data/misc.prop","item.0.5") == "1"
then
ui_print(" - Swype");
package_extract_dir("misc/swype", "/system");
endif;
if
file_getprop("/tmp/aroma-data/misc.prop","item.0.6") == "1"
then
ui_print(" - VPN Client");
package_extract_dir("misc/vpn", "/system");
endif;
if
file_getprop("/tmp/aroma-data/misc.prop","item.0.7") == "1"
then
ui_print(" - Yahoo Apps");
package_extract_dir("misc/yahoo", "/system");
endif;
if
file_getprop("/tmp/aroma-data/misc.prop","item.0.8") == "1"
then
ui_print(" - Flipboard");
package_extract_dir("misc/flipboard", "/system");
endif;
if
file_getprop("/tmp/aroma-data/misc.prop","item.0.9") == "1"
then
ui_print(" - Live Wallpapers");
package_extract_dir("misc/livewalls", "/system");
endif;
if
file_getprop("/tmp/aroma-data/misc.prop","item.0.10") == "1"
then
ui_print(" - Sprint Apps");
package_extract_dir("misc/sprint", "/system");
endif;
#-- Social --#
ui_print("Social Media Apps");
if
file_getprop("/tmp/aroma-data/social.prop","item.0.1") == "1"
then
ui_print(" - XDA");
package_extract_dir("social/xda", "/system");
endif;
if
file_getprop("/tmp/aroma-data/social.prop","item.0.2") == "1"
then
ui_print(" - Facebook");
package_extract_dir("social/facebook", "/system");
endif;
if
file_getprop("/tmp/aroma-data/social.prop","item.0.3") == "1"
then
ui_print(" - Twitter");
package_extract_dir("social/twitter", "/system");
endif;
if
file_getprop("/tmp/aroma-data/social.prop","item.0.4") == "1"
then
ui_print(" - Google +");
package_extract_dir("social/google", "/system");
endif;

#-- File Manager --#
ui_print("File Manager");
if
file_getprop("/tmp/aroma-data/filemanager.prop","selected.0") == "1"
then
ui_print(" - ES File Explorer");
package_extract_dir("filemanager/es", "/system"),
endif;
if
file_getprop("/tmp/aroma-data/filemanager.prop","selected.0") == "2"
then
ui_print(" - Stock Samsung File Explorer");
package_extract_dir("filemanager/stock", "/system"),
endif;

#-- Kernel --#
ui_print("Kernel");
if
file_getprop("/tmp/aroma-data/kernel.prop","selected.0") == "1"
then
ui_print(" - Stock Kernel");
assert(package_extract_file("kernel/stock/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p8"),
delete("/tmp/boot.img"));
endif;
if
file_getprop("/tmp/aroma-data/kernel.prop","selected.0") == "2"
then
ui_print(" - Perseus Kernel");
assert(package_extract_file("kernel/perseus/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p8"),
delete("/tmp/boot.img"));
endif;

symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("debuggerd", "/system/bin/csview");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/setprop");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/touch");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
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(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
unmount("/system");
format("ext4", "EMMC", "/dev/block/mmcblk0p12");
ui_print("-----------------");
ui_print("Install Complete");
ui_print ("Enjoy!!!!");