Post Reply

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

25th November 2011, 11:41 PM   |  #1  
Evostance's Avatar
OP Senior Member
Thanks Meter: 330
 
1,481 posts
Join Date:Joined: Nov 2008
Donate to Me
More
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.

Quote:

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

Quote:

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://forum.xda-developers.com/show....php?t=1357642
Make a Nandroid Backup!


Linux

Quote:

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://forum.xda-developers.com/show....php?t=1357642
Make a Nandroid Backup!


OS X

Quote:

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://forum.xda-developers.com/show....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 by Evostance; 13th July 2012 at 09:41 PM.
The Following 54 Users Say Thank You to Evostance For This Useful Post: [ View ]
26th November 2011, 12:31 AM   |  #2  
Stea1thmode's Avatar
Senior Member
Flag London
Thanks Meter: 63
 
1,496 posts
Join Date:Joined: Aug 2009
More
Very nice indeed, might be worth doing a tutorial on how to return to stock if there isn't already one out there somewhere. Not many people know that it's possible to Fastboot OEM lock, I've tried it
26th November 2011, 01:19 AM   |  #3  
Evostance's Avatar
OP Senior Member
Thanks Meter: 330
 
1,481 posts
Join Date:Joined: Nov 2008
Donate to Me
More
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
26th November 2011, 01:23 AM   |  #4  
beekay201's Avatar
Senior Member
Thanks Meter: 1,127
 
4,646 posts
Join Date:Joined: Nov 2010
More
...but this should be moved to general i think. This subforum will br crowded next months.

sent from a kanged gt-i9000 using Tapatalk
26th November 2011, 01:45 AM   |  #5  
Evostance's Avatar
OP Senior Member
Thanks Meter: 330
 
1,481 posts
Join Date:Joined: Nov 2008
Donate to Me
More
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
26th November 2011, 02:40 AM   |  #6  
Oppressa's Avatar
Senior Member
Flag Sydney
Thanks Meter: 1
 
252 posts
Join Date:Joined: Jun 2005
More
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
26th November 2011, 08:22 AM   |  #7  
Evostance's Avatar
OP Senior Member
Thanks Meter: 330
 
1,481 posts
Join Date:Joined: Nov 2008
Donate to Me
More
Cheers. I'll edit that. Didn't work for me like that when I did it on a windows PC, however I'll add it in


Sent from my iPad 2 using Tapatalk
The Following User Says Thank You to Evostance For This Useful Post: [ View ]
26th November 2011, 08:31 AM   |  #8  
Aylarth's Avatar
Senior Member
Flag Limerick
Thanks Meter: 18
 
170 posts
Join Date:Joined: Jul 2010
More
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.
26th November 2011, 09:09 AM   |  #9  
Evostance's Avatar
OP Senior Member
Thanks Meter: 330
 
1,481 posts
Join Date:Joined: Nov 2008
Donate to Me
More
Quote:
Originally Posted by Aylarth

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.

Ah yes. Added

Sent from my Galaxy Nexus using Tapatalk
26th November 2011, 10:15 PM   |  #10  
helen_xxxx's Avatar
Junior Member
Thanks Meter: 1
 
29 posts
Join Date:Joined: Apr 2010
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?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Galaxy Nexus Android Development by ThreadRank