[ROM][UNOFFICIAL] LineageOS 18.1 for Nexus 5 (hammerhead) [DISCONTINUED]

Search This thread

z3DD3r

Senior Member
Feb 9, 2016
296
1,510
Minsk
Google Nexus 5
OnePlus 9R
LineageOS 18.1 is a free, community built, aftermarket firmware distribution of Android 11.0 (R), which is designed to increase performance and reliability over stock Android for your device.

Code:
#include <std_disclaimer.h>

/*
* Your warranty is now void.
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/
LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

The source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit our Gerrit Code Review. Your changelog is whatever was merged into gerrit.

Known bugs:
Screen mirroring via slimport HDMI adapter doesn't work.
PMF aka 802.11w doesn't supported. Read here about it.
Encryption has problems. Read here about it.

Downloads:
ROM: https://sourceforge.net/projects/hammerhead-lineageos/files/18.1/
GAPPS: https://opengapps.org/?arch=arm&api=11.0&variant=pico

Credits:
Many thanks to the LineageOS team and all the contributors out there in the community

Contributors:
z3DD3r

Source Code:
Device tree: https://github.com/z3DD3r/android_device_lge_hammerhead/tree/lineage-18.1
Kernel tree: https://github.com/z3DD3r/android_kernel_lge_hammerhead/tree/lineage-18.1
Vendor tree: https://github.com/z3DD3r/android_vendor_lge/tree/lineage-18.1

Android version: 11.0.0 (R)
Kernel version: Linux 3.4.113
SELinux: Enforcing
Status: Stable

Created 2021-01-07
Last Updated 2021-06-08
 
Last edited:

z3DD3r

Senior Member
Feb 9, 2016
296
1,510
Minsk
Google Nexus 5
OnePlus 9R
ROM Installation

To install rom you should increase the /system partition size
This can be done for example with TWRP HH.R

GAPPS Installation

LineageOS Team have recommendations about GAPPS
Here are the most important two copied from LineageOS WiKi:
  • If you opt to use Open GApps, they offer a variety of sizes of packages that include and overwrite different apps. We only recommend package sizes up through nano. If you use a larger package, we can not guarantee that everything will function on your device, as in many of these cases our included apps are overwritten in favor of the Google App equivalents.
  • Google apps should be installed via recovery immediately after installing LineageOS. If you reboot into LineageOS before installing Google apps, you must factory reset and then install them, otherwise expect crashes.
 
Last edited:

z3DD3r

Senior Member
Feb 9, 2016
296
1,510
Minsk
Google Nexus 5
OnePlus 9R
Patches

Patches you need to apply to the source code to get the same functionality as in my builds. All patches are actual as of Jun 24, 2022.
  1. SurfaceFlinger

  2. QCOM display
    git fetch https://github.com/z3DD3r/android_hardware_qcom_display lineage-18.1 && git cherry-pick 29fb1e50d1f2b7cf2386ab168fcffd23450a4ba8^..a7cf3dab9881e40550617febd03a68ace43cfa5f

  3. QCOM media
    git fetch https://github.com/z3DD3r/android_hardware_qcom_media lineage-18.1 && git cherry-pick 8f2abf1879e48068b86d57d8d67d799623a7157a^..075f70c24c10173a861bd84cdd08926783f6680b

  4. Vold (USB OTG)
    git fetch https://github.com/z3DD3r/android_system_vold lineage-18.1 && git cherry-pick fcbc4e0cff6843f011e814e6ced291055cc2d467^..cc5f962ed154717df93ddd0843d3bb57739bdd77

  5. AOSP Keyboard (Optional)
    git fetch https://github.com/z3DD3r/android_packages_inputmethods_LatinIME lineage-18.1 && git cherry-pick 7e55f8c6b7257af03891934da329e2f6aea72c67^..6b0819b6373ee18766d8b1846dcf512dd527dc13

  6. Trebuchet Launcher (Optional)
 
Last edited:

Mr.FREE_Bird

Senior Member
Nov 5, 2013
614
569
Last edited:

Ogzador

New member
Dec 11, 2019
4
0
Need help, please. After los18 zip installing, my twrp was killed. And now i have los recovery. And none-resized sistem partition. Now i can't install gapps.
 

Mr.FREE_Bird

Senior Member
Nov 5, 2013
614
569
Need help, please. After los18 zip installing, my twrp was killed. And now i have los recovery. And none-resized sistem partition. Now i can't install gapps.
Those issues you mention don't seem to be related to this ROM. I just flashed this ROM on my N5 and my TWRP did not get overwritten nor did my partition sizes get reverted to the stock sizes. I don't know what has gone wrong on your side.
 

zheega

Senior Member
Feb 17, 2016
72
8
Woah, amazing. Thanks! Everything seems to be working so far, only Magisk fails to install.
 
  • Like
Reactions: topo01

JackyGundam

Senior Member
Dec 13, 2016
113
18
Google Nexus 5
Samsung Galaxy Tab S
Those issues you mention don't seem to be related to this ROM. I just flashed this ROM on my N5 and my TWRP did not get overwritten nor did my partition sizes get reverted to the stock sizes. I don't know what has gone wrong on your side.
while setting up when booted in, it ask if u want to update lineage recovery along with the os. I think that may overwrite twrp
 
  • Like
Reactions: GBSWORLD

Mr.FREE_Bird

Senior Member
Nov 5, 2013
614
569
while setting up when booted in, it ask if u want to update lineage recovery along with the os. I think that may overwrite twrp
Maybe but judging from what he said I think he says that his TWRP got overwritten and his partitions got reverted to the stock sizes right after flashing the ROM. So it looks like he did something wrong or doesn't read what the setup asks him...
 

zheega

Senior Member
Feb 17, 2016
72
8
It doesn't work with fresh install (just a constant boot loop), but updating from 20210108 to 20210109 works.
 

z3DD3r

Senior Member
Feb 9, 2016
296
1,510
Minsk
Google Nexus 5
OnePlus 9R
It doesn't work with fresh install (just a constant boot loop), but updating from 20210108 to 20210109 works.
My tester said that everything works fine after clean installation as well as after update. But there is a problem with latest test package of opengapps. Device can't boot. So if u used opengapps then this is your problem.

Anyway before posting such reports try to perform a clean flash of the ROM without additional packages (gapps/magisk/mods)
 

marzapane

New member
Aug 12, 2013
4
0
I haven't used my Nexus 5 in a few years and now I would like to update it to android 10, in particular your LineageOS 17.1.
But being many years since the last update I was wondering if my recovery, kernel and radio were compatible with android 10. Would you be able to suggest which recovery, which magisk version, which kernel and radio to install? Maybe kernel and radio now come bundled with the OS (?)
Lastly, there is any peculiar step for a clean installation procedure?

I tried to search on the thread beforehand, but couldn't find the answers. Sorry if you already answered my questions.

Thanks a lot for the your time and effort!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 57
    LineageOS 18.1 is a free, community built, aftermarket firmware distribution of Android 11.0 (R), which is designed to increase performance and reliability over stock Android for your device.

    Code:
    #include <std_disclaimer.h>
    
    /*
    * Your warranty is now void.
    *
    * We are not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at us for messing up your device, we will laugh at you.
    *
    */
    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    The source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit our Gerrit Code Review. Your changelog is whatever was merged into gerrit.

    Known bugs:
    Screen mirroring via slimport HDMI adapter doesn't work.
    PMF aka 802.11w doesn't supported. Read here about it.
    Encryption has problems. Read here about it.

    Downloads:
    ROM: https://sourceforge.net/projects/hammerhead-lineageos/files/18.1/
    GAPPS: https://opengapps.org/?arch=arm&api=11.0&variant=pico

    Credits:
    Many thanks to the LineageOS team and all the contributors out there in the community

    Contributors:
    z3DD3r

    Source Code:
    Device tree: https://github.com/z3DD3r/android_device_lge_hammerhead/tree/lineage-18.1
    Kernel tree: https://github.com/z3DD3r/android_kernel_lge_hammerhead/tree/lineage-18.1
    Vendor tree: https://github.com/z3DD3r/android_vendor_lge/tree/lineage-18.1

    Android version: 11.0.0 (R)
    Kernel version: Linux 3.4.113
    SELinux: Enforcing
    Status: Stable

    Created 2021-01-07
    Last Updated 2021-06-08
    20
    Hello
    Some of you already saw that new build was released. The reason for new build is a bug in gps reported by one of my testers. And it so happened that the bug fix coincided with the release of the new security patch. It doesn't mean that i will continue to support N5 in the future...
    20
    New LOS 18.1 build is up (lineage-18.1-20210614-UNOFFICIAL-hammerhead-signed.zip)
    Changelog:
    1. June security patch
    2. Latest code from LineageOS team
    3. Updated bluetooth firmware (from Sony Z3)
    4. Updated device tree. Removed test apps and binaries
    5. Updated kernel. Disabled debug stuff + updated LZ4 compression for ZRAM



    This is the last build from my side. I don't have a Nexus 5 and don't have time and motivation to support this device. I've added a list of patches (in the 3rd post of this thread) which i've used in my builds so anyone can make own builds of LineageOS 18.1
    16
    Hello

    New build is out. Short changelog:
    1. April's security patch
    2. Fixed GPS blobs
    3. Fixed SELinux denials
    4. Fixed Wi-Fi Display
    5. Added some changes in kernel
    6. Improved memory usage

    Some notes about last item. I have enabled some options which are used on low memory devices with Android GO. It doesn't mean that i've build GO version of android. This will improve memory usage and more memory will be available.

    Huge thanks to @tapecoda for tests!
    15
    Hello

    New build is out. Short changelog:
    1. May's security patch
    2. Minor improvements in device tree and kernel