[Android Software/Hacking General [Developers Only]] Robobob1221:
a great idea for all us newbie's and the blind!

I have a problem I think we my updater script. for some reason, that I can't see, when it gets to the end after installing the kernel I selected it seems to peform an additional extract of another kernels lib files. Could someone take a look and tell me if they can see what I can't!

####
## MOUNT & FORMAT
####
ui_print(" ");
ui_print("@Formatting SYSTEM and DATA Partitions");

# unmount
ui_print("	-Unmounting partitions...");
unmount("/system");
unmount("/data");
set_progress(0.05);

# format
ui_print("	-Formatting partitions & cache...");
format("MTD", "system");
format("MTD", "userdata");
format("MTD", "cache");
set_progress(0.1);

# re-mount
ui_print("	-Re-mounting partitions...");
mount("MTD", "system", "/system");
mount("MTD", "userdata", "/data");
set_progress(0.15);

####
## EXTRACT BASE PACKAGES
####
ui_print(" ");
ui_print("@Extracting Base ROM Files");

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");
set_progress(0.20);

ui_print("	-Extracting /data files...");
package_extract_dir("data", "/data");
set_perm(2000, 2000, 0771, "/data/local");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_progress(0.25);
ui_print("	-Extracting /system files...");
package_extract_dir("system", "/system");
set_progress(0.3);

####
## EXTRACT SELECTED MODS
####
ui_print(" ");
ui_print("@Extracting Launcher");

# Launcher
if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "1"
then
ui_print("	-Installing SS Launcher (Free Version)..");
package_extract_file("opt/launchers/com.ss.launcher.apk", "/data/app/com.ss.launcher.apk");
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "2"
then
ui_print("	-Installing Go Launcher EX...");
package_extract_file("opt/launchers/com.gau.go.launcherex-1.apk", "/data/app/com.gau.go.launcherex-1.apk");
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "3"
then
ui_print("	-Installing ADW Launcher (Free Version)...");
package_extract_file("opt/launchers/org.adw.launcher-1.apk", "/data/app/org.adw.launcher-1.apk");
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "4"
then
ui_print("	-Installing Rosie Launcher (Ghost Edition)...");
package_extract_file("opt/launchers/Rosie.apk", "/data/app/Rosie.apk");
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "5"
then
ui_print("	-Installing AOSP Launcher...");
package_extract_file("opt/launchers/Launcher2.apk", "/data/app/Launcher2.apk");
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "6"
then
ui_print("	-Installing Holo Launcher...");
package_extract_file("opt/launchers/com.mobint.hololauncher-1.apk", "/data/app/com.mobint.hololauncher-1.apk");
endif;
set_progress(0.35);

ui_print(" ");
ui_print(" ");
ui_print("@Extracting Statusbar and Animation Mods");

#Statusbar & Animation
if
file_getprop("/tmp/aroma/mods.prop","selected.3") == "1"
then
ui_print(" -Installing Blurange with 4.0 animation...");
package_extract_file("opt/Blurange/SystemUI.apk", "/system/app/SystemUI.apk");
package_extract_file("opt/Blurange/framework-res.apk", "/system/framework/framework-res.apk");
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.3") == "2"
then
ui_print(" -Installing Black & White with Fly animation...");
package_extract_file("opt/Black&White/SystemUI.apk", "/system/app/SystemUI.apk");
package_extract_file("opt/Black&White/framework-res.apk", "/system/framework/framework-res.apk");
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.3") == "3"
then
ui_print(" -Installing Colourful with Ruldolf animation...");
package_extract_file("opt/Colourful/SystemUI.apk", "/system/app/SystemUI.apk");
package_extract_file("opt/Colourful/framework-res.apk", "/system/framework/framework-res.apk");
endif;
set_progress(0.4);

####
## EXTRACT ROSIE ADD-ONS
####
ui_print(" ");
ui_print("@Extracting & Installing Add-ons ");

# Rosie Utility
if
file_getprop("/tmp/aroma/customize.prop","item.1.1") == "1"
then
ui_print("	-Installing Rosie Utility add-on...");
package_extract_dir("opt/rosie/app/", "/sytem/app");
endif;
set_progress(0.45);
# Wallpaper Chooser
if
file_getprop("/tmp/aroma/customize.prop","item.1.2") == "1"
then
ui_print("	-Installing Wallpaper Chooser...");
package_extract_dir("opt/wallpaper/app/", "/system/app");
endif;
set_progress(0.5);
ui_print("@Half way there. I hope you're sitting comfortably!");
ui_print("If you're reading this then");
ui_print(". ");
ui_print(".. ");
ui_print("... ");
ui_print(".... ");
set_progress(0.55);

####
## SYMLINKS
####
ui_print(" ");
ui_print("@Configuring SYSTEM Files");

ui_print("	-Creating Toolbox...");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/chownto");
symlink("toolbox", "/system/bin/cmp");
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/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("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/umount");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");
set_progress(0.60);

####
## ACCESS CONTROL & PERMISSIONS
####
ui_print(" ");
ui_print("@Configuring Access Control Lists");
ui_print("	-Configuring Busybox...");

set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
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_progress(0.65);
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(0, 0, 06755, "/system/bin/su");
symlink("/system/bin/su", "/system/xbin/su");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
set_progress(0.70);

####
## EXTRACT SELECTED KERNEL
####
ui_print(" ");
ui_print("@Extracting & Installing Selected Kernel Package");

#Underworld w/SBC
if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "1"
then
ui_print("	-Installing Underworld Kernel w/SBC...");
assert(package_extract_file("opt/kernels/underworld_sbc/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
package_extract_dir("opt/kernels/underworld_sbc/system/lib/modules", "/system/lib/modules/");
endif;

#Underworld
if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "2"
then
ui_print("	-Installing Underworld Kernel...");
assert(package_extract_file("opt/kernels/underworld/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
package_extract_dir("opt/kernels/underworld/system/lib/modules", "/system/lib/modules/");
endif;

#Classic
if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "3"
then
ui_print("	-Installing Classic Kernel...");
assert(package_extract_file("opt/kernels/classic/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
package_extract_dir("opt/kernels/classic/sytem/lib/modules", "/system/lib/modules/");
endif;

#Classic w/sbc
if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "4"
then
ui_print("	-Installing Classic Kernel w/SBC...");
assert(package_extract_file("opt/kernels/classic_sbc/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
package_extract_dir("opt/kernels/classic/system/lib/modules", "/system/lib/modules/");
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "5"
then
ui_print("	-Installing Lionfish Kernel...");
assert(package_extract_file("opt/kernels/lionfish/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
package_extract_dir("opt/kernels/lionfish/system/lib/modules", "/system/lib/modules/");
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "6"
then
ui_print("	-Installing Lionfish Kernel w/SBC...");
assert(package_extract_file("opt/kernels/lionfish_sbc/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
package_extract_dir("opt/kernels/lionfish_sbc/system/lib/modules", "/system/lib/modules/");
endif;
set_progress(0.75);

####
## BUSYBOX, DALVIK2SD
####
ui_print("	");
ui_print("Configuring Base Modifications");

ui_print("	-Extracting busybox...");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
set_progress(0.8);
ui_print("	-Moving Dalvik-cache to SD...");
package_extract_file("move_cache_sd", "/tmp/move_cache_sd");
set_perm(0, 0, 0777, "/tmp/move_cache_sd");
run_program("/tmp/move_cache_sd");
set_progress(0.85);

set_progress(0.9);

set_progress(0.95);
####
## INSTALLATION COMPLETE
####
set_progress(1.0);
ui_print(" ");
ui_print("@Finished!");
ui_print("@Urayamashi Installation Complete. A B.o.B is now in your hands");

thanks if anyone can help