yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] Vish11:
You got it right, but if you have TWRP installed already, you can just flash the modded TWRP directly, or use Flashify to flash.
[Nexus 5 Original Android Development] n3kf:
Ok, installed this on my old Nexus 5. Looks to run pretty good. I bought up the camera app and can't find a way to go from the front facing camera to the rear one. Installed open camera and there is no usual toggle. I searched the forum but didn't find any thing. Is this a known bug? I am on the latest build. Thanks.
[Nexus 5 Original Android Development] Wah19:
2020-03-28 build

Anyone having problems with the latest build?

fresh install of twrp 3.3.1

wiped everything exept internal storage.

installed latest build and looked ok

cache wipe, then tried to install gapps but got an error.

rebooted and the logo came up but went to recovery after a while.
[Nexus 5 Original Android Development] zheega:
Wipe cache as the last step, not before gapps?
[Nexus 5 Original Android Development] timgoodwin:
I have successfully restored backups using TWRP without problems.
[Nexus 5 Original Android Development] ze7zez:
Does the system boot after such an action?
[Nexus 5 Original Android Development] timgoodwin:
The clue is in the word 'successful'. Yes, it boots fine.
[Nexus 5 Original Android Development] Mark_8:
Guys have you read about the official "stable" LOS 17.1 news?
[Nexus 5 Original Android Development] z3DD3r:
Have u increased /system partition before installing gapps?

Why are u asking?
[Nexus 5 Original Android Development] Mark_8:
Do we get any benefit from this new builds?
[Nexus 5 Original Android Development] bigsupersquid:
[MENTION=7268092]z3DD3r[/MENTION]

It sure is cool seeing nightlies!

thanks again for your contributions to this device.
[Nexus 5 Original Android Development] n3kf:
Probably going to feel dumb, but how do you switch the camera from front to back?
[Nexus 5 Original Android Development] z3DD3r:
My builds contains every single change from LOS repos. Everyday single day my script makes a new build with all merged changes. So, no, we will not get any benefit.

I've started to build nightlies since January. And yea, nightlies are cool :)

There is a button near the "menu" button on top. Look at screenshot in attachments.
[Nexus 5 Original Android Development] BillGates1:
Thanks alot for the great rom z3DD3r! Runs supersmooth on our 7 years old treassure and brings it back to secured daily usage (everything works fine, even google pay :)
[Nexus 5 Original Android Development] n3kf:
Not in mine. Can't find a setting to turn it on either. Could be a hardware issue, but ran a utility that said there was both front and back....
[Nexus 5 Original Android Development] n3kf:
Is the camera in firmware? Would a reset back to stock maybe get it back and then move back again? Would not make sense to do that if the HAL is just in the ROM itself....
[Nexus 5 Original Android Development] Neverfalter2015:
I've had this phone sitting in my drawer with a cracked display for 4 years. Swapped the display today and upgraded from slim 6 to this ROM. Seriously impressed that this old phone can have the latest android software. Thanks!
[Nexus 5 Original Android Development] denis1999:
Problem encountered when installing TWRP

First of all thanks for all of your effort here. I am a newbie at installing ROMs. I read the entire thread before attempting to install this ROM, but I still managed to mess things up on the first step installing TWRP. I think I messed up when I tried to flash "twrp-3.3.1-HH-hammerhead" without first flashing "twrp-3.3.1-0-hammerhead". In any case my phone now is in a boot loop trying to boot into Recovery. I can get the phone back into fastboot, but no matter what I do now on reboot it tries to load recovery, fails and then reboots. I have a screenshot just before it reboots/ Basically it says the following:

Running OpenRecoveryScript

Could not mount /data and unable to find crypto footer.

Failed to mount '/data' (Invalid argument)

Unable to recreate /data/media folder.

Updating partition details...

Failed to mount '/data' (Invalid argument)

...done

Unable to mount storage

Failed to mount '/data' (Invalid argument)

Full SELinux support is present.

Unable to mount /data/media/TWRP/.twrps

Running Recovery Commands

Failed to mount '/data' (Invalid argument)

Formatting cache using make_ext4fs...

Done processing script file

Renamed stock recovery file in /system to prevent

the stock ROM from replacing TWRP.

Failed to mount '/data' (Invalid argument)

Failed to mount '/data' (Invalid argument)

It then reboots itself and repeats. If I hold power button, volume up and volume down on reboot I can get back into fastboot, but I reflashing TWRP doesn't seem to help. Any tips on what I can do to recover from this error?
[Nexus 5 Original Android Development] TomiLynch:
Flashing twrp-3.3.1-HH.R.4, or any version, without flashing twrp-3.3.1-0-hammerhead before is not a problem. It should work perfectly fine.

