[Galaxy S II Themes and Apps] Troubadour666:
Hi all,

Again a thread to tweak :)

I have the idea to use only part relatives with APPs or THEMEs from an AROMA ROM. the only AROMA ROM i found to make it easy as a tuto is last build V4 from [MENTION=4376874]tokobot[/MENTION] (thanks to him)

I found this [ROM][AOKP-4.2.2] TokoRom V4 [AROMA+OTA][ThemeManager][SonySmallApps][19/08/2013] is remarquable to show you what i have done to only use AROMA choice from ZIP ROM to only install APP and THEME from it in a new JBAM 10.1.0 (banished in XDA) i put in my S2 for test this new method today :)

I edit updater-script from tokorom AROMA ZIP ROM and delete all lines relative with the entire flash ROM process, like formating system partition, extracting system folder from zip to system partition on tel, all usual symlink lines and the flaks of kernel in ZIP ROM.

I only let lines to use AROMA apps and themes choices.

1rst test i give was not good because i mistake when i choose all apks in aroma except google apps and i havent enought space on system partition rom, but this gives me the idea to put all apks and themes from ZIP ROM to data/app folder of rom and let gapps from aroma in their original input, in system/app of rom.

Toko'Gapps in zip rom are 120Mo large and i only have 60Mo available on my system partition, but with some gapps already installed with my 4.3 rom i use i can let them to go to system/app folder in tel , from ZIP ROM during flash process.

Find my extracted AROMA MOD for 4.2 ROM here.

[YOUTUBE]je-5fBmBFSI[/YOUTUBE]

original updater-script :

