yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] DC_Erok:
Thanks I just tried and when I am in ADB sideload it says

E:Unable to mount '/data'

E:Unable to mount '/data'

E:Failed to load package

E:Unable to mount '/data'

Starting ADB sideload feature...

E:Unable to mount '/data'

Cancelling ADB sideload...

E:Unable to mount '/data'

Starting ADB sideload feature...

E:Unable to mount '/data'

Cancelling ADB sideload...

E:Unable to mount '/data'

E:Unable to mount '/data'

E:Failed to load package

E:Unable to mount '/data'

On the computer side it says:

C:\>adb sideload c:\BootUnlocker.zip

loading: 'c:\BootUnlocker.zip'

error: device not found
[Nexus 5 General] BirchBarlow:
Do you have the ADB drivers installed? If you installed them from the SDK and they still don't work, try this ADB Driver Installer
[Nexus 5 General] DC_Erok:
THANK YOU Birch! After installing your adb driver I was able to side load the bootlocker. I checked with the device info and it is locked and tamper set to false now.. WOOHOOO!!!

It's a shame I can't get this thing to boot past the boot animation, but at least now I see what LG will charge to repair it.
[Nexus 5 General] Citizen Android:
Factory reset after flashing partitions

Hi, thanks for the excellent guide.

You show a factory reset after flashing all the partitions with the 'fastboot flash' command, but I've seen other places that people just reboot after flashing. Does the factory reset do something that flashing alone doesn't?

Also, the factory image .zip file for Nexus 7 5.0.2 does not include a cache.img file. If a particular factory image .zip file does not include .img files for the cache or userdata partitions, do you recommend doing 'fastboot erase' or 'fastboot format' on those partitions before flashing the other partitions?

Thanks.
[Nexus 5 General] caputino:
Phone will reboot before the end

on the easy method, after I flash all, I don't get an option to select recovery or anything... I dont see the dead android..

My phone just reboots by itself, and I do't think the flash completely worked since I have the same problems still

(My problem is with the Wifi not turning on)

EDIT: Also I cant restore the temper flag because of this, I dont get to choose to install the recovery because the phone

reboots right when I'm supposed to do it...
[Nexus 5 General] kevintran.98:
so when i click flash-all.bat it said this

any suggestion
[Nexus 5 General] jd1639:
Yes, install fastboot on your pc. Google 15 second adb install xda
[Nexus 5 General] kevintran.98:
I Had fastboot installed already , thats the problem

and when i put fastboot devices my device # shows up
[Nexus 5 General] jd1639:
The 15 second will install the latest fastboot and will set up the system variables so it's recognized anywhere on your pc. Otherwise put the factory image in the same folder as fastboot.exe and open a command window in that folder
[Nexus 5 General] Ryanrioz:
oh i see well u corrected me again haha.. :D
[Nexus 5 General] GamaX320:
For flash the factory image I just double the flash-all.bat and wait it finish that all ?
[Nexus 5 General] dmonleo:
Thanks again for this thread!
[Nexus 5 General] Primokorn:
Yep (if you are using Windows) and you should boot into fastboot mode.
[Nexus 5 General] DPTDanny:
thank you

Thank you for the time you took to post. I have a working phone back thanks to you.
[Nexus 5 General] happiness4u:
What if I want to keep my user files, what .img file i should I ommit?
[Nexus 5 General] mr.pavlov:
Hello guys! Yesterday I was trying to update my Nexus 5 following the instructions on page 1 of this thread, but I've ended up with severel problems. My android version is 4.4.4. KTU84P and I downloaded a factory image of Android 5.0.1 and what I wanted was to upgrade my system without losing any user data, so I followed these steps:

1) ADB and Fastboot drivers installed

2) Downloaded the factory image (5.0.1 )

3) Used Method 2

3.1.) I typed all the commands except: "fastboot flash userdata userdata.img "

4) I didn't wipe/factory reset, because when the small Android appeared and I pressed Power Button + Volume UP, the phone just rebooted.

