[Galaxy S II Android Development] Troubadour666:
hi,

i think we have some trouble with vrtheme script, this result is when i run AROMA with vrtheme script in 2nd rom, with 8.43v97.1

create_preload_symlinks shell execution is good but, installtheme.sh and cleanup.sh not executed.

details :

extracted end result aroma log

Please wait... Extracting needed tools to vrtheme...
Extract: /sdcard/vrtheme/cleanup.sh
Extract: /sdcard/vrtheme/zip
Extract: /sdcard/vrtheme/zipalign
about to run program [/sdcard/vrtheme/[COLOR="Red"]installtheme.sh[/COLOR]] with 1 args
[B] run_program: execv failed: Permission denied[/B]
run_program: child exited with status 1
about to run program [/sdcard/vrtheme/[COLOR="Red"]cleanup.sh[/COLOR]] with 1 args
[B]run_program: execv failed: Permission denied[/B]
run_program: child exited with status 1
about to run program [/tmp/[COLOR="Red"]create_preload_symlinks[/COLOR]] with 1 args
ln: /system/app/AccuweatherDaemon.apk: File exists
ln: /system/app/AccuweatherWidget.apk: File exists
ln: /system/app/AccuweatherWidget_Main.apk: File exists
ln: /system/app/AnalogClockSimple.apk: File exists

installtheme.sh extracted begin script :

#!/sbin/sh
# Copyright VillainROM 2011. All Rights Reserved
# cleanup from last time
[ -d /sdcard/vrtheme-backup ] && rm -r /sdcard/vrtheme-backup

cleanup.sh total script :

#!/sbin/sh
rm -rf /sdcard/vrtheme/
echo "Cleanup complete"

create_preload_symlinks total script :

#!/system/bin/mksh

mount -o remount rw /system
cd /data/sec_data

# Can't create array with /sbin/sh, hence we use mksh
apk_list=( `ls | grep .apk` )
odex_list=( `ls | grep .odex` )
items=${apk_list[*]}" "${odex_list[*]}

for item in ${items[@]}
do
ln -s /data/sec_data/$item /system/app/$item
done

updater-script:

ui_print("========================");
ui_print(" ");
ui_print(" Troubadour Pack");
ui_print(" ");
ui_print(" ");
ui_print("========================");
ui_print(" ");
unmount("/system");
unmount("/cache");
unmount("/preload");
ui_print(" Please wait... mounting partition and flashing...");
run_program("/sbin/mount", "/dev/block/mmcblk0p9", "/system");
run_program("/sbin/mount", "/dev/block/mmcblk0p10", "/data");
run_program("/sbin/mount", "/dev/block/mmcblk0p7", "/cache");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
ui_print(" Please wait... cleaning vrtheme folder...");
run_program("/sbin/rm", "-rf", "/sdcard/vrtheme/");
if file_getprop("/tmp/aroma-data/installtype.prop","selected.1") == "1" then
run_program("/sbin/mount", "/dev/block/mmcblk0p12", "/preload");
package_extract_dir("preload", "/preload");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
set_perm_recursive(0, 0, 0755, 0644, "/preload/symlink/system/app");
package_extract_file("dbtools/symlink_preload", "/tmp/[COLOR="Red"]create_preload_symlinks[/COLOR]");
endif;
if file_getprop("/tmp/aroma-data/installtype.prop","selected.1") == "2" then
package_extract_dir("preload/symlink/system/app", "/data/sec_data");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
set_perm_recursive(0, 0, 0755, 0644, "/data/sec_data");
package_extract_file("dbtools/symlink_dualboot", "/tmp/[COLOR="Red"]create_preload_symlinks[/COLOR]");
endif;
............
...........
ui_print(" Please wait... Extracting needed tools to vrtheme...");
package_extract_dir("vrtheme", "/sdcard/vrtheme");
package_extract_file("dbtools/installtheme.sh", "/sdcard/vrtheme/[COLOR="Red"]installtheme.sh[/COLOR]");
if file_getprop("/tmp/aroma-data/installtype.prop","selected.1") == "2" then
package_extract_file("dbtools/dbinstalltheme.sh", "/sdcard/vrtheme/[COLOR="Red"]installtheme.sh[/COLOR]");
endif;
set_perm(0, 0, 0777, "/sdcard/vrtheme/[COLOR="Red"]installtheme.sh[/COLOR]");
set_perm(0, 0, 0777, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0777, "/sdcard/vrtheme/[COLOR="Red"]cleanup.sh[/COLOR]");
set_perm(0, 0, 0777, "/sdcard/vrtheme/zipalign");
run_program("/sdcard/vrtheme/[COLOR="Red"]installtheme.sh[/COLOR]");
run_program("/sdcard/vrtheme/[COLOR="Red"]cleanup.sh[/COLOR]");
if file_getprop("/tmp/aroma-data/installtype.prop","selected.1") == "1" then
set_perm_recursive(0, 0, 0755, 0644, "/preload/symlink/system/app");
endif;
if file_getprop("/tmp/aroma-data/installtype.prop","selected.1") == "2" then
set_perm_recursive(0, 0, 0755, 0644, "/data/sec_data");
endif;
set_perm(0, 0, 0777, "/tmp/[COLOR="Red"]create_preload_symlinks[/COLOR]");
run_program("/tmp/[COLOR="Red"]create_preload_symlinks[/COLOR]");
set_perm_recursive(0, 0, 0755, 0644, "/system/framework");
delete("/tmp/symlink_dualboot");
delete("/tmp/symlink_preload");
run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/data");
run_program("/sbin/umount", "/cache");
run_program("/sbin/umount", "/preload");

i made this test with 8.43v76 , all scripts runs fines.

if needed other log, i can try to find them.

thanks