[HOW TO] Unlock Bootloader & Root GSM Nexus (4.0.x devices only)

Search This thread

Evostance

Senior Member
Nov 27, 2008
1,511
332
www.greghesp.com
I know there a few tutorials already on here, however it seems quite a lot of people are eitiher asking questions about the ADB method, or cannot understand other methods. So i'll try and put it all in one easy to follow tutorial. This is for the latest version on Android 4.0.x.

For this method we are going to use Paul O'Briens Superboot.

Superboot is a boot.img that when booted, will root your device the first time you boot (installing su and the superuser APK). No need to flash any partitions, no need to mess around with ADB, no messing with the contents of your data partition, no overwriting the shipped ROM on your device, just boot the boot image using the instructions below and you're done!

APPLY THIS AT YOUR OWN RISK!

Download the latest version of Superboot: DOWNLOAD

You might need the drivers, however its worth getting them anyway as you'll probably need them in the future: DOWNLOAD DRIVERS

If you get you might need the USB drivers: DOWNLOAD

Windows

1) Extract the contents of the above file into C:\root

2) Power your device off

3) Connect your phone to your computer

4) Put device into the bootloader by holding down Vol Up + Vol Down + Power

5) Open up cmd and navigate to by typing to following (Hit enter after each line):
cd C:/
cd root


6) Unlock your bootloader by typing - this will wipe your device!:
fastboot-windows oem unlock

7) You should get a warning on your phone. Use the volume keys to select an option, and press the power button to confirm it

8) Your bootloader should now say that it is unlocked at the bottom

9) To root your device, double click:
install-superboot-windows.bat

10) You should now be able to reboot your phone and it will have root

11) Optional: Install CWM from here: http://xdaforums.com/showthread.php?t=1357642
Make a Nandroid Backup!


Linux

1) Extract the contents of the above file into a folder

2) Power your device off

3) Connect your phone to your computer

4) Put device into the bootloader by holding down Vol Up + Vol Down + Power

5) Open up terminal and navigate to the folder used in step 1

6) Unlock your bootloader by typing - this will wipe your device!:
./fastboot-linux oem unlock

7) You should get a warning on your phone. Use the volume keys to select an option, and press the power button to confirm it

8) Your bootloader should now say that it is unlocked at the bottom

9) To root your device, type the following (Hit enter after each line):
chmod +x install-superboot-linux.sh
./install-superboot-linux.sh


10) You should now be able to reboot your phone and it will have root

11) Optional: Install CWM from here: http://xdaforums.com/showthread.php?t=1357642
Make a Nandroid Backup!


OS X

1) Extract the contents of the above file into a folder

2) Power your device off

3) Connect your phone to your computer

4) Put device into the bootloader by holding down Vol Up + Vol Down + Power

5) Open up terminal and navigate to the folder used in step 1

6) Unlock your bootloader by typing - this will wipe your device!:
./fastboot-mac oem unlock

7) You should get a warning on your phone. Use the volume keys to select an option, and press the power button to confirm it

8) Your bootloader should now say that it is unlocked at the bottom

9) To root your device, type the following (Hit enter after each line):
chmod +x install-superboot-mac.sh
./install-superboot-mac.sh


10) You should now be able to reboot your phone and it will have root

11) Optional: Install CWM from here: http://xdaforums.com/showthread.php?t=1357642
Make a Nandroid Backup!

If i've missed any steps out such as downloading drivers etc, let me know what to add in etc. I did mine on OS X and it didn't require me to install anything extra

Update: it would appear some people are having issues with 4.1 rooting. I'll see what I can find an then update it. For the time being, just reflash the vanilla install and you should be fine. I'd imagine there's an incompatibility between this root and 4.1
 
Last edited:

Evostance

Senior Member
Nov 27, 2008
1,511
332
www.greghesp.com
Yeah I'm going to wait until there's a proper system.img about.

I got mine back to stock, however it was a complete bodge and highly advised against.

Locking the boot loader is the easy bit. It's going back to the default rom


Sent from my iPad 2 using Tapatalk
 

beekay201

Senior Member
Nov 8, 2010
5,224
1,221
...but this should be moved to general i think. This subforum will br crowded next months.

sent from a kanged gt-i9000 using Tapatalk
 

Evostance

Senior Member
Nov 27, 2008
1,511
332
www.greghesp.com
It's based on development so I don't see why. General is anything to do with the phone. Unlocking and rooting is the first step of development :)


Sent from my iPad 2 using Tapatalk
 

Oppressa

Senior Member
Jun 9, 2005
256
1
43
Sydney
Thank you for your work.

Just a small correction for your original post.

Instead of
fastboot-windows oem unlock

it's actually:
.\fastboot-windows oem unlock
 

Aylarth

Senior Member
Jul 8, 2010
172
18
Limerick
Maybe it worth to mention in the first post that many ppl (including me) had issues with this process, because we had no proper drivers installed first, and for that the solution was installing the newest PDAnet software. After that everything went pretty well. :)
 

helen_xxxx

Member
Apr 24, 2010
30
1
I'm very new to this so prepare for a stupid question!

I'm trying to run this on a Mac, and when I'm trying to run fastboot oem unlock I get the following:

/Users/extra_ham/r2-galaxynexus-superboot./fastboot-mac: No such file or directory

What could cause this?
 

Evostance

Senior Member
Nov 27, 2008
1,511
332
www.greghesp.com
I'm very new to this so prepare for a stupid question!

I'm trying to run this on a Mac, and when I'm trying to run fastboot oem unlock I get the following:

/Users/extra_ham/r2-galaxynexus-superboot./fastboot-mac: No such file or directory

What could cause this?

Have you navigated to the folder where the files are located? Stupid question but not sure what you've done

Sent from my Galaxy Nexus using Tapatalk
 

chandlerweb

Senior Member
May 12, 2010
205
35
Yeah I'm going to wait until there's a proper system.img about.

Are the files from Peter Alfonso not suitable? They include boot.img, recovery.img, system.img and userdata.img

I want to uninstall clockwork mod and get back to stock recovery. I used Peter Alfonso's recovery.img file and did a "fastboot boot recovery.img" but I just got a picture of a droid with a red triangle. I was hoping that would work before I issued the "fastboot flash recovery recovery.img" command. As it didnt, I guess I'll have to wait to find out what the proper method is.
 

helen_xxxx

Member
Apr 24, 2010
30
1
Have you navigated to the folder where the files are located? Stupid question but not sure what you've done

Sent from my Galaxy Nexus using Tapatalk

I extracted the .zip to /Users/extra_ham.

Then put the following in terminal: /Users/extra_ham/r2-galaxynexus-superboot./fastboot-mac oem unlock

I wasn't sure whether I had to run 'cd' before doing that but terminal already appeared to be looking at extra_ham$.

I'm pretty sure it's something simple I'm missing. :p
 

Evostance

Senior Member
Nov 27, 2008
1,511
332
www.greghesp.com
I extracted the .zip to /Users/extra_ham.

Then put the following in terminal: /Users/extra_ham/r2-galaxynexus-superboot./fastboot-mac oem unlock

I wasn't sure whether I had to run 'cd' before doing that but terminal already appeared to be looking at extra_ham$.

I'm pretty sure it's something simple I'm missing. :p


OK, If you files are in the folder r2-galaxynexus-superboot, open terminal and just type (after each line hit enter):

cd /Users/
cd extra_ham/
cd r2-galaxynexus-superboot
./fastboot-mac oem unlock


Are the files from Peter Alfonso not suitable? They include boot.img, recovery.img, system.img and userdata.img

I want to uninstall clockwork mod and get back to stock recovery. I used Peter Alfonso's recovery.img file and did a "fastboot boot recovery.img" but I just got a picture of a droid with a red triangle. I was hoping that would work before I issued the "fastboot flash recovery recovery.img" command. As it didnt, I guess I'll have to wait to find out what the proper method is.