5) I bricked the phone - it was boot looping for 20 minutes.

6) I entered in bootloader again and followed this instructions

7) My phone has survived and having 4.4.4 again.

8) However, I downloaded a factory image of 4.4.4 and installed it without any problemm, following this instructions. (Part D & E)

9) Once I've rooted the phone, I applied the nandroid backup I had made before I started working... I attach a screenshot

10) The backup applied everything as it was, except my photos, files, music, etc.

11) Next time I rebooted in recovery, cwm was gone..the only thing I saw was that small android with red mark.

That's what I messed up. So, now my phone is working fine, but is there a chance to restore my files? What do I have to do, in order not to lose cwm when I reboot in recovery? What did I do wrong to brick my phone - is it that I wanted to upgrade to 5.0.1 while having 4.4.4? Do I need to upgrade to 5.0.0 before that? And what's the best method to upgrade my phone without losing my data?

I was reading posts all the night, but I don't know what to do with the nandroid backup and how to restore my files. So guys, I would appreciate any help.

Thank you in advance!!!

SOLVED:: I've used this instructions and I've just installed 5.0.0 without losing my data. Current data, the others ones seem to not be restored...

P.S: I can't use OTA, because of Xposed Installer.
[Nexus 5 General] jd1639:
To go from 4.4.4 to 5.0.1 you almost always have to do a factory reset to get past a bootloop. That'll wipe your device. When you followed your step 6 that also wiped your device. Your pics, etc are now gone. A nandroid does not contain your pics so again they're gone.

The only way you could have saved your data would have been by ota. But with xposed or other system changes you most likely would have had to do some gyrations to get your device ready for the ota.
[Nexus 5 General] mr.pavlov:
Thank you for your response! But if I understand you well, there is no chance to upgrade without losing my data but I have done it once successfully on nexus 4. Unfortunately, following instructions which I've lost... There should be a way to upgrade without losing any data. And regarding nandroid, I thought that nandroid makes full backup..not only the system but files too (pics, music, etc..) And why everytime I reboot, I lose cwm recovery and there appears that small android with red mark? How can I fix that?
[Nexus 5 General] jd1639:
I didn't say you can't update your device without losing data. I just said you'd most likely would have had to do things to your device to return it to stock system, recovery,etc before hand. And, no, a nandroid does not contain your pics,etc.
[Nexus 5 General] rojell:
Hi guys. Trying to update from 4.4.4 ktu84p to 5.0.1. I have twrp 2.8.1.0 I was using the newest factory image and I to a point it says my baseband is wrong ill post a pic. Any help would be great thanks
[Nexus 5 General] jd1639:
First, twrp is not going to do you any good. I'd recommend you back up your device off your device. Then flash the factory image using fastboot. If you want to go through the ota route you'll need to go to 5.0 first then to 5.0.1. See this

http://xdaforums.com/showthread.php?p=47369234
[Nexus 5 General] rojell:
Thanks for the fast reply. I am not using twrp was just saying the version i have. I was trying the fastboot method but all i get to is whats on the pic. Not sure what to try next.
[Nexus 5 General] jd1639:
Are you trying to flash the ota? Or the factory image? If you're trying to do the ota you need to be 100% stock recovery, system, kernel, and radio.
[Nexus 5 General] rojell:
I am trying with the stock image.
[Nexus 5 General] jd1639:
Flashing the factory image, it shouldn't make any difference what your baseband is. I'd try downloading the factory image again, extracting it then use the flash-all.bat file. Just double click it while your device is booted into the bootloader and connected to your pc.
[Nexus 5 General] rojell:
Ok thanks ill download it again and try it
[Nexus 5 General] rojell:
OK downloaded the factory image again unzipped it twice double click on flash-all.bat it runs for a few seconds my phone says downloading... and on my cmd i get this