What did you do exactly to flash it?

My advice, flash it again.

>Download twrp-3.3.1-HH.R.4.img

>Connect your phone to your computer.

>Boot into fastboot

>Type: fastboot flash recovery twrp-3.3.1-HH.R.4.img

When that is done write: fastboot reboot

But make sure to hold volume down as soon as you press enter. That way you force it to boot into recovery, and the stock recovery for twrp to stick. (This is only needed the first time you install twrp over the stock recovery).

Should be good to go after that
[Nexus 5 Original Android Development] denis1999:
Thanks, but it still boot looped. The /data partition appeared to be corrupt. I downloaded the latest official Google image for the Nexus 5 and tried to install that. It only partially would install. The flash_all.bat script aborted part way through "FAILED (remote: 'unknown command'). After attempt that I was able to get TWRP to launch, though. '/data' was still corrupt, so I then used TWRP to re-initialize the '/data' partition. Once the /data partition was good, everything else installed without error.. I am now happily running Android 10 on my Google Nexus 5. So far everything else looks good.

Thank you again.
[Nexus 5 Original Android Development] Poor Grammar:
Can you please link where you bought the display? Mine cracked also
[Nexus 5 Original Android Development] Neverfalter2015:
HYYT Replacement for Google Nexus... https://www.amazon.com/dp/B01N6GN9TM?ref=ppx_pop_mob_ap_share.

Working great so far. Only been a few days. Also considering doing the G2 battery mod. Looks simple enough, and the battery on this phone is painful especially compared to my pixel 2 xl.
[Nexus 5 Original Android Development] Mark_8:
Congrat for installing android 10 :)

If you want a tip that it will be useful for future smartphone modding, i suggest you to boot in new recovery first with these commands:

fastboot erase recovery then

fastboot boot recovery TWRP.img then in new recovery:

install, flash img, choose recovery img and in home

reboot>recovery; done!

Obliuvs first copy your twrp.img in your " sdcard" main directory :good:
[Nexus 5 Original Android Development] amosstevens:
i want deodex lineage in order to patch it for the siganture spoofing support, i don't know exactly what is the best method, but i tried either with vdexExtractor and smali, but both of them say in services.vdex or .odex "has no dex files"

i have the nightly lineage-17.1-20200410

any suggestions on how to continue?
[Nexus 5 Original Android Development] amosstevens:
i solved using smalipatcher from f0mey
[Nexus 5 Original Android Development] Play3r0:
It's working for me with twrp-3.3.1-HH.R.4.img and repartition with Pico GApps. Awesome job with this rom! And with a full repartition done I also recommend use Nano GApps instead or even more for the Nexus 5. About the root access, is there any new way to run it on 17.1?

PD: Root through Magisk 20.4 with the 7.5.1 manager is working perfectly in a Nexus 5 with LineageOS 17.1 :)
[Nexus 5 Original Android Development] candra yudha tama:
Last versin ROM... can't make a call...no sound anymore
[Nexus 5 Original Android Development] Obi-XDA:
calls working fine here

sorry for my english
[Nexus 5 Original Android Development] candra yudha tama:
Try to default apps is working or not....???
[Nexus 5 Original Android Development] jaderhythm:
Insufficient Space for GApps

I tried installing this ROM and then immediately installing ARM 32-bit pico Open GApps 10 in TWRP 3.3.1-0 without first rebooting into LineageOS, but received an insufficient space error. Is it expected that we will need to repartition the drive in order to use this ROM with GApps?
[Nexus 5 Original Android Development] jjsan:
it would be great to use serach function here. and yes you have to repartition
[Nexus 5 Original Android Development] JesterWTF:
i can't resize partition to install pico gapps, i use twrp3.3.1-HH.R.4 and i try to resize system partition and it's say done but the partition not change, i try rebbot too but nothing
[Nexus 5 Original Android Development] sant514:
Please read again TWRP HH for Nexus 5
[Nexus 5 Original Android Development] KSS2016:
Followed instructions and flashed LOS 17.1 on my mom's N5, everything is working fine.

What surprised me was the camera quality. Somehow it got a lot better than it was on AOSP 9.0)

Thanks a lot!
[Nexus 5 Original Android Development] jaderhythm:
Please Add Repartition Instructions to OP

The reason I asked the question was that I had read other posts about needing to repartition. My point here though was that if every user is expected to repartition their device, then it would be ideal to include this information in the original post for the following reasons:

