[Q][SoLvEd] ROM made from kitchen won't flash - HTC EVO 3D

Hi all!
I made an EVO 3D GSM rom(zip rom),using dsixda's Android Kitchen.
Kitchen thread:http://forum.xda-developers.com/showthread.php?t=633246
But when I was flashing this zip file with recovery, an error occured.
Error message is something like this:
Code:
Installing: /sdcard/rom.zip
Finding update package...
Opening update package...
Installing update...
E:Error in /sdcard/rom.zip
(Status 0)
Installation aborted.
System environment:
dsixda's Android Kitchen
Cygwin, Java 6 SDK
Windows XP Pro / Windows 7 Pro
I followed the kitchen's instruction with the following steps:
zipaligne apks,
add updater-script to rom,
sign rom. (I did not even add root permission nor deodex apks.)
Then the kitchen generated a zip file.
I renamed it with "rom.zip", put it into sdcard and flashed it.
...
Then error occured:
Code:
Installing: /sdcard/rom.zip
Finding update package...
Opening update package...
Installing update...
E:Error in /sdcard/rom.zip
(Status 0)
Installation aborted.
More details:
system.img and boot.img are taken from shipped RUU rom,
recovery version: 4EXT Recovery 2.27,
device unlocked and s-off.
Any guys could help me with it?
Thank you very!
=====================================================
Get it solved(in a compromising way).
After searching forum for hours, I found these two threads:
http://forum.xda-developers.com/showthread.php?t=1197315
http://forum.xda-developers.com/showthread.php?t=1437936
Then I guess there is sth wrong with update-binary.
So I copied a working update-binary file from other evo 3d rom.
And I modified udpater-script for some syntax changes.
Then it worked.
udpater-script code:
Code:
#Updater-script
#For HTC EVO 3D
show_progress(0.500000, 0);
ui_print("-Checking Model ID");
assert(getprop("ro.product.device") == "shooteru" || getprop("ro.build.product") == "shooteru" || getprop("ro.product.board") == "shooteru");
ui_print("-Success!");
ui_print("-Model ID - HTC shooter");
ui_print("-Ok to proceed");
ui_print("Now flashing ROM");
ui_print("Please be patient");
ui_print("1st boot may take a few minutes");
ifelse(is_mounted("/system") == "/system", unmount("/system"));
ifelse(is_mounted("/data") == "/data", unmount("/data"));
show_progress(0.500000, 40);
ui_print("-Writing Data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/data");
package_extract_dir("data", "/data");
ui_print("-Formatting System as EXT4");
format("ext4", "EMMC", "/dev/block/mmcblk0p22");
ui_print("-Writing System");
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
package_extract_dir("system", "/system");
show_progress(0.400000, 0);
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("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");
ui_print("-Setting permissions");
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(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");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
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"));
ui_print("-Cleaning up");
ui_print("-Formatting Cache");
unmount("/cache");
format("ext4", "EMMC", "/dev/block/mmcblk0p24");
ui_print("-Deleting Dalvik-Cache");
delete_recursive("/data/dalvik-cache");
delete("/data/.battery-calibrated");
delete_recursive("/data/data/com.noshufou.su");
delete_recursive("/data/system/appusagestats");
delete_recursive("/data/system/dropbox");
delete_recursive("/data/system/usagestats");
show_progress(0.100000, 0);
ui_print(" ");
ui_print("-Flashing Complete");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("-Please ensure you");
ui_print("-complete at least 1 full boot");
ui_print("-prior to flashing any themes");
ui_print(" ");
show_progress(0.100000, 0);
ui_print(" ");
unmount("/data");
unmount("/system");
This script is mainly written by someone else, I just modified it with some minor changes.
And I wanna say THANKS to the author, though I don't know who you are.

Thanks man

Related

Problem with updater-scripts

When some people flash my ROM they get no signal after first boot and certain things don't work right. Manually mounting /system after wiping and before installing my ROM seems to prevent this from happening. I've tried a couple different update-binaries with no luck. My scripts don't seem any different from other cooks scripts that never fail.
Here's my current script. Any help would be much appreciated.
Code:
show_progress(0.1, 0);
mount("MTD","userdata","/data");
format("MTD", "system");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/chownto");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/wipe");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/ifconfig");
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(0, 0, 04755, "/system/bin/bash");
symlink("/system/bin/bash", "/system/bin/sh");
set_perm(0, 0, 04755, "/system/bin/sysrw");
set_perm(0, 0, 04755, "/system/bin/sysro");
set_perm(0, 0, 04755, "/system/bin/nano");
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");
show_progress(0.1, 10);
show_progress(0.2, 0);
set_perm(0, 1000, 0755, "/system/xbin/busybox");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
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");
unmount("/data");
I had similar problems with my ROM until I changed the mounts and format to this. For some reason they don't work well with CWM V3. Not sure what ROM you are building so you will need to change the /dev/block/ to your mount points. These are for the HTC Incredible
Code:
run_program("/sbin/mount", "/dev/block/mtdblock3", "/system");
run_program("/sbin/mount", "/dev/block/mmcblk0p1", "/data");
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/cache");
ui_print("Removing Old System...");
delete_recursive("/system");
delete_recursive("/cache");
delete_recursive("/data/dalvik-cache/");
NilsP said:
I had similar problems with my ROM until I changed the mounts and format to this. For some reason they don't work well with CWM V3. Not sure what ROM you are building so you will need to change the /dev/block/ to your mount points. These are for the HTC Incredible
Code:
run_program("/sbin/mount", "/dev/block/mtdblock3", "/system");
run_program("/sbin/mount", "/dev/block/mmcblk0p1", "/data");
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/cache");
ui_print("Removing Old System...");
delete_recursive("/system");
delete_recursive("/cache");
delete_recursive("/data/dalvik-cache/");
Click to expand...
Click to collapse
It's a Gingerbread Sense ROM for the Desire HD, so yeah, using CWR v3. I made new scripts with the latest version of dsixda's kitchen which look like this and seem to be much more reliable:
Code:
format("ext3", "EMMC", "/dev/block/mmcblk0p25");
mount("ext3", "EMMC", "/dev/block/mmcblk0p25", "/system");
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");
mount("ext3", "EMMC", "/dev/block/mmcblk0p26", "/data");
...
unmount("/system");
unmount("/data");
I'm kind of a dummy when it comes to file systems and mounting. Even though it seems to be working now, if you notice anything inherently wrong with my new way of mounting and formatting please let me know. I'm a bit curious about whether my script should be mounting/formatting as ext3 or ext4. The build.prop actually has a line that reads "ro.ext4fs = 1", but we only have leaked Gingerbread kernels with no source so I don't know what's going on in there.