(RED lines are the code i remove and some blue as demo will be change to ", "/data/app"); in final script.

ui_print("");
ui_print("####################################");
ui_print(" Welcome to the installation of the Tokorom 8D ");
ui_print("");
show_progress(0.500000, 0);
unmount("/cache");
unmount("/data");
unmount("/system");
[COLOR="Red"]format("ext4", "EMMC", "/dev/block/mmcblk0p9", "0");[/COLOR]
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/cache");
mount("ext4", "EMMC", "/dev/block/mmcblk0p10", "/data");
delete_recursive("/data/dalvik-cache");
[COLOR="Red"]ui_print("Extracting files...");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");[/COLOR]

# Stock theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.1") == "1"
then
ui_print("Installing Stock theme");
package_extract_dir("TokoRom/Themes/stock[COLOR="Blue"]", "/system/app");[/COLOR]
endif;

# Sense theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.2") == "1"
then
ui_print("Installing Sense theme");
package_extract_dir("TokoRom/Themes/sense/app[COLOR="Blue"]", "/system/app");[/COLOR]
package_extract_file("TokoRom/Themes/sense/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# TouchWiz 5 theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.3") == "1"
then
ui_print("Installing Touchwiz5 theme");
package_extract_dir("TokoRom/Themes/tw/app", "/system/app");
package_extract_file("TokoRom/Themes/tw/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# Xperia theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.4") == "1"
then
ui_print("Installing Xperia theme");
package_extract_dir("TokoRom/Themes/xperia/app", "/system/app");
package_extract_file("TokoRom/Themes/xperia/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# Motorola theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.5") == "1"
then
ui_print("Installing Motorola theme");
package_extract_dir("TokoRom/Themes/motorola/app", "/system/app");
package_extract_file("TokoRom/Themes/motorola/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# MIUI theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.6") == "1"
then
ui_print("Installing MIUI theme");
package_extract_dir("TokoRom/Themes/miui/app", "/system/app");
package_extract_file("TokoRom/Themes/miui/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# Lunar UI
if
file_getprop("/tmp/aroma/theme.prop","item.1.7") == "1"
then
ui_print("Installing Lunar UI");
package_extract_dir("TokoRom/Themes/lunarui/app", "/system/app");
package_extract_file("TokoRom/Themes/lunarui/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# Ubuntu theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.8") == "1"
then
ui_print("Installing Ubuntu theme");
package_extract_dir("TokoRom/Themes/ubuntu/app", "/system/app");
package_extract_file("TokoRom/Themes/ubuntu/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# Windows8 theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.9") == "1"
then
ui_print("Installing Windows8 theme");
package_extract_dir("TokoRom/Themes/windows/app", "/system/app");
package_extract_file("TokoRom/Themes/windows/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# Chronium theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.10") == "1"
then
ui_print("Installing Chronium theme");
package_extract_dir("TokoRom/Themes/chronium/app", "/system/app");
package_extract_file("TokoRom/Themes/chronium/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# ADW.Launcher
if
file_getprop("/tmp/aroma/launcher.prop","item.1.1") == "1"
then
ui_print("Installing ADW.Launcher");
package_extract_dir("TokoRom/Launcher/adw[COLOR="Blue"]", "/system/app");[/COLOR]
endif;

# Apex Launcher
if
file_getprop("/tmp/aroma/launcher.prop","item.1.2") == "1"
then
ui_print("Installing Apex Launcher");
package_extract_dir("TokoRom/Launcher/apex[COLOR="Blue"]", "/system/app");[/COLOR]
endif;

# Nova Launcher
if
file_getprop("/tmp/aroma/launcher.prop","item.1.3") == "1"
then
ui_print("Installing Nova Launcher");
package_extract_dir("TokoRom/Launcher/nova[COLOR="Blue"]", "/system/app");[/COLOR]
endif;

# ES File Explorer
if
file_getprop("/tmp/aroma/filemanager.prop","item.1.1") == "1"
then
ui_print("Installing ES File Explorer");
package_extract_dir("TokoRom/FileManager/es", "/system/app");
endif;

# Xplore
if
file_getprop("/tmp/aroma/filemanager.prop","item.1.2") == "1"
then
ui_print("Installing Xplore");
package_extract_dir("TokoRom/FileManager/xplore", "/system/app");
endif;

# File Expert
if
file_getprop("/tmp/aroma/filemanager.prop","item.1.3") == "1"
then
ui_print("Installing File Expert");
package_extract_dir("TokoRom/FileManager/fileexpert", "/system/app");
endif;

# Google Music
if
file_getprop("/tmp/aroma/musicplayer.prop","item.1.2") == "1"
then
ui_print("Installing Google Music");
package_extract_dir("TokoRom/MusicPlayer/google", "/system/app");
endif;

# AMP Music Player
if
file_getprop("/tmp/aroma/musicplayer.prop","item.1.1") == "1"
then
ui_print("Installing Shuttle Music Player");
package_extract_dir("TokoRom/MusicPlayer/amp", "/system/app");
endif;

# Stock Camera
if
file_getprop("/tmp/aroma/camera.prop","item.1.1") == "1"
then
ui_print("Installing Stock AOKP Camera");
package_extract_dir("TokoRom/Camera/stock/app", "/system/app");
package_extract_dir("TokoRom/Camera/stock/lib", "/system/lib");
endif;

# Android 4.3 Camera
if
file_getprop("/tmp/aroma/camera.prop","item.1.2") == "1"
then
ui_print("Installing Android 4.3 Camera");
package_extract_dir("TokoRom/Camera/mod/app", "/system/app");
endif;

# Gapps
if
file_getprop("/tmp/aroma/gapps.prop","item.1.1") == "1"
then
ui_print("@ Installing Gapps JB");
delete("/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/Vending.apk");
package_extract_dir("TokoRom/Google/system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("TokoRom/Google/optional", "/tmp");
package_extract_file("TokoRom/Google/install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
endif;

# NO Gapps
if
file_getprop("/tmp/aroma/gapps.prop","item.1.2") == "1"
then
package_extract_dir("TokoRom/Nogapps","/system");
endif;

[COLOR="Red"]ui_print("Symlinking...");
symlink("SegoeWP-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("SegoeWP-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
"/system/xbin/adjtimex", "/system/xbin/arp", "/system/xbin/ash",
"/system/xbin/awk", "/system/xbin/base64", "/system/xbin/basename",
"/system/xbin/bbconfig", "/system/xbin/blkid", "/system/xbin/blockdev",
"/system/xbin/brctl", "/system/xbin/bunzip2", "/system/xbin/bzcat",
"/system/xbin/bzip2", "/system/xbin/cal", "/system/xbin/cat",
"/system/xbin/catv", "/system/xbin/chattr", "/system/xbin/chgrp",
"/system/xbin/chmod", "/system/xbin/chown", "/system/xbin/chroot",
"/system/xbin/clear", "/system/xbin/cmp", "/system/xbin/comm",
"/system/xbin/cp", "/system/xbin/cpio", "/system/xbin/crond",
"/system/xbin/crontab", "/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/expand", "/system/xbin/expr", "/system/xbin/false",
"/system/xbin/fdisk", "/system/xbin/fgrep", "/system/xbin/find",
"/system/xbin/flash_lock", "/system/xbin/flash_unlock",
"/system/xbin/flashcp", "/system/xbin/flock", "/system/xbin/fold",
"/system/xbin/free", "/system/xbin/freeramdisk", "/system/xbin/fsync",
"/system/xbin/ftpget", "/system/xbin/ftpput", "/system/xbin/fuser",
"/system/xbin/getopt", "/system/xbin/grep", "/system/xbin/groups",
"/system/xbin/gunzip", "/system/xbin/gzip", "/system/xbin/halt",
"/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id",
"/system/xbin/ifconfig", "/system/xbin/inetd", "/system/xbin/insmod",
"/system/xbin/install", "/system/xbin/iostat", "/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/lsattr",
"/system/xbin/lsmod", "/system/xbin/lsusb", "/system/xbin/lzcat",
"/system/xbin/lzma", "/system/xbin/lzop", "/system/xbin/lzopcat",
"/system/xbin/man", "/system/xbin/md5sum", "/system/xbin/mesg",
"/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo",
"/system/xbin/mkfs.ext2", "/system/xbin/mkfs.vfat",
"/system/xbin/mknod", "/system/xbin/mkswap", "/system/xbin/mktemp",
"/system/xbin/modinfo", "/system/xbin/modprobe", "/system/xbin/more",
"/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mpstat",
"/system/xbin/mv", "/system/xbin/nanddump", "/system/xbin/nandwrite",
"/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/pmap",
"/system/xbin/poweroff", "/system/xbin/printenv", "/system/xbin/printf",
"/system/xbin/ps", "/system/xbin/pstree", "/system/xbin/pwd",
"/system/xbin/pwdx", "/system/xbin/rdev", "/system/xbin/readlink",
"/system/xbin/realpath", "/system/xbin/renice", "/system/xbin/reset",
"/system/xbin/resize", "/system/xbin/rev", "/system/xbin/rm",
"/system/xbin/rmdir", "/system/xbin/rmmod", "/system/xbin/route",
"/system/xbin/run-parts", "/system/xbin/rx", "/system/xbin/sed",
"/system/xbin/seq", "/system/xbin/setconsole", "/system/xbin/setserial",
"/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/sum", "/system/xbin/swapoff", "/system/xbin/swapon",
"/system/xbin/sync", "/system/xbin/sysctl", "/system/xbin/tac",
"/system/xbin/tail", "/system/xbin/tar", "/system/xbin/taskset",
"/system/xbin/tee", "/system/xbin/telnet", "/system/xbin/telnetd",
"/system/xbin/test", "/system/xbin/tftp", "/system/xbin/tftpd",
"/system/xbin/time", "/system/xbin/timeout", "/system/xbin/top",
"/system/xbin/touch", "/system/xbin/tr", "/system/xbin/traceroute",
"/system/xbin/true", "/system/xbin/ttysize", "/system/xbin/tune2fs",
"/system/xbin/umount", "/system/xbin/uname", "/system/xbin/uncompress",
"/system/xbin/unexpand", "/system/xbin/uniq", "/system/xbin/unix2dos",
"/system/xbin/unlzma", "/system/xbin/unlzop", "/system/xbin/unxz",
"/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/xz", "/system/xbin/xzcat", "/system/xbin/yes",
"/system/xbin/zcat");
symlink("mksh", "/system/bin/sh");
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/ln", "/system/bin/log",
"/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
"/system/bin/md5", "/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/r", "/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/touch", "/system/bin/umount",
"/system/bin/uptime", "/system/bin/vmstat", "/system/bin/watchprops",
"/system/bin/wipe");
ui_print("Setting Permission...");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 1000, 0750, "/system/bin/iptables");
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(0, 1000, 0750, "/system/bin/tc");
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(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/drm");
set_perm(0, 0, 0644, "/system/vendor/lib/drm/libdrmwvmplugin.so");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/beatsbass");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/beatsnormal");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_gec");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_gec_bt");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_gec_x");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_ibeats");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_ibeats_solo");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_ibeats_solo_x");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_ibeats_studio");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_ibeats_x");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_gec");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_gec_bt");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_gec_x");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_ibeats");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_ibeats_solo");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_ibeats_solo_x");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_ibeats_studio");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_ibeats_x");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_beatbox_bt");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_beats_wireless_bt");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_gec");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_gec_bt");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_htc_earbud");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_htc_midtier");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_ibeats");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_ibeats_solo");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_ibeats_solo_v2");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_ibeats_v2");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/load_mg_driver");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/load_sony_driver");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/mm-audio-acdb-test");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/mm-audio-native-test");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/pm_snd");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/snd");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/snd8k");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/snd3008");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/sony_sysd");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/sound");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/sound7x30");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/sound8x60");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/sound8960");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/spkamp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/xaplay");
set_perm(0, 0, 0777, "/system/etc/init.d/06removecache");
set_perm(0, 0, 0777, "/system/etc/init.d/64misckernel");
set_perm(0, 0, 0777, "/system/etc/init.d/69removelogger");
set_perm(0, 0, 0777, "/system/etc/init.d/Battery");
set_perm(0, 0, 0777, "/system/etc/init.d/mramllag");
set_perm(0, 0, 0777, "/system/etc/init.d/LoopySmoothness");
set_perm(0, 0, 0777, "/system/etc/init.d/S98CFS");
set_perm(0, 0, 0777, "/system/etc/init.d/Speedy");
set_perm(0, 0, 0777, "/system/etc/init.d/Zipalign");
set_perm(0, 0, 0777, "/system/etc/init.d/Zram");
set_perm(0, 0, 0777, "/system/etc/init.d/sysctl_tweaks");
set_perm(0, 0, 0777, "/system/xbin/zipalign");
set_perm(0, 0, 0777, "/system/bin/boost");
set_perm(0, 0, 0777, "/system/etc/hosts");
set_perm(0, 0, 0777, "/system/etc/sysctl.conf");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
show_progress(0.200000, 0);
show_progress(0.200000, 10);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p5"),
delete("/tmp/boot.img"));[/COLOR]
show_progress(0.100000, 0);
ui_print("Installation Finished");
ui_print("Thank You for choosing the TokoRom");
ui_print("And remember to post your thoughts on the forum :D");
unmount("/system");