multiple methods (I encountered at least 4) of repartitioning are suggested in the replies on this thread and, in the event of an issue with any one of these, it would be ideal to only have 1 endorsed method to maintain.

the most commonly suggested method of repartitioning requires downloading a non-standard TWRP .img, which implies placing great trust in the developer, but anyone can post a reply, and it is difficult to know who to trust on the Internet.

the most commonly provided link offers no instructions, meaning every single user will need to read through a variety of posts and come to their own conclusion as to what to do.

the most commonly provided link provides two different non-standard TWRP .img files to choose from, and selecting the correct one (twrp-3.3.1-HH.R.4.img) requires careful reading.

flashing a custom ROM is already a challenging process for many users (particularly first-timers), and many will give up when encountering these extra obstacles.

In summary, it would be ideal for the OP to link directly to the correct non-standard TWRP .img file to use and include instructions for its use (example below adapted from this post).

How to increase system (assuming that u have unmodified partitions):

1. Flash twrp-3.3.1-HH.R.4.img.

2. Open terminal (TWRP -> Advanced -> Terminal).

3. Type hh_repart -m

4. Wait until your phone reboots.

How to revert everything:

1. Open terminal (TWRP -> Advanced -> Terminal).

2. Type hh_repart -r

3. Wait until your phone reboots.

4. Install original TWRP (3.3.1-0 at the current moment)

The ROM looks great now that I got it working. Pretty cool to see Android 10 running on a phone released over 6 years ago.
[Nexus 5 Original Android Development] JesterWTF:
ok thanks. i finally installed the rom but i have other problem now, the sensors not work and i can't turn the screen
[Nexus 5 Original Android Development] sant514:
Please delete the folder "Sensors" at /persist/sensors and reboot your device to get them working
[Nexus 5 Original Android Development] JesterWTF:
in the twrp i search in the ''persist'' folder and inside is empty, and the link of the post don't have the app, is empty too.
[Nexus 5 Original Android Development] sant514:
Do you has mount the persist partition?
[Nexus 5 Original Android Development] JesterWTF:
done!! thank you very much for your patience and speed

now everything works perfectly :good:
[Nexus 5 Original Android Development] pzykopilz:
Since I installed lineage-17.1-20200415-UNOFFICIAL-hammerhead.zip my device is very slow/laggy. I updated from a version from feb. or march. (Sadly I don't remember).

I am using diskencryption.

I don't see anything suspicious in logcat..
[Nexus 5 Original Android Development] mobilityguy:
Thank you

I've been running your 17.1 builds on my N5, connected through WiFi, since mid-March. They work great. The phone is running faster and more stable than the late 14.1 builds. The repartition was simple to do, once I undid the repartition I did for Resurrection Remix LOS 16, and everything works great.

I had put my Nexus 5 in a drawer and switched to an LG G2 which is still officially supported. The LG is back in the drawer and the N5 is my favorite again!
[Nexus 5 Original Android Development] Byrd910:
Thank you for this ROM!

I wanted to post my thank you for porting LineageOS 17.1 to the Nexus 5! Over the weekend, my Pixel XL abruptly died (I believe it is likely a motherboard failure). I need a phone 24/7 for my job, so I popped my SIM into my old Nexus 5. Seeing Android 6 again prompted me to browse out to XDA for the first time in years. When I saw this ROM I was pleasantly surprised. I resized the system partition and flashed the ROM + macro GAPPS package, and I couldn't be happier! This phone, even with 2GB of RAM, is still super fast on Android 10. The Google restore made it so that it was very little work to get everything back up and running on this Nexus 5. I'll likely be getting a Pixel 4XL or 4A soon, but this ROM and the Nexus 5 are tiding me over nicely! Thank you again!
[Nexus 5 Original Android Development] petersaints:
I was thinking about trying out crDroid 6.5 since it's an official ROM from a relatively well-known team (https://xdaforums.com/google-nexus-5/development/rom-crdroid-v5-4-t3931587).

However, other than seeing the name crDroid in a few places before, I don't know much about them but I believe that in the case of cdDroid 6.5 they are based on Lineage OS 17.1 and, according to some links on the thread I just mentioned, they base themselves on the work done by [MENTION=7268092]z3DD3r[/MENTION] to port it to the Nexus 5.

Therefore, I decided to go directly to the source and try [MENTION=7268092]z3DD3r[/MENTION]'s builds since they are probably cleaner (no extra crDroid specific stuff) and the experience has been great so far. These days I only use my Nexus 5 for testing apps and as a fall-back if something happens to my main smartphone. But it's still nice to give it a breath of fresh air since I've went from an old LineageOS 14.1 ROM based on Android 7.1 to a LineageOS 17.1 ROM based on Android 10.

If nothing major breaks that I hear it's working well somewhere else (e.g., on the aforementioned crDroid ROM) I think I found my new main ROM for my ageing Nexus 5. Thank you [MENTION=7268092]z3DD3r[/MENTION]!
[Nexus 5 Original Android Development] HelmutK.:
I've got some problems with bluetooth...

I can't connect any other devices, but speakers.

Delete the connection and reconnect doesn't help.

my buildnumber is 20200415
[Nexus 5 Original Android Development] seschaum:
I use it successfully with a bluetooth heartrate monitor and the same time with Anker Bluetooth InEar headphones... for running ;)

