[Nexus 5 General] ant1532:
Hi bitdomo, before I go into this, I want to say thank you so much for this thread and all the work you put into this. It's very stressful having a phone die on you when your time and money is very limited. And all this work you put in for others benefit is SO effing gracious. You are an amazing person, thank you!

I had my nexus 5 go into a black/blank screen this morning. The screen and phone does works however, I know because i can hear sound notifications, see the led notifications, and see the backlight when the display goes black/blank. Also the screen is able to display the google logo BUT goes black/blank again before I can even see the dots looping animation. The screen also works and displays properly in fastboot menu yet when i try to go to recovery mode from there it goes right to black/blank again and i can not access the screen with the android and exclamation screen where you wipe cache,factory reset,etc. This morning i was strained on time and first figured it had to be a lollipop issue since i blame lollipop for my battery issues i had before i ended up replacing it 3 days ago. (Battery replacement went great. And I was nowhere near touching anything else than what I had to. I've replaced a nexus 5 screen months before, so it was very easy second time around)

Being a complete beginner with this , and in a hurry, i tried to fastboot/adb flash my stuff back to kit kat. It seemed hopeless because I didn't think I could get to recovery mode but somehow got my nexus5 randomly displayed the recovery mode one time(and the only time since!.. which i dont remember how or why..) This allowed me to follow a tutorial and unlock the LOCK STATE, wipecache, factory reset, and flash kitkat. However right when that entire procedure finished the screen immediately when blank and black again. But I hear sound notifications as if kit kat was installed properly.... But now still its completely back to the same problem I described. Black/blank screen. Only time the screen displays picture is still the fastboot initial screen(not recovery screen) and the Google logo. I ended up running out of time and having to buy a 40 dollar phone to use for work. However seeing this thread has given me hope!

For pretense I am at work right now so I am unable to attempt any of this tutorial and was just going this thread as some pretty studying and prepare before I attempt to do so. I also am Mac os user so I plan on visiting my library to use thier PC to try this procedure. I have read through the entire thread while I'm at work right now to try and get some understanding of what I'm going to do.

My first question is in regards to this problem I saw you answer.

How would I know if my phone is in factory mode? If it is in said factory mode, how would I boot a custom recovery, what does that mean and how do I do that? What's the easiest hexeditor or way to get that done. Its slightly hard to understand since I'm not familiar with this stuff. Would I be able to do this stuff on my Mac tonight to have it prepared for the lg flashtool procedure at the library in the morning? Also at the moment I'm not home so I can't DL the files and view them but I was wondering there's a lot of talk about the tot file( which from my understanding is the firmware IMG?) Is this included in the download links?

I have no idea what I'm talking about so i can be completely off base with this next question... lol But did I see you say that the people with a similar problem to the one I'm having with my screen has a correlation to the USB cord(or charger) I'm using?Or did I totally misunderstand some earlier conversation about usb cords being recognized( something about you seeing a these blank screen user's usb connections read as qcom rather than user)

Again, thank you so much, absolutely appreciate it!

UPDATE EDIT:

Well i tried my best and followed your instructions on the custom recovery stuff. I installed Twrp as a custom recovery. Now are the instructions you had that I quoted where you speak of misc.img, is that my custom recovery image?(in this case twrp.img)??? That's what I assumed and used to follow your instructions in terminal and everything seemed to work ok?? I also opened up the twrp.img in hex fiend and didn't find the line of text which had FACTORY at the 8800 offset. It was further down and it was already set to USER. But I searched in HexFiend for FACTORY and found another similar line of text which did have FACTORY set. I did not change the text to user however since the line of text was a little different to what you stated to look for. I attached two pictures where I found the lines which already stated USER and the other line which read FACTORY.

(since I'm a new user I can't post outside links so I separated the characters.

h ttp://i.imgur.com/D9OKVoR.png

h ttp://i.imgur.com/Z1OswO5.png

Please let me know if I did this correctly before I attempt the LG Flashtool process... Also for unknown reasons my nexus seems to display a little more now ( it will display the boot animation after google and sometime the beginning of the setup process for kitkat, also will display quickly the twrp recovery screen before going completely blank/black again.

UPDATE EDIT 2:

After google searching "misc.img nexus 5" i see you were probably actually talking about a file named misc.img whereas I thought you used misc as a placeholder for the custom recovery img(which in my case was twrp.img..) So is there some backpedalling I need to do since I ran those commands in terminal and replaced misc.img with twrp.img....?? Did I mess something up doing this now? Also how do I find and access misc.img to run commands on in terminal or to open in hexeditor? I'm not that familiar with cmmd and terminal language so accessing it is difficult for me. In my google search I found that the misc.img is placed in the sdcard/root folder of my phone or something but I don't know how to access that.

UPDATE EDIT 3:

After reading up here at work, I see that to access the deeper filesystem and edit said files where I think the misc.IMG file you speak of I'd need to root my nexus 5 as well. I just read up on how to do that on my Mac so I think I'll be able to handle it. I'm just not clear after how I would open the misc.IMG file in my hex editor because my only means of viewing the filesystem of the android is through terminal(cmd line) which I'm unfamiliar with. Only way i know how to open files is through graphic visuals where i would right click, then open with.... I did just learn that I can view the folders and such in terminal with the command adb shell. But even if i see the misc.img there how would i access it and edit it with hex editor. I'm very much a beginning in this but my mind says the way to do this would be to find the misc.img on terminal, use a command to transfer it to my mac,edit it, then replace it back in the android which would all be allowed since i had rooted it? I don't know commands to do such but since I've been reading up on this for the past day is it something like pull then push? Can you please guide me over this??

UPDATE 4;

I'm pretty sure i was able to correctly follow the process with pulling misc.img file. I was able to have the adb see my device while my phone was usb connected while having my phone in recovery mode(twrp). From there i pulled the misc.img and opened it in a hex editor and it looked very similar to the last time when i at least thought(now im not even sure) i was editing the twrp.img by accident/misunderstanding. As i said the line about the model and USER or FACTORY was not found at the 8800 offset but actually further down. And again the first line had

KOT49H-USER-16gb+0 +0

But a bit further down had the same except with FACTORY the end a bit different

KRT01B-FACTORY-XXG+0

Now was I supposed to change the second line as it stated FACTORY? I didnt because the line seemed a bit different then what you described because it had XXG at the end. Also the second line had KRT01B instead of what the first line had KOT49H. Im unclear what this means. But in the firmware in the dl zip for D820 you included in the OP there is a bunch of different ones. Am i supposed to use the KOT49H tot one?

Thank you again!

from my Andy 3.5EI using XDA Free mobile app