[Click Android Development] shazarul:
Firstly i did not do this guide. it took it from this forum and just compile so that newbie like me can easily root their tattoo.....

ROOTING TATTOO

Download the ZIP file attached to this post. Extract the files to a safe location - perhaps C:\Tattoo ?

Now, you'll need adb for windows. You can get it from COBURN website's server here: ADB for windows.

Make sure your device is in USB Debug Mode (Settings > Applications > Development).

Extract all the files in the adb4win zip file to your C:\Tattoo folder.

Now, go to Command Prompt. In XP, it's under System Tools in Accessories. In Vista/7, it'll be under accessories.

Do the following at the command line:

C:\Users\Coburn> cd C:\Tattoo

Then you will get this C:\Tattoo

Next type in this:

C:\Tattoo> adb-windows shell "mkdir /data/local/bin" (with the quotes!).

If you get a error (like mkdir failed, file/folder exists), this is fine!

just means that the folder already exists in your phone

Now, run this command:

C:\Tattoo> adb-windows push m7 /data/local/bin/m7

this will just take a few seconds

Run this:

C:\Tattoo> adb-windows shell "cd /data/local/bin && chmod 755 ./m7" (with the quotes!)

This allows you to run the sucker. Looks like something nothing happen but it did something.

C:\Tattoo> adb-windows shell

This will dump you at a "$" shell. do the following:

C:\Tattoo> adb-windows shell

$ cd /data/local/bin

$ while ./m7 ; do : ; done

...lotsa text will flow down your screen. This is normal.

Soon, you'll be greeted with this:

#

This is the root prompt! If you get stuff like this:

# usage: reboot ...

usage: reboot ....

usage: reboot ...

Just keep your cool, press enter and the # will pop again. This is due the exploit spawning reboots to gain the shell.

Next type in this:

export LD_LIBRARY_PATH=/system/lib

export PATH=/system/bin

Check if u have root, type:

id

you will get

# id

uid=0(root) gid=1000(shell) groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet)

The uid=0(root) is important, so call your phone is root.

REMOUNT PARTITION (SU)

Now you need to install su. Exit your root shell (via CTRL+C) and download this su.zip and extract it to C:\Tattoo.

DO NOT EXIT THE COMMAND PROMPT WINDOW.

in your command prompt window, do this:

C:\Tattoo> adb-windows push su /data/local/bin/su

Then break out a shell...

C:\Tattoo> adb-windows shell

at the $ prompt, enter:

$ chmod 755 /data/local/bin/su

$ cd /data/local/bin/

$ while 'true' ; do ./m7 ; done

It will change from $ to #

Type in this:

export LD_LIBRARY_PATH=/system/lib

export PATH=/system/bin

Next type in this:

# chown root.root /data/local/bin/su

# chmod 4755 /data/local/bin/su

# mount -o rw,remount /dev/block/mtdblock5 /data

# mount -o rw,remount /dev/block/mtdblock3 /system

After that, you can exit out of the root shell, and try a normal shell and this:

$ /data/local/bin/su

...which should make you get a nice # prompt.

Custom Boot.img:

Boot img v2:http://xdaforums.com/show...0&postcount=38

Tattoo-hack.ko:http://xdaforums.com/atta...2&d=1266670581

Download this flash_image:http://xdaforums.com/attachment.php?attachmentid=287463&d=1267386499

adb push flash_image ./data/local/bin/flash_image

adb push Mainfram3.boot.02.img /sdcard/Mainfram3.boot.02.img

adb push tattoo-hack.ko ./data/local/bin/tattoo-hack.ko

c:\tattoo>adb shell

$ su

su

su: access granted, courtesy of www.magicandroidapps.com

# insmod /data/local/bin/tattoo-hack.ko

#mount -o rw,remount /dev/block/mtdblock5 /data

#mount -o rw,remount /dev/block/mtdblock3 /system

#chmod 755 /data/local/bin/flash_image

#/data/local/bin/flash_image boot /sdcard/Mainfram3.boot.02.img

Cutom Recovery Img:

After custom boot.img

adb push TCRI.alpha.img /sdcard/TCRI.alpha.img

c:\tattoo>adb shell

#/data/local/bin/flash_image recovery /sdcard/TCRI.alpha.img

once again i did not make the guide...i only compile it from different thread and put them as 1....tats all....thanks to all the devs that came up with the guide.....