Updater-Script - Sprint Samsung Galaxy S III

Hi everybody.
I built a rom that looks just like the s4.
Now I cannot upload it because when I try to test it and flash it, it gives me ERROR 0.
I know its because I need a updater script but I do from dsixda Kitchen.
If somebody can upload for me a updater script so it will work for me or tell me what to do I will really appreciate it.
THIS IS NOT A QUESTION! I WANT AN UPDATER SCRIPT OR A TUTORIAL!
Thanks ,
SAMSUNGIVANY

Didn't mean to hit Thanks, but have one on me I guess. This should lead you to what you want. Assuming you want to do it yourself
http://forum.xda-developers.com/showthread.php?p=25136413
Sent from my SGH-T889 using xda app-developers app

Sorry for late reply, I'm busy
Didn't work.
Check This Out:
http://forum.xda-developers.com/showthread.php?p=40872871#post40872871

SAMSUNGIVANY said:
Didn't work.
Check This Out:
http://forum.xda-developers.com/showthread.php?p=40872871#post40872871
Click to expand...
Click to collapse
which deviceee you have - this updater-scrpt is for note 2 n7100

SAMSUNGIVANY said:
Hi everybody.
I built a rom that looks just like the s4.
Now I cannot upload it because when I try to test it and flash it, it gives me ERROR 0.
I know its because I need a updater script but I do from dsixda Kitchen.
If somebody can upload for me a updater script so it will work for me or tell me what to do I will really appreciate it.
THIS IS NOT A QUESTION! I WANT AN UPDATER SCRIPT OR A TUTORIAL!
Thanks ,
SAMSUNGIVANY
Click to expand...
Click to collapse
send mi your updater script....
as well the update-binary from the kitchen often don´t work....
try with this update-binary

amnodaniel said:
send mi your updater script....
as well the update-binary from the kitchen often don´t work....
try with this update-binary
Click to expand...
Click to collapse
This is the one I used from that person.

I9300
mithun46 said:
which deviceee you have - this updater-scrpt is for note 2 n7100
Click to expand...
Click to collapse
I have a I9300.
Forgot to say.

deleted

SAMSUNGIVANY said:
I have a I9300.
Forgot to say.
Click to expand...
Click to collapse
dosn´t matter they have the same mount points--- this after noon i will have a look

amnodaniel said:
dosn´t matter they have the same mount points--- this after noon i will have a look
Click to expand...
Click to collapse
No they are ediffrent

mithun46 said:
No they are ediffrent
Click to expand...
Click to collapse
Thanks-- i thougth that are the same...anyway.... that it can be checked opening the boot.img and cheking on boot.img-ramdisk/fstab the mount partitions.
i´ve seen that you already send a updater script to that guy... i´m afraid that SAMSUNGIVANY doesn,t know to much.... from what i´ve seen your updater script is a good one but you should tell to SAMSUNGIVANY that shall include the simlinks to toolbox and the fallow sequency to instal the 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");
Click to expand...
Click to collapse
---------- Post added at 09:19 PM ---------- Previous post was at 09:02 PM ----------
maybe this can be usefull
i just make some small changes on the mithun46 script
show_progress(1, 80);
ui_print(" ");
ui_print(" ");
ui_print("*******************************************");
ui_print("* Welcome to Sammy-to-zip ROM Installation*");
ui_print("*******************************************");
ui_print(" ");
ui_print(" ");
ui_print("Preparing Installation...");
ui_print("Mounting Partitions...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p8", "/cache");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
ui_print("Cleaning...");
delete_recursive("/system");
delete_recursive("/cache");
delete_recursive("/data/dalvik-cache");
ui_print("Extracting New System...");
package_extract_dir("system", "/system");
ui_print("Setting Permissions...");
ui_print("@ Simlinking...");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
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/lsof");
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/md5");
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/playback");
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/touchinput");
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("dumpstate", "/system/bin/dumpcrash");
symlink("debuggerd", "/system/bin/csview");
symlink("mksh", "/system/bin/sh");
ui_print("@ Setting Permissions....");
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, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
here is missing the mounts points to flash the modem (i don´t know them on s3)
here is missing the mounts points to flash the kernel (i don´t know them on s3)
for this i need a boot.img from s3
ui_print("Installing Extra Apps...");
package_extract_dir("data", "/data");
set_perm_recursive(0, 2000, 0755, 0666, "/data/app");
package_extract_dir("sdcard", "/sdcard");
ui_print(" ");
ui_print(" ");
ui_print("=====DONE=====");
ui_print(" ");
ui_print("Produced by Mithun46 - 2013");
unmount("/cache");
unmount("/data");
unmount("/system");
Click to expand...
Click to collapse

