FORUMS

[REF][GUIDE][11/03/2012] Unlocking the Bootloader

4,092 posts
Thanks Meter: 6,524
 
By TheDarkDefender, Senior Member on 4th November 2012, 04:19 AM
Post Reply Email Thread
-This guide is going to help you with step-by-step instructions that will get you an unlocked bootloader on your Nexus 4.

-Keep in mind that unlocking the bootloader will erase all the data on your phone (every single thing, including internal storage), hence it is preferable to unlock the bootloader when the phone is new, as then you don’t have to go through the hassle of re-installing everything.

Compatibility

This guide is applicable only for the LG Nexus 4. Do not try this on any other device.

Warning!

The methods and procedures discussed here are considered risky and you should not attempt anything if you don’t know completely what it is. If any damage occurs to your device, I won’t be held liable.

How to Unlock Bootloader on Nexus 4

1. Backup everything on your phone, including the data on the internal storage, as unlocking the bootloader will erase every single thing on the phone.

2. Download and install the Android SDK → from here. This will install the necessary drivers for the phone on your computer. ( The drivers for your phone can be installed manually by other methods too, they are mandatory ) For the fastboot driver to install (and for fastboot commands to work), your device must be booted in fastboot mode.

3. Download Fastboot, which will be used for unlocking the bootloader.
Download Fastboot here .

4. Extract the Fastboot.zip file on your computer to get a folder named Fastboot with four files inside it. To keep things easy, extract the Fastboot folder to your C: drive.

5. Turn off your Nexus 4. Then, boot into fastboot mode by holding down the Volume down and Power buttons together till the screen turns on and shows “Start” written in big green letters.

6. Then, connect your Nexus 4 to the computer with your USB cable, then wait for Windows to finish installing the drivers (drivers will be installed only the first time). For reliability, ensure that you use a USB port at the back if you are using a desktop computer, as the front panel ports can be loose and cause problems.

7. Click on Start menu » All Programs » Accessories » right-click on Command Prompt and click on Run as administrator. If you are using Windows 8, this can be done by right-clicking on the extreme bottom left corner of the taskbar, then selecting “Command Prompt (admin)”

8. Now, perform the following steps in the command prompt to unlock the bootloader (check the screenshot after step 8.3 for reference)
8.1. Navigate to the Fastboot folder which you obtained in step 4. For example, if the Fastboot folder is in drive C on your computer, enter cd C:\Fastboot in command prompt (and press Enter) to navigate to the folder.
8.2. Then, enter fastboot devices. If your Nexus 4 has been detected properly, you will see a device ID show up in command prompt. If nothing comes up, make sure you have installed the drivers (step 2).
8.3. Finally, to unlock the bootloader, enter fastboot oem unlock in command prompt. You will get a prompt on the phone asking whether you want to unlock the bootloader. Just select Yes. Remember that this will wipe all your data, so make sure you took a backup.


9. The phone will then reboot, and once it starts up, you can set up your phone.

10. To re-lock the bootloader, simply follow the entire procedure again from step 5 to 8, but in step 8.3, enter fastboot oem lock. This will re-lock the bootloader.


The bootloader on your Nexus 4 is now unlocked, and you can start installing custom ROMs and make other modifications to the phone. Have fun!

SOURCE
The Following 74 Users Say Thank You to TheDarkDefender For This Useful Post: [ View ] Gift TheDarkDefender Ad-Free
4th November 2012, 05:00 AM |#2  
symple's Avatar
Senior Member
Flag an island in the SUN
Thanks Meter: 27
 
More
Angry
. . .anticpating the release date for purchasing . .
4th November 2012, 06:21 AM |#3  
ZeDestructor's Avatar
Senior Member
Thanks Meter: 60
 
More
Quote:
Originally Posted by TheDarkDefender

-This guide is going to help you with step-by-step instructions that will get you an unlocked bootloader on your Nexus 4.

-Keep in mind that unlocking the bootloader will erase all the data on your phone (every single thing, including internal storage), hence it is preferable to unlock the bootloader when the phone is new, as then you don’t have to go through the hassle of re-installing everything.

Compatibility

This guide is applicable only for the LG Nexus 4. Do not try this on any other device.

Warning!

The methods and procedures discussed here are considered risky and you should not attempt anything if you don’t know completely what it is. If any damage occurs to your device, I won’t be held liable.

How to Unlock Bootloader on Nexus 4

1.Backup everything on your phone, including the data on the internal storage, as unlocking the bootloader will erase every single thing on the phone.

2.Download and install the Android SDK → from here. This will install the necessary drivers for the phone on your computer.

3.Download Fastboot, which will be used for unlocking the bootloader.
Download Fastboot here

