Root almost any Android device:
1. Download Android SDK:
- https://developer.android.com/sdk/index.html
2. Launch Android SDK Manager:
- cd /your-android-sdk-macosx-folder/sdk/tools
- ./android sdk
2.1. Install from Android SDK Manager:
- “Android SDK Platform-tools”
3. Check for adb and fastboot in your platform-tools folder:
4. Download Android File Transfer:
4.1 Install Android File Transfer
5. Download Custom Recovery ClockworkMod or TWRP TeamWin Recovery ROM
- http://www.clockworkmod.com/rommanager
- http://teamw.in/project/twrp2
- Download Recovery or Recovery Touch (recommended for touch-input support while jailbreaking)
6. Download SuperUser SU
- Download latest SuperSu Version @xda-developers.com
- http://lmgtfy.com/?q=supersu+download
- We need the CWM installable ZIP
7. Copy ClockworkMod & SuperSU into /your-android-sdk-folder/sdk/platform-tools/
8. Connect Android device to MAC USB
9. Check your Android device to have USB debugging enabled
- Settings -> Developer options -> USB debugging (enable it)
- [HINT] Make Developer options visible:
Settings -> About phone -> (Hit) Build number (7 times or till it tells you that you are a developer now)
10. Check USB devices attached
11. Make sure you are at /your-android-sdk-folder/sdk/platform-tools/
12. Unlock bootloader:
- ./adb reboot bootloader
- ./fastboot oem unlock
It will tell you that its erasing user data, cache and finishes:
- [HINT] navigate with Volumes buttons and Select pressing Power button
- LET THE DEVICE REBOOT TO ANDROID AND SET IT UP
- COPY the UPDATE_SuperSU.x.x.x.zip to the Root of your device using Android File Transfer
13. Flashing ClockworkMod or TWRP:
- ./fastboot reboot-bootloader
- ./fastboot flash recovery <replace this with your recover-image-name.img in your platform-tools folder>
- ./fastboot reboot-bootloader
- Press Volumes button UP/DOWN to enter Recovery Mode -> Press POWER button to enter Recovery Mode
- Go to “mounts and storage”
- Hit “- mount system” so it shows “- unmount system”
- Backup recover-from-boot.p
./adb shell
cd /system
mv recover-from-boot.p recover-from-boot.bak - cd /
- [DEVICE] Hit “+++Go Back+++”
- [DEVICE] Hit “reboot system now”
- [DEVICE] Recovery-boot will be flashed: Fix? Hit Yes
- [DEVICE] Root access is missing. Root device? THIS CAN NOT BE UNDONE. Hit Yes
- CWM & TWRP: select install and browse for SuperSU.zip to be installed
Finally your got your Android device rooted!
Helpful links:
TWRP Recovery: http://teamw.in
CWM Recovery: http://www.clockworkmod.com/rommanager
AFT: http://www.android.com/filetransfer/
SDK: https://developer.android.com/sdk/index.html
STOCK ROM (Take care of Baseband in bootloader): https://developers.google.com/android/nexus/images?hl=de