Thnx
Thank you all for helping.
Each one of you is going to be credited.
I used One's Updater-script and One's Update Binary.
Thank you again for making a dream come true,
SAMSUNGIVANY.

Why do you put your name under there mithun ? And call it free updater script forgot to remove the alliance stuff and link the proper scripts it calls for ??

Lol, rom never got released..

hey. I was searching how can I edit updater-script, so i found this.
I ported a ROM from s2 to my s advance, but while flashing in cwm, it shows an error:
set_perm:some changes failed
(error7)
I think this was it! Can anybody help ?

szzlgupta said:
hey. I was searching how can I edit updater-script, so i found this.
I ported a ROM from s2 to my s advance, but while flashing in cwm, it shows an error:
set_perm:some changes failed
(error7)
I think this was it! Can anybody help ?
Click to expand...
Click to collapse
Pull the recovery.log from /tmp, it'll give you more detail
Usually it's because the file doesn't exist /typo

CNexus said:
Pull the recovery.log from /tmp, it'll give you more detail
Usually it's because the file doesn't exist /typo
Click to expand...
Click to collapse
There is no such file in /tmp :s

szzlgupta said:
There is no such file in /tmp :s
Click to expand...
Click to collapse
Are you sure?
Flash this, and then navigate to /tmp. It has to be there. Or else go to the Advanced menu (in CWM) > Copy recovery.log
http://forum.xda-developers.com/showthread.php?t=1646108

CNexus said:
Are you sure?
Flash this, and then navigate to /tmp. It has to be there. Or else go to the Advanced menu (in CWM) > Copy recovery.log
http://forum.xda-developers.com/showthread.php?t=1646108
Click to expand...
Click to collapse
How does it matter whether i have that file or not in cm10 which im using and is also base of the ROM. Please explain. I cant understand :/

szzlgupta said:
How does it matter whether i have that file or not in cm10 which im using and is also base of the ROM. Please explain. I cant understand :/
Click to expand...
Click to collapse
That file is created by the recovery. It's not gonna be inside your rom, but it'll tell you more detailed info about the updater-script error so you can fix it.

Related

Someone tell me if this script will work?

This is the updater-script that Dsxidas Rom Kitchen tool gives me.
I made my own Stock Rogers Rom, it will not flash.
However if I put a different script in (a Rom that does flash) it works.
I want to know why the Updater-script that the Rom kitchen tool gives me is not working.
Here it is:-
show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/mmcblk0p23");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
format("ext4", "EMMC", "/dev/block/mmcblk0p24");
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("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");
set_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"));
show_progress(0.2, 10);
unmount("/system");
Seems to be fine for me. Simply backup and flash it
Sent from my HTC EVO 3D
It might be that the mount points are a little different than that of your phone. Also, I've found that the updater binary, and the manifest have to match that of which the contents of the package that your flashing includes. But I'm no dev, so I could be wrong.
Have you tried the UOT Kitchen online?
Sent from my Nexus S 4G using Tapatalk
/system mountpoint is mmcblk0p22 and /data is mmcblk0p23. Basically you're trying to push system content in the data partition.
metamasterplay said:
/system mountpoint is mmcblk0p22 and /data is mmcblk0p23. Basically you're trying to push system content in the data partition.
Click to expand...
Click to collapse
How do i fix it, i havent modified this in anyway, this is the one that I get with Dsxidas Rom Kitchen?
Thanks for your help guys
markdexter said:
How do i fix it, i havent modified this in anyway, this is the one that I get with Dsxidas Rom Kitchen?
Thanks for your help guys
Click to expand...
Click to collapse
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
This is because the original one was not intended for this device (my guess would be it was for the CDMA counterpart of this device).
metamasterplay said:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
This is because the original one was not intended for this device (my guess would be it was for the CDMA counterpart of this device).
Click to expand...
Click to collapse
Worked like a charm!!! Thanks so much mate. Been playing around with this for a week, it was as simple as changing a '3' to a '2'!!!!
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A

