Flashing factory image didnt return to stock! - Nexus 5 Q&A, Help & Troubleshooting

I had on my nexus 5 custom recovery, custom kernel (franco) and paranoid android rom (rooted). I wanted to get back to stock and flashed factory image lollipop 5.1 doint this
adb devices
adb reboot bootloader
fastboot flash bootloader <bootloader-filename>.img
fastboot flash radio <radio-fileame>.img
fastboot reboot-bootloader
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
fastboot reboot
When i rebooted i noticed that everything was fine but i had paranoid android rather than stock rom! What happened?

You didn't erase anything and it's hard to say without a log. Follow method 2: http://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701
Or use the built-in script (flash-all).

Primokorn said:
You didn't erase anything and it's hard to say without a log. Follow method 2: http://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701
Or use the built-in script (flash-all).
Click to expand...
Click to collapse
Thanks it worked!

Related

Stuck in Bootloop

Trying to install the 5.1 factory image and can't seem to escape bootloop. I can't even seem to get into recovery post flash to do a factory reset. It's funny, because if I flash TWRP instead of stock recovery i can get into TWRP. However, the file structure isn't built out at all when i mount from there. I flashed using the following method:
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot erase cache
Thoughts?
pearlbrian said:
Trying to install the 5.1 factory image and can't seem to escape bootloop. I can't even seem to get into recovery post flash to do a factory reset. It's funny, because if I flash TWRP instead of stock recovery i can get into TWRP. However, the file structure isn't built out at all when i mount from there. I flashed using the following method:
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot erase cache
Thoughts?
Click to expand...
Click to collapse
Can you get to bootloader? If so, just flash the stock image using the flash-all.bat
Unfortunately the flash all file never works for me. It hangs up after it flashes the radio. I was at least able to do a factory reset, during which several cache errors popped up. Maybe that is the root cause of the trouble?
pearlbrian said:
Trying to install the 5.1 factory image and can't seem to escape bootloop. I can't even seem to get into recovery post flash to do a factory reset. It's funny, because if I flash TWRP instead of stock recovery i can get into TWRP. However, the file structure isn't built out at all when i mount from there. I flashed using the following method:
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot erase cache
Thoughts?
Click to expand...
Click to collapse
You erased the cache after flashing it... System is checking for the cache and so the boot loop, try without erasing the cache(without executing the last line of code)

[Q] Bootloop after android M preview 2