All builds as far of now...
[Nexus 5 Original Android Development] Bouquins:
Hello all ! I just want to thank the team working for us, bringing Lineage 17.1 on our old but still very enjoyable Nexus 5 ! I just installed it yesterday, all is working great; a big thank you again !

I have a question: today, the system warned me that I had an available update. I donwloaded it, and by installing it, the system said "You have to run a compatible recovery"...I don't know what it means. Furthermore, once downloaded, the new version is invisible on my Nexus ! Be it in "downloads", or at the root of the phone, I'm unable to find it ! So I'm downloading manually the update, and I will install it manually, too. Do I have something special to do before ?

Thank you very much !
[Nexus 5 Original Android Development] bluetooth-bug:
I noticed the lineage-17.1-ota.json as well on SourceForge. Sadly it doesn't work with twrp-3.3.1-HH.R.4.img. When it reboots to recovery to install it returns back to the main screen. The zip file should be in /data/lineageos_updates so you can flash it from there manually. Probably this is why z3DD3r didn't mention OTA functionality here. For now just update the usual way until the recovery script is fixed. When checking the log it says something like Error installing zip file something something block.map if I remember correctly.
[Nexus 5 Original Android Development] Bouquins:
Thank you for your explanation ! Maybe we should reinstall TWRP 3.3.1-HH-hammeread ? Or TWRP 3.3.1-1_UA-hh ?
[Nexus 5 Original Android Development] Elder007:
Hi [MENTION=7268092]z3DD3r[/MENTION] , I use LOS 17.1, the rom itself is very good, but I have a problem. Now my wifi signal is weak and disconnects at times, before using the stock of rom 6.0.1 and there were no such problems, do you know any solutions?
[Nexus 5 Original Android Development] n3kf:
My camera issues!!

Well. I dropped back to the last stock ROM, thinking there might have been an issue. Rear camera still not working. So figured I had a hardware problem. On a whim I opened it up and found the rear camera connector had popped off.

So short story, reinstalled this ROM and now camera is working fine. Should have done the disassembly first, but live and learn.

Great job on the ROM! It's running fantastic. The Nexus 5 was a great phone and has aged well.... Thanks again [MENTION=7268092]z3DD3r[/MENTION]
[Nexus 5 Original Android Development] HelmutK.:
Yesterday I delete the system partition and install LOS again.

The connection to a smartphone seems stable but if I try to connect my Fire 7 tablet the connection still abort after a second.
[Nexus 5 Original Android Development] mruibal:
Great rom!

Many thanks to contributors for his awesome work. Yesterday the ota upgrade works fine and I even notice that this rom has aptx bluetooth support working flawless!

Regards.
[Nexus 5 Original Android Development] ProBird79:
I believe I've found a bug. If you have an alarm set and are using wired headphone the alarm sound plays both through the headphones and the phone's speaker. I listen to music at work with my phone and am not suppose to have it on me so the alarm going off (have my alarm set for breaks and lunch) blows my cover! lol
[Nexus 5 Original Android Development] KSS2016:
I don't think it's a bug. Try changing alarm sound to vibrate only
[Nexus 5 Original Android Development] STDupont:
You guys are the Pros...

Anyone who is located in Los Angeles area who can help me to download/install this Lineage OS 17.1 onto my Nexus 5 Hammerhead? I am willing to pay for yr help, please PM me and let me know how much$. Thank you in advance.....Hope it's not too expensive.

Although I know a few things about computers, but straightly windows OS. I rather have a Pro here instead of me messing up my own phone.

Just a little info about my good old phone:

Nexus 5-Hammerhead,

OS: still using Android 6.01

currently unable to use WiFi, saying MAC address is something like 2, 000000000 ?

Bought WiFi and cell phone antenna (both) thru ebay, replaced by myself, thanks to youtube, but does not help the WiFi malfunction !

Battery replaced by myself thanks to youtube, the new battery runs great.

I do have 3 questions:

-Will I be still able to use Google-Pay after the Lineage 17.1 OS installation?

-Does the Lineage 17.1 OS also comes with other additional languages available?

-How to get updates in the future?

Thank you again,

---------- Post added at 12:31 AM ---------- Previous post was at 12:31 AM ----------

You guys are the Pros...

Anyone who is located in Los Angeles area who can help me to download/install this Lineage OS 17.1 onto my Nexus 5 Hammerhead? I am willing to pay for yr help, please PM me and let me know how much$. Thank you in advance.....Hope it's not too expensive.

Although I know a few things about computers, but straightly windows OS. I rather have a Pro here instead of me messing up my own phone.

Just a little info about my good old phone:

Nexus 5-Hammerhead,

OS: still using Android 6.01

currently unable to use WiFi, saying MAC address is something like 2, 000000000 ?

Bought WiFi and cell phone antenna (both) thru ebay, replaced by myself, thanks to youtube, but does not help the WiFi malfunction !

Battery replaced by myself thanks to youtube, the new battery runs great.

I do have 3 questions:

-Will I be still able to use Google-Pay after the Lineage 17.1 OS installation?

-Does the Lineage 17.1 OS also comes with other additional languages available?

-How to get updates in the future?

Thank you again,
[Nexus 5 Original Android Development] PasiPohj:
That's a pretty common hardware problem on Nexus 5, LG G2 and some other LG phone. It probably could be fixed by resoldering the WiFi chip but that's not an easy job. Mine has the same problem.

Some have got it to work for a while with a heat gun but there is a big risk of breaking the phone even more. And that's just a temporary fix as it might only work for a day and break again.
[Nexus 5 Original Android Development] Mark_8:
guys, does edxposed trigs safety net? because i need to use a module but i dont know if is possible to use it
[Nexus 5 Original Android Development] TomiLynch:
I can teach you how to flash any rom on your device. No need to pay me anything.

I'll pm you.

I don't know if Google pay is working cause I don't use it.

Lineage does come with other languages.

And Lineage has a built in updater, but you can still update manually the same way you'll flash the rom. Very easy.
[Nexus 5 Original Android Development] sorewinner:
Where might I find TWRP v4 for hammerhead? I see the source files on github, but I don't have a build environment.
[Nexus 5 Original Android Development] eurochild:
https://sourceforge.net/projects/hammerhead-twrp/files/
[Nexus 5 Original Android Development] sorewinner:
Oh, when people in this thread were saying "TWRP V4", they were talking about V3.3.1HH.4?
[Nexus 5 Original Android Development] sant514:
Yes, but now there is an update version, the version twrp-3.3.1-HH.R.5.img
[Nexus 5 Original Android Development] STDupont:
Thank you. If you can provide me step-by-step procedures, which including "back-up" and "how to root" the phone, truly appreciated. I will try that and try to avoid "bricking" my phone.

Look forward to yr pm.
[Nexus 5 Original Android Development] dahawthorne:
Just a note of caution, especially for less experienced users. As already noted in this post

https://xdaforums.com/showpost.php?p=82361069&postcount=281

the updater boots into TWRP and stops. You can still browse to the downloaded update file (/data/lineageos_updates) and install, but it's not a seamless update experience.

I say this purely for information - the ROM is really excellent, and I have no complaints about it at all, just gratitude for the great work of XDA devs who keep our old devices up-to-date.
[Nexus 5 Original Android Development] z3DD3r:
It is fault of the TWRP. At least TWRP HH.R and TWRP HH.S has such issue.
[Nexus 5 Original Android Development] dahawthorne:
Thanks, [MENTION=7268092]z3DD3r[/MENTION]. Understood. As I said, no criticism of your work in any way (the ROM is excellent) - just advice for users who may be perplexed by ending up on the TWRP screen with apparently nowhere to go... :)
[Nexus 5 Original Android Development] n5rnd:
[MENTION=7268092]z3DD3r[/MENTION]

I've been following this thread for a couple of months now and am excited about the progress this project has made. Thanks for all the effort you and the other guys put into this ROM.

I'm not that used to XDA, so please forgive me if asking this is considered somewhat innocent, but since it looks like it is running stable for some time now: I'm wondering whether you're planning, sooner or later, to make it an official Lineage ROM?