[Galaxy S II Android Development] Troubadour666:
Ding-dong :)

oh la la :)

original script :

show_progress(0.500000, 0);
run_program("/sbin/mount", "/dev/block/mmcblk0p9", "/system");
run_program("/sbin/mount", "/dev/block/mmcblk0p7", "/cache");
delete_recursive("/cache");
run_program("/sbin/mount", "/dev/block/mmcblk0p10", "/data");
delete_recursive("/data/dalvik-cache");
run_program("/sbin/mount", "/dev/block/mmcblk0p12", "/preload");
[COLOR="Red"]
delete("/data//system/batterystats.bin");
[/COLOR]
package_extract_dir("data", "/data");
set_perm(2000, 2000, 0771, "/data/local");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
show_progress(0.500000, 80);
package_extract_dir("system", "/system");
package_extract_dir("preload", "/preload");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
symlink("/system/xbin/busybox", "/system/bin/busybox");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");

and this rom works ? where are line to delete system (system and preload) before flash. Expect users for 1rst rom havent trouble.

for 2nd rom, i have done :

show_progress(0.500000, 0);
run_program("/sbin/mount", "/dev/block/mmcblk0p9", "/system");
run_program("/sbin/mount", "/dev/block/mmcblk0p7", "/cache");
delete_recursive("/system");
delete_recursive("/cache");
run_program("/sbin/mount", "/dev/block/mmcblk0p10", "/data");
delete_recursive("/data/sec_data");
delete_recursive("/data/dalvik-cache");
delete("/data/system/batterystats.bin");
[COLOR="Red"]
delete_recursive("/data/data/com.android.SystemUI");
delete_recursive("/data/data/com.android.providers.settings");
delete_recursive("/data/data/com.android.settings");
[/COLOR]
package_extract_dir("data", "/data");
set_perm(2000, 2000, 0771, "/data/local");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
show_progress(0.500000, 80);
package_extract_dir("system", "/system");
package_extract_dir("preload/symlink/system/app", "/data/sec_data");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
symlink("/system/xbin/busybox", "/system/bin/busybox");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");

at the end, original was (good) :

package_extract_file("Yoelsd/symlink_preload", "/tmp/symlink_preload");
set_perm(0, 0, 0777, "/tmp/symlink_preload");
run_program("/tmp/symlink_preload");
package_extract_file("Yoelsd/efs_backup.sh", "/tmp/efs_backup.sh");
set_perm(0, 0, 0755, "/tmp/efs_backup.sh");
run_program("/tmp/efs_backup.sh");
package_extract_file("Yoelsd/flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
package_extract_file("Yoelsd/zImage", "/tmp/zImage");
run_program("/tmp/flash_image", "/dev/block/mmcblk0p5", "/tmp/zImage");
delete("/tmp/zImage");
package_extract_file("Yoelsd/modem.bin", "/tmp/modem.bin");
run_program("/tmp/flash_image", "/dev/block/mmcblk0p8", "/tmp/modem.bin");
delete("/tmp/modem.bin");
delete("/tmp/flash_image");
delete("/tmp/symlink_preload");
delete("/tmp/efs_backup.sh");
run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/preload");
run_program("/sbin/umount", "/cache");
run_program("/sbin/umount", "/data");

mine will be :

package_extract_file("Yoelsd/symlink_preload", "/tmp/symlink_preload");
set_perm(0, 0, 0777, "/tmp/symlink_preload");
run_program("/tmp/symlink_preload");
package_extract_file("Yoelsd/efs_backup.sh", "/tmp/efs_backup.sh");
set_perm(0, 0, 0755, "/tmp/efs_backup.sh");
run_program("/tmp/efs_backup.sh");
delete("/tmp/symlink_preload");
delete("/tmp/efs_backup.sh");
run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/cache");
run_program("/sbin/umount", "/data");

I only let efs_backup process to be done during flash , no change for other lines between.

Find three files i attachment, FOR 2nd ROM ONLY.

two version of updater-script, with or without cleaning lines i describe you before this post.

-as USUAL , make Nandroid Backup actual rom

Test updater-script-without cleaning line first, if no FC systemUi at boot, keep it, if FC then replace updater-script with 2nd i post, restore your nandroid, boot LSD 2nd rom and reflash new LSS with cleaning added lines in updater-script. understand?

thanks.