[GUIDE] And then there was ROOT !

Search This thread

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,441
87,687
www.chainfire.eu
THIS THREAD HAS BEEN SUPERCEDED BY THE CF-ROOT THREAD: http://forum.xda-developers.com/showthread.php?t=1103399

.
.
.
.
.
.

Here it is people, root for the I9100 !

I set out to make a "CF-Root" kernel for the SGS2 - a hacked Samsung kernel including Superuser, busybox, custom recovery, etc) - like I have for the SGS and SGT, but due to not having a device to test on, this is proving too difficult to do right now, it will have to wait. However, what I can give you is an "insecure" modded kernel. This is a kernel that does NOT include the tools you need for Superuser, but it DOES give you root shell access, so you can install these manually.

So what about GingerBreak? Isn't that supposed to be able to root the SGS2? No. GingerBreak was able to root a number of engineering samples of the SGS2, but it does NOT work on retail devices.

Following is a guide on how to perform the root. It is rather easy if you know the drill from other Galaxy devices, but if you are a complete beginner with Samsung phones or Android in general, please read very closely! Try to remember what you do, as likely in the future you'll be using ODIN more often, to flash custom kernels, custom/leaked firmwares, etc.

BEFORE DOING ANYTHING, PLEASE NOTE YOUR ORIGINAL KERNEL VERSION IN Settings -> About !

Quick guide (for experienced users)
- Reboot into download mode
- Using the attached Odin version, flash the attached XWKDD kernel as PDA. Do not use the PIT, do not have any options checked except for "Auto reboot" and "F. Reset Time"
- Wait for the device to reboot
- Use the "adb root" command to restart ADB in root mode, followed by "adb shell" to get a rooted shell; then you can manually push Superuser.apk / su, busybox, OR use SuperOneClick to finish the job for you.

Long guide (for beginners)
- Download the attached ODIN file and extract the .zip file
- Download the attached XWKDD, but do NOT extract the .tar file
- Download and extract SuperOneClick (Some say you should not be using the very latest version 1.9, but 1.5 or so)
- If you do not have Samsung's KIES 2.0 installed, download and install it. You need it to install the correct USB drivers, so the programs can communicate with the device. Reboot your computer after installation of KIES.

- Make sure your device is in USB debugging mode: Settings -> Applications -> Development -> USB debugging
- Reboot your device into download mode: Turn the device off, then power it on again by pressing and holding VolumeDown + Home + Power simultaneously. You will know when you are in download mode, it is really obvious :)
- Start ODIN
- Connect the device to your computer using USB
- Wait a few seconds, the ODIN screen should show you that a device is now connected
- Make sure that in ODIN NOTHING is checked, except the "Auto reboot" and "F. Reset Time" checkboxes. Press the "PDA" button, and select the "XWKDD_insecure.tar" file.
- Press "Start". ODIN you should now be flashing the kernel, and the device should reboot.
- Wait until the device is rebooted, and while still being connected over USB, start SuperOneClick, and press ROOT.
- Reboot the device
- Done !

Please post corrections to this guide if you see I made a mistake in it. Remember, I don't actually have an SGS2 so it's hard for me to check :)

Enjoy!

EDIT: Regarding new firmware versions
Yes, I know there are different firmware versions out there, and currently I only supply a root for KDD. I don't have a device yet, patching a kernel this way takes many hours, make a test, send to somebody, see if it works, wait for reply, re-do from start, etc. It would take me 3 minutes if I had a device. Due to this, I am not making "insecure" versions of any other kernel until I have a device, which I expect will be around the 23rd. So stop asking.

However, what you can do is this:
- Note in settings -> about which kernel version you have
- Flash the KDD kernel, and install root
- Reboot, assure yourself you have root
- Flash the original kernel back (see next post)
- Reboot, and you're back on the right kernel, but still have root :)
 

Attachments

  • Odin3-v1.85.zip
    198.9 KB · Views: 5,714,519
  • XWKDD_insecure.tar
    6 MB · Views: 600,790
Last edited:

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,441
87,687
www.chainfire.eu
ORIGINAL kernels

Attached are a number of original / unmodified kernels

Note that you need to flash the TAR file inside the ZIP file... XDA does allow posting of TARs, but these once are too big, that is why they are ZIPped.
 

Attachments

  • KDA_original.zip
    6 MB · Views: 46,525
  • KDB_original.zip
    6 MB · Views: 9,117
  • KDD_original.zip
    6 MB · Views: 11,897
  • KDF_original.zip
    6 MB · Views: 6,763
  • KE1_original.zip
    6 MB · Views: 9,182
  • KE2_original.zip
    6 MB · Views: 16,381
Last edited:

FRLinux

Senior Member
Aug 31, 2010
453
89
Ok, as I stated in another thread, I leave my dev-PC probably for 10 days, from today. In fact I should have left an hour ago already, but I didn't want to leave without giving you this!

