NOTE: Win+R is the shortcut of pressing the Windows Key on your keyboard + R, which will bring up the "RUN" commandPART 1: Prerequisites before unlocking & rooting: The Drivers Installation1. Download
Universal Naked Driver2. Uninstall any current existing drivers for your Android Devices (Right click Computer > Properties > Device Manager; or just use the RUN COMMAND (Windows Key + R) and type '
devmgmt.msc. Reboot your PC after uninstalling these previous drivers.
3. Plug-in your android device to your computer, and then follow the
instructions listed by Google; except replace the driver selection with the
Universal Naked Driver you previously downloaded.
4. Congratulations! Universal Naked Drivers setup is now complete.
PART 2: Android SDK Installation1. Next, you'll need to have Android SDK installed (or extracted) to your computer.
Go to this link, click on 'DOWNLOAD FOR OTHER PLATFORMS' and look under 'SDK Tools Only'
(unless you're a developer
) and download the correct file matching your OS.
2. If your downloaded file is
.zip - extract them to C:\ and you should end up with a
'android-sdk-windows' folder within C:\; but if your downloaded file is
.exe, install it as you usually would and set the path pointing directly to C:\.
3. By right, your
C:\android-sdk-windows\platform-tools will now have
fastboot.exe and
adb.exe, then you're clear to proceed! If you do not have these files yet, go back to previous directory and run "SDK Manager"; download the 'platform tools' and exit the manager.
4. To test if everything is working well, start up Command Prompt from your start menu (or Win+R > cmd > ENTER); and type '
adb help' and '
fastboot help'. If it returns you with tons of help information, it works as it should. But chances are the system do not know recognize these commands (as they do not know the directory of these SDK files). Thus, you'll have to point the system to your SDK path within the Computer's Environment Variable. To do this:
---4.1 Start > Right click on "Computer" > Properties > Advanced System Settings > Environment Variables
(and if you're lazy just like me, hit Win+R > Type 'control sysdm.cpl,,3' > hit ENTER > A system properties in Advanced Tab should show up, now click Environment Variables)---4.2 Look under "System Variables" (at the bottom tab) and look for the variable "Path" (or "PATH"); double click on it and add '
C:\android-sdk-windows\platform-tools' behind. Do not that you may have to add
semicolon (
prior to adding the path, if it is not already existing. After adding, your path would look something like this (example):
CODE
C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Java\jdk1.7.0_10\bin\;C:\android-sdk-windows\platform-tools
---4.3 Now go back and launch a new Command Prompt
(do not use the previous command prompt which failed to recognize the command) and try typing the commands
(as in Step 4) again. They should work flawlessly now.
5. Congratulations! Android SDK setup is now complete.
PART 3: Nexus 4 Unlocking & RootingSince this part is pretty simple I'll leave it to the original thread to guide you there

. Refer below.
For full guide, refer to this link:
http://forum.xda-developers.com/showthread.php?t=2018179