I tried that system.img and it bricked my phone. Couldn't get it to launch, it just hung on the animation. I did a boot to CWM, messed with some stuff and then the phone randomly launched. Its not a stock image, missing all the Google apps etc and the Gallery doesn't work. I think for now though, its the closest thing to a stock image we have :(
 
Last edited:

URPREY

Senior Member
Oct 7, 2005
1,066
123
Louisville, KY
www.BillStebbins.com
I extracted the .zip to /Users/extra_ham.

Then put the following in terminal: /Users/extra_ham/r2-galaxynexus-superboot./fastboot-mac oem unlock

I wasn't sure whether I had to run 'cd' before doing that but terminal already appeared to be looking at extra_ham$.

I'm pretty sure it's something simple I'm missing. :p

On OSX you can just drag the fastboot-mac file from finder into the terminal window and it will automatically fill in the path for you, then type the rest of the unlock command and hit enter
 
  • Like
Reactions: sacksyboy

matt2053

Senior Member
Dec 17, 2010
2,066
295
42
Clearwater, FL
Are the files from Peter Alfonso not suitable? They include boot.img, recovery.img, system.img and userdata.img

I want to uninstall clockwork mod and get back to stock recovery. I used Peter Alfonso's recovery.img file and did a "fastboot boot recovery.img" but I just got a picture of a droid with a red triangle. I was hoping that would work before I issued the "fastboot flash recovery recovery.img" command. As it didnt, I guess I'll have to wait to find out what the proper method is.

The Droid with triangle actually is stock recovery. When you see it just press power + volume down.

Sent from my Galaxy Nexus using XDA App
 

Top Liked Posts

  • There are no posts matching your filters.
  • 54
    I know there a few tutorials already on here, however it seems quite a lot of people are eitiher asking questions about the ADB method, or cannot understand other methods. So i'll try and put it all in one easy to follow tutorial. This is for the latest version on Android 4.0.x.

    For this method we are going to use Paul O'Briens Superboot.

    Superboot is a boot.img that when booted, will root your device the first time you boot (installing su and the superuser APK). No need to flash any partitions, no need to mess around with ADB, no messing with the contents of your data partition, no overwriting the shipped ROM on your device, just boot the boot image using the instructions below and you're done!

    APPLY THIS AT YOUR OWN RISK!

    Download the latest version of Superboot: DOWNLOAD

    You might need the drivers, however its worth getting them anyway as you'll probably need them in the future: DOWNLOAD DRIVERS

    If you get you might need the USB drivers: DOWNLOAD

    Windows

    1) Extract the contents of the above file into C:\root

    2) Power your device off

    3) Connect your phone to your computer

    4) Put device into the bootloader by holding down Vol Up + Vol Down + Power

    5) Open up cmd and navigate to by typing to following (Hit enter after each line):
    cd C:/
    cd root


    6) Unlock your bootloader by typing - this will wipe your device!:
    fastboot-windows oem unlock

    7) You should get a warning on your phone. Use the volume keys to select an option, and press the power button to confirm it

    8) Your bootloader should now say that it is unlocked at the bottom

    9) To root your device, double click:
    install-superboot-windows.bat

    10) You should now be able to reboot your phone and it will have root

    11) Optional: Install CWM from here: http://xdaforums.com/showthread.php?t=1357642
    Make a Nandroid Backup!


    Linux

    1) Extract the contents of the above file into a folder

    2) Power your device off

    3) Connect your phone to your computer

    4) Put device into the bootloader by holding down Vol Up + Vol Down + Power

    5) Open up terminal and navigate to the folder used in step 1

    6) Unlock your bootloader by typing - this will wipe your device!:
    ./fastboot-linux oem unlock

    7) You should get a warning on your phone. Use the volume keys to select an option, and press the power button to confirm it

    8) Your bootloader should now say that it is unlocked at the bottom

    9) To root your device, type the following (Hit enter after each line):
    chmod +x install-superboot-linux.sh
    ./install-superboot-linux.sh


    10) You should now be able to reboot your phone and it will have root

    11) Optional: Install CWM from here: http://xdaforums.com/showthread.php?t=1357642
    Make a Nandroid Backup!


    OS X

    1) Extract the contents of the above file into a folder

    2) Power your device off

    3) Connect your phone to your computer

    4) Put device into the bootloader by holding down Vol Up + Vol Down + Power

    5) Open up terminal and navigate to the folder used in step 1

    6) Unlock your bootloader by typing - this will wipe your device!:
    ./fastboot-mac oem unlock

    7) You should get a warning on your phone. Use the volume keys to select an option, and press the power button to confirm it

    8) Your bootloader should now say that it is unlocked at the bottom

    9) To root your device, type the following (Hit enter after each line):
    chmod +x install-superboot-mac.sh
    ./install-superboot-mac.sh


    10) You should now be able to reboot your phone and it will have root

    11) Optional: Install CWM from here: http://xdaforums.com/showthread.php?t=1357642
    Make a Nandroid Backup!

    If i've missed any steps out such as downloading drivers etc, let me know what to add in etc. I did mine on OS X and it didn't require me to install anything extra

    Update: it would appear some people are having issues with 4.1 rooting. I'll see what I can find an then update it. For the time being, just reflash the vanilla install and you should be fine. I'd imagine there's an incompatibility between this root and 4.1
    8
    I swear to god I am going insane, I am having the same issue as mrvirginia. I am in bootloader but my base unit, laptop or brothers pc will not recognise my Galaxy Nexus. I have uninstalled the samsung drivers and reinstalled but nothing. Just showing up as android 1.0, when the phone is on however it is showing as Samsung Android ADB interface.

    I give up, any help?

    OK figured it out, if anybody else had this issue. For some reason when my device was connected I had to connect my phone in bootloader and then right click on the Android 1.0 unknown device in device manager and select update driver, then browse my computer, then let me pick from a list of device drivers, then select Samsung and then select android ADB interface.

    Works, Weird :/ I am on Windows 64bit if this helps.

    Hope this helps somebody.
    3
    i found the directions in the OP...everything seemed to work...i rebooted had superuser in my list of app...but i cant grant SU permissions to anything...i get no prompts and when i tried to update the binary it failed at gaining root permission

    can anyone help?

    try the latest su from here http://goo.im/superuser/Superuser-3.0.7-efghi-signed.zip
    2
    EDIT 2: Before I right clicked the exclamation point in device manager, went to update driver software, browse my computer, browse, and then went to the folder: "usb_driver" and from then on it didn't work. Am I supposed to navigate to a different folder? Please tell me ASAP, as I want to confirm that it is the right folder before I continue with anything and use the last possible computer that I have.

    Update: Okay, I went ahead and clicked usb_driver and I get the same error for the third time on three computers: " 'fastboot-windows' is not recognized as an internal or external command, operable program or batch file. Do I need to download adb drivers or something?

    ---------- Post added at 01:38 AM ---------- Previous post was at 01:28 AM ----------

    Could somebody please help me? I want a UV'd kernel or at least a battery concious rom for tomorrow!
    EDIT: Okay, it isn't displaying the message its supposed to display:
    C:\Users\Bob> cd C:/
    C:\>cd root
    C:\root>fastboot-windows oem unlock
    'fatboot-windows' is not recognized as an internal or external command operable program or batch file.
    C:\root>

    Put your device into fastboot mode (power off phone then volume up & down + power same time), then plug USB cable into your phone from computer. Go into device manager on your computer with your phone in fastboot mode and it should have USB device with exclamation point. Click on it, go to driver, then update and choose that USB drivers folder. You should be good to go.

    Sent from my GN
    2
    Are the files from Peter Alfonso not suitable? They include boot.img, recovery.img, system.img and userdata.img

    I want to uninstall clockwork mod and get back to stock recovery. I used Peter Alfonso's recovery.img file and did a "fastboot boot recovery.img" but I just got a picture of a droid with a red triangle. I was hoping that would work before I issued the "fastboot flash recovery recovery.img" command. As it didnt, I guess I'll have to wait to find out what the proper method is.

    The Droid with triangle actually is stock recovery. When you see it just press power + volume down.

    Sent from my Galaxy Nexus using XDA App