• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Mods [Guide]How to flash a Nexus Factory Image manually.

Hey guys. Thanks for the tutorial, it's excellent.

Dunno if I'm stuck, or maybe just impatient... After completion of your steps, it's rebooting with endless balls animation.

It's a Nexus 10, trying to flash the stock factory image 5.1.1.

I was playing with installing Marshmallow using TWRP when I realized it wouldn't be completely functional, so I decided to revert to Stock 5.1.1

in fastboot, after:
writing system...Ok
erasing user data...Ok
erasing cache...Ok
rebooting....

I seem to have endless animated balls.

How long should I wait?

Is it safe to force a reboot at this point by holding the power button?

TIA
 
Upvote 0
Thanks. Is it that obvious that I'm a complete noob at this particular kind of flashing :)

a. Would an RUU be much easier (I'm kind of enjoying learning about ADB etc)?
b. I'm using OS-X terminal (although I do have VMware w/ Win7 inside) - The HTC RUUs are all Windows.
c. after a quick search, I don't see an RUU for Samsung Nexus 10, only HTC, do you?
 
Last edited:
Upvote 0
a. A RUU will load the factory software totally from scratch. It will be as new (except with 5.1.1 already on it).
b. A quick Google search turned up this tutorial with the commands for flashing a RUU on a Nexus 5 using a Mac. Just change filenames as necessary. You might find something more specific to your N10. It's not hard, just be careful.
http://rootnexus5.com/nexus-5-root-tutorials/how-to-unroot-nexus-5-with-stock-firmware/
c. Here's where you can get the factory software. This page also has the commands on it.
https://developers.google.com/android/nexus/images?hl=en
 
Upvote 0
Thanks Crash. I guess my 'quick search' was a bit too quick. :-o
a. A RUU will load the factory software totally from scratch. It will be as new (except with 5.1.1 already on it).
b. A quick Google search turned up this tutorial with the commands for flashing a RUU on a Nexus 5 using a Mac. Just change filenames as necessary. You might find something more specific to your N10. It's not hard, just be careful.
http://rootnexus5.com/nexus-5-root-tutorials/how-to-unroot-nexus-5-with-stock-firmware/
c. Here's where you can get the factory software. This page also has the commands on it.
https://developers.google.com/android/nexus/images?hl=en
 
Upvote 0
There are reports of N5 users losing storage when flashing factory images using an old version of fastboot, but I haven't experienced it first hand. You can grab the latest version of fastboot from our min-sdk found here. That is the version of fastboot I use to flash my 32GB N6 and still have 32GB. You will have to reflash your phone, but now that you've already done it, it should be easier.
 
Upvote 0
There are reports of N5 users losing storage when flashing factory images using an old version of fastboot, but I haven't experienced it first hand. You can grab the latest version of fastboot from our min-sdk found here. That is the version of fastboot I use to flash my 32GB N6 and still have 32GB. You will have to reflash your phone, but now that you've already done it, it should be easier.
It happened to me before. A factory reset after flashing the images fixes the storage issue.

@canucks42 go into settings > backup & reset > factory data reset. Should fix the problem. Or as lunatic59 suggested, you could try flashing the images again.
 
Upvote 0
Hello All,

I just wanted to give you a huge thanks. First of all, the solution worked for me after I had lost all hope of ever recovering my phone. Secondly, I read through all the posts on this thread and I have to say that you mods are absolutely amazing for continuing to help people even though it's been well over two years since its creation. You are the heroes that us unworthy bootloop victims don't deserve, but the ones that we need right now.

Just two points of concern:

1) You may have noticed that several people get stuck at step 9 because they don't know what the name of their bootloader is. This was the case for me too. Maybe you can edit the step in the original post with a little note reminding users that they must extract the downloaded .tgz file twice (once to go from .tgz to .tar, then the second time from the .tar file to the actual folder with the bootloader and radio image files) to see the name. It's a small point of confusion for us noobs so I think the note should help greatly and you guys also won't have to constantly answer the same question over and over again.