Attached is also the new Odin. Make sure NOTHING is checked except "Auto reboot" and "F. Reset Time", and flash XWKDD_insecure.tar as PDA. Note that at the time of this writing, only ONE person has tested this.

Enjoy!

Awesome work man, thanks!
 

Epedemic

Senior Member
Apr 4, 2007
383
30
Make that 2 persons ;) Flash this, then just run superoneclick = Root. Installed adfree as the first thing, and that works as it's supposed :)
 

dickie2007

Senior Member
Jan 6, 2007
152
67
Portsmouth
hey guys, can anyone help??

i've booted into download mode with usb connected and odin launched, got the file loaded in PDA, clicked start and get <OSM> All threads completed. (succeed 0 / failed 0)


any ideas?? have i missed a step??

cheers.

Dickie.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 213
    THIS THREAD HAS BEEN SUPERCEDED BY THE CF-ROOT THREAD: http://forum.xda-developers.com/showthread.php?t=1103399

    .
    .
    .
    .
    .
    .

    Here it is people, root for the I9100 !

    I set out to make a "CF-Root" kernel for the SGS2 - a hacked Samsung kernel including Superuser, busybox, custom recovery, etc) - like I have for the SGS and SGT, but due to not having a device to test on, this is proving too difficult to do right now, it will have to wait. However, what I can give you is an "insecure" modded kernel. This is a kernel that does NOT include the tools you need for Superuser, but it DOES give you root shell access, so you can install these manually.

    So what about GingerBreak? Isn't that supposed to be able to root the SGS2? No. GingerBreak was able to root a number of engineering samples of the SGS2, but it does NOT work on retail devices.

    Following is a guide on how to perform the root. It is rather easy if you know the drill from other Galaxy devices, but if you are a complete beginner with Samsung phones or Android in general, please read very closely! Try to remember what you do, as likely in the future you'll be using ODIN more often, to flash custom kernels, custom/leaked firmwares, etc.

    BEFORE DOING ANYTHING, PLEASE NOTE YOUR ORIGINAL KERNEL VERSION IN Settings -> About !

    Quick guide (for experienced users)
    - Reboot into download mode
    - Using the attached Odin version, flash the attached XWKDD kernel as PDA. Do not use the PIT, do not have any options checked except for "Auto reboot" and "F. Reset Time"
    - Wait for the device to reboot
    - Use the "adb root" command to restart ADB in root mode, followed by "adb shell" to get a rooted shell; then you can manually push Superuser.apk / su, busybox, OR use SuperOneClick to finish the job for you.

    Long guide (for beginners)
    - Download the attached ODIN file and extract the .zip file
    - Download the attached XWKDD, but do NOT extract the .tar file
    - Download and extract SuperOneClick (Some say you should not be using the very latest version 1.9, but 1.5 or so)
    - If you do not have Samsung's KIES 2.0 installed, download and install it. You need it to install the correct USB drivers, so the programs can communicate with the device. Reboot your computer after installation of KIES.

    - Make sure your device is in USB debugging mode: Settings -> Applications -> Development -> USB debugging
    - Reboot your device into download mode: Turn the device off, then power it on again by pressing and holding VolumeDown + Home + Power simultaneously. You will know when you are in download mode, it is really obvious :)
    - Start ODIN
    - Connect the device to your computer using USB
    - Wait a few seconds, the ODIN screen should show you that a device is now connected
    - Make sure that in ODIN NOTHING is checked, except the "Auto reboot" and "F. Reset Time" checkboxes. Press the "PDA" button, and select the "XWKDD_insecure.tar" file.
    - Press "Start". ODIN you should now be flashing the kernel, and the device should reboot.
    - Wait until the device is rebooted, and while still being connected over USB, start SuperOneClick, and press ROOT.
    - Reboot the device
    - Done !

    Please post corrections to this guide if you see I made a mistake in it. Remember, I don't actually have an SGS2 so it's hard for me to check :)

    Enjoy!

    EDIT: Regarding new firmware versions
    Yes, I know there are different firmware versions out there, and currently I only supply a root for KDD. I don't have a device yet, patching a kernel this way takes many hours, make a test, send to somebody, see if it works, wait for reply, re-do from start, etc. It would take me 3 minutes if I had a device. Due to this, I am not making "insecure" versions of any other kernel until I have a device, which I expect will be around the 23rd. So stop asking.

    However, what you can do is this:
    - Note in settings -> about which kernel version you have
    - Flash the KDD kernel, and install root
    - Reboot, assure yourself you have root
    - Flash the original kernel back (see next post)
    - Reboot, and you're back on the right kernel, but still have root :)
    31
    ORIGINAL kernels

    Attached are a number of original / unmodified kernels

    Note that you need to flash the TAR file inside the ZIP file... XDA does allow posting of TARs, but these once are too big, that is why they are ZIPped.
    3
    Updated the first post. Let me know if something in the guide is not 100% correct.
    2
    Loving the dev support already :)

    Sent from my GT-I9100 using XDA App
    2
    Skip the PIT file (unless you know you need to use it, just don't), and that sounds about right !
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone