I found the following tutorial from chainfire the easiest and most useful, so here is the link to the original as well as a copy of the tutorial. CF Auto-Root tutorial for Samsung SM G900F by chainfire.

!!! WARNING !!! 

Using this root increases your flash counter and trips the KNOX warranty flag!

 

Overview

  1. Read the tutorial to get familiar with the process.
  2. Download CF-Auto-Root-klte-kltexx-smg900f.zip and Odin3_v3.10.6.zip
  3. Follow the instructions below to root with ODIN (Windows needed)

 

Requirements

 

ODIN Installation (detailed)

Follow these instructions to the letter. Do not touch any buttons or checkboxes that are not listed below to touch!

  • Download and unzip CF-Auto-Root-klte-kltexx-smg900f.zip (alternative)
  • If you end up with a recovery.img and cache.img file, you've extracted twice. You need to end up with a .tar.md5 file - don't extract that one
  • Download and unzip Odin3_v3.10.6.zip (alternative)
  • (USB) Disconnect your phone from your computer
  • Start Odin3-vX.X.exe
  • Click the PDA button, and select CF-Auto-Root-klte-kltexx-smg900f.tar.md5
  • Put your phone in download mode (turn off phone, then hold VolDown+Home+Power to boot - if it asks you to press a button to continue, press the listed button, or run adb reboot download command)
  • (USB) Connect the phone to your computer
  • Make sure Repartition is NOT checked
  • Click the Start button
  • Wait for Android to boot => Done (If phone doesn't reboot automatically you have to do it manually)

 

Credits

 

Other articles in this category

Since I found the tutorials about rooting the MTK6589 did not work out of the box - at least for me, I'm going to share my experience about this topic provide you with a description of the necessary changes needed to get this done.

This is no complete tutorial by itself. Please be sure to read and understand one of the original tutorials. This article covers only the steps needed for doing this with an MacBook Pro (OS X 10.8.x) for MTK6589.

Overview

  1. Read one of the tutorials to get familiar with the process. Download the mt6589_rooting_pkg.zip
  2. Make sure adb is running and can see your device (run adb devices)
  3. Upload pwn, su and busybox to device, Install Superuser.apk on device with adb
  4. Run pwn (this actually roots the phone)
  5. Do some cleanup and reboot the phone

 

Requirements

Make sure ADB is running

I'd recommend to install Android SDK and Tools on your system, but you can also use the appropriate adb executable from the  mt6589_rooting_pkg.zip you downloaded. Run adb devices to see if ADB can connect to the device. (Make sure you only have the device you want to root connected)

Upload (also 4. Run pwn & 5. CleanUp)

You can try to run the script run.sh (or run.bat) but on my system it didn't work. It was hanging at adb wait-for-device. When I killed the process and started it again it said that there are to many devices connected. So I took out the essential part of the script and ran it manually within a terminal. Make sure you see you device (only once) with adb devices.

Needed commands for rooting device

(This is a outtake from run.sh. The rooting script for Mac OS X or other Unix based systems)

echo "[*] Pushing exploit..."
adb push pwn /data/local/tmp/pwn
adb shell chmod 755 /data/local/tmp/pwn

echo "[*] Pushing root tools..."
adb push su /data/local/tmp/su
adb push busybox /data/local/tmp/busybox
adb install Superuser.apk

echo "[*] Rooting phone..."
adb shell /data/local/tmp/pwn

echo "[*] Cleaning up..."
adb shell rm /data/local/tmp/pwn
adb shell rm /data/local/tmp/su
adb shell rm /data/local/tmp/busybox

echo "[*] Exploit complete."
adb reboot
adb kill-server

Credits

  • Original tutorial by umit

 

Other articles in this category

Overview

Mise en place

Rooting-Process

  • Upload S4Mini_RootKit_v1.zip to sdcard
  • Start Odin & Restart device into "download mode"
  • Upload recovery-clockwork-6.0.4.5-serranoltexx.tar.md5 with Odin and be prepare for the next step
  • Start device into recovery mode (by holding hold volume up and home buttons) after phone restarts and vibrates
  • Install S4Mini_RootKit_v1.zip from SDCard and reboot device => you done!

 

Downloads

 

Step-by-Step

  1. Upload S4Mini_RootKit_v1.zip to sdcard. For example with adb by invoking a command like: 
    adb push S4Mini_RootKit_v1.zip /sdcard/Downloads

    or with scp invoking like

    scp S4Mini_RootKit_v1.zip This email address is being protected from spambots. You need JavaScript enabled to view it.:/sdcard/Downloads
  2. Restart Phone & Press and hold home, volume down and power => Download screen should appear.
  3. Connect USB cable, and press volume up.
  4. Start Odin, uncheck "F. Reset Time", and then click AP button.
  5. Select "recovery-clockwork-6.0.5.1-serranoltexx.tar.md5" file that you previously extracted, and press Start button. The phone will reboot when finished.
  6. After the phone resets (it vibrates) IMMEDIATELY hold volume up and home buttons to boot into recovery mode.
  7. Select the option to install the ZIP file you have previously copied to your device and begin flashing it.
  8. After flashing using CWM, reboot into system and enjoy your rooted device.

If you get warnings about applications doing not permitted actions, delete the following files from system/app, or let SuperSU fix it for you.

  • KNOXAgent.apk
  • KNOXStore.apk
  • ContainerAgent.apk

 

Credits

 

Other articles in this category