and it sat like that for 20 mins should it take that long
[Nexus 5 General] Andromendous:
do you have the android SDK on your computer?
[Nexus 5 General] rojell:
I have that 15 second one from here and it finds my device when i look for it so i think it is working ok
[Nexus 5 General] abaaaabbbb63:
Did you manage to solve the problem?

Try changing the usb port if not.
[Nexus 5 General] rojell:
no have not got it to work yet

ill give it a try with another port thanks for the suggestion
[Nexus 5 General] DigginGraves:
Yeah, maybe. Good luck! :D
[Nexus 5 General] abaaaabbbb63:
Good to know!!

Now be careful with them toolkits next time, ok?

:)
[Nexus 5 General] gd6noob:
haha I think it was a person mistake..

Do you recommend CWM or TWRP?
[Nexus 5 General] abaaaabbbb63:
TWRP has official support for the N5, so I would recommend it.
[Nexus 5 General] osm0sis:
Yup but you still misunderstand. You need to reset the tamper, sure, but you could just flash the zip twice in a row to have it unlocked and tampered false. You're overcomplicating things. :)

I recommend CWM because they have proper shell support for getprop.
[Nexus 5 General] abaaaabbbb63:
Oh now I get it!! Thanks a lot!!

I will add this to the guide.
[Nexus 5 General] osm0sis:
Looks good! You forgot the fastboot oem lock in method 1 though!

Also you should test to see if fastboot oem lock sets tampered to true, if so then temp booting CWM one last time and using my zip is the only way to relock.
[Nexus 5 General] abaaaabbbb63:
The ending is for both methods (Yes, I'm lazy :D)

I'll test it on my N4.
[Nexus 5 General] osm0sis:
Test it on the N5 since the N4 tamper flag doesn't get triggered as easily (yet).
[Nexus 5 General] abaaaabbbb63:
Well, I don't have a Nexus 5 (Sadly).

But good news. On the N4, I locked the bootloader, then unlocked it, both using the script, and the tamper is set to "false".

Same goes with unlocking it with BootUnlocker.

So it seems that, at least on the N4, the tamper is only triggered by fastboot commands, not by file editing.

I will get someone to test it on the N5, and I will post the results.
[Nexus 5 General] osm0sis:
As far as we've seen so far not even fastboot triggers it on the N4. I know BootUnlocker won't, but I'd like to know if fastboot oem lock triggers it on the N5 even when it's been reset to false.
[Nexus 5 General] Bluewall:
Since I'm on Linux, should I flash the flash-all.sh or the flash-base.sh ?
[Nexus 5 General] abaaaabbbb63:
The flash-all.sh.
[Nexus 5 General] Bluewall:
Thanks ! I just did it and... camera app fc and I don't get any gsm signal anymore... any idea ?
[Nexus 5 General] abaaaabbbb63:
Did you factory reset after the flashing process finished?
[Nexus 5 General] Bluewall:
Nope, I've gone in recovery, saw the little Android but couldn't do anything ?

What am I supposed to do exactly ?
[Nexus 5 General] Chromium:
Thats the stock recovery splash screen. Hold power then tap volume up (while still holding power) then release both buttons. You should then have the recovery menu.
[Nexus 5 General] Bluewall:
Oh thank God guys, this fixed my problem. Never have to do that on my N4. Thought I ****ed EFS partition lol
[Nexus 5 General] Bluewall:
Now that factory image has been installed properly and I have signal, there's absoluetely NO WAY to download an app... any idea ? Error 403 even after deleting or adding again my account...
[Nexus 5 General] Ex1a:
I've read the guide so when I finish the phone will be unroot and locked,right?

I'm new in this, sorry

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 General] daLareid:
Nvm.
[Nexus 5 General] dmonleo:
rojell and daLareid have you tried using "Method #2" in OP? I also tried using the flash all cmd, with pretty much the same issue. Method #2 worked for me.
[Nexus 5 General] rojell:
Hay abaaa that did the trick just changed usb ports and away it went thanks for the help
[Nexus 5 General] luctreebusch:
Hi guys, followed method 2 al the way and everything seemed to install right.

