• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Search This thread

z3DD3r

Senior Member
Feb 9, 2016
250
1,383
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
Status: Stable

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

z3DD3r

Senior Member
Feb 9, 2016
250
1,383
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
250
1,383
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 Sep 09, 2021.
  1. SurfaceFlinger

  2. QCOM display
    git fetch https://github.com/z3DD3r/android_hardware_qcom_display lineage-18.1 && git cherry-pick 6efcc49e6a81fdc1e248f5002633f8cad6e6395b^..064cec4d219aa3e4c26f0a281d93f064b9372832

  3. Vold (USB OTG)
    git fetch https://github.com/z3DD3r/android_system_vold lineage-18.1 && git cherry-pick eca4855b992868e05f3be34ea9f7c41b565b4e1a^..f5730f872ed7e58a064529346d3e371b9cd4d73f

  4. AOSP Keyboard
    git fetch https://github.com/z3DD3r/android_packages_inputmethods_LatinIME lineage-18.1 && git cherry-pick 7e55f8c6b7257af03891934da329e2f6aea72c67^..6b0819b6373ee18766d8b1846dcf512dd527dc13
 
Last edited:

Mr.FREE_Bird

Senior Member
Nov 5, 2013
597
545
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
597
545
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
112
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
597
545
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
250
1,383
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.
  • 13
    Build build (20211102) with October security patch is out!

    Clean flash is recommended! If you u can’t do a clean flash then boot into TWRP, uninstall magisk using the uninstaller.zip, mount /data partition, remove /data/misc/radio/qcril.db file, install new update, wipe cache + dalvik/art cache and boot into system. After that u can reinstall magisk again.
    13
    New build (20211111) with November security patch is out!
    This build includes a fix for built-in camera
    9
    Build build (20211101) with October security patch is out!
    Build 20211101 was removed cos of abnormal battery drain! New build will be uploaded in 24 hours!
    5
    I flashed build 20211101, and had battery drain for the last couple of builds. But I also flashed the previous build that was pulled as well. Before flashing 20211101 I turned off the phone, charged it to 100% via offline charging. I had an updated OpenGapps zip downloaded, but that was pulled as well so I deleted that.

    So with OpenGapps from 21 October 2021 I did the dirty flash according to the instructions, then I updated Play Store and Google Play Services and this was about 4 hours ago as the time of writing. But for me the battery drain seems to be resolved. Currently I have 97% battery life, still stock battery. I'd say that's good, but I might be wrong and something else causes the battery drain.
    20211101 still has battery drain issues because of missed CPU low power modes in ROM. This can be reproduced even if you install only ROM without gapps. Just wait for new build

    I'm trying to download the latest build from SF. Am I just a total idiot or is it not there anymore? On the Summary page I still see a link (updated 6 hours ago) for https://sourceforge.net/projects/ha...101-UNOFFICIAL-hammerhead-signed.zip/download but when I go to that it's telling me the file doesn't exist.

    I also took the OTA JSON file for 18.1 and grabbed the download URL from that and it also doesn't work for me.
    Read my message above. This build was removed. New one is coming soon
    5
    Battery drain issue confirmed fixed. 2% discharge in 14 hours.
  • 49
    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
    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