[Q] help with updater script

ok when i go to install my ROM CWM says error 6 installation aborted
here is my updater script:
Code:
show_progress(0.1, 0);
mount("MTD", "system", "/system");
delete_recursive("/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("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");
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, 0644, "/system/vendor");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
show_progress(0.1, 10);
show_progress(0.2, 0);
show_progress(0.2, 10);
flash_zimage
unmount("/system");
any fix?
I'm not sure I follow your script for what the purpose of the script is.
This does not look like a rom installation script is what I mean. At least not for a stock based ROM.
tdunham said:
I'm not sure I follow your script for what the purpose of the script is.
This does not look like a rom installation script is what I mean.
Click to expand...
Click to collapse
it is i use the android kitchen
Ok gotcha. First of all, I'm not an expert on scripts and I'm not sure how much you know about the installer scripts...
That being said, the mount command does not look correct for our file system. The line:
package_extract_dir("system", "/system");
is correct but if you're installing a ROM this is not the only directory that you are working with. There are others that need to be removed and replaced with the new files as well.
Is the kitchen something that creates these scripts for you and you're just wondering why they do not work?
tdunham said:
Ok gotcha. First of all, I'm not an expert on scripts and I'm not sure how much you know about the installer scripts...
That being said, the mount command does not look correct for our file system. The line:
package_extract_dir("system", "/system");
is correct but if you're installing a ROM this is not the only directory that you are working with. There are others that need to be removed and replaced with the new files as well.
Is the kitchen something that creates these scripts for you and you're just wondering why they do not work?
Click to expand...
Click to collapse
i would like to make an updater script that works to flash and test my ROM. what else could i use to make one?
oh and the kitchen thread can be found here http://forum.xda-developers.com/showthread.php?t=1227549
jamcar said:
i would like to make an updater script that works to flash and test my ROM. what else could i use to make one?
Click to expand...
Click to collapse
The best thing to do is to download all sorts of flash files. From full ROMs, kernels, modems, assorted custom installs like themes and see how the 'pros' write their own code and determine what it is designed to do. This is the easiest way to learn is by example. I am not suggesting you steal their code but many things are standard, like mounting file systems and copy/delete/symlink commands are all standard.
But you have to be very careful because if you are flashing a rom and the partition command is not correct, you can really mess up the phone too.
---------- Post added at 10:07 PM ---------- Previous post was at 09:45 PM ----------
jamcar said:
i would like to make an updater script that works to flash and test my ROM. what else could i use to make one?
oh and the kitchen thread can be found here http://forum.xda-developers.com/showthread.php?t=1227549
Click to expand...
Click to collapse
Go by example. See how the other developers code the scripts to install their ROMs and learn what the code is and how it works. The installer script can be difficult to learn at first because it looks complicated but it actually a very basic command set that takes time and practice to comprehend properly.
Like I said, start with small scripts and learn what they do. A ROM script is exactly the same but they can be overwhelming just because they are so long.

Updater Script: All the things I need?