Already found the answer, thanks anyway!
[Nexus 5 General] abaaaabbbb63:
No problem mate!
[Nexus 5 General] nathanjp:
Use a USB 2.0 port. USB 3.0 ports have problems
[Nexus 5 General] BlazeForth:
Use WUG'S TOOLKIT for flashing stock and all etc. It works 100% perfectly without any error for me.
[Nexus 5 General] jd1639:
Too late the problem is solved. Wug's would not have solved the problem and frankly is not needed if you know how to use fastboot.
[Nexus 5 General] ipzamoner:
IMEI 0, can I recover it?

My IMEI is 0, but I have no idea why this happened. I never tried anything on my nexus 5. If I do the whole procedure, will it recover the original number?
[Nexus 5 General] :
A lot of times it will. You basically have no choice but to try it.

Good luck! ?
[Nexus 5 General] ipzamoner:
Actually, it is still working in 2G over here, so I'm afraid of finish ruining it. I know that forcing my IMEI back might be illegal.
[Nexus 5 General] :
Just flashing factory firmware again is not "tampering" with your imei in any way.

Have you rebooted? It's still zero? Need more details about your device first. Rooted? Custom recovery? Any modifications at all? It's unusual that it would just turn to zero for no reason at all.
[Nexus 5 General] ipzamoner:
I haven't rebooted it yet. My phone has about 1 year and I haven't done anything with it, just used it normally. Never rooted, recovered, nothing.. Someday, two months ago, I realized it wasn't working anymore, the signal was unstable. I stayed like that for 1 week and then i tried to change it to 2G and it worked again. I thought it was because i was on vacation in a small city, but I'm back to São Paulo and it's still like that. Now, I realized my IMEI is also zero and that's might be the problem, but for some reason on 2G it works fine.

Sorry if I am going out of the thread's topic.
[Nexus 5 General] :
Well, just like a computer, step one is always reboot. ?
[Nexus 5 General] ipzamoner:
Yes, i know. But I read a lot of people saying it does not work, so I'm already looking for the possible right solution (haven't found it yet)
[Nexus 5 General] :
A reboot may not fix it... But it takes about 30 seconds to find out. ?

Other than that, reflashing stock is the best way to likely fix it.

If you want to discuss trying to use a tool to restore it, that rarely ever will work if you didn't have an Efs partition backup to begin with.

Also... Discussing those tools is a touchy subject, as they can often be used for tampering. In which case, XDA isn't the place to likely get help with that.

Again, I've seen many, many successful imei fixes from simply flashing stock firmware again. It can't possibly make it worse anyway. (standard no guarantee added to that, as anything can go wrong anytime in this hobby) ?
[Nexus 5 General] ipzamoner:
I have no Efs partition backup, so try to flash stock firmware is the only way. I'll use the tutorial over here to try it.

Thanks!
[Nexus 5 General] kaiserlourdes:
can i use your method 1 for downgrading unrooted/STOCK android 5.0.1 to stock 4.4.4?

and do i also have to unlock the bootloader first to begin?
[Nexus 5 General] abaaaabbbb63:
Yes

and

Yes.
[Nexus 5 General] Aslam Driver:
Well sorry If I am being noob but I wonder where can I download

1. bootloader-Hammerhead-HHZ11d.img

2. Flash-all.batch file

3.Flash-all.sh

4.Flash-base.sh

5. radio-hammerhead-xxxx...............

these files ?:confused:

also is there any .zip file available for pure stock rom 5.0.1 so can just flash with twrp recovery ? is it possible ?
[Nexus 5 General] jd1639:
Google nexus factory image. You'll download a .tgz file. Extract it using 7-zip or winrar. In there you'll find the files you're looking for.
[Nexus 5 General] T3hBraveBoss:
Trying to fix a bricked Nexus 5, trying to flash userdata.img results in error "unknown partition error: cannot determine image filename for 'userdata.img'