I used (http://forum.xda-developers.com/google-nexus-5/development/rom-android-m-t3121186) this link to flash previw version 2 of Android M while I was on Android 5.1.1. I did not erase data before flashing. Used fastboot from MAC to flash new version Now my phone was stuck in bootloop. I tried to flash android L stock back but still in bootloop. Please help. I flashed TWRP recovery to erase data and cache but it says error cannot mount cache. please help.
buildsaurabh said:
I used (http://forum.xda-developers.com/google-nexus-5/development/rom-android-m-t3121186) this link to flash previw version 2 of Android M while I was on Android 5.1.1. I did not erase data before flashing. Used fastboot from MAC to flash new version Now my phone was stuck in bootloop. I tried to flash android L stock back but still in bootloop. Please help. I flashed TWRP recovery to erase data and cache but it says error cannot mount cache. please help.
Click to expand...
Click to collapse
I ran into the same issue, but found this solution:
First, flash the bootloader and the radio, and then reboot the bootloader (radio only applies to some devices):
fastboot flash bootloader <bootloader file name here>.img
fastboot flash radio <radio file name here>.img
fastboot reboot-bootloader
Flash the recovery, boot, system, and vendor images (vendor only applies to the Nexus 9):
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
Recommended: For a full wipe, flash cache and userdata as well (userdata only applies to some devices):
fastboot flash cache cache.img
fastboot flash userdata userdata.img
Reboot your device:
fastboot reboot
Credit: http://9to5google.com/2015/06/01/how...-nexus-player/
knG333 said:
I ran into the same issue, but found this solution:
First, flash the bootloader and the radio, and then reboot the bootloader (radio only applies to some devices):
fastboot flash bootloader <bootloader file name here>.img
fastboot flash radio <radio file name here>.img
fastboot reboot-bootloader
Flash the recovery, boot, system, and vendor images (vendor only applies to the Nexus 9):
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
Recommended: For a full wipe, flash cache and userdata as well (userdata only applies to some devices):
fastboot flash cache cache.img
fastboot flash userdata userdata.img
Reboot your device:
fastboot reboot
Credit: http://9to5google.com/2015/06/01/how...-nexus-player/
Click to expand...
Click to collapse
Hi,
Instead of linking the OP to an external resource, which has instructions for another device (hammerhead does not have a /vendor partition, for example), you could/should have linked him to http://forum.xda-developers.com/showthread.php?t=2513701
OP, stickies exist for a reason.
a hammerhead wrote this.

Guide to reverting to 5.1.1?

Is there a guide somewhere to reverting my Marshmallow Nexus 5 back to the previous android 5.1.1 while keeping all my apps, data, and settings? I'd like to know what I'm actually doing so real steps with adb and fastboot and twrp would be appreciated, not a pointer to some toolkit that does God knows what behind my back .
Reverting to 5.1.1 appears to be the only way to eradicate the poorly thought out scourge that is doze mode .
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash boot boot.img
fastboot flash system system.img
fastboot format cache
fastboot reboot
Done
You will lose your settings though (all data related to /system partition).

Nothing can be written on internal storage (insert sd card error on camera, etc)

I posted this on reddit...but didn't get much help...i hope the geniuses at xda can help me
As the title says, the camera app (any camera app) won't work because as you start any of them, it asks to insert the sd card, but this is a 2013 Nexus 5...so it doesn't have an sd card.
I've done a fair amount of research and the only thing that seems to be mentioned is factory reset. I've done that...both through the settings and twrp. The phone has a stock marshmallow rom.
I tried to download any other file and it won't let me download anything becauase the "sd card" is not available. So it's as if the internal sd card isn't mounted? how do I fix this? I don't have a computer nearby to do anything with adb...any help would be GREATLY appreciated...
The amount of storage according to the settings is correct (3gb used of 12 gb..16gb nexus 5)...all app permissions are correct. I've reflashed two different stock firmwares with the exact same result.
Try this:
boot into fastboot;
run this fastboot command: fastboot erase recovery (to erase existing recovery);
run this fastboot command: fastboot flash recovery recovery.img (to flash stock recovery from stock ROM)
run this fastboot command: fastboot erase userdata;
run this fastboot command to flash the usedata img from the stock ROM: fastboot flash userdata userdata.img;
boot into stock recovery and perform a factory wipe/reset and wipe cache;
reboot.
audit13 said:
Try this:
boot into fastboot;
run this fastboot command: fastboot erase recovery (to erase existing recovery);
run this fastboot command: fastboot flash recovery recovery.img (to flash stock recovery from stock ROM)
run this fastboot command: fastboot erase userdata;
run this fastboot command to flash the usedata img from the stock ROM: fastboot flash userdata userdata.img;
boot into stock recovery and perform a factory wipe/reset and wipe cache;
reboot.
Click to expand...
Click to collapse
I'll try that tonight or tomorrow morning. Where do you suggest I download recovery.img (the stock recovery)?
Thanks for the help one way or another.. Hehe
The stock Google images are here: https://developers.google.com/android/nexus/images?hl=en
I assume the phone has an unlocked bootloader since you were able to flash stock ROMs.
What did you do between all being fine and now this problem?
Sent from my Xperia z5 using Tapatalk
Ben36 said:
What did you do between all being fine and now this problem?
Sent from my Xperia z5 using Tapatalk
Click to expand...
Click to collapse
I sold the phone to someone I know. I had a rom (i can't remember which)...so before i sold the phone, i encrypted it, wiped it clean, flashed the stock rom (and radio)....and did a factory reset.
audit13 said:
Try this:
boot into fastboot;
run this fastboot command: fastboot erase recovery (to erase existing recovery);
run this fastboot command: fastboot flash recovery recovery.img (to flash stock recovery from stock ROM)
run this fastboot command: fastboot erase userdata;
run this fastboot command to flash the usedata img from the stock ROM: fastboot flash userdata userdata.img;
boot into stock recovery and perform a factory wipe/reset and wipe cache;
reboot.
Click to expand...
Click to collapse
Thanks! I used the factory images and flashed everything from the compressed archive and it worked..you're a lifesaver. I guess I had to go further and reset everything..but thanks again!

Nexus 5 Soft-Bricked HELP PLEASE!!!

Although my Nexus 5 is rooted with the toolkit I haven't done anything to it in months (no custom roms or anything)
My phone was working last night but when I woke up and it was in a bootloop.
so i tried fixing the problem myself, here are the things I tried:
- Hitting it (in case the buttons were sticky)
- Flash stock + unroot on the n5 toolkit
- Bootloader>Recovery>Wipe Data/Factory Reset
After that, the boot loop stopped and whenever I try turning it on it goes straight to the bootloader.
So I tried going into the wugfresh advanced utilities and i tried:
- Fastboot Erase*
- Fastboot format*
*flash stock + unroot after both
I have a little bit of hope because I can access the bootloader but I have no idea what else I can try.
Any suggestions?
thank you in advance
Does the bootloader remain unlocked?
Try manually flashing the latest marshmallow. After flashing, boot back into fastboot and run these commands:
fastboot erase userdata
fastboot flash userdata userdata.img (the userdata.img file can be extracted from the stock ROM for flashing in fastboot)
After running the 2 commands, boot back into recovery and perform a full wipe of data and cache, then reboot.
audit13 said:
Does the bootloader remain unlocked?
Try manually flashing the latest marshmallow. After flashing, boot back into fastboot and run these commands:
fastboot erase userdata
fastboot flash userdata userdata.img (the userdata.img file can be extracted from the stock ROM for flashing in fastboot)
After running the 2 commands, boot back into recovery and perform a full wipe of data and cache, then reboot.
Click to expand...
Click to collapse
How do i run the 2 command "fastboot erase userdata" and "fastboot flash userdata userdata.img"
Fastboot on Windows
shbm111 said:
How do i run the 2 command "fastboot erase userdata" and "fastboot flash userdata userdata.img"
Click to expand...
Click to collapse
Hopefully you are running windows
dottech.org/21534/how-to-install-adb-and-fastboot-on-your-windows-computer-for-use-with-your-android-phone
spacecaptain said:
Hopefully you are running windows
dottech.org/21534/how-to-install-adb-and-fastboot-on-your-windows-computer-for-use-with-your-android-phone
Click to expand...
Click to collapse
Yup, I'm running windows.
anyways I don't think the nexus toolkit works on any other platform.
spacecaptain said:
Hopefully you are running windows
dottech.org/21534/how-to-install-adb-and-fastboot-on-your-windows-computer-for-use-with-your-android-phone
Click to expand...
Click to collapse
So, I went through the method one adb setup and I still have no idea how to do the fastboot erase userdata
nvm got it.
Were you able to boot the phone?
I'm in the same situation and need help

Categories

Resources