[Q] Help with first ROM build

I am having problems using The kitchen to build a rom for my
Ainol Novo 7 Basic running 4.0.3
I realize the MIPS processor may cut down on the amount of advice I get. But, any is greatly appreciated as this is my first foray into cooking...
Took the boot.img and system.img from a stock update.zip.
Modded the files a little. i.e changed the su, superuser.apk, and busybox to the mips compiled versions.
changed the write raw image for the boot.img to a flash image update because the CWM we have doesn't like write raw image.
ah, here is the updater
Code:
show_progress(0.1, 0);
ui_print(" Extracting TEMP Files...");
package_extract_dir("tmp", "/tmp");
set_perm(0, 0, 0777, "/tmp/inand_flash_image");
ui_print(" Clearing System...");
format("ext4", "system", "/dev/block/mmcblk0p1", "/system");
ui_print(" Mounting SYSTEM...");
mount("ext4", "system", "/dev/block/mmcblk0p1", "/system");
set_progress(0.140000);
ui_print(" Clearing Data...");
format("ext4", "data", "/dev/block/mmcblk0p2", "/data");
ui_print(" Mounting DATA...");
mount("ext4", "data", "/dev/block/mmcblk0p2", "/data");
set_progress(0.280000);
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");
ui_print(" Extracting files to DATA...");
package_extract_dir("data", "/data");
set_progress(0.350000);
set_perm(2000, 2000, 0771, "/data/local");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
ui_print(" Extracting files to SYSTEM...");
package_extract_dir("system", "/system");
set_progress(0.210000);
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/r");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/start");
symlink("readbattery", "/system/bin/creat_curve");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/date");
symlink("readbattery", "/system/bin/update_curve");
symlink("toolbox", "/system/bin/wipe");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/getpartionblkcount");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/top");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/touch");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/ls");
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(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, 04755, "/system/bin/bash");
symlink("/system/bin/bash", "/system/bin/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");
show_progress(0.1, 10);
show_progress(0.2, 0);
ui_print(" Flashing BOOT...");
run_program("/tmp/inand_flash_image", "boot", "/tmp/boot.img");
ui_print(" Flashing XBOOT...");
run_program("/tmp/inand_flash_image", "xboot", "/tmp/mbr-xboot.bin");
show_progress(0.2, 10);
unmount("/system");
unmount("/data");
anways, it flashes alright but, i have a few issues.
1. The root is broken. root check shows root access is not properly configured or was not granted. SU binary not found in the system declared PATH. and busybox is not found in the system declared PATH.
they are both in /system/bin and there is a symlink for su to /xbin/
2. Wi-Fi is not connecting to ANY signals. just gets stuck obtaining IP.
I believe this may be a permissions error somewhere, but, i can't seem to find any info...
Thanks for reading and even more if any of you have any insight!
masterjakeway said:
1. The root is broken. root check shows root access is not properly configured or was not granted. SU binary not found in the system declared PATH. and busybox is not found in the system declared PATH.
they are both in /system/bin and there is a symlink for su to /xbin/
2. Wi-Fi is not connecting to ANY signals. just gets stuck obtaining IP.
Click to expand...
Click to collapse
1. don't use kitchen, there are just a few changes, very easy to make manually
2. wifi is broken because of CWM, you have to reflash another properly made and signed update _twice_ to make it work.
here's my repack of latest firmware from 2012.02.28:
NOVO7B_update_4.0.3_20120228_repack-signed.zip (191159519 bytes) or RapidShare mirror
MD5: 45e2322563032869e040bd67f463159f
1. added Superuser v3.0.7 -- root access should be available right after update.
2. default language -- english.
3. deleted chinese IME and software.
4. no CWM required for update, should reflash well with original recovery.

Help to fix updater-script error status 6

Hi,
I'm trying to flash my own rom (mtk6589 device) but I get status 6 error on CWM each time I try to flash it.
Here is my updater-script, Does anyone see where is the mistake?
Code:
show_progress(0.950000, 50);
format("ext4", "EMMC", "/dev/block/mmcblk0p5", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system");
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");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/data");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("system", "/system");
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/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");
package_extract_dir("system_new", "/system");
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, 2000, 04755, "/system/bin/aee");
set_perm(0, 2000, 04755, "/system/bin/check_ota");
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(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, 04755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
symlink("/system/xbin/busybox", "/system/bin/busybox");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/hw");
set_perm(0, 0, 0644, "/system/vendor/lib/hw/gralloc.mt6573.so");
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");
set_perm(0, 0, 0755, "/system/etc/install-recovery.sh");
show_progress(0.050000, 1);
format("ext4", "EMMC", "/cache", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p6", "/cache");
delete_recursive("/data/dalvik-cache");
package_extract_file("boot.img", "/tmp/boot.img");
write_raw_image("/tmp/boot.img", "bootimg");
delete("/tmp/boot.img"));
unmount("/system");
unmount("/cache");
unmount("/data");
Thanks in advance
Ok u firstly need to edit the updater script using notepad++.
There at the top u go to edit > EOL conversions > Select UNIX
PACK all and now flash it,if any error then rush to xda and hit keyboard buttons to send me message!!
SENT FROM MONSTER ! ! !
HIT THANX OR I WILL JUST XXXX
sanjaykumar.sanjay69 said:
Ok u firstly need to edit the updater script using notepad++.
There at the top u go to edit > EOL conversions > Select UNIX
PACK all and now flash it,if any error then rush to xda and hit keyboard buttons to send me message!!
SENT FROM MONSTER ! ! !
HIT THANX OR I WILL JUST XXXX
Click to expand...
Click to collapse
I try this solution with conversion to UNIX, but after I flash zip file the process aborted. Are there any idea for this problem?
d4ncyb3r said:
I try this solution with conversion to UNIX, but after I flash zip file the process aborted. Are there any idea for this problem?
Click to expand...
Click to collapse
When you repack,make sure the "store" option is chosen or it wont flash,you dont want the zip file compressed.Its best to just extract the updater script,do your edits,then backup the original updater script and delete it,then drag and drop the newly edited version back into the folder.
What phone are you on and are you partitioned to ext.4?
Diablo67 said:
When you repack,make sure the "store" option is chosen or it wont flash,you dont want the zip file compressed.Its best to just extract the updater script,do your edits,then backup the original updater script and delete it,then drag and drop the newly edited version back into the folder.
What phone are you on and are you partitioned to ext.4?
Click to expand...
Click to collapse
I'm using Xperia SL so for updater script I must using original one from the firmware and edited using notepad++, is true this way?
What do you mean with ext.4? this is my 2 first line in the script with ext.4
///////////////////////////////////////////////////////////////////////
format("ext4", "EMMC", "/dev/block/mmcblk0p12");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system"); "0 /system/
package_extract_dir("system", "/system");
//////////////////////////////////////////////////////////////////////
d4ncyb3r said:
I'm using Xperia SL so for updater script I must using original one from the firmware and edited using notepad++, is true this way?
What do you mean with ext.4? this is my 2 first line in the script with ext.4
///////////////////////////////////////////////////////////////////////
format("ext4", "EMMC", "/dev/block/mmcblk0p12");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system"); "0 /system/
package_extract_dir("system", "/system");
//////////////////////////////////////////////////////////////////////
Click to expand...
Click to collapse
Try this... http://forum.xda-developers.com/showthread.php?t=2066565
Use TWRP
titooo7 said:
Hi,
I'm trying to flash my own rom (mtk6589 device) but I get status 6 error on CWM each time I try to flash it.
Here is my updater-script, Does anyone see where is the mistake?
Code:
show_progress(0.950000, 50);
format("ext4", "EMMC", "/dev/block/mmcblk0p5", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system");
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");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/data");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("system", "/system");
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/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");
package_extract_dir("system_new", "/system");
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, 2000, 04755, "/system/bin/aee");
set_perm(0, 2000, 04755, "/system/bin/check_ota");
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(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, 04755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
symlink("/system/xbin/busybox", "/system/bin/busybox");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/hw");
set_perm(0, 0, 0644, "/system/vendor/lib/hw/gralloc.mt6573.so");
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");
set_perm(0, 0, 0755, "/system/etc/install-recovery.sh");
show_progress(0.050000, 1);
format("ext4", "EMMC", "/cache", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p6", "/cache");
delete_recursive("/data/dalvik-cache");
package_extract_file("boot.img", "/tmp/boot.img");
write_raw_image("/tmp/boot.img", "bootimg");
delete("/tmp/boot.img"));
unmount("/system");
unmount("/cache");
unmount("/data");
Thanks in advance
Click to expand...
Click to collapse
Use TWRP for better service
DevSkilled said:
Use TWRP for better service
Click to expand...
Click to collapse
Do you even know if there is a TWRP version for his device? And I love TWRP, but it's not always the best solution as some devices have better support for CWM and often means it works better for those cases.
As far as the updater-script, open another known working rom for your phone and grab the updater-script for it and use NotePad++ with this plug-in:
http://sourceforge.net/projects/npp-compare/
and see if you can find the differences, or, if based off the same update, you might just be able to use the other rom's script. Just use 7zip to open the roms as archives so you can extract and copy files back and forth without needing to extract and recompress everything correctly.
In some case CWM fails Then better to use TWRP
es0tericcha0s said:
Do you even know if there is a TWRP version for his device? And I love TWRP, but it's not always the best solution as some devices have better support for CWM and often means it works better for those cases.
As far as the updater-script, open another known working rom for your phone and grab the updater-script for it and use NotePad++ with this plug-in:
http://sourceforge.net/projects/npp-compare/
and see if you can find the differences, or, if based off the same update, you might just be able to use the other rom's script. Just use 7zip to open the roms as archives so you can extract and copy files back and forth without needing to extract and recompress everything correctly.
Click to expand...
Click to collapse
You can compile TWRP for your Device its better to check your Updater-Script first
What is error 11 in updater script can anyone please help me....

[Q] Symlink error with cwm while flashing my cutsom rom

Hello
i made my custom rom and root it !
I’ve flashed before and worked
know when i unpacked it with dsixda kitchen and repack it i had symlink error !!
here is my updater script + l the last rom before i packed it didnt work too !! l
ui_print("--------Xperian V1--------");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("Xperian Rom V1");
ui_print(" ");
ui_print("By Abo Hani");
ui_print(" ");
ui_print("Bugs Report on xda account by pm");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("dont forget to press thanks");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" fb/abo.hani9999");
ui_print("fb/thinkandroid");
assert(getprop("ro.product.device") == "LT26i" || getprop("ro.build.product") == "LT26i" ||
getprop("ro.product.device") == "nozomi" || getprop("ro.build.product") == "nozomi");
show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/mmcblk0p12", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
package_extract_dir("system", "/system");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/vmstat");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/wipe");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/ctrlaltdel");
symlink("toolbox", "/system/bin/touch");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/lsusb");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/md5");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/umount");
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, 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");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 0644, "/system/app/Superuser.apk");
symlink("/system/xbin/su", "/system/bin/su");
show_progress(0.1, 10);
show_progress(0.2, 0);
show_progress(0.2, 10);
unmount("/system");
package_extract_file("boot.img", "/dev/block/mmcblk0p3");
format("ext4", "EMMC", "/dev/block/mmcblk0p14", "0", "/data");
format("ext4", "EMMC", "/dev/block/mmcblk0p13", "0", "/cache");
Click to expand...
Click to collapse

[Solved] Help with updater script

Hi,
I was trying to modify the Samsung Galaxy Young - S6312 rom in the kitchen (Android 4.1.2 JB).
I did the basic changes (root, busybox etc) and flashed it.
While flashing, I accidentally wrote the partition number wrong for boot mount and it resulted in hard brick.
Well, I am getting the phone back today from the service centre, and was wondering if anyone would take a look at the updater script, so I dont brick it again.
I corrected the mount points, to the best of my knowledge. But could you please check that and any other errors it might have?
That would be a great help.
The updater script is:
Code:
show_progress(0.1, 0);
ui_print("");
ui_print("");
ui_print("Please Wait... ");
ui_print("");
format("ext4", "EMMC", "/dev/block/mmcblk0p21");
mount("ext4", "EMMC", "/dev/block/mmcblk0p21", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/data");
delete("/data/local");
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");
package_extract_dir("data", "/data");
set_perm(2000, 2000, 0771, "/data/local");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
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("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");
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_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");
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"),
ui_print("Flashing Boot.img...");
package_extract_file("boot.img", "/dev/block/mmcblk0p8");
ui_print("Kernel image flashed...");
ui_print(" ");
delete("/tmp/boot.img"));
ui_print("Almost Done... ");
show_progress(0.2, 10);
unmount("/system");
unmount("/data");
The other files (update binary, recovery.fstab) for reference are in the attachment.
Thanks in advance.
Anybody? Please Help!
(Bumping because its moved in new thread now)
bullonwheels said:
Anybody? Please Help!
(Bumping because its moved in new thread now)
Click to expand...
Click to collapse
Assuming your mount points are correct, I don't see anything that would cause a brick.
Slithering from the nether regions of a twisted mind and tarnished soul
Thanks. I'll give it a try.
Stryke_the_Orc said:
Assuming your mount points are correct, I don't see anything that would cause a brick.
Slithering from the nether regions of a twisted mind and tarnished soul
Click to expand...
Click to collapse
bullonwheels said:
Thanks. I'll give it a try.
Click to expand...
Click to collapse
I'm assuming that all is well?
Stryke_the_Orc said:
I'm assuming that all is well?
Click to expand...
Click to collapse
Yes. I just changed the syntax from
Code:
write_raw_image("tmp/boot.img","boot")
to
Code:
package_extract_file("boot.img", "/dev/block/mmcblk0p8");
and everything went fine.
Sorry for not giving the feedback earlier.
bullonwheels said:
Yes. I just changed the syntax from
Code:
write_raw_image("tmp/boot.img","boot")
to
Code:
package_extract_file("boot.img", "/dev/block/mmcblk0p8");
and everything went fine.
Sorry for not giving the feedback earlier.
Click to expand...
Click to collapse
Should work fine, but should extract to /tmp/ and write raw image, assuming you have the correct partition.

Categories

Resources