ROOTING the Galaxy Tab

Posted on January 23, 2011

9


Rooting :

WHY root ??
Rooting is the process of flashing the phone‘s memory to run  customized software to obtain root access which is only reserved for authorized system developers. Root access means one can now have complete control of the system allowing one to do numerous tasks which an ordinary user cannot , example :

– install special apps that required root access  and need more control over the system , example screenshot and full back up apps
– alter system files
– able to remove built in  supplied apps and system apps ( remove this only if you know what you are doing )
– create a bootloader and install a recovery program so that one can fully backup ( Nandroid )  and  restore the TAB’s software and all the installed apps and data
– change boot animations
– relocate apps ( except widgets and system apps ) to SD card
– flash 3rd party roms

If your TAB is in its original official state, Method 1 will most probably work. If not, try Method 2. For some reasons unknown , some users had difficult rooting their TAB. In such cases, one could try Method 3.
Method 3 is only for the more experienced user as it involves issuing commands from Terminal. I have not tried Method 3 and is posted for those who have problems with Methods 1 and 2.

1. EASIEST METHOD : Using z4root

– Download z4root and install from forum XDA
– Enable USB debugging on the Tab : Press  Menu button then select  Settings -> Applications -> Development -> USB debugging
– Launch  z4root and press the “Root” button

The Tab will then  restarts. Select Menu – you will see a new app ” Superuser” showing a successful rooting process . Or launch z4root again and you will see the following :

2. TEDIOUS  WAY : Using SuperOneClick ver 1.5.5

– Download KIES Software  ver 2.0 from  http://www.samsung.com/in/support/download/supportGlobalDownloadPrdDetail.do

– Enable USB debugging on the Tab : Press  Menu button then select  Settings -> Applications -> Development -> USB debugging
– Download SuperOnceClick from : http://forum.xda-developers.com/showthread.php?t=803682

STEPS :
1) On TAB , disable USB debugging mode at  Settings>Applications>Development>USB Debugging
2) Connect TAB to PC and launch KIES and sync once
3) Disconnect TAB  and enable debugging mode at Settings>Applications>Development>USB Debugging
4) Connect the TAB again to PC and click on home button so that Tab comes out of Kies connection
5) Launch SuperOneClick.exe
5) Click on root and wait for 5-10 Mins

A Youtube video from Unlockr.com about this process – similar though is on a different phone

3. MOST TEDIOUS and COMPLICATE WAY : details are at Using Universal Android Rooting reproduced below

1. Setup ADB/USB Device drivers for Android :

http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/

2. Followup with the following steps once you can see your phone’s serial number after typing “adb devices”.

3.  Root Using RageAgainsttheCage

1. Download the following  rooting files  and save them to your computer

RageAgainsttheCage Rooting Files for Android 2.0/2.0.1/2.1/2.2

2. Extract them to the  c:\AndroidSDK\tools\ folder so all the files are in the same folder as the adb program (they must NOT be inside a folder inside the tools folder, they must be in the tools folder itself)

3. On the TAB , go to Settings > Applications > Development and make sure USB Debugging is Checked ON.

4. Plug your TAB  in via USB cable and do NOT mount the sdcard.

5. Open the command prompt on the computer by going to Start then typing cmd and hitting enter.

6. Type the following commands into the command prompt with hitting 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
adb install term.apk     (if this says failed, simply go to the Market and download the latest Terminal Emulator for free and install that instead of doing this line. Then just continue)

7. Now, leaving the phone plugged in to the computer, open the Terminal Emulator App on the phone. Then type the following into the terminal program with hitting enter at the end of each line (remember you can hold down the Menu button to bring up the virtual keyboard if necessary):

cd data/local/tmp
./rageagainstthecage-arm5.bin      (Wait until it shows that it “Forked Childs”. This should take a minute or 2. Once it does, continue).

8. Hit back on your phone to exit the Terminal app. Then reopen it (it will most likely force close). Click force close then open it again. This time it will open the terminal app and you should see a # instead of a $ symbol. If you do, continue. If not, redo step 7.

9. In the terminal with the # symbol, type the following with hitting enter at the end of the line:

cat /proc/mounts

8. The above command should display a list in the terminal window. Look in the list for this line:

/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. )

9. In the terminal window on the phone, type the following with hitting enter at the end of each line (make sure to replace X’s and Y’s with the actual letters/numbers you saw when typing the cat /proc/mounts command above. For example, if you saw “/dev/block/mmcblock3 /system yaffs2 ro 0 0″ then the line below would read “mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system”)

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
exit

10. Now, on the TAB , open the app drawer and you should see Superuser permissions inside if done correctly.