yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] STDupont:
....Thank you,....that's one of the reason I think you guys are Pro....
[Nexus 5 Original Android Development] 1one:
I can't believe development for this device is still on!

I just found my old nexus during lockdown cleanup. It booted straight away after plugging in.

i never rooted/flashed my phones since oneplus 5 days (current device is oneplus 7 t) so i have kind of forgot the procedures

i checked my boot loader is unlocked and i have stock recovery with stock 6.0.1

Here are my some questions

What to do next? as long as i can remember there were different t recovery according to roms is it still true?. which recovery should i install?

Also i changed my laptop so where to download the needed drivers to flash the recovery?

What is a repartition? i read about this on several roms. do i need to do it?

I know the SOP for this forum so before posting i did my research but i dont know where to start safely.

Thanks!
[Nexus 5 Original Android Development] aqua22:
Screen timeout

Thanks for keeping N5 alive, this is still my main phone. I migrated from pie(unlegacy) to the build of Apr.25. My phone's /system is repartitioned to 1.5GB, so I was able to install open_gapps-micro with this rom. I pleasantly find nearly everything works, except for just one anomaly: Screen timeout does not work if the Screen lock is set to none. The screen goes black after 15 seconds (you set the shortest for testing), but within a few seconds it comes back again (and again). If I push the power button explicitly the screen remains turned off. Alternatively if I set the Screen lock to swipe then the timeout works as expected. Is this considered a bug? No Screen lock works best for me and if screen timeout also worked as usual it would be very much appreciated.
[Nexus 5 Original Android Development] gottfoo:
Interesting, I had a similar bug with a lock screen set but with On-body detection enabled under smart lock. Not even the power button would shut off the screen for more than a few seconds. I would have to use Lockdown from the shutdown menu to keep the screen off.
[Nexus 5 Original Android Development] RayRay10:
Fantastic rom, thanks a lot ?
[Nexus 5 Original Android Development] tolga9009:
As others have noted, PMF aka 802.11w doesn't work with this ROM. It works with unofficial LineageOS 14.1, 16.0 (z3DD3r) and also latest stock ROM. Please list it as known bug.

Thank you for the great work and all your efforts!
[Nexus 5 Original Android Development] plantroon:
People reported that Google Pay is working fine - do I need Magisk for it to work? I didn't root my phone so I didn't install Magisk. However, Google Pay didn't open near the terminal when I tried.
[Nexus 5 Original Android Development] Bouquins:
Hello all ! I wonder if the Nexus 5, with LOS 17.1 is able to make VoIP calls ? I live in France, and I know it depends on the phone itself, but also on the phone operator. That's why I'm asking.

Thank you all, I really do enjoy this great ROM, a big thank you !
[Nexus 5 Original Android Development] ridvanb:
Do you mean volte? If so, then no.
[Nexus 5 Original Android Development] Bouquins:
No, I mean VoIP via WIFI, because at home, I have a very bad 3G/4G network.
[Nexus 5 Original Android Development] z3DD3r:
I have no plans for official support. At least for now...

You can read about required tools and drivers here: https://xdaforums.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701. Read the "Setting Up" block. You need TWRP to install this ROM. And if you want to install ROM with GAPPS then you should make a repartition. One possible way is to use TWRP HH which can be found here: https://xdaforums.com/google-nexus-5/orig-development/recovery-twrp-hh-nexus-5-hammerhead-t4047653

Thanks for the report! I've reproduced this bug. Will take a look on what is wrong...

Builds are signed with public test-keys. Right now i have no plans to switch to private keys.

You removed a lot of standard LOS apps with this config. This can lead to unwanted issues. Read the recommendations about GAPPS from LineageOS Team here: https://wiki.lineageos.org/gapps.html

Thanks. Will add it to the list in the first post.

Google Pay works fine without Magisk. Check your device back cover

I see no reason why VoIP calls should not work. I've personally used Viber and Telegram to make voice and video calls. Everything is fine.
[Nexus 5 Original Android Development] s_dino:
[MENTION=7268092]z3DD3r[/MENTION]

I flashed los17.1 and stock opengapps, the google camera doesn't work, if I install the google camera from play store, it works fine. Is it a bug? The google camera of stock opengapps works fine on other los17.1
[Nexus 5 Original Android Development] Bouquins:
I can't see any options in the dialing parameters. I'll check my operator today and I'll let anybody know, if you please.

I noticed 2 things which doesn't work correctly:

1/ Automatic light doesn't work.. Be it in a dark room or outside in the sunlight, the screen brightness remains the same. I checked "Auto light", however...

2/ When somebody calls me on the phone, the screen switches off after one minute (that's normal, I want that when the phone is not in active use by other applications), but this is troublesome, as far as I must power on the screen again before hanging out. Does anybody has those minor issues ?

Thank you !
[Nexus 5 Original Android Development] Amargedon:
Thanks for this great rom! Upgraded last week from 16.x and running fine so far (had one time a stuck device which required a reboot, not sure what the cause was).

However; I do notice the recent apps icon on the bottom right does not work (no response). Do others also have this experience, or maybe know how to solve?
[Nexus 5 Original Android Development] z3DD3r:
Gapps issue. But why do u need to install Google Camera with gapps? Gapps pacakges include latest version of Google Camera, but last fully working version for our device is 3.2.045...

1. Works fine for me on 2020-05-05 build.

2. Sorry, i don't understand what do you mean.

You mean icon on navigation bar? I have no problems with it on 2020-05-05. Try to clean flash latest LOS build
[Nexus 5 Original Android Development] dahawthorne:
Ha... I was just about to write "my camera works fine" when it crashed... :) A reboot fixed it.

In fact my version 4.2.035.141213305 normally does work fine. I tried later ones and they didn't work, I guess because Google were moving to 64-bit.
[Nexus 5 Original Android Development] tvfan1:
I was unable to install Pico Gaaps- Install of LOS was fast and easy but then I got error 70 on Pico installation (I only have 40 MB free). I did a full wipe and it shows 1009MB as size and 41MB as free

your help is appreciated,Thanks!
[Nexus 5 Original Android Development] sant514:
First it needs repartition. Please see here
[Nexus 5 Original Android Development] tvfan1:
Thanks so much, it finally works!:good:
[Nexus 5 Original Android Development] ProBird79:
What does this mean from your perspective? What's the difference between unofficial and official support?
[Nexus 5 Original Android Development] nexacan:
Stuck in boot after encrypting device

Could you be please a little bit more specific?

After encrypting the Nexus 5 it reboots into TWRP, then LineageOS but is tuck in a bootloop.

Yes, i read the instructions regarding TWRP here: https://xdaforums.com/showpost.php?p=81711545&postcount=2

but it did not get me any further.

You're help would surely be appreciated by many more people who experience the sam problem.

Please walk us through the process.

Thanks in advance,

nexacan
[Nexus 5 Original Android Development] Amargedon:
It was from a clean flash, however I performed a new one yesterday. Difference is that before I used de stock gapps with a config file; now I used the mini (with the same config file) and that did the trick! It's working now :)
[Nexus 5 Original Android Development] TheFunMaster:
Hello, when I place the order in the terminal: "hh_repart -m" I receive the following error: "too many symbolic links encountered" Can you help me?

---------- Post added at 09:55 AM ---------- Previous post was at 09:41 AM ----------

okay I'm sorry I read it all again and I was not using the right version of TWRP ... sorry ...
[Nexus 5 Original Android Development] Amargedon:
New observation! During a video conversation on Whatsapp I noticed the camera was freezing. After the call I opened the standard camera app and it does load, shows an initial image and freezes. The app can still be used (can open settings, change the light settings) but the image I see is not refreshed anymore. Stopping the app didn't work. Using another app didn't work. I expect it's something on driver level, more low level.

Anybody else noticed the same? Can I do something to get more information about what is happening? What would be helpfull?
[Nexus 5 Original Android Development] fortniteburger:
i just did a clean flash of the latest build, and none of my sensors work, i.e. when i try to make a call and put the phone up to my head the screen doesn't turn off)
[Nexus 5 Original Android Development] amosstevens:
i experienced the same problem, after a while i was making a video-call or using the camera app, the camera was stuck in a 1 frame image, or showed nothing, and it wasn't a problem related to the application, but was a more low level problem, and i'm wondering how to debug it, too
[Nexus 5 Original Android Development] Amargedon:
Expect it to be more low level too, otherwise another app should have worked.

I managed to get some logs using logcat reader on my phone. Should I upload the complete file?

I had a look in the file (not really knowing what i'm looking for) and see many lines like this one:

"[05-09 09:21:52.726 323:10090 E/Camera3-OutputStream]

getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Unknown error 2147483646 (-2147483646)"
[Nexus 5 Original Android Development] sant514:
Please read the post #270
[Nexus 5 Original Android Development] Bouquins:
Excuse me...where can I find this folder, please ?

EDIT I googled it, I have to get my Nexus 5 rooted...

EDIT 2 My phone was already rooted I think. In the Root directory, I can't see /persist/. I can see /mnt, / oem, /proc and so on. Any clue ?

Thank you !
[Nexus 5 Original Android Development] sant514:
you will make reboot in recovery (TWRP), you will mount the persist partition and then you will delete the subfolder "sensors".

After all of that, you will make reboot (the subfolder sensor will be recreated).
[Nexus 5 Original Android Development] Bouquins:
A very big THANK YOU, it worked !

Have a nice Sunday !
[Nexus 5 Original Android Development] sant514:
You too, my friend.
[Nexus 5 Original Android Development] :
[MENTION=7268092]z3DD3r[/MENTION] I am trying to compile LineageOS 17.1 with your sources and the build runs through successfully.

But I am always facing the same issue after flashing (clean, factory reset and no additional zips) the image: The boot animation is displayed very slowly (~1 frame per second). Only the animation seems to be affected, as you can hear the screen locking sound after a couple of minutes while the animation is still running. Once the animation is finished after 5+ minutes, the screen is black, since the device locked itself in the meantime. If you turn the screen on, unlock it and interact with the device, it runs just fine. Snappy and quick, as you would expect. It seems to be just the boot animation, that is flawed in my personal builds, but not in your builds.

Is there anything I am missing or doing wrong? Are you building from exactly the same sources that you published? Have you also seen this issue?

I have even tried to extract the proprietary blobs from your LineageOS build or the 6.0 factory image (instead of using your git repo), but after building it again with the different blobs, it still has the same issue. That's how I build it:

#!/bin/bash
##### https://wiki.lineageos.org/devices/hammerhead/build
##### Downloading the sources
### Configuring the environment
mkdir -p ~/lineage && \
git config --global user.email "" && \
git config --global user.name ""

### Initalise LineageOS repository
cd ~/lineage/ && \
repo init -u https://github.com/LineageOS/android -b lineage-17.1

### Download the source code
cd ~/lineage/ && repo sync --jobs=$(nproc)

### Get device tree
git clone https://github.com/z3DD3r/android_device_lge_hammerhead -b lineage-17.1 ~/lineage/device/lge/hammerhead/

### Get kernel sources
git clone https://github.com/z3DD3r/android_kernel_lge_hammerhead -b lineage-17.1 ~/lineage/kernel/lge/hammerhead/

### Get proprietary blobs
git clone https://github.com/z3DD3r/android_vendor_lge -b lineage-17.1 ~/lineage/vendor/lge/

##### Building for hammerhead
### Prepare the device-specific code
cd ~/lineage/ && source build/envsetup.sh && breakfast hammerhead

## Generating target files
cd ~/lineage/ && breakfast hammerhead && mka target-files-package otatools

## Signing target files
cd ~/lineage/ && croot && ./build/tools/releasetools/sign_target_files_apks -o -d ~/.android-certs $OUT/obj/PACKAGING/target_files_intermediates/*-target_files-*.zip signed-target_files.zip

## Generating the install package
./build/tools/releasetools/ota_from_target_files -k ~/.android-certs/releasekey signed-target_files.zip signed-ota_update.zip
[Nexus 5 Original Android Development] Amargedon:
Did some further investigation. Had a Whatsapp call yesterday and had the logging running while the call was going on. Found the following lines before the camera was not showing new frames anymore:

[05-10 10:13:43.765 383:22238 E/mm-camera]

module_faceproc_port_event_func:886] MCT_EVENT_MODULE_BUF_DIVERT 131074, Cannot start FD, active 20003, frameid 22715 0, native 1, mapped 1 1

[05-10 10:13:43.784 306:22245 E/Parcel]

fcntl(F_DUPFD_CLOEXEC) failed in Parcel::read, i is 0, fds is -1, fd_count is 1, error: Too many open files

[05-10 10:13:43.790 306:22245 E/Camera3-OutputStream]

getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Invalid argument (-22)

[05-10 10:13:43.790 306:22245 W/Camera2Client]

notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000001

So it seems filedescriptors remain open? Most likely something in the ROM somewhere?
[Nexus 5 Original Android Development] z3DD3r:
Hi there

Unfortunately i should announce that i stopped N5 support. I have no time to support this device anymore. Furthermore and my N5 is almost dead (motherboard corrupted by water)

Daily builds already stopped. Maybe i'll release a single last build with May security patch in a few days...

I want to thank everyone who helped to support N5 all this year. It was a really fun and interesting time! Thanks a lot!!!

Time to move forward...

Official builds can't include some changes that are included in unofficial builds. Also official maintainer should continue to support and improve builds for supported device...

Not all changes can be included in device trees. Some patches are picked from gerrit. I've already answered similar question here.

Whatsapp again... Unfortunately this will not be fixed. At least by me...
[Nexus 5 Original Android Development] :
Thanks, but would it be possible for you to list the patches you currently cherry pick so that others can continue building (now that you announced to stop the builds) for the Nexus 5 without doing the same research you did all over again, please? At least I would be very grateful for such a list ...
[Nexus 5 Original Android Development] Bouquins:
First of all, I'd like to thank you very much for having got my N 5 resurrected with Lineage0S 17.1 . It's a great experience, and I use my N 5 daily.

I have two questions:

1/ What are the risks by keeping using the N 5 with the last update ?

2/ should you advise me another ROM, which would it be ?

Thank you again for all !
[Nexus 5 Original Android Development] STDupont:
Gentlemen,

Seems TomiLynch really is busy with his coding project, ......Meanwhile, if anyone can provide me with step-by-step as how to:

1. Back-up my Nexus 5

2. Rooting ( I think I will need to right?)

3. Download & install the Lineage OS 17.1 onto me Nexus 5 HammerHead-current OS still Android 6

It's going to be my first time doing this...(You get the idea )

Truly appreciated, would like to get it ASAP, thank you all.
[Nexus 5 Original Android Development] dahawthorne:
We all want to help, of course, but what you're asking for is to have someone rewrite instructions that have been written a thousand times already on a hundred sites, not only on XDA. I simply googled "root Nexus 5"and the very first link was "How to root your Nexus 5".

Nexus devices are famously difficult to brick. Read, understand, try, and ask questions when you hit a problem.
[Nexus 5 Original Android Development] TomiLynch:
Hey there, sorry for keeping you waiting. Handed in my coding project this week and have a few days before starting the second course. (Gonna get into Machine Learning)

As said, what you are asking for is to rewrite a combination of 3 or 4 guides that have already been written all over the internet. That takes way more time than you'd expect.

I do understand that you feel overwhelmed by the amount of information out there. I was in your position and felt the same way, that is the reason why I decided to help you. But I can assure you, everything you need to know is out there.

I'm writing a guide right now and will send it to you as soon as possible.

Cheers
[Nexus 5 Original Android Development] Sui77:
I wiped, re-parted and flashed.

Booted up fine, but showed "bluetooth stopped" asap, so BT is not working

Any idea?
[Nexus 5 Original Android Development] Sui77:
Were you able to solve the issue?
[Nexus 5 Original Android Development] mandayugana:
BT has random crash since oreo in Nexus 5. If you are looking for stable ROM, your best bet would be LOS 14.1 or even stock M.
[Nexus 5 Original Android Development] Sui77:
Solved my problem by flashing factory image and start over wit LineageOS 17.1 from scratch.

At the moment i'm struggeling with wifi :cyclops:
[Nexus 5 Original Android Development] Sai Tarun Teja:
HELP

i have flashed this ROM on my nexus 5 it is stuck at Lineage animattion
[Nexus 5 Original Android Development] philipped346:
[MENTION=7268092]z3DD3r[/MENTION] many thanks for your great work .
[Nexus 5 Original Android Development] mobilityguy:
Thank you for your work, z3DD3r. You've kept my N5 alive for an extra year or so. I'll coast on your final build and hope someone else picks up where you left off.
[Nexus 5 Original Android Development] zheega:
Are there even any bugs? Everything seems to work perfectly.
[Nexus 5 Original Android Development] leeroy7:
[MENTION=7268092]z3DD3r[/MENTION] I'm happy to contribute and produce builds, but trying to understand what the best way to build multiple devices on the same box. Mako builds fine and Hammerhead fails below...:

$(shell uname -rsm) was changed, regenerating...
[ 22% 108/487] including device/lge/hammerhead/Android.mk ...
FAILED:
build/make/core/base_rules.mk:325: error: device/lge/hammerhead/bdAddrLoader: MODULE.TARGET.EXECUTABLES.bdAddrLoader already defined by device/lge/mako/bdAddrLoader.
23:41:28 ckati failed with: exit status 1
#### failed to build some targets (01:05 (mm:ss)) ####

roomservice.xml:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="voron00/android_device_lge_mako" path="device/lge/mako" remote="github" revision="lineage-17.1" />
<project name="voron00/android_kernel_lge_mako" path="kernel/lge/mako" remote="github" revision="lineage-17.1" />
<project name="voron00/proprietary_vendor_lge" path="vendor/lge/mako" depth="1" remote="github" revision="lineage-17.1" />
<project name="z3DD3r/android_device_lge_hammerhead" path="device/lge/hammerhead" remote="github" revision="lineage-17.1" />
<project name="z3DD3r/android_kernel_lge_hammerhead" path="kernel/lge/hammerhead" remote="github" revision="lineage-17.1" />
<project name="z3DD3r/android_vendor_lge" path="vendor/lge/hammerhead" depth="1" remote="github" revision="lineage-17.1" />
</manifest>

If this is not possible and I simply need to have separate repos etc, I can do that, I was just hoping be more efficient. I've posted this with the corresponding mako thread as well.
[Nexus 5 Original Android Development] Rabittek:
Thank you all for keepeing Nexus 5 alive. I've flashed an L17.01 buil from 18.05. as a clean install and all works fine without any issues except BT dropping (known bug). Amazin how this old piece of HW can still perform with support of you dev team.
[Nexus 5 Original Android Development] idksomuch:
Really appreciate posting this, I had trouble trying to find a guide to install gapps and your reply came up when I searched this thread. It'd be great if this was posted in the OP.

Edit: with that being said, thanks OP for this. The N5 is over 6 years old now and runs as smooth as many modern mid-range devices!
[Nexus 5 Original Android Development] nuramon321:
Thanks a lot

Hello everyone,

I just signed up here to say a massive thank you to all of you who made it possible to update my trusty old nexus 5 once again :)

As I'm almost a complete android development and custrom rom noob, I just want to put togehter here a guidline how the update worked for me, as I think people who are not so much into this might find it useful to not have to google everything themselves. This is definitely not complete and maybe not useful for everyone, but maybe it will help some and then writing was worth it. I will not retype all the information, just give the links to the pages which helped me.

I start from a phone with an older version of TWRP and LineageOS 14.

1. You need the ROM and Gapps files from the main page/overview page/whatever it is called from this thread. Copy them to your phone

2. You need a version of TWRP capable of resizing some partitions: Find it in this thread (provided by z3DD3r) and follow the instructions.

2.1 how to flash TWRP: look here. The instructions say:

This did not work for me, as

adb devices

showed me always that my phone is connected but offline. What I did then was booting the bootloader manually by disconnecting the phone from the computer, turning it off and then pressing power on, vol up, and vol down. Then I connected the phone to the computer and ran the commands from step 4 and 5 in the beforementioned guide. It worked.

3. started TWRP and wiped /system, /data, /cache and /dalvik-cache, then installed both zip files from step 1 (1st ROM, then GAPPS).

4. wiped /cache and /dalvik-cache

5. Restarted. Works perfectly :)

As it may be relevant: The screen in my phone is still the original one.
[Nexus 5 Original Android Development] peter00007:
First: what a great job you did, thanks !

Second: I started from the scratch, installed your ROM an GApps pico, everything works besides downloading apps from the Playstore.

It starts the download but always gets stuck in "waiting for download"-process.

edit: reflashed with GApss nano and now it works !
[Nexus 5 Original Android Development] aa84:
https://xdaforums.com/google-nexus-5/general/guide-to-fix-persist-partition-t2821576

did you try that rar file in there? I dont notice anything cell network related in /persist though.
[Nexus 5 Original Android Development] Mark_8:
I already tried the mac adress fix without success, anyway if it will be the case i will try to fix my persist partition as mentioned in the thread.

I came to conclusion why is it the problem by reading in a thread for the moto g5 plus where they mention a folder in it responsible for manage imei in modemst1 and modemst2;

But im not 100% sure is the case for nexus 5 too
[Nexus 5 Original Android Development] aqua22:
I confirm following bug fix:

Screen timeout does not work if the Screen lock is set to none. Fixed since 2020-05-31 build.

Thanks for the great work!