[Captivate Android Development] deacfire:
Hey Guys

So one of the biggest questions I have seen in the last couple weeks since the Rogers captivate was released is how to root. I figured I would write a nice tutorial for everyone to make it easier!

Method 1: SuperOneClick

This is the easiest way, however most people have not been able to achieve root using this. Try this first if no luck move to method 2. Instructions on how to root using SuperOneClick can be found here

Method 2: Manual Root using ADB and Terminal

This one takes more time and not as easy to do as you have to do everything manually. But haven't heard of any problems with it yet

Step 1: Install <PDANet> Drivers. Just download the file and install. Select Samsung drivers. No need to actually install PDAnet on the Captivate you just need the drivers from the install. Follow the instructions with the installer to properly install the drivers.

Step 2: Download <Andriod SDK>.

- Extract the Android SDK .Zip file to C:\AndroidSDK (this should name the new folder created AndroidSDK in the C directory.

- Go to your start menu and search cmd or click run and type in cmd to open command prompt

- Type the following into command prompt, hitting enter at the end of each line

cd C:\AndroidSKD\Tools

adb devices

- You should see a serial number pop up. This is the serial number of your phone. This means ADB is set up

Step 3: Download <RageagainsttheCage Rooting Files>

- Extract them to the c:\AndroidSDK\tools\ folder. HAS TO BE IN THIS FOLDER FOR THE FOLLOWING COMMANDS TO WORK

Step 4: Unplug phone if it is plugged in. Then, on the phone, go to Settings > Applications > Development and make sure USB Debugging is Checked ON.

Step 5: Plug phone back in to computer. Make sure SD are not mounted

Step 6: Reopen Command prompt if not open. In the command prompt enter the following, pressing enter at the end of each line

cd c:\androidsdk\tools\

adb devices

adb push Superuser.apk /sdcard/

adb push su /sdcard/

adb push rageagainstthecage-arm5.bin /data/local/tmp/

adb shell chmod 0755 /data/local/tmp/rageagainstthecage-arm5.bin

Step 7: On the phone, go to Marketplace and download Terminal Emulator

Step 8: Leaving the phone plugged in, open the Terminal Emulator on the phone. Type the following, pressing enter at the end of each line

cd /data/local/tmp

./rageagainstthecage-arm5.bin

Step 9: WAIT. It will take a full minutes for the rage root to install. When finished you will see "Forked Childs". DO NOT DO ANYTHING TILL YOU SEE THIS. Terminal will allow you to type as it goes back to $ while it is installing BUUT DO NOT DO ANYTHING JUST WAIT(Cannot stress this enough)

Step 10: once "Forked Childs" appears, exit the Terminal App, and then reopen it. Instead of $ you should now see #. If not redo Step 7. Otherwise continue.

Step 11: Type the following hitting enter at the end

cat /proc/mounts

This should bring up a list (Easiest to view in landscape mode. Look for the following

/dev/block/XXXXXXXXXX /system YYYY ro 0 0 (the XXXXXXXXX part should be different depending on which device you have. The YYYY part will either be; ext2, ext3 or yaffs2 or something similar. )

My YYYY was rtf , not sure if it will be the same for everyone (though i assume it is)

Step 12: Now in the terminal window, using the info from above, enter the following, hitting enter at the end of each line (Be sure to enter spaces where needed as below)

mount -o rw,remount -t YYYY /dev/block/XXXXXXXXXX /system

cat /sdcard/Superuser.apk > /system/app/Superuser.apk

cat /sdcard/su > /system/bin/su

chmod 4755 /system/bin/su

mount -o ro,remount -t YYYY /dev/block/XXXXXXXXXX /system

exit

Step 13: Close terminal window if still open. Check your app drawer and, assuming everything was completed properly, you should see Superuser. If not redo Step 12, again watching for spaces and using the correct info from Step 11.

ACKNOWLEDGEMENTS

I, in no way shape or form, came up with the above method or tools. This method was modified from and composed from the method decribed over at Theunlockr.com for ease of use and to root the Captivate specifically. I big thanks go out to those guys!

ORINGAL LINK CAN BE FOUND HERE

WARNING

I am not responsible for any damage doone to the phone or its file system as a result of this tutorial. It is for educational purposes only. You have been warned!