4.Extract the Fastboot.zip file on your computer to get a folder named Fastboot with four files inside it. To keep things easy, extract the Fastboot folder to your C: drive.

5.Turn off your Nexus 4. Then, boot into fastboot mode by holding down the Volume down and Power buttons together till the screen turns on and shows “Start” written in big green letters.

6.Then, connect your Nexus 4 to the computer with your USB cable, then wait for Windows to finish installing the drivers (drivers will be installed only the first time). For reliability, ensure that you use a USB port at the back if you are using a desktop computer, as the front panel ports can be loose and cause problems.

7.Click on Start menu » All Programs » Accessories » right-click on Command Prompt and click on Run as administrator. If you are using Windows 8, this can be done by right-clicking on the extreme bottom left corner of the taskbar, then selecting “Command Prompt (admin)”

8.Now, perform the following steps in the command prompt to unlock the bootloader (check the screenshot after step 8.3 for reference)
8.1.Navigate to the Fastboot folder which you obtained in step 4. For example, if the Fastboot folder is in drive C on your computer, enter cd C:\Fastboot in command prompt (and press Enter) to navigate to the folder.
8.2Then, enter fastboot devices. If your Nexus 4 has been detected properly, you will see a device ID show up in command prompt. If nothing comes up, make sure you have installed the drivers (step 2).
8.3Finally, to unlock the bootloader, enter fastboot oem unlock in command prompt. You will get a prompt on the phone asking whether you want to unlock the bootloader. Just select Yes. Remember that this will wipe all your data, so make sure you took a backup.


9.The phone will then reboot, and once it starts up, you can set up your phone.

10.To re-lock the bootloader, simply follow the entire procedure again from step 5 to 8, but in step 8.3, enter fastboot oem lock. This will re-lock the bootloader.


The bootloader on your Nexus 4 is now unlocked, and you can start installing custom ROMs and make other modifications to the phone. Have fun!

SOURCE

Exact same as Nexus S and GNex: Go to bootloader, run "fastboot oem unlock"
The Following User Says Thank You to ZeDestructor For This Useful Post: [ View ] Gift ZeDestructor Ad-Free
4th November 2012, 06:29 AM |#4  
amitrathiesh's Avatar
Member
Flag Trivandrum, Kerala
Thanks Meter: 31
 
Donate to Me
More
Waiting to get my hands on the new Nexus 4. I'll be back soon. \m/

Sent from my GT-N7000 using xda premium
4th November 2012, 09:35 AM |#5  
jacklebott's Avatar
Senior Member
Flag Land of the Idiots
Thanks Meter: 490
 
More
Guides go in the "General" section
4th November 2012, 09:42 AM |#6  
TheDarkDefender's Avatar
OP Senior Member
Flag Reston, VA
Thanks Meter: 6,524
 
More
Quote:
Originally Posted by jacklebott

Guides go in the "General" section

what? this is development related. I did check a few other device forums before I posted here. Guides like rooting,unlocking,etc. always are in the dev section. Let the moderator decide that.
The Following User Says Thank You to TheDarkDefender For This Useful Post: [ View ] Gift TheDarkDefender Ad-Free
5th November 2012, 11:34 AM |#7  
Junior Member
Thanks Meter: 5
 
More
this is awesome, but any way for a mac version?

thanks
5th November 2012, 11:49 AM |#8  
killman2659's Avatar
Senior Member
Flag Illinois, USA
Thanks Meter: 225
 
More
I'm going to be doing this as soon as I get my N4. Hopefully they get sold out so I can wait a few days and CM will be released so I won't have to worry about setting everything up coming from stock
5th November 2012, 12:01 PM |#9  
wngmv's Avatar
Senior Member
Thanks Meter: 95
 
More
Quote:
Originally Posted by killman2659

I'm going to be doing this as soon as I get my N4. Hopefully they get sold out so I can wait a few days and CM will be released so I won't have to worry about setting everything up coming from stock

How can you be sure that the CM devs got their phones? I don't think they have special channels do they?

On a separate note,

Awesome. First thing to do when I get that thing delivered. (and hopefully don't brick it.)
5th November 2012, 12:37 PM |#10  
eep2378's Avatar
Senior Member
Flag MA
Thanks Meter: 2,264
 
Donate to Me
More
Correct me if I'm wrong, but you can root without unlocking the bootloader, right? If so, why the need?
5th November 2012, 12:42 PM |#11  
Senior Member
Thanks Meter: 116
 
More
Quote:
Originally Posted by eep2378

Correct me if I'm wrong, but you can root without unlocking the bootloader, right? If so, why the need?

Only if the security isn't good enough.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes