[HTC Amaze 4G] ringochan:
I am not sure if someone else has posted this already. But I couldn't find one, so here you go. (Please let me know if I'm mistaken:p)

I made two small edits to the boot.img of the stock (leaked) ICS rom in order to satisfy my needs:

1. ability to run init.d scripts,

2. start adb in root.

They are very simple and anyone with a little knowledge can do it himself, but it still is convenient to have someone else do it, isn't it? I, for one, searched the forum in vein.

Here's a short explanation of what it is, and how to utilize the features.

1. init.d :

You can place your own shell scripts in /etc/init.d (you have to create the directory yourself, of course) and run them at boot time. If you prefer the CM style userinit.d, you could create a script like:

#!/system/bin/sh
# call userinit.sh and/or userinit.d/* scripts if present in /data/local

if [ -e /data/local/userinit.sh ];
then
log -p i -t
userinit "Executing /data/local/userinit.sh";
logwrapper
/system/bin/sh /data/local/userinit.sh;
setprop
fi;

if [ -d /data/local/userinit.d ];
then
logwrapper busybox
run-parts /data/local/userinit.d;
fi;

and place it in init.d (credit: CM team). After that, you can place additional scripts without remounting system partition. Just don't forget to chmod appropriately.

A word of caution: Don't go wild and install all those tweaks found in other forums without checking to see their contents. I found that most of them to be either irrelevant or even harmful to the Amaze. Remeber, we've got one of the best phones on the market and wouldn't want to ruin it by running tweaks designed for our 'lessor' siblings!

2. adb root :

I was getting tired of the inability to adb push files to user restricted directories. Also, I use Droid Explorer a lot, but was tired of its inability to obtain root even though my phone is rooted. So I basically changed the default.prop and everything is fine now.

Added benefit is that 'adb remount' works now.

Well, that's it. Too simple, but until someone comes up with a nice kernel with these mods built in, we got to live with what's available.

DISCLAIMER : Should I even include a disclaimer? Why not? This is just a stock boot.img with minor modifications to its ramdisk portion, and it shouldn't harm your phone. If it doesn't work, simply reflash the stock boot.img found in the stock/leaked ICS roms. However, I don't want anyone to brick his phone, so don't flash this unless you know what you are doing. Also, I've seen some people bricking their phones merely by trying to flash innocent files like this one. Hard to believe, but anything can happen, so I will not be responsible if you brick your phone.

INSTRUCTIONS :

0. be sure you got the ICS build 4.0.3 with the stock kernel. rooted and have installed busybox (for init.d support only).

1. download the attached boot.img.

2. place the file where adb/fastboot can find it.

3. flash it using 'fastboot flash boot boot_new.img.

4. reboot.

5. try 'adb shell' and see if you get # prompt.

6. add some scripts in /etc/init.d and reboot and see if it runs.

It runs on my Amaze running the newer leaked ICS rom (unlocked bootloader, rooted, and busybox from the market). If you have any other settings, it probably won't do any good.

That's it, guys. Hope you have some fun with it (like I did;)).