Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,768,635 Members 52,966 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Evostance
Old
(Last edited by Evostance; 13th July 2012 at 09:41 PM.)
#1  
Evostance's Avatar
Senior Member - OP
Thanks Meter 330
Posts: 1,478
Join Date: Nov 2008

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

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
[SIZE="1"]Current Phone: Nexus 5 16GB | ROM: Stock
[SIZE="1"]Current Tablet: Nexus 10 | ROM: Sto

Follow me on Twitter
Circle me on G+
The Following 54 Users Say Thank You to Evostance For This Useful Post: [ Click to Expand ]
 
Stea1thmode
Old
#2  
Stea1thmode's Avatar
Senior Member
Thanks Meter 63
Posts: 1,496
Join Date: Aug 2009
Location: London
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
HTC M8
Sony Xperia Z1
Nexus 5/7/10


It's not how you start, it's how you finish

Android @ MoDaCo
http://android.modaco.com/category/4...ne-modaco-com/
 
Evostance
Old
#3  
Evostance's Avatar
Senior Member - OP
Thanks Meter 330
Posts: 1,478
Join Date: Nov 2008

 
DONATE TO ME
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
[SIZE="1"]Current Phone: Nexus 5 16GB | ROM: Stock
[SIZE="1"]Current Tablet: Nexus 10 | ROM: Sto

Follow me on Twitter
Circle me on G+
 
beekay201
Old
#4  
beekay201's Avatar
Senior Member
Thanks Meter 1126
Posts: 4,640
Join Date: Nov 2010
...but this should be moved to general i think. This subforum will br crowded next months.

sent from a kanged gt-i9000 using Tapatalk
hammerhead/omni-KTU84P/stock#3.4.0/M8974A-2.0.50.1.13
maguro/aosp-KRT16O/custom#3.0.101/XXLJ1
manta/omni-KTU84P/custom#3.4.39
XDA forum rules here
bug report? logcat and /proc/kmsg, or it "never happened".
How TO Ask questions on the Internet
aosp-maguro READFIRST here (credit: efrant)
aosp-gnex READSECOND here (credit: efrant)
 
Evostance
Old
#5  
Evostance's Avatar
Senior Member - OP
Thanks Meter 330
Posts: 1,478
Join Date: Nov 2008

 
DONATE TO ME
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
[SIZE="1"]Current Phone: Nexus 5 16GB | ROM: Stock
[SIZE="1"]Current Tablet: Nexus 10 | ROM: Sto

Follow me on Twitter
Circle me on G+
 
Oppressa
Old
#6  
Oppressa's Avatar
Senior Member
Thanks Meter 1
Posts: 252
Join Date: Jun 2005
Location: 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
My phone progression now to scale (the first person to have one of these on xda-developers ):

GD520, T28s, T100, S300, XDA, XDA II, TyTn, Touch HD, Touch HD2, EVO 3D, One X

 
Evostance
Old
#7  
Evostance's Avatar
Senior Member - OP
Thanks Meter 330
Posts: 1,478
Join Date: Nov 2008

 
DONATE TO ME
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
[SIZE="1"]Current Phone: Nexus 5 16GB | ROM: Stock
[SIZE="1"]Current Tablet: Nexus 10 | ROM: Sto

Follow me on Twitter
Circle me on G+
The Following User Says Thank You to Evostance For This Useful Post: [ Click to Expand ]
 
Aylarth
Old
#8  
Aylarth's Avatar
Senior Member
Thanks Meter 18
Posts: 170
Join Date: Jul 2010
Location: 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.
Phone: Sony Xperia Z1
Retired device: Samsung Galaxy Note II, Samsung Galaxy S III, Samsung Galaxy Nexus, Samsung Galaxy S I9000, iPhone 3
Tablet: Nexus7
 
Evostance
Old
#9  
Evostance's Avatar
Senior Member - OP
Thanks Meter 330
Posts: 1,478
Join Date: Nov 2008

 
DONATE TO ME
Quote:
Originally Posted by Aylarth View Post
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
[SIZE="1"]Current Phone: Nexus 5 16GB | ROM: Stock
[SIZE="1"]Current Tablet: Nexus 10 | ROM: Sto

Follow me on Twitter
Circle me on G+
 
helen_xxxx
Old
#10  
helen_xxxx's Avatar
Junior Member
Thanks Meter 1
Posts: 29
Join Date: 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?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes