Skip to content

Instantly share code, notes, and snippets.

@sambao21
Created December 9, 2012 23:46
Show Gist options
  • Save sambao21/4247542 to your computer and use it in GitHub Desktop.
Save sambao21/4247542 to your computer and use it in GitHub Desktop.
rooting nexus 4 on OSX
  1. Make sure device USB debugging mode turned on (Google around for the latest instructions)
  2. Install Android SDK - http://developer.android.com/sdk/index.html#download (Follow direction kinda outlined here - http://forum.xda-developers.com/showthread.php?t=1917237 adjust as necessary because these instructions probably will be outdated.)
  3. Create ~/android
  4. Unzip the sdk into ~/android
  5. Make sure tools and platform-tools directory are there, if not install, by running ~/android/adt-bundle-mac/sdk/tools/android.
  6. Make sure adb and fastboot are installed in ~/android/adt-bundle-mac/sdk/platform-tools/
  7. Export $PATH to include ~/android/adt-bundle-mac/sdk/platform-tools so we can access adb and platform-tools from anywhere
  8. Download CWM Touch and place it in ~/android - http://clockworkmod.com/rommanager
  9. Install Android File Transfer app - http://www.android.com/filetransfer/
  10. Download latest version of CWM-SuperSU-v0.99.zip and put in on the phone's SD card http://forum.xda-developers.com/showthread.php?t=1538053
  11. Reboot into bootloader adb reboot bootloader
  12. Unlock bootload (This supposedly wipes everything) fastboot oem unlock
  13. Flash CWM Recovery fastboot flash recovery ecovery-clockwork-touch-X.X.X.X-mako.img
  14. On the device, press volume-up or volume-down twice to select the RECOVERY OPTION, and then the power button to enter it, and you'll be in recovery
  15. Once in Recovery, do a backup.
  16. Install SuperSU from the zip we copied onto the zip file.
  17. Install Zip from SD Card
  18. choose zip from sdcard
  19. 0/
  20. CWM-SuperSU-v.XXX.zip
  21. Yes - Install CWM-SuperSU-v.XXX.zip
  22. Clear Cache (from home menu)
  23. wipe cache partition
  24. Yes - Wipe Cache
  25. Clear Dalvik Cache (from home menu)
  26. advanced
  27. wipe dalvik cache
  28. Yes- Wipe Dalvik Cache
  29. Reboot - be sure to say yes to Fix so that stock rom doesn't revert to stock recovery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment