Unlock Nexus 4 Bootloader: Step-by-Step Guide
Unlocking the bootloader on your Google Nexus 4 lets you flash custom recoveries, install custom ROMs, and gain root access. It also wipes all data on the phone, so back up anything important first. This guide walks you through the process on a Windows, macOS, or Linux computer using official Google tools.
What You’ll Need
- A Google Nexus 4 (any model, E960)
- A USB cable that supports data transfer
- A computer with internet access
- Android SDK Platform Tools installed (includes ADB and Fastboot). You can download them from the official Android developer site.
- USB drivers for your Nexus 4 (Windows only; on macOS and Linux, drivers are usually built-in)
- Your phone’s battery charged to at least 70%
- All personal data backed up (unlocking wipes everything)
Step-by-Step
- Enable Developer Options on your phone: Go to Settings > About phone. Tap Build number seven times until you see “You are now a developer!”
- Enable USB debugging: Go to Settings > Developer options and toggle USB debugging on. Also enable OEM unlocking if the option is present (on Android 4.2+ it may not appear until you sign in to a Google account).
- Install Platform Tools on your computer: Download the SDK Platform Tools zip for your OS, extract it to a folder (e.g.,
platform-tools). On Windows, you may need to install the Google USB driver from the same page. - Open a command prompt or terminal in the platform-tools folder: On Windows, hold Shift and right-click inside the folder, then select “Open command window here” or “Open PowerShell window here”. On macOS/Linux, open Terminal and
cdinto the folder. - Connect your phone to the computer: Use the USB cable. If prompted on the phone, allow USB debugging by tapping OK.
- Verify the connection: Type
adb devicesand press Enter. You should see your device listed as “device” (not “unauthorized”). If it says unauthorized, check the phone screen and accept the RSA key prompt. - Boot your phone into fastboot mode: Type
adb reboot bootloaderand press Enter. The phone will restart into the bootloader (a screen with a green Android robot lying down). - Verify fastboot connection: Type
fastboot devices. Your device should appear with a serial number. If it doesn’t, you may need to reinstall drivers or try a different USB port. - Unlock the bootloader: Type
fastboot oem unlockand press Enter. On the phone, a confirmation screen will appear. Use the volume keys to highlight Yes and press the power button to confirm. - Wait for the process to complete: The phone will wipe data and reboot automatically. You’ll see the bootloader screen again, then the phone will boot into the Android setup wizard.
- Verify the unlock: After setup, you can reboot into the bootloader again (using
adb reboot bootloader) and check for the word “unlocked” at the bottom of the screen.
Common Mistakes
- Skipping the backup: Unlocking wipes all data. Forgetting to back up photos, contacts, and files means losing them permanently.
- Not enabling USB debugging: Without it, ADB won’t recognize your phone, and the process fails at the first step.
- Using the wrong USB cable: Some cables are charge-only and don’t carry data. Use the original cable or one known to work for data transfer.
- Incorrect driver installation on Windows: If fastboot doesn’t see your device, the driver is likely wrong. Uninstall the old driver and reinstall the Google USB driver from the SDK manager.
- Interrupting the process: Unplugging the cable or closing the command window during the unlock can brick the phone. Wait for the process to finish completely.
Tips
- Make sure your phone is at least 70% charged to avoid it dying mid-process.
- If you’re on Windows, use a USB 2.0 port instead of a USB 3.0 one; some older devices have compatibility issues.
- After unlocking, you can relock the bootloader later with
fastboot oem lock, but this will wipe data again and may prevent certain custom ROMs from booting. - Keep the platform-tools folder handy; you’ll need ADB and fastboot for future flashing tasks.
- If you plan to root, unlock the bootloader before installing any custom recovery.
Troubleshooting
“adb devices” shows no device: Check that USB debugging is enabled and the cable is connected properly. Try a different USB port, and on Windows, reinstall the USB driver.
“fastboot devices” shows nothing: Ensure the phone is in fastboot mode (not the regular boot). If it’s in fastboot mode and still not showing, the driver may not support fastboot. On Windows, open Device Manager, find the device with a yellow exclamation, and update the driver to the Google USB driver.
Phone gets stuck on the bootloader screen after unlocking: This is normal sometimes. Wait a few minutes; if it doesn’t proceed, pull the battery (if possible) or hold the power button for 10 seconds to force a reboot. It should boot normally.
Unlock command fails with “FAILED (remote: oem unlock is not allowed)”: This means the OEM unlocking option is not enabled. Reboot to the system, go to Settings > Developer options, and ensure “OEM unlocking” is toggled on. If it’s grayed out, make sure you’re signed into a Google account and have an internet connection.
Phone asks for a password after reboot: This is due to encryption. After unlocking, the phone will be wiped, so it should not ask for a password unless you had a lock screen PIN. If it does, try entering your old PIN or password; if that fails, you may need to reflash the factory image.
Frequently Asked Questions
Does unlocking the bootloader void the warranty? Yes, it typically voids the warranty from the manufacturer, though Google’s official policy may vary. Check your local consumer laws.
Will unlocking the bootloader delete all my data? Yes, it performs a factory reset and wipes all internal storage. Back up everything before proceeding.
Can I relock the bootloader after unlocking? Yes, you can use fastboot oem lock. This will wipe data again and may prevent custom ROMs from booting, but it restores the stock lock state.
Is it safe to unlock the bootloader? It’s generally safe if you follow the steps correctly. There is a small risk of bricking if you interrupt the process or have a faulty cable.
Do I need to root after unlocking? No, unlocking is separate from rooting. Unlocking allows you to flash custom recoveries and ROMs, but rooting requires flashing a root package (like Magisk) separately.
Will I still get OTA updates after unlocking? Unlocking alone doesn’t block OTA updates, but if you install a custom ROM or recovery, you may lose the ability to receive official OTA updates.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.