I'm trying to edit an Updater Script for a ROM I created, but I don't know where some things are missing. I edited Updater-/Aroma-Scripts before, but changing things for a totally different ROM is more difficult. I can install the ROM and boot, but after the bootanimation the phone reboots over and over.
Is there a rule that says which commands I need if I add specific files etc.? Currently I've those lines (without mounting etc.):
Code:
format("MTD", "system");
format("MTD", "cache");
mount("MTD", "system", "/system");
mount("MTD", "userdata", "/data");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/r");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/wipe");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/uptime");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/ctrlaltdel");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/touch");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/ln");
symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/DroidSans.ttf");
symlink("/system/fonts/Roboto-Bold.ttf","/system/fonts/DroidSans-Bold.ttf");
symlink("/factory/hdcp.keys","/system/vendor/firmware/hdcp.keys");
symlink("/data/etc/wifi/wl1271-nvs.bin","/system/etc/firmware/ti-connectivity/wl1271-nvs.bin");
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_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 0755, "/system/etc/be_movie");
set_perm(0, 0, 0755, "/system/etc/be_photo");
set_perm(0, 0, 06755, "/system/bin/su");
symlink("/system/bin/su", "/system/xbin/su");
set_perm(0, 2000, 0755, "/system/bin/sysinit");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 0777, "/system/xbin/sqlite3");
set_perm(0, 0, 0777, "/system/xbin/zipalign");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
unmount("/system");
unmount("/data");
I'm not sure about a few lines because I saw different values in other ROMs.
Code:
set_perm_recursive(0, 2000, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0 ,0 , 0755, 0755, "/system/etc/init.d");
Does it depend on the way of adding init.d support? I added it with DoomLords method:
Code:
set_perm(0, 0, 0755, "/system/xbin/busybox-installer");
run_program("/sbin/sh", "/system/xbin/busybox-installer");
delete("/system/xbin/busybox-installer");
Do I need the busybox installer or is it enough if busybox is in /system/xbin/?
Do I need to set permissions for init.d scripts (V6 SuperCharger)?
Code:
symlink("/data/etc/wifi/wl1271-nvs.bin","/system/etc/firmware/ti-connectivity/wl1271-nvs.bin");
Do I need to add this file or not? Some ROMS have it, others not, even if the installation process is the same.
I searched a lot but in nearly every topic there are only questions to specific problems. Most of the guides to the updater scripts doesn't cover the permissions and symlinking.
Do these not help?
http://forum.xda-developers.com/showthread.php?t=1345296
http://www.londatiga.net/it/how-to-create-android-update-zip-package/
Thanks, but they don't explain which symlinks I've to do or which permissions I've to set that everything works. I'm sorry, but I don't know where to start to get this knowledge. I looked into two ROMs, but they're different in terms of that. I think I've to start all over or download a third one etc. etc.
Daniel D. said:
I think I've to start all over or download a third one etc. etc.
Click to expand...
Click to collapse
Best way to learn imo.
I know, but I thought it would be easier at this point.
Thank you.
I tried it again with a script build from another ROM but I always get reboots after the bootanimation. What could that be? build.prop problems? I don't get it, I changed a few .apk's, added init.d support and the Xperia S keyboard. EVERYTHING works if I flash it manually... I can't even post an error log or something.
I looked through the files again: There are no big differences between my ROM and others. Hmm, perhaps the way I implemented init.d support. F***, I'll look after it tomorrow.
Daniel D. said:
I tried it again with a script build from another ROM but I always get reboots after the bootanimation. What could that be? build.prop problems? I don't get it, I changed a few .apk's, added init.d support and the Xperia S keyboard. EVERYTHING works if I flash it manually... I can't even post an error log or something.
I looked through the files again: There are no big differences between my ROM and others. Hmm, perhaps the way I implemented init.d support. F***, I'll look after it tomorrow.
Click to expand...
Click to collapse
you can always get logs. even in a boot-loop situation.
http://forum.xda-developers.com/showthread.php?p=18195325
i highly recommend not using someone elses scripts and making your own using dixsidias and such.
Pvy
Thanks for your answer. Most of the updater-scripts are equal except of a few things (I deleted lines that I don't need, but I don't know if there are missing lines I need ). The most annoying problem is the reboot before I can add the pin code after the first boot, everything else "works" until then.
I hope this will be another way of creating a ROM: Install the stock ROM, add the apk's and apps and tweaks that I want and pull this on my computer and try to build the ROM from these files. But: There will be the updater-scipt before! Let's see if this is problem-solving approach. I mean there are a lot of tutorials, but most of them doesn't cover the part with the updater-script as I wrote above (which symlinks do I need, which permissions do I have to set). Perhaps I've another problem than symlinking or permissions.
I'll try to get a log with your topic, but I didn't see a possibility to get it during boot!? I'll try it out...
Wow, you're a hero!! Thanks for this. I've no dbus.conf file in /system/etc/. Let's start here... Even if my original folder of .587 the file is missing.
Daniel D. said:
Thanks for your answer. Most of the updater-scripts are equal except of a few things (I deleted lines that I don't need, but I don't know if there are missing lines I need ). The most annoying problem is the reboot before I can add the pin code after the first boot, everything else "works" until then.
I hope this will be another way of creating a ROM: Install the stock ROM, add the apk's and apps and tweaks that I want and pull this on my computer and try to build the ROM from these files. But: There will be the updater-scipt before! Let's see if this is problem-solving approach. I mean there are a lot of tutorials, but most of them doesn't cover the part with the updater-script as I wrote above (which symlinks do I need, which permissions do I have to set). Perhaps I've another problem than symlinking or permissions.
I'll try to get a log with your topic, but I didn't see a possibility to get it during boot!? I'll try it out...
Wow, you're a hero!! Thanks for this. I've no dbus.conf file in /system/etc/. Let's start here... Even if my original folder of .587 the file is missing.
Click to expand...
Click to collapse
haha np,
i used to cheat to make my script.
i used to make a recovery image and copy it into dixidias kitchen and generate a updater script from that
the reason there is no tutorials as it changes with every single update and on every fone. there are common parts but they do change.
Pvy

Can't install ROM, CWM Error: Status 0. [NOT SOLVED]

Hey Guys!
i was using cywgin+dsixda kitchen with windows 7 and i used a stock firmware from samsung-updates.com to mod it, i just removed some APKs that i don't want, added my own ringtones and so...
when i tried to flash my ROM through CWM, it said
(Status 0)
Installation aborted.
Click to expand...
Click to collapse
i searched around and it seemed to be an updater-script issue, so i'll post the updater-script the one dsixda gave me.. here it is:
show_progress(0.1, 0);
format("MTD", "system");
mount("MTD", "system", "/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("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, 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(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(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"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
show_progress(0.2, 10);
unmount("/system");
Click to expand...
Click to collapse
I hope you guys help me because i really WANT to flash the ROM i modded, Thanks in Advance!
Muhammad Essam said:
Hey Guys!
i was using cywgin+dsixda kitchen with windows 7 and i used a stock firmware from samsung-updates.com to mod it, i just removed some APKs that i don't want, added my own ringtones and so...
when i tried to flash my ROM through CWM, it said
i searched around and it seemed to be an updater-script issue, so i'll post the updater-script the one dsixda gave me.. here it is:
I hope you guys help me because i really WANT to flash the ROM i modded, Thanks in Advance!
Click to expand...
Click to collapse
u need to use kitchen compatibility file made by k2wl ,, search in grand's general section "how to make own custom rom" by k2wl,, and dont use dev forum to get more attention ,, use question answer section..
Okay I will look for that after I finish my school.
please post the questions in seperate section...and yes you need the compatibility file by me...search thread by me in general section for making a rom.
by the way i am pointing out your cause of error .
our device uses emmc partitions and not mtd.
k2wl said:
please post the questions in seperate section...and yes you need the compatibility file by me...search thread by me in general section for making a rom.
by the way i am pointing out your cause of error .
our device uses emmc partitions and not mtd.
Click to expand...
Click to collapse
Thanks a lot! It worked and managed to the custom ROM flashed! ^_^
And sorry guys for posting this in the wrong section, I really didn't know where would I post this. Thanks again
So sorry for this..
Guys i'm sorry to reopen this thread, but the same error is still coming up in CWM.. even after making the correct updater-script.. any help?
Muhammad Essam said:
Guys i'm sorry to reopen this thread, but the same error is still coming up in CWM.. even after making the correct updater-script.. any help?
Click to expand...
Click to collapse
did you used the compatibility file i uploaded in the kitchen???
or do u only edited the updater-script manually???
Also when i showed the log in CWM, it said:
I : Can't format unknown volume: /external_sd
I : can't format unknown volume: /emmc
Click to expand...
Click to collapse
No i didn't modify it manually, i let the kitchen built it after putting "baffin" compatibility file in "kitchen\tools\edify_defs"
have you tried making rom in linux??? using exact same procedure i described in thread???
No, i didn't, i'm not sure about using another OS than Windows :/ if there is a way to use Linux inside windows, then i'll give it a try..
read the thread carefully...you can install linux inside windows using wubi +ubuntu.
i will try, one more little question, will this fix the updater-script?
Muhammad Essam said:
i will try, one more little question, will this fix the updater-script?
Click to expand...
Click to collapse
may be it will fix because sometimes the cygwin corrupt the file system of the rom so i always prefer linux.
Okay, i'll go ahead and try the kitchen in Linux, hopefully it will work, Thanks a lot K2wl for your help!

[Q] Status 7 error while trying to install StockMOD rom 4.3

I have a SGH-i747 and have been trying to install This ROM(StockMODCustomROM4.3RLS2.1). I'm currently running the latest 6.0.4.7 cwm recovery, and I have also already tried to remove asserts from the updater-script but there wasnt any.
This is what the updater-script file says:
show_progress(1.0, 6000);
ui_print(" ");
ui_print("Installing ROM Update... ");
format("ext4", "EMMC", "/dev/block/mmcblk0p14");
mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/system");
package_extract_dir("system", "/system");
ui_print(" 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");
ui_print(" Setting Permissions");
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(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, 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/hw");
set_perm(0, 0, 0711, "/system/bin/.ext");
set_perm(0, 0, 0755, "/system/bin/.ext/.su");
set_perm(0, 0, 0755, "/system/xbin/su");
set_perm(0, 0, 0755, "/system/xbin/daemonsu");
set_perm(0, 0, 0755, "/system/etc/install-recovery.sh");
set_perm(0, 0, 0644, "/system/etc/.has_su_daemon");
set_perm(0, 0, 0644, "/system/etc/.installed_su_daemon");
set_perm(0, 0, 04755, "/system/xbin/run-parts");
set_perm(0, 0, 04755, "/system/xbin/bash");
set_perm(0, 0, 04755, "/system/xbin/sqlite3");
package_extract_file("boot.img", "/dev/block/mmcblk0p7");
symlink("/system/xbin/busybox", "/system/bin/busybox");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
ui_print(" Installing Busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("Finished Installing. ");
ui_print("First boot may take a while...");
ui_print("Please be patient and wait ");
ui_print(" ");
ui_print(" ");
ui_print("================================================");
ui_print(" Enjoy! And remember to visit us on xda ");
ui_print(" Share your experiences with us as well! ");
ui_print(" ");
ui_print(" -Team Inferno- ");
ui_print("================================================");
ui_print(" ");
ui_print(" ");
unmount("/system");
Are you on a 4.3 bootloader and modem?
Possibly same problem, more detail
Posting here because I'm not allowed to post to the thread for the ROM.
EDIT: I have an SGH-I747 which was, before I started, running OTA 4.3. I installed both Clockworkmod 6.0.4.7 and TWRP 2.7.0.0, as well as ROM Manager. It occurs to me that I didn't try using TWRP to do the install, just CWM. I did flash I747UCUEMJB Modem even though I probably didn't need to, since I was already running UCUEMJB, and I did the "wipe data/factory reset" and "wipe cache partition" steps in CWM.
EDIT2: I tried flashing the ROM again with TWRP and that seems to have done the trick.
Slade420 said:
I have a SGH-i747 and have been trying to install This ROM(StockMODCustomROM4.3RLS2.1). I'm currently running the latest 6.0.4.7 cwm recovery, and I have also already tried to remove asserts from the updater-script but there wasnt any.
This is what the updater-script file says:
show_progress(1.0, 6000);
ui_print(" ");
ui_print("Installing ROM Update... ");
format("ext4", "EMMC", "/dev/block/mmcblk0p14"); <--this is the culprit, I think
{ big snip of uninteresting script }
unmount("/system");
Click to expand...
Click to collapse
OP should note that RLS2.1 is not supposed to be standalone, it is supposed to be installed over RLS2. I had a similar error attempting to install RLS2.
OP should also note that there was probably additional information in his error message, which would have been useful to include.
The error message I got was that format() expects 5 args, got 3.
I did some looking for a reference to the scripting language. I found that it's called edify, and saw many guides and explanations, but nothing resembling a programmer's reference, and not really anything that a competent UNIX programmer wouldn't be able to guess by inspection. I did find some examples where format() is called with 5 args, and was tempted to just edit the script so that the line would be
Code:
format("ext4", "EMMC", "/dev/block/mmcblk0p14", "system", 0);
but chickened out, this being my first attempt to flash a ROM.
Evidently many people have been able to install these ROMs without this problem: how is it possible that something as basic as the required number of arguments to a filesystem formatting command could vary from device to device?
How should I proceed, if I want to get this installed?

Categories

Resources