AOSP [7.1.2_r33]Nougat for Nexus 5 [NZH54D] [25/10/2017]

Search This thread


Senior Member
Mar 27, 2011
Somewhere in Canada ;)
@Santhosh M
Running Aosp 7.0 for Nexus 5 (16/09/2016): the following security vulnerability CVE-2016-2504
Tested with 'QuadRooter Scanner'
fix based on:
File: hammerhead_nkernel-nougat\drivers\gpu\msm\kgsl.c
Fix: see attachment: FIXkgsl.7z --> FIXkgsl.c
Could you fix this please?
I suppose this is the last security vulnerability in your ROM I hope :)

I don't put too much into apps..


Senior Member
Aug 12, 2013
really sorry, hope you find something
Well, It seemed like it I made a typing mistake while configuring the APN.
My keyboard automatically inserts a space after every word and that seemed to be the issue.
I reconfigured it once again paying close attention at this aspect and now everything works like a charm.
Thank you everyone for replying and watch out yourself when you configure it too. Don't get fooled like I did. :(


Senior Member
Feb 13, 2016
well, calls work just fine, only cellular network doesn't work
I already have the latest ones:
radio: radio-hammerhead-m8974a-
bootloader: bootloader-hammerhead-hhz20h

edit: tried reflashing bootloader and radio, still no luck

What network are you using? I could help u if ur on T-mobile


Senior Member
Dec 9, 2012
South Australia
I already did this too, but it doesn't seem to do the trick for me.
Thank you anyway for the reply :D

Make sure once you've input your apn details manually that you navigate to the 3 dots in the top right hand corner & select save. Then select the dot next to your apn to enable it. Reboot your phone, your apn configuration will now stay enabled.
Last edited:
  • Like
Reactions: flatpedals


Senior Member
Apr 22, 2010
Installed yesterday, everything seemed 100% and then this morning camera doesn't work at all. Camera error-can't connect to the camera kind of thing. Tried bunch of different apps to no avail. Only thing I can think of that may have caused it was installation of Magisk and PHH superuser. Anyone having similar problems or have any advice?
  • Like
Reactions: flatpedals


Sep 17, 2016
Installed yesterday, everything seemed 100% and then this morning camera doesn't work at all. Camera error-can't connect to the camera kind of thing. Tried bunch of different apps to no avail. Only thing I can think of that may have caused it was installation of Magisk and PHH superuser. Anyone having similar problems or have any advice?
Turn off the selinux toggle from magisk manager and it will work.


Senior Member
Sep 30, 2012
South India
Finally managed to install the latest build today along with Open Gapps Micro. Initial impressions are very good. I am falling in love with the way the device is functioning N in such a flawless manner. Music app is not working and gives FC whenever it is opened, not an issue as I already purchased Poweramp. A big thumbs up to Santhosh who made this possible.

Will update soon on battery stats and overall usage stats.


Senior Member
Apr 5, 2009
Thank you for this build.

Everything works fine except issues with GPS in some apps. Waze for example starts but is unable to determine the location. "GPS Status" does not start at all. And there is constant location notification near the clock in notification bar.
Has anyone seen this?
Last edited:
  • Like
Reactions: karolgarlicki


New member
Feb 27, 2014
Brilliant Work

Thanks, Santhosh. Thank you for making the Nexus 5 to rise back from its death.

With a little tweaking and suggestions from the community, I am confident everyone can use it for their daily use.
  • Like
Reactions: sa4ni

