Home › Devices › LG (built for Google) › Google Nexus 5
LG (BUILT FOR GOOGLE) · PHONE · 2013
Google Nexus 5
Also called: Nexus 5 · hammerhead · LG-D820 · LG-D821
2013 Google flagship (LG hammerhead) with an unlockable bootloader, official TWRP, and long custom-ROM life. Common work: unlock + TWRP, LineageOS, legacy Ubuntu Touch, Nexmon Wi-Fi patches, battery swap, and rare eMMC upgrades.[9][2][3][10]
Which one do I have?
Specs
Mods (7)
⚠ Mod at your own risk. We collect what others have published; we have not tested these mods. Read the safety notes
Unlock bootloader and flash TWRPWorks
- ⚠ Can brick A mistake can leave the device unable to start.
- ⚠ Data loss Can erase what is on the device. Back up first.
Unlock with fastboot oem unlock (wipes data), then flash Team Win Recovery. Needed before most custom ROMs.[10][2][13][14][11]
Good to know
- LineageOS hammerhead install: enter fastboot with Volume Down + Power, then fastboot oem unlock. Unlocking lets you flash custom partitions.[10][11]
- Changing lock state factory-resets userdata to protect encryption credentials. The bootloader warns about unofficial images.[14]
- TWRP has an official LG Nexus 5 (hammerhead) page: flash with fastboot flash recovery twrp.img. TWRP is a touch GUI recovery for nandroid backups, wipes, and ROM installs.[2][13]
Guides:Install LineageOS on hammerhead | LineageOS WikiLG Nexus 5 - TWRP
LineageOSWorks
- ⚠ Can brick A mistake can leave the device unable to start.
- ⚠ Data loss Can erase what is on the device. Back up first.
Flash LineageOS via recovery after unlocking. Official wiki covers hammerhead specs, key combos, and the sideload install path.[10][3][11][12][16]
Good to know
- After unlocking, flash recovery, format user data, and sideload the LineageOS zip with ADB. Volume Down + Power reaches the bootloader; choose RECOVERY with Power.[10][3]
- LineageOS ships without bundled root or Google services. Builds are device-specific — other devices' images must not be used.[11][12]
- If you want Play Store apps, Open GApps packages are flashed from recovery right after the ROM, before the first boot.[16]
Guides:Install LineageOS on hammerhead | LineageOS WikiInfo about hammerhead | LineageOS Wiki
Magisk systemless rootWorks
- ⚠ Can brick A mistake can leave the device unable to start.
- ⚠ Data loss Can erase what is on the device. Back up first.
Patch the boot image on the phone for Magisk root without rewriting /system. Useful after a custom ROM if you need modules or root apps.[15][11]
Good to know
- Magisk patches the boot (or init_boot) ramdisk rather than /system. Always patch the boot image on the same device you will install it on.[15]
- A bad patch can bootloop; recover by re-flashing the original stock boot image. LineageOS does not recommend or ship root.[15][11]
Guides:Installation | Magisk
Ubuntu Touch (legacy)Discontinued
- ⚠ Can brick A mistake can leave the device unable to start.
- ⚠ Data loss Can erase what is on the device. Back up first.
Older Ubuntu Touch / UBports 16.04 images exist for hammerhead. Current Ubuntu Touch does not support the Nexus 5.[1]
Good to know
Nexmon Wi-Fi firmware patchesWorks
- ⚠ Can brick A mistake can leave the device unable to start.
- ⚠ Check the law May break a law or rule where you live.
Patch the Broadcom BCM4339 firmware for monitor mode, frame injection, and CSI extraction.[8]
Good to know
- seemoo-lab/nexmon is a C firmware-patching framework with a bcm4339 path for the Nexus 5 (patches/bcm4339/…/nexmon; make builds a patched firmware).[8]
- Patches unlock raw Wi-Fi monitor mode, packet injection, and channel state information.[8]
Guides:GitHub - seemoo-lab/nexmon
Battery replacementWorks
- ⚠ Lithium battery Uses or touches a lithium cell. A damaged cell can catch fire.
Open the plastic back, remove the midframe, and swap the battery. Common fix when the pack swells or dies.[5][4][9]
Parts
Good to know
64 GB eMMC chip upgradeExperimental
- ⚠ Soldering Needs a soldering iron. Heat can lift pads and burn skin.
- ⚠ Can brick A mistake can leave the device unable to start.
- ⚠ Data loss Can erase what is on the device. Back up first.
- ⚠ Permanent change Cuts, drills or glues the device. You cannot undo it.
Hot-air rework the BGA eMMC from 16 GB to a 64 GB part. Expert microsoldering only.[7][6]
Good to know
- Hackaday covers an XDA report of upgrading a Nexus 5 from 16 GB to 64 GB by desoldering the eMMC 4.5 chip and fitting a 64 GB eMMC 5.0 BGA. The conversion details are vague.[7]
- Full motherboard removal (antenna coax, display flex, cameras) is the path to reach the board for this kind of work.[6]
Guides:Upgrading A Nexus 5 EMMC To 64GB | HackadayNexus 5 Motherboard Replacement - iFixit
Sources (16)
- docs Google Nexus 5 • Ubuntu Touch · 2026-11-16
- docs LG Nexus 5 - TWRP · 2026-11-16
- docs Info about hammerhead | LineageOS Wiki · 2026-11-16
- wiki Nexus 5 Repair Help - iFixit · 2026-11-16
- docs Nexus 5 Battery Replacement - iFixit · 2026-11-16
- docs Nexus 5 Motherboard Replacement - iFixit · 2026-11-16
- blog Upgrading A Nexus 5 EMMC To 64GB | Hackaday · 2026-11-16
- docs GitHub - seemoo-lab/nexmon · 2026-11-16
- wiki Nexus 5 - Wikipedia · 2026-11-16
- docs Install LineageOS on hammerhead | LineageOS Wiki · 2026-11-15
- docs Frequently Asked Questions | LineageOS Wiki · 2026-11-15
- docs Devices | LineageOS Wiki · 2026-11-15
- docs What is TWRP? · 2026-11-15
- docs Lock and unlock the bootloader | Android Open Source Project · 2026-11-15
- docs Installation | Magisk · 2026-11-15
- docs The Open GApps Project · 2026-11-15