[Nexus 5 Q&A, Help & Troubleshooting] randomguy4321:
Hi, I'll explain my problem quick. a week ago my Nexus 5 rebooted for no reason, upon rebooting I noticed something weird: app data configurations (app data not belonging to the user accesible memory) were all reset, it was like all apps had been freshly installed but left my pictures music and those things untouched. Wifi was working perfectly fine at this point, some form of data corruption I guess. Upon manually rebooting hoping it would come back to normal I found out wifi was behaving strangely, it would take a couple of seconds to turn on and off. After further reboots it stayed greyed out and didn't respond anymore.

So I began reading about the many possible causes and fixes. Tried reinstalling rom, reflashing kernel, going back to stock through flashing stock images through fastboot, rebooting, different radios. Nothing helped, so I decided to go a bit further and mess with the persist folder, first I checked permissions were ok and reset them anyway, then I wiped manually through a file explorer, finally I decided to do what was suggested here https://xdaforums.com/google-nexus-5/general/guide-to-fix-persist-partition-t2821576 with some success. Wifi was still greyed out after a fresh rom install but after some reboots it would pick up and work perfectly, until the next reboot. Then it didn't work anymore. I should note I backed up the files in persist through a file explorer and then manually pasted and set permissions (didn't know you could make an .img file of it) dunno if that has anything to do. They aren't corrupted it seems.

Unplugging the battery briefly fixed it for a day, then the next day the same problem came back without me doing anything.

Some more info:

-I have a working original EFS backup from before it crashed.

-Phone was rooted running CM11 when it happened, been using that rom for 2 years with EX kernel.

-It was a bit low on space (about 400mb left) when it happened, about 300mb were freed after it crashed. I have a hard time believing this could have caused it but maybe?

-It's global D821 16gb version

-GPS has always been wonky (if that has anything to do with it)

-IMEI and IMEID haven't changed.

-Calls and data work fine.

-When either wifi or bt work they show their correct, original addresses, only once wifi showed 02:00:00:00:00:00.

-Rebooting changes little, but powering off then waiting a few seconds and turning it on sometimes brings bt back.

-Leaving the battery unplugged almost fixed it, brought it back for some hours, went to sleep and when I woke up it was gone again.

-When performing the "e2fsck /dev/block/..." command above I wasn't prompted to fix any errors I think, output was "clean, 31/1024 files, 1125/4096 blocks" and the "make_ext4fs /dev/block/..." command reformats it without issue.

So yeah, I've tried everything :( save baking the mobo cause I'd rather be able to sell a semi working device than a bricked one

Any other thing I could try? Or way to check if it is indeed a hardware issue? im attaching a Liveboot log if it's of any use. Thanks beforehand.

uh I can't find the way to upload the log

how is one supposed to attach a file? im on my desktop with latest chrome