Top Liked Posts

  • There are no posts matching your filters.
  • 673
    AOSP Nougat 7.1.2 for Nexus 5​

    Hi all,

    This is a nougat build for Nexus 5 and is a decent daily driver. It might contain bugs that i am not aware of or not encountered in my daily use

    What works ?
    • Wifi
    • RIL
    • Bluetooth
    • Camera
    • Other stuff which i might have not mentioned under not working

    What doesn't ?
    • Stuff that i may not be aware of
      (Please don't ask ETA for any bug fixes)

    Changelog :


    • KRACK wifi vulnerability fix.
    • Rest everything remain as such as last released build.

    Older changelogs :

    • Update to 7.1.2_r33 (NZH54D)
    • Brings in August security updates
    • All non aosp features continue to remain

    • Update to 7.1.2_r27 (NZH54B)
    • Brings in July security updates
    • All non aosp features continue to remain

    • Update to 7.1.2_r17 (NJH47B)
    • Brings in June security updates
    • All non aosp features continue to remain

    • Update to 7.1.2_r11 (NHG47L)
    • Brings in May security updates
    • All non aosp features continue to remain

    • Update to 7.1.2_r5 (N2G47J) [ Initial release]
    • Brings in April security updates
    • All non aosp features continue to remain

    • Update to 7.1.1_r28 (N6F26U)
    • Brings in March security updates
    • Added Caffeine tile in quick settings (had a personal use for the same and just added it in the build)
    • Fix Wifi issue faced on custom kernels
    • Fix crash on stock AOSP music player
    • Update to android - 7.1.1_r22 (NMF26X)
    • February security patch
    • Fixes the set wallpaper crash in default Launcher 3
    • Update to 7.1.1_r12 [N4F26M]
    • Fixed long pending bug of double tap statusbar to sleep disable settings not working
    • Fix green flicker issue faced while video recording in custom camera apps such as Google camera [long pending request]
    • Update to 7.1.1_r6 [NMF26Q]
    • Show selinux status in about phone
    • UI lag and audio issues caused by default kernel has been fixed
    • Tethering has also been fixed properly (tested and used it on my device)
    • Fix wifi tethering
    • Update kernel commits from latest google marshmallow release
    • Update vendor blobs from latest marshmallow release for Nexus 5 (M4B30Z)
    • Update broadcomm wifi firmware ( You don't need to flash wifi fix anymore on custom kernels. Google hadn't updated it in nougat branch for some reason all these days)

    • Updated to 7.1.1_r4 (NMF26O) and that makes it the initial 7.1.1 release
    • Selinux is now enforcing
    • AOSP Launcher 3 now default contains pixel launcher features (Not any addition from my end. This is just to let you know the google changes)
    • All my previous non AOSP features continue to remain as such

    • Removed forced partial screenshot (key combo for screenshot will behave like usual regular behavior)
    • Added Screenshot to Power menu & long press on Screenshot in power menu to use partial screenshot
    • Bought back advanced reboot features (recovery,bootloader,soft reboot) to AOSP restart function.
    • Initial support for Pixel navbar animation ( Available as separate flashable zip under downloads. Flash that only on this build as its not a universal any rom flashable zip)

    • Updated to 7.1.0_r7 (that also brings in Nov security updates)
    • Pixel navigation bar (changes on screen buttons to the newer pixel look)
    • Replaces AOSP music app with Eleven (cyanogenmod's music player)
    • Force enabled partial screenshot feature (after pressing the key combination for screenshot, it will ask you to draw the area for screenshot and once u do that it will save the pic)
      Previous features of the ROM continue to remain

    • Brings the night display/night light feature of Android 7.1 (which is currently enabled only for pixel phones).

      - This is same as the night mode in 7.0, but brings certain additions like custom scheduling night mode (like custom time.sunset to sunrise and manual turn on )
      - Can be accessed via Settings - display (available via quick tiles too)
    • Enabled Gestures to appear in setttings menu ( by default its hidden in 7.1 ). This was enabled since double press power button to open camera settings option was not anymore available publicly and it has been moved to gestures

    22/10/2016 :
    • Android 7.1 (NDE63P)
    • Advanced reboot has been removed (Since aosp now has restart by default)
    • Dark theme mode has been removed (Might add back later)
    • Other minor changes

      Non - aosp features :
    • Volume rocker to wake up device
    • Double tap on statusbar to sleep

    For FAQ's/tips/ about the ROM please refer this thread ( This thread is not updated anymore)

    Flashing method :
    • Need to have TWRP
    • Do a full wipe and install the rom
    • Reboot


    AOSP Nougat for Nexus 5 (25/10/2017)

    XDA:DevDB Information
    AOSP [7.1.2] Nougat for Nexus 5, ROM for the Google Nexus 5

    Santhosh M
    Source Code:

    ROM OS Version: 7.x Nougat
    ROM Kernel: Linux 3.4.x

    Version Information
    Status: Stable
    Stable Release Date: 2017-10-25

    Created 2016-08-24
    Last Updated 2017-10-25

    Thanks to the following donators

    Alessandro Martignoni
    Daniel Radics
    Вершинин Алексей
    Martin Graf
    Alex Zilmer
    khemraj nauth

    I am sorry i couldn't tag your xda names as i am not aware of :)

    If someone wishes to thank for my work and donate, choose the option of services/goods in paypal ( as I am a Indian user ) and the donation will go through.
    Finally had a take off

    Just booted. Nothing works of course !

    New build

    Hi all,

    Released a new build. Tested by myself.

    Issues fixed :

    * Camera pictures not getting saved ( Have checked video recording too )
    * Enabled the power modes doze flag

    Additional goodies :

    Both these will be available in systemui tuner ( check attached screenshots )

    * Enabled night mode ( i am loving it )
    * Nav bar customization

    Download link available in OP

    Flash and lemme know your feedbacks :)

    New build (29/09/2016)

    Hi all,

    New build (29/09/2016)

    Changelog :
    • Fixes the APN issue ( should fix the need of manual addition )
    • Reverted the youtube fix change ( looks like it broke for more people than it fixed)
    • Brings back AOSP dark theme feature ( Activate it from settings - display - them) [ Google removed it ]
    • Other minor cleanups
      Non-AOSP feature :
    • Long pending request of volume keys awaking phone feature added. It only adds that support and does not include any other volume key related custom ROM features [ default is off and turn it on via settings - display]

    Flash and have fun !