2) On the https://developers.google.com/android/nexus/images page, they mention in their last step that, after the flashing is complete, we should lock the bootloader back up for security. But they also state that "locking bootloader will wipe the data on some devices." So is this necessary or can we just leave it unlocked?

Thank you and please continue to do the great job you've been doing thus far! We'll question you, because you can take it. You're our silent guardians. Our watchful protectors. Our Green Knights.
 
Upvote 0
Just two points of concern:

1) You may have noticed that several people get stuck at step 9 because they don't know what the name of their bootloader is. This was the case for me too. Maybe you can edit the step in the original post with a little note reminding users that they must extract the downloaded .tgz file twice (once to go from .tgz to .tar, then the second time from the .tar file to the actual folder with the bootloader and radio image files) to see the name. It's a small point of confusion for us noobs so I think the note should help greatly and you guys also won't have to constantly answer the same question over and over again.

While I understand the confusion, if the user opts to use the "flash-all.bat" script (and it somehow miraculously works ;) ) then the second extraction is unnecessary. Or is that the third? These things confuse me too. ;) However, there are more detailed instructions here. :D

2) On the https://developers.google.com/android/nexus/images page, they mention in their last step that, after the flashing is complete, we should lock the bootloader back up for security. But they also state that "locking bootloader will wipe the data on some devices." So is this necessary or can we just leave it unlocked?.

As far as I know, re-locking the bootloader will not wipe data nor cause a factory reset, but if they say "some devices" it's probably prudent to re-lock right after flashing (if you're so inclined) when there isn't any data yet. I keep my bootloader unlocked, but it is a security risk I assume for the convenience of flashing periodically. The risk is that the phone can be flashed, reset or data accessed if someone has physical access to it. There isn't an online risk with an unlocked bootloader.
 
Upvote 0
While I understand the confusion, if the user opts to use the "flash-all.bat" script (and it somehow miraculously works ;) ) then the second extraction is unnecessary.
Oh, I see. Yeah, that makes sense. Thanks for the link to that detailed and hilarious guide of yours. Surely a New York Times bestseller!

As far as I know, re-locking the bootloader will not wipe data nor cause a factory reset, but if they say "some devices" it's probably prudent to re-lock right after flashing (if you're so inclined) when there isn't any data yet. I keep my bootloader unlocked, but it is a security risk I assume for the convenience of flashing periodically. The risk is that the phone can be flashed, reset or data accessed if someone has physical access to it. There isn't an online risk with an unlocked bootloader.
Hmm, that relieves my concern. I didn't re-lock right after flashing and now I've already restored all my apps and stuff back so I will just leave it be. Maybe pick up some Muay Thai lessons though to prevent any unauthorized physical access of my precious... and I'm talking about my phone, in case anyone's mind is in the gutter. Thank you for the help, lunatic!
 
Upvote 0
First thing I'd do is check the integrity of the file you downloaded. Do the MD5 signatures match? You can use WinMD5 to verify this. IF you're good there, then I'd see if you can boot into recovery (Vol. down + power) from fastboot and perform a factory reset. If all else fails, flash it again. Sometimes these things just need a second try. ;)
 
Upvote 0
@lorenzoVM same here stucked at the in 4 colors animation... :(

When you say "stuck", if the animation is playing, then let it go for a while. It can take up to 15 minutes to recompile everything. If it goes longer than that, then something isn't right and I'd try flashing again.
 
Upvote 0
@lunatic59 did all that, nothing worked. Flash like 5 times now, always stuck.
@AsteroidS downloaded this version, and tried by your tutorial. Error after flashing the radio, saying something like "system.gis not founded" and then press any key to exit. You extracted twice the file? Or just once and left the .zip archive in the folder? Thanks all, I'm starting to think that maybe it's a hardware problem, bad.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones