show_progress(1.000000, 50); ui_print("@Hello Users, Nice to meet you"); ui_print("@Rom Build Type - BRAVE, 2012 11 16"); # 1000 is 1 Seconds run_program("/tmp/aroma/sleep","1000"); ui_print(" "); ui_print("Now, Rom Install Starting..."); ui_print(" "); ui_print(" "); ui_print("@---ROM Installing---"); show_progress(0.05, "-10000"); ui_print(" "); ui_print("Format & Mount"); format("yaffs2", "MTD", "system"); mount("yaffs2", "MTD", "system", "/system"); mount("yaffs2", "MTD", "userdata", "/data"); run_program("/sbin/busybox", "mount", "/cache"); run_program("/sbin/busybox", "mount", "/sdcard"); assert(is_mounted("/system")); assert(is_mounted("/data")); assert(is_mounted("/cache")); assert(is_mounted("/sdcard")); set_progress(0.05); if file_getprop("/tmp/aroma/check.prop","item.4.1") == "1" then ui_print(" "); ui_print("Clean Cache"); delete_recursive("/cache"); delete_recursive("/data/dalvik-cache"); endif; if file_getprop("/tmp/aroma/check.prop","item.4.2") == "1" then ui_print(" "); ui_print("Clean SDcard"); delete_recursive("/sdcard/Android/data/com.android.providers.media"); delete_recursive("/sdcard/Android/data/com.google.android.apps.genie.geniewidget.news-content-cache"); delete_recursive("/sdcard/Android/data/com.google.android.apps.maps"); delete_recursive("/sdcard/.data/navigator/Data/Temporary"); delete_recursive("/sdcard/LazyList"); delete_recursive("/sdcard/LOST.DIR"); delete_recursive("/sdcard/tmp"); endif; ui_print(" "); ui_print("Install System..."); show_progress(0.55, "-58000"); package_extract_dir("system", "/system"); set_progress(0.60); show_progress(0.02, "-600"); symlink("toolbox", "/system/bin/cat", "/system/bin/chmod", "/system/bin/chown", "/system/bin/cmp", "/system/bin/date", "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg", "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd", "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop", "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice", "/system/bin/kill", "/system/bin/killall", "/system/bin/ln", "/system/bin/log", "/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof", "/system/bin/mkdir", "/system/bin/mount", "/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat", "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv", "/system/bin/ps", "/system/bin/reboot", "/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir", "/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop", "/system/bin/sendevent", "/system/bin/setconsole", "/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd", "/system/bin/start", "/system/bin/stop", "/system/bin/sync", "/system/bin/top", "/system/bin/umount", "/system/bin/uptime", "/system/bin/vmstat", "/system/bin/watchprops", "/system/bin/wipe"); symlink("busybox", "/system/xbin/[", "/system/xbin/[[", "/system/xbin/arp", "/system/xbin/ash", "/system/xbin/awk", "/system/xbin/basename", "/system/xbin/bbconfig", "/system/xbin/brctl", "/system/xbin/bunzip2", "/system/xbin/bzcat", "/system/xbin/bzip2", "/system/xbin/cal", "/system/xbin/cat", "/system/xbin/catv", "/system/xbin/chgrp", "/system/xbin/chmod", "/system/xbin/chown", "/system/xbin/chroot", "/system/xbin/cksum", "/system/xbin/clear", "/system/xbin/cmp", "/system/xbin/cp", "/system/xbin/cpio", "/system/xbin/cut", "/system/xbin/date", "/system/xbin/dc", "/system/xbin/dd", "/system/xbin/depmod", "/system/xbin/devmem", "/system/xbin/df", "/system/xbin/diff", "/system/xbin/dirname", "/system/xbin/dmesg", "/system/xbin/dnsd", "/system/xbin/dos2unix", "/system/xbin/du", "/system/xbin/echo", "/system/xbin/ed", "/system/xbin/egrep", "/system/xbin/env", "/system/xbin/expr", "/system/xbin/false", "/system/xbin/fdisk", "/system/xbin/fgrep", "/system/xbin/find", "/system/xbin/fold", "/system/xbin/free", "/system/xbin/freeramdisk", "/system/xbin/fuser", "/system/xbin/getopt", "/system/xbin/grep", "/system/xbin/gunzip", "/system/xbin/gzip", "/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id", "/system/xbin/ifconfig", "/system/xbin/insmod", "/system/xbin/install", "/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall", "/system/xbin/killall5", "/system/xbin/length", "/system/xbin/less", "/system/xbin/ln", "/system/xbin/losetup", "/system/xbin/ls", "/system/xbin/lsmod", "/system/xbin/lspci", "/system/xbin/lsusb", "/system/xbin/lzop", "/system/xbin/lzopcat", "/system/xbin/md5sum", "/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo", "/system/xbin/mkfs.ext2", "/system/xbin/mknod", "/system/xbin/mkswap", "/system/xbin/mktemp", "/system/xbin/modprobe", "/system/xbin/more", "/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mv", "/system/xbin/netstat", "/system/xbin/nice", "/system/xbin/nohup", "/system/xbin/nslookup", "/system/xbin/ntpd", "/system/xbin/od", "/system/xbin/patch", "/system/xbin/pgrep", "/system/xbin/pidof", "/system/xbin/ping", "/system/xbin/pkill", "/system/xbin/printenv", "/system/xbin/printf", "/system/xbin/ps", "/system/xbin/pwd", "/system/xbin/rdev", "/system/xbin/readlink", "/system/xbin/realpath", "/system/xbin/renice", "/system/xbin/reset", "/system/xbin/rm", "/system/xbin/rmdir", "/system/xbin/rmmod", "/system/xbin/route", "/system/xbin/run-parts", "/system/xbin/sed", "/system/xbin/seq", "/system/xbin/setsid", "/system/xbin/sh", "/system/xbin/sha1sum", "/system/xbin/sha256sum", "/system/xbin/sha512sum", "/system/xbin/sleep", "/system/xbin/sort", "/system/xbin/split", "/system/xbin/stat", "/system/xbin/strings", "/system/xbin/stty", "/system/xbin/swapoff", "/system/xbin/swapon", "/system/xbin/sync", "/system/xbin/sysctl", "/system/xbin/tac", "/system/xbin/tail", "/system/xbin/tar", "/system/xbin/tee", "/system/xbin/telnet", "/system/xbin/test", "/system/xbin/tftp", "/system/xbin/time", "/system/xbin/top", "/system/xbin/touch", "/system/xbin/tr", "/system/xbin/traceroute", "/system/xbin/true", "/system/xbin/tty", "/system/xbin/tune2fs", "/system/xbin/umount", "/system/xbin/uname", "/system/xbin/uniq", "/system/xbin/unix2dos", "/system/xbin/unlzop", "/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep", "/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi", "/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget", "/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs", "/system/xbin/yes", "/system/xbin/zcat"); set_progress(0.62); show_progress(0.03, "-4200"); 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(0, 2000, 0550, "/system/etc/init.goldfish.sh"); set_perm(1000, 1000, 0777, "/system/etc/init.qcom.sdio.sh"); set_perm(0, 0, 0644, "/system/etc/install-recovery.sh"); set_perm_recursive(1024, 1024, 0550, 0440, "/system/etc/ktdbs"); set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp"); set_perm(0, 0, 0755, "/system/lib/modules/wlan.ko"); set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin"); set_perm(0, 0, 4755, "/system/xbin/busybox"); set_perm(0, 0, 6755, "/system/xbin/su"); symlink("/system/xbin/su", "/system/bin/su"); ui_print(" "); ui_print("System Install Finished!"); run_program("/tmp/aroma/sleep","2000"); ui_print("Now Install Aroma Patch"); set_progress(0.65); show_progress(0.15, "-13500"); ui_print(" "); ui_print("@Install Boot.img"); #boot.img if file_getprop("/tmp/aroma-data/select.prop","selected.1") == "1" then ui_print("Mir Boot Install"); assert(package_extract_file("aroma/kernel/Mir.img", "/tmp/boot.img"), write_raw_image("/tmp/boot.img", "boot"), delete("/tmp/boot.img")); package_extract_file("aroma/kernel/Mir.ko", "/system/lib/modules/wlan.ko"); set_perm(0, 0, 0755, "/system/lib/modules/wlan.ko"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.1") == "2" then ui_print("Cheongang Boot Install"); assert(package_extract_file("aroma/kernel/Cheongang.img", "/tmp/boot.img"), write_raw_image("/tmp/boot.img", "boot"), delete("/tmp/boot.img")); package_extract_file("aroma/kernel/Cheongang.ko", "/system/lib/modules/wlan.ko"); set_perm(0, 0, 0755, "/system/lib/modules/wlan.ko"); endif; ui_print(" "); ui_print("@Install Theme"); set_progress(0.80); show_progress(0.05, "-7000"); #theme if file_getprop("/tmp/aroma-data/select.prop","selected.2") == "1" then ui_print("HTC Theme Install (Rodney)"); package_extract_dir("aroma/theme/htc/app", "/system/app"); package_extract_dir("aroma/theme/htc/framework", "/system/framework"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.2") == "2" then ui_print("Black Theme Install (Lewhell)"); package_extract_dir("aroma/theme/black/framework", "/system/framework"); package_extract_dir("aroma/theme/black/app", "/system/app"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.2") == "3" then ui_print("VegaRacer2 Theme Install (Mir)"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.2") == "4" then ui_print("DarkFire Theme Install (Kasian)"); package_extract_dir("aroma/theme/DarkFire/framework", "/system/framework"); package_extract_dir("aroma/theme/DarkFire/app", "/system/app"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.2") == "5" then ui_print("ICS Theme Install (Kasian)"); package_extract_dir("aroma/theme/ics/framework", "/system/framework"); package_extract_dir("aroma/theme/ics/app", "/system/app"); endif; ui_print(" "); ui_print("@Init.d or Script"); set_progress(0.85); show_progress(0.01, "-700"); # script if file_getprop("/tmp/aroma-data/select.prop","selected.3") == "1" then ui_print("No Install Script"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.3") == "2" then ui_print("LitX Script Install (LitX)"); package_extract_dir("aroma/apps/script/LitX", "/system/etc"); set_perm(0, 0, 0644, "/system/etc/install-recovery.sh"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.3") == "3" then ui_print("Hydrogen Init.d Script Install (Hydrogen)"); package_extract_dir("aroma/apps/script/Mirror/initd", "/system/etc/init.d"); package_extract_dir("aroma/apps/script/Mirror/etc", "/system/etc"); set_perm(0, 0, 0644, "/system/etc/install-recovery.sh"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.3") == "4" then ui_print("2variety Script Install (Pororo,Kiwi taste shakes)"); package_extract_dir("aroma/apps/script/2variety", "/system/etc"); set_perm(0, 0, 0644, "/system/etc/install-recovery.sh"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.3") == "5" then ui_print("SOUL Script Install (Kim Taeyeon)"); package_extract_dir("aroma/apps/script/soul/etc", "/system/etc"); package_extract_dir("aroma/apps/script/soul/initd", "/system/etc/init.d"); set_perm(0, 0, 0644, "/system/etc/install-recovery.sh"); endif; set_perm_recursive(0, 0, 0755, 0777, "/system/etc/init.d"); ui_print(" "); ui_print("@Audio Patch Install"); set_progress(0.86); show_progress(0.02, "-4500"); # Audio if file_getprop("/tmp/aroma-data/select.prop","selected.4") == "1" then ui_print("No Install Audio Patch"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.4") == "2" then ui_print("Xloud Patch Install"); package_extract_dir("aroma/apps/audio/xloud/system", "/system"); package_extract_file("aroma/apps/audio/xloud/build.prop.sh", "/system/build.prop.sh"); set_perm(0, 0, 0777, "/system/build.prop.sh"); run_program("/system/build.prop.sh"); run_program("/tmp/aroma/sleep","1000"); delete("/system/build.prop.sh"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.4") == "3" then ui_print("Beats Audio Patch Install"); package_extract_dir("aroma/apps/audio/BeatsAudio", "/system"); package_extract_file("aroma/apps/audio/BeatsAudio/build.prop.sh", "/system/build.prop.sh"); set_perm(0, 0, 0777, "/system/build.prop.sh"); run_program("/system/build.prop.sh"); run_program("/tmp/aroma/sleep","1000"); delete("/system/build.prop.sh"); endif; ui_print(" "); ui_print("@Bootanimation"); set_progress(0.88); show_progress(0.02, "-1300"); #bootanimation if file_getprop("/tmp/aroma-data/select.prop","selected.5") == "1" then ui_print("No Install Bootanimation"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.5") == "2" then ui_print("LTE Bootanimation Install"); package_extract_dir("aroma/boot/bin", "/system/bin"); set_perm(0, 0, 0755, "/system/bin/bootanimation"); package_extract_dir("aroma/boot/lte", "/system/media"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.5") == "3" then ui_print("JellyBean Bootanimation Install"); package_extract_dir("aroma/boot/bin", "/system/bin"); set_perm(0, 0, 0755, "/system/bin/bootanimation"); package_extract_dir("aroma/boot/JellyBean", "/system/media"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.5") == "4" then ui_print("ICS Bootanimation Install"); package_extract_dir("aroma/boot/bin", "/system/bin"); set_perm(0, 0, 0755, "/system/bin/bootanimation"); package_extract_dir("aroma/boot/ics", "/system/media"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.5") == "5" then ui_print("CM7 Bootanimation Install"); package_extract_dir("aroma/boot/bin", "/system/bin"); set_perm(0, 0, 0755, "/system/bin/bootanimation"); package_extract_dir("aroma/boot/cm7", "/system/media"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.5") == "6" then ui_print("CM9 Bootanimation Install"); package_extract_dir("aroma/boot/bin", "/system/bin"); set_perm(0, 0, 0755, "/system/bin/bootanimation"); package_extract_dir("aroma/boot/cm9", "/system/media"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.5") == "7" then ui_print("CM10 Bootanimation Install"); package_extract_dir("aroma/boot/bin", "/system/bin"); set_perm(0, 0, 0755, "/system/bin/bootanimation"); package_extract_dir("aroma/boot/cm10", "/system/media"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.5") == "8" then ui_print("Android Bootanimation Install"); package_extract_dir("aroma/boot/bin", "/system/bin"); set_perm(0, 0, 0755, "/system/bin/bootanimation"); package_extract_dir("aroma/boot/android", "/system/media"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.5") == "9" then ui_print("Apple Android Bootanimation Install"); package_extract_dir("aroma/boot/bin", "/system/bin"); set_perm(0, 0, 0755, "/system/bin/bootanimation"); package_extract_dir("aroma/boot/appleandroid", "/system/media"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.5") == "10" then ui_print("Beats Audio Bootanimation Install"); package_extract_dir("aroma/boot/bin", "/system/bin"); set_perm(0, 0, 0755, "/system/bin/bootanimation"); package_extract_dir("aroma/boot/beats", "/system/media"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.5") == "11" then ui_print("Iphone Bootanimation Install"); package_extract_dir("aroma/boot/bin", "/system/bin"); set_perm(0, 0, 0755, "/system/bin/bootanimation"); package_extract_dir("aroma/boot/iphone", "/system/media"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.5") == "12" then ui_print("Window7 Bootanimation Install"); package_extract_dir("aroma/boot/bin", "/system/bin"); set_perm(0, 0, 0755, "/system/bin/bootanimation"); package_extract_dir("aroma/boot/window7", "/system/media"); endif; if file_getprop("/tmp/aroma-data/select.prop","selected.5") == "13" then ui_print("Nexus7 Bootanimation Install"); package_extract_dir("aroma/boot/bin", "/system/bin"); set_perm(0, 0, 0755, "/system/bin/bootanimation"); package_extract_dir("aroma/boot/nexus7", "/system/media"); endif; ui_print(" "); ui_print("@Plus App, Patch Install"); set_progress(0.90); show_progress(0.04, "-8000"); #Plus App if file_getprop("/tmp/aroma-data/check.prop","item.1.1") == "1" then ui_print("Astro"); package_extract_dir("aroma/apps/Astro", "/system/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.1.2") == "1" then ui_print("Kakao Talk"); package_extract_dir("aroma/apps/kakao", "/data/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.1.3") == "1" then ui_print("Titanium Backup"); package_extract_dir("aroma/apps/Titanium", "/data/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.1.4") == "1" then ui_print("PicFolder"); package_extract_dir("aroma/apps/Pic", "/data/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.1.5") == "1" then ui_print("Molock"); package_extract_dir("aroma/apps/molock", "/system/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.1.6") == "1" then ui_print("Busybox Installer"); package_extract_dir("aroma/apps/busybox", "/data/app"); endif; set_progress(0.94); show_progress(0.03, "-7000"); if file_getprop("/tmp/aroma-data/check.prop","item.1.7") == "1" then ui_print("Dolphin Browser"); package_extract_dir("aroma/apps/Browser", "/data/app"); delete("/system/app/Browser.apk"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.1.8") == "1" then ui_print("Adobe Flash Player ARMv6"); package_extract_dir("aroma/apps/AdobeFlash/system", "/system"); package_extract_dir("aroma/apps/AdobeFlash/data", "/data/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.1.9") == "1" then ui_print("CpuMaster Free"); package_extract_dir("aroma/apps/cpu", "/data/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.1.10") == "1" then ui_print("Screen shot Free"); package_extract_dir("aroma/apps/screenshot", "/data/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.1.11") == "1" then ui_print("Script manager Free"); package_extract_dir("aroma/apps/script/manager", "/system/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.1.12") == "1" then ui_print("Zipper7"); package_extract_dir("aroma/apps/zipper", "/data/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.1.13") == "1" then ui_print("Terminal Emulator"); package_extract_dir("aroma/apps/Terminal", "/system/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.2.1") == "1" then ui_print("Bravia Patch"); package_extract_dir("aroma/apps/bravia/etc", "/system/etc"); set_perm(0, 0, 0755, "/system/etc/be_movie"); set_perm(0, 0, 0755, "/system/etc/be_photo"); package_extract_dir("aroma/apps/bravia/framework", "/system/framework"); package_extract_dir("aroma/apps/bravia/lib", "/system/lib"); package_extract_file("aroma/apps/bravia/build.prop.sh", "/system/build.prop.sh"); set_perm(0, 0, 0777, "/system/build.prop.sh"); run_program("/system/build.prop.sh"); run_program("/tmp/aroma/sleep","1000"); delete("/system/build.prop.sh"); endif; set_progress(0.97); show_progress(0.03, "-8000"); if file_getprop("/tmp/aroma-data/check.prop","item.2.2") == "1" then ui_print("Adfree Patch"); package_extract_dir("aroma/apps/adfree/app", "/system/app"); package_extract_dir("aroma/apps/adfree/etc", "/system/etc"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.2.3") == "1" then ui_print("Add flash_image"); package_extract_dir("aroma/apps/flashimage", "/system/bin"); set_perm(0, 0, 0755, "/system/bin/flash_image"); symlink("/system/bin/flash_image", "/system/bin/f"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.3.1") == "1" then ui_print("Android Home"); package_extract_dir("aroma/apps/androidhome/app", "/system/app"); package_extract_dir("aroma/apps/androidhome/media", "/system/media"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.3.2") == "1" then ui_print("Dictionary"); package_extract_dir("aroma/apps/Dictionary", "/system/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.3.3") == "1" then ui_print("DMB"); package_extract_dir("aroma/apps/DMB", "/system/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.3.4") == "1" then ui_print("DocViewer"); package_extract_dir("aroma/apps/DocViewer/app", "/system/app"); package_extract_dir("aroma/apps/DocViewer/lib", "/system/lib"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.3.5") == "1" then ui_print("Recorder"); package_extract_dir("aroma/apps/recorder", "/system/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.3.6") == "1" then ui_print("Calendar"); package_extract_dir("aroma/apps/calendar", "/system/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.3.7") == "1" then ui_print("I-wlan"); package_extract_dir("aroma/apps/iwlan/app", "/system/app"); package_extract_dir("aroma/apps/iwlan/system", "/system"); set_perm_recursive(0, 0, 0755, 0500, "/system/iwlan"); set_perm(0, 1016, 0750, "/system/iwlan"); set_perm(0, 0, 0750, "/system/iwlan/iwlan"); set_perm(1016, 1016, 0440, "/system/iwlan/iwlan.conf"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.3.8") == "1" then ui_print("Olleh market"); package_extract_dir("aroma/apps/ollehmarket", "/system/app"); endif; if file_getprop("/tmp/aroma-data/check.prop","item.3.9") == "1" then ui_print("LiveWallpapers"); package_extract_dir("aroma/apps/Wallpapers", "/system/app"); endif; unmount("/system"); unmount("/data"); run_program("/sbin/busybox", "umount", "/cache"); run_program("/sbin/busybox", "umount", "/sdcard"); ui_print(" "); ui_print(" "); run_program("/tmp/aroma/sleep","500"); ui_print("@Mir Rom Install Finished!"); ui_print("@Good Bye Users"); set_progress(1.0);