'userdata'.img'

Not sure what to do next
[Nexus 5 General] mnhs1010:
I extract it only found 1 file with this name hammerhead-lrx22c-factory-0f9eda1b which is unkown no soft to open it pls help???
[Nexus 5 General] jd1639:
Use a different browser to download it.
[Nexus 5 General] mnhs1010:
try and download almost 3 3 times from IDM,chrome,internet explorer but found 1 file just. pls help

---------- Post added at 02:25 AM ---------- Previous post was at 02:25 AM ----------

pls help
[Nexus 5 General] schmos:
Try extracting the files using 7z or Winrar.
[Nexus 5 General] Ikos:
Quick question: if I install the TWRP recovery to reset the tamper value and lock the bootloader, I have to install the original recovery back to have everything stock using this command "fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img", right?

Cause the guide in the OP doesn't say anything about installing the original recovery back.
[Nexus 5 General] Primokorn:
You do not install it. Just boot on TWRP: fastboot

boot

path/to/TWRP.img

This is different from fastboot flash recovery recovery.img
[Nexus 5 General] Ikos:
Oh yeah, I've always been terrible with these fastboot commands, thank you mate.
[Nexus 5 General] swivels:
Booting from TWRP Recovery Image Alternative (Touch Screen Doesn't Work)

First of all, great guide followed all the steps without a hitch.

However, I am trying to change the tamper status using Nexus Bootunlocker zip and cannot use TWRP recovery image because my touch screen has stopped working. I have tried to look for a CWM alternative but haven't been able to find it.

Is there a recovery image that uses only the buttons or something I am able to do from the PC that will not rely on using the phone touchscreen?

Regards,
[Nexus 5 General] jd1639:
Download the non-touch image file and use it just like the instructions for twrp http://www.clockworkmod.com/rommanager
[Nexus 5 General] abumaha:
why it say

C:\Users\HDOC\Desktop\hammerhead-lrx22c>fastboot flash bootloader C:\Users\HDOC\

Desktop\hammerhead-lrx22c.img

target reported max download size of 1073741824 bytes

error: cannot load 'C:\Users\HDOC\Desktop\hammerhead-lrx22c.img': No error

C:\Users\HDOC\Desktop\hammerhead-lrx22c>
[Nexus 5 General] jd1639:
What image are you trying to flash?
[Nexus 5 General] abumaha:
latest rom

hammerhead-lrx22c
[Nexus 5 General] jd1639:
Are a you using the flash-all.bat? You might have to flash each image separately, the long method
[Nexus 5 General] abumaha:
ho wto check emmc is bad

in recovery log
[Nexus 5 General] jd1639:
I don't know how to check it in recovery log. If you try to lock your bootloader and it doesn't stay locked then your emmc is bad. Try

fastboot oem lock

Then reboot, does it stay locked or is it still unlocked?
[Nexus 5 General] SirKurry:
Hi, I followed the second method in OP's post, but when the small Android icon popped up and I pressed volume up + power button, it never gave me an option to wipe data/factory data reset, and it is stuck on the spinning dots (for running on 10 minutes now, I waited long enough). How do I fix this?
[Nexus 5 General] jd1639:
Power down, press and hold the power key for 20 seconds, wait until you see the Google logo pop up and then go away. Then boot into recovery again and try the power and then vol up for like half a second. It can be tricky
[Nexus 5 General] SirKurry:
Okay, I just tried that, I'll wait about 5 minutes to see if it restarts. Will update.
[Nexus 5 General] jd1639:
It shouldn't take 5 minutes. It should open up right away. Try flashing the recovery.img in fastboot again.
[Nexus 5 General] SirKurry:
Yeah it's not working. Let me reflash the recovery and see if that helps. Appreciate your help , by the way!

EDIT: The phone's working fine now, reflashing the recovery fixed it. Thank you!
[Nexus 5 General] ipzamoner:
I am trying to recover my IMEI, as it became 0 sometime ago (I have no idea why). My phone is all original, no changes were made. To do that, I will try to flash a factory image.

My question is about this step ★Unlock your bootloader (In case you haven't already).

So I went to this guide http://xdaforums.com/google-nexus-5/general/guide-nexus-5-how-to-unlock-bootloader-t2507905 and my question is if I should do the "Setup, Preparation and Prerequisites" or just the "1. Unlocking Bootloader".

Sorry if it was already asked before! :confused:
[Nexus 5 General] :
Just follow the instructions completely and you can flash stock which hopefully fixes your issue. Obviously if your device already has an unlocked bootloader, skip that. ?
[Nexus 5 General] ipzamoner:
Thanks for the answer Darth. Just to make it clear, I need to do all 3 steps and not just the first one of this guide. [GUIDE] Nexus 5 - How to Unlock Bootloader, Install Custom Recovery and Root
[Nexus 5 General] :
Just unlock bootloader, you don't need a custom recovery or root to flash firmware. ?
[Nexus 5 General] ipzamoner:
Thanks Darth, it worked, but I had to use the long method! Unfortunately, it didn't solve my problem and I still have my IMEI 0 :(
[Nexus 5 General] :
Well, it's strange you did nothing to the phone and this happened? Normally it would be an unfortunate side effect of some sort of modifying/flashing... But not often just happens for no reason.

Unfortunately a service center may be your only hope now. They can likely fix it though.

Good luck!
[Nexus 5 General] MCASTILLO:
Hello all.

I have this problem with my phone. I tried to flash it to factory images but it will not let me. Can anyone help me please? Everything runs fine but the problem is with boot.img and I have this problem with KitKat and lollipop!!!

I leave this pic. Thank you for your replies.

I hope someone can help me please.
[Nexus 5 General] jd1639:
Sounds like you have a stuck power button. Try pressing it multiple times
[Nexus 5 General] sameer8019:
i tried it bt nothing happen. whenever i try to connect charger pin to phone n turn power on phone start on n off. i dont know what happened to my phone plz help me
[Nexus 5 General] :
Stuck power buttons are quite common, and exhibit the same symptoms as you're having. Try Googling "Nexus 5 stuck power button" for more info, or to attempt fixing yourself....or go to a service center for repair.

Good luck!
[Nexus 5 General] joe2will:
I just had the same problem had to use method 2 the long way that worked just fine.
[Nexus 5 General] ausduckz:
Following Method 1, I'm getting the following error while trying to flash the 5.1 rom.

target reported max download size of 1073741824 bytes
sending 'bootloader' (2579 KB)...
OKAY [ 0.294s]
writing 'bootloader'...
OKAY [ 0.489s]
finished. total time: 0.785s
rebooting into bootloader...
OKAY [ 0.080s]
finished. total time: 0.081s
< waiting for device >
target reported max download size of 1073741824 bytes
sending 'radio' (45425 KB)...
OKAY [ 1.603s]
writing 'radio'...
OKAY [ 3.125s]
finished. total time: 4.729s
rebooting into bootloader...
OKAY [ 0.076s]
finished. total time: 0.078s
< waiting for device >
target reported max download size of 1073741824 bytes
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
failed to allocate 1046070000 bytes
error: update package missing system.img
Press any key to exit...

This is the first time I've experience this kind of error. My N5 was completely stock and I had to unlock the bootloader, so the phone is completely erased. Any help would be awesome.
[Nexus 5 General] gravedigger76:
Getting exactly the same. Ran MD5 check and the download file is fine..
[Nexus 5 General] FourCrows:
Same error here....I extracted the images and flashed them manually. That works.
[Nexus 5 General] ausduckz:
Yes, I have just finished flashing 5.1 using Method 2, which worked flawlessly.
[Nexus 5 General] eminemix:
Please free up some ram if you see "failed to allocate 1046070000 bytes". It needs 1GB free RAM and refuses to place them in swap/pagefile (no idea why)

Close the browser. :)