After upgrading my Galaxy Nexus (GSM) to Jelly Bean last night (I know, I know, I'm a few days late), I unlocked its bootloader (the usual fastboot oem unlock) and commenced rooting, which I thought would only take a minute or two. However, after almost 2 hours of pushing, flashing, rebooting, and trying no less than 5 different root methods, I still didn't have root. Something must have changed under the hood, and no root method I was trying was working (even PaulOBrien's SuperBoot).
Finally, I managed to find a solution that worked, and the familiar root permission prompt finally popped up. If you're having similar trouble, here's what you do (tested on a GSM Galaxy Nexus i9250, but should work on other variants as well):
- Download your favorite recovery, say ClockworkMod Touch.
- Download JB-SuperSU.zip from one of the mirrors:
- While booted into Android, push JB-SuperSU.zip to your Galaxy Nexus' /sdcard/ with your favorite file browser, download it straight from the device, or just do
adb push JB-SuperSU.zip /sdcard/
- Reboot into the bootloader by issuing this command via adb:
adb reboot bootloader
power down, hold both volume buttons and then hold Power until the bootloader comes up.
- Flash the custom recovery by issuing this command from your computer:
fastboot flash recovery recovery-clockwork-touch-184.108.40.206-maguro.img (or whatever the recovery name is that you downloaded in step 1)
- Now that you have the custom recovery installed, scroll down to Recovery mode in the bootloader menu using the volume down button and press the Power button to enter it.
- Select Install zip from sdcard, choose zip from sdcard, select JB-SuperSU.zip that you pushed in step 3.
- Reboot - you should now be rooted and have SuperSU installed.
- Run an app that requires root or simply Root Checker and observe a root permission popup.
- Do a victory dance.
sending 'recovery' (5684 KB)...
OKAY [ 0.602s]
OKAY [ 1.123s]
finished. total time: 1.728s
Note: For some reason I can't get the recovery to stick anymore - upon reboot, the Nexus reverts back to its stock recovery. If someone knows how to fix this, please leave a comment in this post.
Update: Renaming /system/recovery-from-boot.p after obtaining root did the trick - you have to remount /system as rw first, of course (thanks, Derek).
Note: If you are on Windows and get "waiting for device" from any commands above, make sure you have the Samsung USB drivers for the Galaxy Nexus (Google around) and this in the Device Manager:
Credit for the zip to mutelight of Rootz