Erreur CMW script (bad & aborted) - Galaxy S I9000 Q&A, Help & Troubleshooting

hi,
well i have a problem with my custom script. CMW says "bad" and "aborted" and does not apply my script. Here it is.
Someone can help ? thanks.
ui_print("--------------------------------");
ui_print("By: WILMANS2M ");
ui_print("--------------------------------");
ui_print("SimplyGSRom - Version 2.0 ");
ui_print("XXJVQ Based ROM Android 2.3.4");
ui_print("--------------------------------");
ui_print("Installation ... ");
show_progress(0.200000, 10);
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/data");
run_program("/sbin/mount", "/dev/block/stl9", "/system");
run_program("/sbin/mount", "/dev/block/stl10", "/dbdata");
run_program("/sbin/mount", "/dev/block/stl11", "/cache");
ui_print(" ");
ui_print("Saving EFS");
ui_print(" ");
package_extract_dir("updates", "/tmp");
set_perm(0, 0, 0755, "/tmp/efs_backup.sh");
run_program("/tmp/efs_backup.sh");
ui_print(" ");
ui_print("Detection used rom...");
set_perm(0, 0, 0755, "/tmp/sgsr.sh");
run_program("/tmp/sgsr.sh");
show_progress(0.200000, 12);
ui_print("Optimization scripts ... ");
package_extract_dir("system", "/system");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/S01sysctl");
set_perm(0, 0, 0777, "/system/etc/init.d/S70zipalign");
set_perm(0, 0, 0777, "/system/etc/init.d/S97ramscript");
set_perm(0, 0, 0777, "/system/etc/init.d/S99complete");
set_perm(0, 0, 0777, "/system/etc/init.d/enable_tun");
set_perm(0, 0, 0777, "/system/etc/init.d/enable_sm_warm");
set_perm(0, 0, 0777, "/system/etc/init.d/enable_netfilter");
set_perm(0, 0, 0777, "/system/etc/init.d/enable_conservative");
set_perm(0, 0, 0777, "/system/etc/init.d/enable_cifs");
ui_print(" ");
ui_print("Copying files");
ui_print(" ");
package_extract_dir("system", "/system");
package_extract_dir("sdcard", "/sdcard");
show_progress(0.200000, 60);
ui_print(" ");
ui_print("Virtual symlinks");
ui_print(" ");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("dumpstate", "/system/bin/dumpmesg");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
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/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/reboot");
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/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");
symlink("/system/xbin/su", "/system/bin/su");
symlink("/system/bin/debuggerd", "/system/bin/csview");
show_progress(0.200000, 70);
ui_print(" ");
ui_print("Fixing Permissions");
ui_print(" ");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/bin/launch_gps.sh");
set_perm(0, 2000, 0755, "/system/vendor/bin/gpsd");
set_perm(0, 2000, 0755, "/system/etc/bluetooth");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/bin/su");
set_perm(0, 0, 06755, "/system/xbin/busybox");
set_perm(0, 0, 755, "/tmp/redbend_ua");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc");
set_perm(0, 3003, 02755, "/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_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 04755, "/system/xbin/su");
set_perm(0, 0, 04755, "/system/xbin/busybox");
set_perm_recursive(0, 0, 0755, 0644, "/system/framework");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib");
set_perm_recursive(0, 0, 0755, 0644, "/system/fonts");
set_perm(0, 0, 06755, "/system/bin/sqlite3");
set_perm(0, 0, 06755, "/system/etc/hosts");
show_progress(0.200000, 80);
ui_print(" ");
ui_print("Installing Busybox");
ui_print(" ");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
show_progress(0.200000, 90);
ui_print(" ");
ui_print("Flashing Modem");
ui_print(" ");
set_perm(0, 0, 0755, "/tmp/bmlwrite");
run_program("/tmp/bmlwrite", "/tmp/modem.bin", "/dev/block/bml12");
ui_print(" ");
ui_print("Flashing Kernel");
ui_print(" ");
run_program("/tmp/bmlwrite", "/tmp/zImage", "/dev/block/bml7");
show_progress(1.000000, 0);
ui_print("SimplyGSROM installed");
ui_print("Flash ended! Your phone will reboot...");
run_program("/sbin/cp", "/tmp/recovery.log", "/data/update.log");
run_program("/sbin/unmount", "/dev/block/stl9", "/system");
run_program("/sbin/unmount", "/dev/block/stl10", "/dbdata");
run_program("/sbin/unmount", "/dev/block/stl11", "/cache");
run_program("/sbin/unmount", "/dev/block/mmcblk0p2", "/data");
ui_print(" ");
ui_print("--now");
run_program("/xbin/reboot");

WILMANS2M said:
hi,
well i have a problem with my custom script. CMW says "bad" and "aborted" and does not apply my script. Here it is.
Someone can help ? thanks.
ui_print("--------------------------------");
ui_print("By: WILMANS2M ");
ui_print("--------------------------------");
ui_print("SimplyGSRom - Version 2.0 ");
ui_print("XXJVQ Based ROM Android 2.3.4");
ui_print("--------------------------------");
ui_print("Installation ... ");
show_progress(0.200000, 10);
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/data");
run_program("/sbin/mount", "/dev/block/stl9", "/system");
run_program("/sbin/mount", "/dev/block/stl10", "/dbdata");
run_program("/sbin/mount", "/dev/block/stl11", "/cache");
ui_print(" ");
ui_print("Saving EFS");
ui_print(" ");
package_extract_dir("updates", "/tmp");
set_perm(0, 0, 0755, "/tmp/efs_backup.sh");
run_program("/tmp/efs_backup.sh");
ui_print(" ");
ui_print("Detection used rom...");
set_perm(0, 0, 0755, "/tmp/sgsr.sh");
run_program("/tmp/sgsr.sh");
show_progress(0.200000, 12);
ui_print("Optimization scripts ... ");
package_extract_dir("system", "/system");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/S01sysctl");
set_perm(0, 0, 0777, "/system/etc/init.d/S70zipalign");
set_perm(0, 0, 0777, "/system/etc/init.d/S97ramscript");
set_perm(0, 0, 0777, "/system/etc/init.d/S99complete");
set_perm(0, 0, 0777, "/system/etc/init.d/enable_tun");
set_perm(0, 0, 0777, "/system/etc/init.d/enable_sm_warm");
set_perm(0, 0, 0777, "/system/etc/init.d/enable_netfilter");
set_perm(0, 0, 0777, "/system/etc/init.d/enable_conservative");
set_perm(0, 0, 0777, "/system/etc/init.d/enable_cifs");
ui_print(" ");
ui_print("Copying files");
ui_print(" ");
package_extract_dir("system", "/system");
package_extract_dir("sdcard", "/sdcard");
show_progress(0.200000, 60);
ui_print(" ");
ui_print("Virtual symlinks");
ui_print(" ");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("dumpstate", "/system/bin/dumpmesg");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
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/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/reboot");
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/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");
symlink("/system/xbin/su", "/system/bin/su");
symlink("/system/bin/debuggerd", "/system/bin/csview");
show_progress(0.200000, 70);
ui_print(" ");
ui_print("Fixing Permissions");
ui_print(" ");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/bin/launch_gps.sh");
set_perm(0, 2000, 0755, "/system/vendor/bin/gpsd");
set_perm(0, 2000, 0755, "/system/etc/bluetooth");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/bin/su");
set_perm(0, 0, 06755, "/system/xbin/busybox");
set_perm(0, 0, 755, "/tmp/redbend_ua");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc");
set_perm(0, 3003, 02755, "/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_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 04755, "/system/xbin/su");
set_perm(0, 0, 04755, "/system/xbin/busybox");
set_perm_recursive(0, 0, 0755, 0644, "/system/framework");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib");
set_perm_recursive(0, 0, 0755, 0644, "/system/fonts");
set_perm(0, 0, 06755, "/system/bin/sqlite3");
set_perm(0, 0, 06755, "/system/etc/hosts");
show_progress(0.200000, 80);
ui_print(" ");
ui_print("Installing Busybox");
ui_print(" ");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
show_progress(0.200000, 90);
ui_print(" ");
ui_print("Flashing Modem");
ui_print(" ");
set_perm(0, 0, 0755, "/tmp/bmlwrite");
run_program("/tmp/bmlwrite", "/tmp/modem.bin", "/dev/block/bml12");
ui_print(" ");
ui_print("Flashing Kernel");
ui_print(" ");
run_program("/tmp/bmlwrite", "/tmp/zImage", "/dev/block/bml7");
show_progress(1.000000, 0);
ui_print("SimplyGSROM installed");
ui_print("Flash ended! Your phone will reboot...");
run_program("/sbin/cp", "/tmp/recovery.log", "/data/update.log");
run_program("/sbin/unmount", "/dev/block/stl9", "/system");
run_program("/sbin/unmount", "/dev/block/stl10", "/dbdata");
run_program("/sbin/unmount", "/dev/block/stl11", "/cache");
run_program("/sbin/unmount", "/dev/block/mmcblk0p2", "/data");
ui_print(" ");
ui_print("--now");
run_program("/xbin/reboot");
Click to expand...
Click to collapse
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
you have told the updater script to set the first permission and then the 2nd instead of just one of them!
If I'm not correct then do adb logcat and figure out what is going wrong or ask the xda community!

Related

[Q] CWM Status 6 error on my Rom

Ive been trying to create a rom for personal like ive done before with froyo roms
but when we switched to gingerbread it seems like were now using updater-scripts instead of update-scripts and i keep getting error Status 6 on cwm when i try to install and ive narrowed it down to being the updater script
here is my updater script if anyone could help me see what is wrong
ui print(" +=========================================+");
ui_print(" | Installing Rom..." |");
show_progress(0.200000, 5);
run_program("/sbin/mount", "/system");
run_program("/sbin/mount", "/dev/block/stl10", "/dbdata");
run_program("/sbin/mount", "/dev/block/stl11", "/cache");
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/data");
ui_print(" | Formatting system |");
delete_recursive("/system");
delete_recursive("/dbdata");
delete_recursive("/cache");
delete_recursive("/data");
package_extract_dir("updates", "/tmp");
set_perm(0, 0, 0777, "/tmp/redbend_ua");
set_perm(0, 0, 0777, "/tmp/wipe");
run_program("/tmp/wipe");
ui_print(" | Extracting apps... |");
package_extract_dir("data", "/data");
set_perm(1000, 1010, 0771, "/data/app");
show_progress(0.500000, 60);
ui_print(" | Installing system files |");
package_extract_dir("system", "/system");
ui_print(" | creating symlinks... |");
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/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/vmstat", "/system/bin/watchprops", "/system/bin/wipe");
symlink("/system/xbin/su", "/system/bin/su");
symlink("/system/bin/dumpstate", "/system/bin/dumpmesg");
symlink("/system/bin/debuggerd", "/system/bin/csview");
show_progress(0.200000, 70);
ui_print(" | setting permissions... |");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
set_perm_recursive(1002, 1002, 0755, 0440, /system/etc/bluetooth);
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/bin/launch_gps.sh");
set_perm(0, 2000, 0755, "/system/vendor/bin/gpsd");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
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/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/busybox");
set_perm(0, 0, 06755, "/system/bin/sqlite3");
ui_print(" | installing busybox.... |");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
ui_print(" | Flashing modem |");
run_program("/tmp/redbend_ua", "restore", "/tmp/modem.bin", "/dev/block/bml12");
ui_print(" | Flashing kernel |");
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml7");
ui_print(" | Finishing Install | ");
unmount("/data");
unmount("/dbdata");
unmount("/cache");
unmount("/system");
show_progress(0.200000, 0);
ui_print(" +=========================================+");
its the encoding on updater.script
something probably corrupted the encoding on your updater.script (like a Microsoft product editor or something). Change the encoding back to unix and see if that doesn't fix it.
Rob
insink71 said:
something probably corrupted the encoding on your updater.script (like a Microsoft product editor or something). Change the encoding back to unix and see if that doesn't fix it.
Rob
Click to expand...
Click to collapse
holy necro post, dude....
insink71 said:
something probably corrupted the encoding on your updater.script (like a Microsoft product editor or something). Change the encoding back to unix and see if that doesn't fix it.
Rob
Click to expand...
Click to collapse
Its been so long since i had this prob and i still get it... I have a macwhich is paet of prob but ive found a solution thanks')
howtomen said:
Its been so long since i had this prob and i still get it... I have a macwhich is paet of prob but ive found a solution thanks')
Click to expand...
Click to collapse
What was the solution, if you don't mind? I'm having the same issue.
---------- Post added at 09:18 PM ---------- Previous post was at 09:11 PM ----------
Nevermind, found the solution - http://boardreader.com/thread/update_zip_error_status_6_677jjXi0hq.html
In CMW go to "Advanced" panel and then select "Log"
Here you can see where you went wrong and it will specify even the line number so you can easily edit these mistakes.
I recommend Notepad++ for editing these scripts.
Leon1234 said:
In CMW go to "Advanced" panel and then select "Log"
Here you can see where you went wrong and it will specify even the line number so you can easily edit these mistakes.
I recommend Notepad++ for editing these scripts.
Click to expand...
Click to collapse
Haha prob solved but thanks... The issue wasnt a specific to the updater but to what i used to edit it
trolol and awayyy!! Expect typos this is my phone.
Good to hear that.,

Help making an update.zip

I'm trying to make an update.zip file for the ROM I'm working on, I'm signing it using testsign.jar and the instructions here
The updater-binary is from the OTA but I believe this doesn't matter as Safestrap ignores it anyway
The contents of the ZIP are:
Code:
.:
META-INF system
./META-INF:
com
./META-INF/com:
android google
./META-INF/com/android:
metadata
./META-INF/com/google:
android
./META-INF/com/google/android:
update-binary updater-script
./system:
app etc framework
./system/app:
VZWAPNLib.apk VzwDeviceSetup.apk VzwSecureSettings.apk
vzwapnpermission.apk VzwEntitlementService.apk VzwSettingsExt.apk
VZWAPNService.apk vzwPhoneExt.apk
VzwController.apk VzwPhoneService.apk
./system/etc:
gps.conf
./system/framework:
com.motorola.vzw.vmm.helper.jar com.vzw.android.hux.jar
com.motorola.vzw.vmm.util.jar com.vzw.android.jar
com.verizon.phone.jar com.vzw.android.smart.jar
com.vzw.android.gex.jar
The updater script is:
Code:
show_progress(0.500000, 0);
ui_print("Mounting your system...");
mount("ext3", "EMMC", "/dev/block/system", "/system");
ui_print("Starting Installation...");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
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, 0444, "/system/etc/install-recovery.cfg");
set_perm(0, 2000, 0544, "/system/etc/install-recovery.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/usr/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
run_program("/tmp/fixperm.sh");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 1001, 04770, "/system/bin/pppd-ril");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/bin/su");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
show_progress(0.200000, 10);
show_progress(0.100000, 0);
unmount("/system");
The lines in that script are terminated with LF, not CRLF.
I'm zipping it up and then signing it with: java -classpath testsign.jar testsign CDMA_Patch_V1.2.zip CDMA_Patch_V1.2_signed.zip
But flashing it in safestrap gives an error (Status 4)
Please tell me what I'm doing wrong!
Now I understand why all the threads about this error end with no response or simply "never mind I figured it out", it's because when you figure it out you feel really really stupid and don't want to admit to the error.
So here's the solution:
When you make a zip file using 7zip or similar, if you right click on the folder (say it's called MyPatch) and do "Add to MyPatch.zip", the zip file structure ends up being:
\MyPatch\META-INF
\MyPatch\System
etc.
The structure actually needs to be
\META-INF
\System
etc.
So instead you need to go into the folder, select all, right click, Add to MyPatch.zip
You can then run SignApk.jar on it and the result will be flashable!

[Q] Help needed - Android kitchen

i make a rom - well as written here: http://forum.xda-developers.com/showthread.php?t=2266842
all things are work. i flash the rom ... works too ... BUT: wifi not work, usb not work, phone not work!
What am I doing wrong? even if i flash "multi csc" ... nothing ...
My folderinfo:
Code:
Android OS version : 4.1.2
Device : golden
Model : GT-I8190
ROM Name : JZO54K.I8190XXAMD3
CSC version : I8190OXAAMD3
Rooted (Superuser app + su) : No
Rooted (unsecured boot.img) : No
BusyBox installed : No
BusyBox run-parts support : No
Apps2SD (Apps to EXT) enabled : NO
/data/app enabled : NO
Custom boot animation allowed : NO
Nano text editor installed : NO
Bash shell support : No
/system/framework is deodexed : NO
/system/app is deodexed : NO
radio.img found : NO
ROM will wipe all data : NO
than ... i install root, busybox and change the rom name. NOTHING more!
But doent works after flash ...
pls help me
hurricane2012 said:
i make a rom - well as written here: http://forum.xda-developers.com/showthread.php?t=2266842
all things are work. i flash the rom ... works too ... BUT: wifi not work, usb not work, phone not work!
pls help me
Click to expand...
Click to collapse
Code:
format("ext4", "EMMC", "/dev/block/mmcblk0p22");
That line gave me same problem.
Instead I used
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/cache");
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/Test.log");
delete_recursive("/cache");
delete_recursive("/system/app");
delete_recursive("/system/framework");
Can you post the updater-script?
my updater script (autogenerated)
Code:
show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/mmcblk0p22");
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
package_extract_dir("system", "/system");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("debuggerd", "/system/bin/csview");
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/reboot");
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/touch");
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_perm_recursive(0, 0, 0755, 0644, "/system");
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_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_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
show_progress(0.1, 10);
show_progress(0.2, 0);
package_extract_file("boot.img", "/dev/block/mmcblk0p20");
show_progress(0.2, 10);
unmount("/system");
when i create the working folder - this warning
Code:
Warning: No cache.img.ext4 found. You can unpack this file separately
by running the plugin script in the kitchen's Advanced menu options.
If your device doesn't use a CSC, then just ignore this message.
what should I do? In folderinfo
Code:
CSC version : I8190OXAAMD3
is now included or not?
after flash: "sim card not found - please insert"
Yeah. it must be that line as it gave me the same problem.
Use notepad++ to edit the script manually.
Remove that line and replace it with:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/cache");
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/Test.log");
delete_recursive("/cache");
delete_recursive("/system/app");
delete_recursive("/system/framework");
delete_recursive("/system");
or maybe:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/cache");
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/Test.log");
delete_recursive("/cache");
delete_recursive("/system");
tys0n said:
Yeah. it must be that line as it gave me the same problem.
Use notepad++ to edit the script manually.
Remove that line and replace it with:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/cache");
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/Test.log");
delete_recursive("/cache");
delete_recursive("/system/app");
delete_recursive("/system/framework");
delete_recursive("/system");
or maybe:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/cache");
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/Test.log");
delete_recursive("/cache");
delete_recursive("/system");
Click to expand...
Click to collapse
ok i test it ... take some minutes
hurricane2012 said:
when i create the working folder - this warning
Code:
Warning: No cache.img.ext4 found. You can unpack this file separately
by running the plugin script in the kitchen's Advanced menu options.
If your device doesn't use a CSC, then just ignore this message.
what should I do? In folderinfo
Code:
CSC version : I8190OXAAMD3
is now included or not?
after flash: "sim card not found - please insert"
Click to expand...
Click to collapse
I did extract the cache.img. You'll get a sec_csc.zip.
Just extract it and place the folders/files into your rom.
when i replace the line with your code ... in cwm abort install error 6
okay i used a wrong texteditor ... i replaced the errors ... flash again ... take some minutes ...
hurricane2012 said:
when i replace the line with your code ... in cwm abort install error 6
okay i used a wrong texteditor ... i replaced the errors ... flash again ... take some minutes ...
Click to expand...
Click to collapse
Yeah it have to be notepad++ if you're on a windows machine.
Also, you might have to flash official firmware in order to get your phone capabillities restored now that "/system" got formatted.
I do't know..
tys0n said:
Yeah it have to be notepad++ if you're on a windows machine.
Also, you might have to flash official firmware in order to get your phone capabillities restored now that "/system" got formatted.
I do't know..
Click to expand...
Click to collapse
must i deodex?
hurricane2012 said:
must i deodex?
Click to expand...
Click to collapse
Odexed vs Deodexed
You can use my updater script if you want tell me if it works!
Sent from my GT-I8190N using xda app-developers app
dariolob said:
You can use my updater script if you want tell me if it works!
Sent from my GT-I8190N using xda app-developers app
Click to expand...
Click to collapse
where can find it?
Take the v4 one! Not v5 because of the AROMA installer
Sent from my GT-I8190N using xda app-developers app
I do following steps:
- extract "HOME_I8190XXAMD3_I8190OXAAMD3_1154865_REV00_user_low_ship.tar"
- create a new zip with boot.img and system.img
- open Cygwin Terminal as adminsitrator
- open android kitchen
- extract cache.img (0 -> 18 -> 3)
- setup working folder
- copy the folder "system" (frome extracted cache.img) into workingfolder
Now folder information
Code:
Working folder information (v0.223)
Android OS version : 4.1.2
Device : golden
Model : GT-I8190
ROM Name : JZO54K.I8190XXAMD3
CSC version : I8190OXAAMD3
Rooted (Superuser app + su) : NO
Rooted (unsecured boot.img) : NO
BusyBox installed : NO
BusyBox run-parts support : NO
Apps2SD (Apps to EXT) enabled : NO
/data/app enabled : NO
Custom boot animation allowed : NO
Nano text editor installed : NO
Bash shell support : NO
/system/framework is deodexed : NO
/system/app is deodexed : NO
radio.img found : NO
ROM will wipe all data : NO
- add root ( 2 -> c )
- add busybox ( 3 )
- add running parts (busybox: 0 -> 14)
now my folder information
Code:
Working folder information (v0.223)
Android OS version : 4.1.2
Device : golden
Model : GT-I8190
ROM Name : JZO54K.I8190XXAMD3
CSC version : I8190OXAAMD3
Rooted (Superuser app + su) : YES
Rooted (unsecured boot.img) : YES
BusyBox installed : YES
BusyBox run-parts support : YES
Apps2SD (Apps to EXT) enabled : NO
/data/app enabled : NO
Custom boot animation allowed : NO
Nano text editor installed : NO
Bash shell support : NO
/system/framework is deodexed : NO
/system/app is deodexed : NO
radio.img found : NO
ROM will wipe all data : NO
- build rom ( 99 )
* build option 1
* optimize apk: no
* updater-script: yes
* sign your rom: yes
* rename the zip-file: no
- open zip in outputfolder
- replace the updater-script with updater-script from DMod v4
- copy on sd-card
- boot into recovery
* format data
* format system
* wipe cache
* wipe dalvyk cache
- install my rom
* data/factory reset
- reboot
Result: no phone, no wifi, no usb connection with pc ...
what is wrong?
I just only want a working cwm rom without any mods
the v4Script:
Code:
assert(getprop("ro.product.device") == "golden" || getprop("ro.build.product") == "golden" ||
getprop("ro.product.device") == "i8190N" || getprop("ro.build.product") == "i8190N" ||
getprop("ro.product.device") == "GT-I8190N" || getprop("ro.build.product") == "GT-I8190N");
show_progress(0.500000, 0);
unmount("/system");
unmount("/cache");
format("ext4", "EMMC", "/dev/block/mmcblk0p22");
format("ext4", "EMMC", "/dev/block/mmcblk0p23");
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/cache");
delete("/data/system/batterystats.bin");
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/boot-cache/");
delete_recursive("/data/nos_injection/");delete_recursive("/data/resource-cache/");
delete_recursive("/data/system/usagestats");
delete_recursive("/data/app");
delete_recursive("/data/app-asec");
delete_recursive("/data/app-private");
delete_recursive("/data/backup");
delete_recursive("/data/data");
delete_recursive("/data/drm");
delete_recursive("/data/log");
delete_recursive("/data/local");
delete_recursive("/data/misc");
delete_recursive("/data/property");
delete_recursive("/data/time");
delete_recursive("/data/user");
delete_recursive("/data/system");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
unmount("/data");
package_extract_file("initd.sh", "/tmp/initd.sh");
set_perm(0, 0, 0777, "/tmp/initd.sh");
run_program("/tmp/initd.sh", "/tmp/initd.sh");
package_extract_dir("system", "/system");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("debuggerd", "/system/bin/csview");
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/reboot");
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/touch");
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_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0755, "/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_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_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 0755, "/system/etc/be_movie");
set_perm(0, 0, 0755, "/system/etc/be_photo");
set_perm(0, 0, 04755, "/system/xbin/sysrw");
set_perm(0, 0, 04755, "/system/xbin/sysro");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
set_perm(0, 0, 0777, "/system/bin/nos_entropy");
set_perm(0, 0, 0777, "/system/bin/4cylturbo");
set_perm(0, 0, 0777, "/system/bin/sysro");
set_perm(0, 0, 0777, "/system/bin/sysrw");
set_perm(0, 0, 0777, "/system/bin/rambooster");
set_perm(0, 0, 0777, "/system/bin/zipalign_apks");
set_perm_recursive(0, 2000, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0777, 0777, "/system/etc/zram");
set_perm_recursive(0, 2000, 0777, 0777, "/system/etc/nos_scripts");
set_perm(0, 0, 0777, "/system/etc/nos_scripts/nos_entropy");
set_perm(0, 0, 0777, "/system/etc/init.d/nos_entropy");
set_perm_recursive(0, 2000, 0777, 0777, "/system/etc/nos_scripts");
set_perm(0, 0, 0777, "/system/etc/zram/nose_zram_swap");
set_perm(0, 0, 0755, 0644, "/system/etc/resolv.conf");
set_perm(0, 0, 0755, 0644, "/system/etc/sysctl.conf");
set_perm(0, 0, 0777, "/data/nos_injection/4cylturbo/etc/cron");
set_perm(0, 0, 0644, "/data/nos_injection/4cylturbo/etc/cron/root");
set_perm(0, 2000, 0777, "/system/xbin/rngd");
set_perm(0, 2000, 0777, "/system/xbin/entro");
set_perm(0, 0, 04755, "/system/xbin/sqlite3");
set_perm(0, 0, 04755, "/system/xbin/zipalign");
show_progress(0.500000, 25);
show_progress(0.500000, 75);
package_extract_file("boot.img", "/dev/block/mmcblk0p20");
show_progress(0.500000, 100);
unmount("/system");
unmount("/data");
unmount("/cache");
Please help
Why you don't follow my "Howto" ? .... and btw i think your problem is that youre modem.bin is from AMB3 not updated to AMD3...
Sent from my Nexus 4 using xda premium
enox.co said:
Why you don't follow my "Howto" ? .... and btw i think your problem is that youre modem.bin is from AMB3 not updated to AMD3...
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
on which position i not follow your howto?
info from settings: Basibandversion: I8190XXAMD3
-wipe data / factory reset after flashing your rom should fix the problems....
enox.co said:
-wipe data / factory reset after flashing your rom should fix the problems....
Click to expand...
Click to collapse
View my post:
- install my rom
* data/factory reset
- reboot
Click to expand...
Click to collapse

[REF] Update ZIP for installing MODs from CWM

Hi
i created a sample recovery cwm update file for you guys that want to install new mods on your phone:
this is updater-script file:
Code:
#Mounting partitions
ui_print(" Mounting Partitions");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
#Install Files into System partition
ui_print(" Copying Data...");
package_extract_dir("system", "/system");
#Setting Permissions to files
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm(0, 0, 0644, "/system/build.prop");
if you want to install Kernel
create a directory beside the META-INF folder and name it to what you want.
for example is used amestris folder and i copy the boot.img [kernel file] into amestris folder.
Code:
# Installing The Kernel
package_extract_file("amestris/boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
#finish
---------------------------------------------------------------
this is an example for installing busybox
Code:
# install Busybox
# Mounting system partition
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
# copy busybox applet to system-xbin folder
# you have to create a folder beside META-INF folder and name it to system and then you have to craete xbin folder into the system directory and name it to xbin , then copy busybox applet into xbin folder]
# finally we have " /system/xbin/busybox
# copy busybox to phone
package_extract_dir("system", "/system");
# do permission
set_perm(0, 1000, 0755, "/system/xbin/busybox");
# create a symlink for busybox into the bin folder
symlink("/system/xbin/busybox", "/system/bin/busybox");
# install busybox
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
#finish
# Author Comments
ui_print(" Done.");
ui_print(" Reboot your phone. ");
ui_print(" ");
ui_print(" M Javad Nazari")
All lines that starts by sharp [ # ] , they are comments line and you can delete them.
------------------------------------------------------------------
Another Example
Code:
# AMESTRIS TEAM.
ui_print(" Amestris Team");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
show_progress(0.1, 0);
#Mounting partitions
ui_print(" Mounting Partitions");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/efs", "/efs");
ui_print(" ");
#Install Files into System partition
ui_print(" Copying Data...");
package_extract_dir("system", "/system");
show_progress(0.1, 3);
#Setting Permissions to files
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 0644, "/system/app/Superuser.apk");
show_progress(0.1, 6);
#Symlinking Files to bin folder
symlink("/system/xbin/busybox", "/system/bin/busybox");
symlink("/system/xbin/su", "/system/bin/su");
#Installing Busybox 1.20.2
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
ui_print(" ");
show_progress(0.1, 7);
# EFS Backup
ui_print(" Creating EFS Backup");
package_extract_file("amestris/efs_backup.sh", "/tmp/efs_backup.sh");
set_perm(0, 0, 0777, "/tmp/efs_backup.sh");
run_program("/tmp/efs_backup.sh");
ui_print(" ");
show_progress(0.1, 9);
# Installing The Kernel
package_extract_file("amestris/boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.1, 10);
#finish
ui_print(" Done.");
ui_print(" Reboot your phone. ");
ui_print(" ");
ui_print(" M Javad Nazari")
M_J_Nazari said:
All lines that starts by sharp [ # ] , they are comments line and you can delete them.
------------------------------------------------------------------
Another Example
Code:
# AMESTRIS TEAM.
ui_print(" Amestris Team");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
show_progress(0.1, 0);
#Mounting partitions
ui_print(" Mounting Partitions");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/efs", "/efs");
ui_print(" ");
#Install Files into System partition
ui_print(" Copying Data...");
package_extract_dir("system", "/system");
show_progress(0.1, 3);
#Setting Permissions to files
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 0644, "/system/app/Superuser.apk");
show_progress(0.1, 6);
#Symlinking Files to bin folder
symlink("/system/xbin/busybox", "/system/bin/busybox");
symlink("/system/xbin/su", "/system/bin/su");
#Installing Busybox 1.20.2
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
ui_print(" ");
show_progress(0.1, 7);
# EFS Backup
ui_print(" Creating EFS Backup");
package_extract_file("amestris/efs_backup.sh", "/tmp/efs_backup.sh");
set_perm(0, 0, 0777, "/tmp/efs_backup.sh");
run_program("/tmp/efs_backup.sh");
ui_print(" ");
show_progress(0.1, 9);
# Installing The Kernel
package_extract_file("amestris/boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.1, 10);
#finish
ui_print(" Done.");
ui_print(" Reboot your phone. ");
ui_print(" ");
ui_print(" M Javad Nazari")
Click to expand...
Click to collapse
hi, this is updater script ? i make new rom but not have update binry and updater script. please help me. thank you.
Please make updater script for i9190 sammy rom. i want make fully wiped rom. and init.d support. this wanam s4 rom script. please edit for s4 mini script. and add modem (NON-HLOS.bin) thank you. sorry for my bad english
show_progress(0.500000, 0);
ui_print("");
ui_print("********************************");
ui_print("Welcome to WanamLite UBUBMH1 V2.0");
ui_print("********************************");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
unmount("/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p20", "/system");
delete_recursive("/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p19", "/cache");
delete_recursive("/cache");
mount("ext4", "EMMC", "/dev/block/mmcblk0p21", "/data");
delete_recursive("/data/dalvik-cache");
show_progress(0.500000, 80);
ui_print("Installing System ...");
package_extract_dir("system", "/system");
package_extract_dir("wanam/data", "/data");
ui_print("Simlinking ...");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-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/chcon", "/system/bin/chmod",
"/system/bin/chown", "/system/bin/cmp", "/system/bin/cp", "/system/bin/date",
"/system/bin/dd", "/system/bin/df", "/system/bin/dmesg", "/system/bin/du", "/system/bin/getenforce",
"/system/bin/getevent", "/system/bin/getprop", "/system/bin/getsebool", "/system/bin/grep", "/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/load_policy", "/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/playback", "/system/bin/printenv",
"/system/bin/ps", "/system/bin/reboot",
"/system/bin/renice", "/system/bin/restorecon", "/system/bin/rm", "/system/bin/rmdir",
"/system/bin/rmmod", "/system/bin/route", "/system/bin/runcon", "/system/bin/schedtop",
"/system/bin/sendevent", "/system/bin/setconsole", "/system/bin/setenforce",
"/system/bin/setprop", "/system/bin/setsebool", "/system/bin/sleep", "/system/bin/smd",
"/system/bin/start", "/system/bin/stop", "/system/bin/sync",
"/system/bin/top", "/system/bin/touch", "/system/bin/touchinput", "/system/bin/umount",
"/system/bin/uptime", "/system/bin/vmstat", "/system/bin/watchprops",
"/system/bin/wipe");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0644, "/data/xposed");
set_perm(0, 0, 0666, "/data/xposed/modules.list");
set_perm(0, 0, 0666, "/data/xposed/modules.whitelist");
set_perm_recursive(0, 0, 0755, 0644, "/data/app");
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_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_pair_devlist.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_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
ui_print("Flashing Kernel ...");
assert(package_extract_file("wanam/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p9"),
delete("/tmp/boot.img"));
show_progress(0.100000, 0);
unmount("/system");
unmount("/data");
ui_print(" ");
ui_print("Thanks for using WanamLite Rom, please reboot");
ok, i don't know about the 9190 partition, but it must be the same as 9192
so...
Code:
show_progress(0.1, 0);
unmount
# format system partition
format("ext4", "EMMC", "/dev/block/mmcblk0p21");
# mount partitions
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/efs", "/efs")
# WIPING DATA
#delete cache partition
delete_recursive("/cache");
# this will be delete all contents of data folder
delete_recursive("/data");
# Delete system partition
delete_recursive("/system");
# Copying
package_extract_dir("system", "/system");
#Symlinking
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("debuggerd", "/system/bin/csview");
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/reboot");
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("mksh", "/system/bin/sh");
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/touch");
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");
symlink("toolbox", "/system/bin/chcon");
symlink("toolbox", "/system/bin/setenforce");
symlink("toolbox", "/system/bin/grep");
symlink("toolbox", "/system/bin/runcon");
symlink("toolbox", "/system/bin/touchinput");
symlink("toolbox", "/system/bin/md5");
symlink("toolbox", "/system/bin/getsebool");
symlink("toolbox", "/system/bin/setsebool");
symlink("toolbox", "/system/bin/restorecon");
symlink("toolbox", "/system/bin/getenforce");
symlink("toolbox", "/system/bin/load_policy");
symlink("toolbox", "/system/bin/cp");
symlink("toolbox", "/system/bin/playback");
symlink("toolbox", "/system/bin/du");
symlink("wiperiface_v02", "/system/bin/wiperiface");
# Setting permission
set_perm_recursive(0, 0, 0755, 0644, "/system");
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_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(1000, 1000, 0640, "/system/etc/bluetooth/auto_pair_devlist.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_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
show_progress(0.1, 10);
show_progress(0.2, 0);
#Install The kernel
package_extract_file("amestris/boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.2, 10);
unmount("/system");
init.d support is the kernel feature.
advice ; don't change the modem.
the meta-inf is attahced to this post.
if you had a problem or want more explanation , you just need to ask me here.
best regards.
Big thanks. I will try soon :silly:
Hi M_J_Nazari, how to add busybox ?
Thank you M_J_Nazari, script work perfect.
Just to make sure is it only this I need to use to backup/change settings in build.prop :
#Mounting partitions
ui_print(" Mounting Partitions");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
#Install Files into System partition
ui_print(" Copying Data...");
package_extract_dir("system", "/system");
#Setting Permissions to files
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm(0, 0, 0644, "/system/build.prop");
Click to expand...
Click to collapse
If so, do I need to change any settings?
Hi all
citymen34 said:
Hi M_J_Nazari, how to add busybox ?
Click to expand...
Click to collapse
you need to put busybox into /system/xbin folder
then add these lines to your script , exactly before the installing kernel section
Code:
# Installing Busybox
ui_print(" Instaling Busybox ...");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
EwOkie said:
Just to make sure is it only this I need to use to backup/change settings in build.prop :
If so, do I need to change any settings?
Click to expand...
Click to collapse
just for build.prop ?
Step by Step
Code:
# Mount System Partition
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
Code:
# make a backup from existing build.prop and copy it to sdcard
package_extract_file("/system/build.prop", "/sdcard/0/build.prop");
it will copy the current build.prop to sdcard/build.prop
now, we will copy our new build.prop that located beside of meta-inf folder into system partition of our phone.
Code:
package_extract_file("build.prop", "/system/build.prop");
now we will set the permission for new build.prop file.
Code:
set_perm(0, 0, 0644, "/system/build.prop");
------------------------------------------------------------------------------
final result is:
to make a backup and install new file
Code:
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_file("/system/build.prop", "/sdcard/0/build.prop");
package_extract_file("build.prop", "/system/build.prop")
set_perm(0, 0, 0644, "/system/build.prop");
to restore a backup from last one:
if you want to restore a backup you need to use this line
package_extract_file("/sdcard/0/build.prop" , "/system/build.prop");
Code:
# Restore Script
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_file("/sdcard/0/build.prop" , "/system/build.prop");
set_perm(0, 0, 0644, "/system/build.prop");
[/CODE]
Best Regards
# Mount System Partition
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
Click to expand...
Click to collapse
The by-name do i leave this as is or do I change this?
Thanks for helping me
EwOkie said:
The by-name do i leave this as is or do I change this?
Thanks for helping me
Click to expand...
Click to collapse
don't change it, it seems these partition names are the same for all qualcom chipsets.
If I only wish to flash framework-res.apk what do i need to do?
Tried the build.prop script you gave and flashed with CWM then wiped cache and dalvic cache whch came up :
no sd/ext found or something
Buy says wipe complete below ...so restarted phone and build.prop still the same ?
Like its not writing to the System...
Help please
Hi M_J_Nazari, this modem updater script or not ? please help me. i'm trying to make a new fully rom. Big thanks.
ui_print("Flashing Modem ...");
package_extract_file("NON-HLOS.bin", "/dev/block/mmcblk0p1");
citymen34 said:
Hi M_J_Nazari, this modem updater script or not ? please help me. i'm trying to make a new fully rom. Big thanks.
ui_print("Flashing Modem ...");
package_extract_file("NON-HLOS.bin", "/dev/block/mmcblk0p1");
Click to expand...
Click to collapse
Not sure but I think it's better to use "by-name" reference to the block devices:
Code:
package_extract_file("NON-HLOS.bin", "/dev/block/platform/msm_sdcc.1/by-name/modem");
citymen34 said:
Hi M_J_Nazari, this modem updater script or not ? please help me. i'm trying to make a new fully rom. Big thanks.
ui_print("Flashing Modem ...");
package_extract_file("NON-HLOS.bin", "/dev/block/mmcblk0p1");
Click to expand...
Click to collapse
ladislav.heller said:
Not sure but I think it's better to use "by-name" reference to the block devices:
Code:
package_extract_file("NON-HLOS.bin", "/dev/block/platform/msm_sdcc.1/by-name/modem");
Click to expand...
Click to collapse
i didn't test the modem installing by cwm , it is very risky and maybe break your phone.
i recommend you to change modem by ODIN, just load the "NON-HLOS.bin" file into "PHONE' slot with disabling "F.Reset Time" option.
EwOkie said:
If I only wish to flash framework-res.apk what do i need to do?
Tried the build.prop script you gave and flashed with CWM then wiped cache and dalvic cache whch came up :
no sd/ext found or something
Buy says wipe complete below ...so restarted phone and build.prop still the same ?
Like its not writing to the System...
Help please
Click to expand...
Click to collapse
load system partition
copy your system dir to phone
set the 0644 permission for that.
finish.

[HELP] Can you help me with the updater script?

I am making a rom in cwm but I always get the error status of 0 , help me fill in the updater script correctly?
This is the updater script made from cygwin:
Code:
show_progress(0.1, 0);
format("MTD", "system");
mount("MTD", "system", "/system");
format("MTD", "userdata");
package_extract_dir("system", "/system");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("debuggerd", "/system/bin/csview");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/touchinput");
symlink("toolbox", "/system/bin/playback");
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_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, 0544, "/system/etc/install-recovery.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
show_progress(0.1, 10);
show_progress(0.2, 0);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
show_progress(0.2, 10);
unmount("/system");
Please i've got always status 0 D:
You should check /cache/recovery/last_log to debug
来自我的 C6902 上的 Tapatalk
This is the error
format("MTD", "system");
mount("MTD", "system", "/system");
format("MTD", "userdata");
and this
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));

Categories

Resources