final updater-script :

ui_print("");
ui_print("####################################");
ui_print(" Welcome to the installation of the Tokorom 8D ");
ui_print("");
show_progress(0.500000, 0);
unmount("/cache");
unmount("/data");
unmount("/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/cache");
mount("ext4", "EMMC", "/dev/block/mmcblk0p10", "/data");
delete_recursive("/data/dalvik-cache");

# Stock theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.1") == "1"
then
ui_print("Installing Stock theme");
package_extract_dir("TokoRom/Themes/stock[B][COLOR="Black"]", "/data/app");[/COLOR][/B]
endif;

# Sense theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.2") == "1"
then
ui_print("Installing Sense theme");
package_extract_dir("TokoRom/Themes/sense/app[B][COLOR="Black"]", "/data/app");[/COLOR][/B]
package_extract_file("TokoRom/Themes/sense/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# TouchWiz 5 theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.3") == "1"
then
ui_print("Installing Touchwiz5 theme");
package_extract_dir("TokoRom/Themes/tw/app", "/data/app");
package_extract_file("TokoRom/Themes/tw/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# Xperia theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.4") == "1"
then
ui_print("Installing Xperia theme");
package_extract_dir("TokoRom/Themes/xperia/app", "/data/app");
package_extract_file("TokoRom/Themes/xperia/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# Motorola theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.5") == "1"
then
ui_print("Installing Motorola theme");
package_extract_dir("TokoRom/Themes/motorola/app", "/data/app");
package_extract_file("TokoRom/Themes/motorola/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# MIUI theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.6") == "1"
then
ui_print("Installing MIUI theme");
package_extract_dir("TokoRom/Themes/miui/app", "/data/app");
package_extract_file("TokoRom/Themes/miui/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# Lunar UI
if
file_getprop("/tmp/aroma/theme.prop","item.1.7") == "1"
then
ui_print("Installing Lunar UI");
package_extract_dir("TokoRom/Themes/lunarui/app", "/data/app");
package_extract_file("TokoRom/Themes/lunarui/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# Ubuntu theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.8") == "1"
then
ui_print("Installing Ubuntu theme");
package_extract_dir("TokoRom/Themes/ubuntu/app", "/data/app");
package_extract_file("TokoRom/Themes/ubuntu/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# Windows8 theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.9") == "1"
then
ui_print("Installing Windows8 theme");
package_extract_dir("TokoRom/Themes/windows/app", "/data/app");
package_extract_file("TokoRom/Themes/windows/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# Chronium theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.10") == "1"
then
ui_print("Installing Chronium theme");
package_extract_dir("TokoRom/Themes/chronium/app", "/data/app");
package_extract_file("TokoRom/Themes/chronium/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;

# ADW.Launcher
if
file_getprop("/tmp/aroma/launcher.prop","item.1.1") == "1"
then
ui_print("Installing ADW.Launcher");
package_extract_dir("TokoRom/Launcher/adw", "/data/app");
endif;

# Apex Launcher
if
file_getprop("/tmp/aroma/launcher.prop","item.1.2") == "1"
then
ui_print("Installing Apex Launcher");
package_extract_dir("TokoRom/Launcher/apex", "/data/app");
endif;

# Nova Launcher
if
file_getprop("/tmp/aroma/launcher.prop","item.1.3") == "1"
then
ui_print("Installing Nova Launcher");
package_extract_dir("TokoRom/Launcher/nova", "/data/app");
endif;

# ES File Explorer
if
file_getprop("/tmp/aroma/filemanager.prop","item.1.1") == "1"
then
ui_print("Installing ES File Explorer");
package_extract_dir("TokoRom/FileManager/es", "/data/app");
endif;

# Xplore
if
file_getprop("/tmp/aroma/filemanager.prop","item.1.2") == "1"
then
ui_print("Installing Xplore");
package_extract_dir("TokoRom/FileManager/xplore", "/data/app");
endif;

# File Expert
if
file_getprop("/tmp/aroma/filemanager.prop","item.1.3") == "1"
then
ui_print("Installing File Expert");
package_extract_dir("TokoRom/FileManager/fileexpert", "/data/app");
endif;

# Google Music
if
file_getprop("/tmp/aroma/musicplayer.prop","item.1.2") == "1"
then
ui_print("Installing Google Music");
package_extract_dir("TokoRom/MusicPlayer/google", "/system/app");
endif;

# AMP Music Player
if
file_getprop("/tmp/aroma/musicplayer.prop","item.1.1") == "1"
then
ui_print("Installing Shuttle Music Player");
package_extract_dir("TokoRom/MusicPlayer/amp", "/system/app");
endif;

# Stock Camera
if
file_getprop("/tmp/aroma/camera.prop","item.1.1") == "1"
then
ui_print("Installing Stock AOKP Camera");
package_extract_dir("TokoRom/Camera/stock/app", "/system/app");
package_extract_dir("TokoRom/Camera/stock/lib", "/system/lib");
endif;

# Android 4.3 Camera
if
file_getprop("/tmp/aroma/camera.prop","item.1.2") == "1"
then
ui_print("Installing Android 4.3 Camera");
package_extract_dir("TokoRom/Camera/mod/app", "/system/app");
endif;

# Gapps
if
file_getprop("/tmp/aroma/gapps.prop","item.1.1") == "1"
then
ui_print("@ Installing Gapps JB");
delete("/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/Vending.apk");
package_extract_dir("TokoRom/Google/system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("TokoRom/Google/optional", "/tmp");
package_extract_file("TokoRom/Google/install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
endif;

# NO Gapps
if
file_getprop("/tmp/aroma/gapps.prop","item.1.2") == "1"
then
package_extract_dir("TokoRom/Nogapps","/system");
endif;
show_progress(0.200000, 0);
show_progress(0.200000, 10);
show_progress(0.200000, 0);
show_progress(0.200000, 10);
show_progress(0.100000, 0);
ui_print("Installation Finished");
ui_print("Thank You for choosing the TokoRom");
ui_print("And remember to post your thoughts on the forum :D");
unmount("/system");

As its an example of use so i expect you will make a nandoid of your tel befor the try you give after reading this abnormal use of script.

in attachment, updater-script i use to replace in tokorom you can download from original thread. (remove ".txt" before replace in zip)

thanks

EDIT : i have a test with Gapps in AROMA we are talking about and seems that libjni_latinime.so in zip make my AOSP keyboard FCs. FCs stop when i restore only this file from my original in ROM i use.

so i think only this file can ben remove from this aroma before flash too, to avoid same trouble.