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

5.0.1 Update

Did you ever see that episode of *M*A*S*H* where they are using instructions to defuse a bomb? "... cut the blue wire ... *snip* ... but first remove the fuse.":eek:

I think we are missing a few details.

First let me say I don't have a Mac at my disposal to test this, but they are very similar to Linux commands so I am going to give you my best GUESS as to the proper steps to do this.

You have the Android SDK installed, or at least the mini-SDK that includes ADB and fastboot. You said you had it sitting on your desktop in a folder called "android" and a subfolder called "platform-tools". Are we cool so far?

Now, in that folder you have the following files ...

Code:
bootloader-hammerhead-hhz12d.img
flash-all.bat
flash-all.sh
flash-base.sh
image-hammerhead-lrx22c.zip
radio-hammerhead-m8974a-2.0.50.2.22.img

as well as the executables for fastboot and adb, although adb won't be necessary.

Still on the same page?

Now, put your phone into fastboot mode and plug it into your Mac. Set it down. Open a terminal and type the following:
Code:
 cd ~/Desktop/android/platform-tools/

Now you should be where you need to be. Just to verify type "ls" to list all the files. If you see the files listed above, you're golden.

Now type:
Code:
fastboot devices

it should return "fastboot [serial number]" with your device serial number.

Got that? Great now it's time to flash.

First type
Code:
fastboot flash bootloader bootloader-hammerhead-hhz12d.img
(hint, just type "fastboot flash bootloader boo" and then hit the TAB key, it should fill in the rest of the filename for you. :))

Next reboot the bootloader.
Code:
fastboot reboot-bootloader

Did it work? It should.

Do the same for the radio (and reboot bootloader) and the system image, but be very careful NOT to use the "-w" option or your user data will go bye-bye.

Let us know if you get stuck again exactly where and the exact error with a screenshot would be helpful.
 
I haven't really done this much as I use Wugs on Windows, but I think the disconnect may be that the image files are in the tar file, which is essentially a zip file. You need to extract the image and zip files from the tar file.
 
hmmm, i was assuming that since grunt0300 had tried running the flash-all.sh that he'd already decompressed the archive into platform-tools. You definitely need to do that first.
 
@lunatic59 - This will make you laugh, or cry...Here is a list of all the files within my sub-folder "platform-tools". hammerhead-lrx22c.....tgz, image-hammerhead-lrx....zip, radio-hammerhead-m8974a-......2.22.img, boot.img, cache.img, recovery.img, system.img, folder image-hammerhead-lrx22c, android-info.text, userdata.img, folder hammerhead-lrx22c, plus these executables...fastboot-mac, adb-mac, adb, fastboot. It's enough to make you cry. Too many suggestions, from too many people. HELP, please.:confused:
 
Okay. Inside the platform-tools folder you have a folder called "image-hammerhead-lrx22c"? Not just "hammerhead-lrx22c"? In any case, the files you need in the platform tools folder are:
bootloader-hammerhead-hhz12d.img
image-hammerhead-lrx22c.zip
radio-hammerhead-m8974a-2.0.50.2.22.img
fastboot
adb

for right now the rest are superfluous.

if they aren't there, then they got decompressed into a subfolder. Go find them and put them in platform-tools.

Now, after smacking my own head ... and i apologize profusely for this ... when you execute fastboot commands from the terminal you need to begin each command with "./"

Try this:
Code:
./fastboot devices

did it work now?
 
@lunatic59 - This will make you laugh, or cry...Here is a list of all the files within my sub-folder "platform-tools". hammerhead-lrx22c.....tgz, image-hammerhead-lrx....zip, radio-hammerhead-m8974a-......2.22.img, boot.img, cache.img, recovery.img, system.img, folder image-hammerhead-lrx22c, android-info.text, userdata.img, folder hammerhead-lrx22c, plus these executables...fastboot-mac, adb-mac, adb, fastboot. It's enough to make you cry. Too many suggestions, from too many people. HELP, please.:confused:

Do you have the bootloader-hammerhead.....img also? If not, you may have accidentally deleted it. Extract it from the hammerhead........tgz file you downloaded from developers.google* site

Too many suggestions? follow our resident lunatic! Wait... that doesn't sound right... :) I'm kidding!!! Don't kick me! ;)
But no, @lunatic59 is giving you very detailed (and of course, very accurate) instructions
 
O.K., i'm going to open a folder on the desktop called JUNK. I'm keeping everything that you said belongs in my platform-tools sub-folder, and all the other stuff goes in JUNK for now.
P.S. I have that folder that i was missing. Just give me a minute, and we'll try this again.
 
P.S. I have that folder that i was missing. Just give me a minute, and we'll try this again.
They are all files. They might look like folders because they are compressed archives of files, but don't decompress them.

For my next trick, I'm going to eliminate Ebola with a carrot, three toothpicks and a picture of Hugo Chavez.
 
./fastboot devices came back-no such file or directory, however, when i tried it without the ./, it came back as-new host with my name. Is that good?
P.S. I'm all set up on my desktop. One folder(Android), and one sub-folder(platform-tools) with those five files inside. Let's do this.:p
 
It should look like this ...

Screenshot from 2014-12-23 12:37:39.png
 
Pretty much, but on the third line it has newhost#2, and my name.
 
Just so you know, every time i answer you, the terminal window closes and wipes itself clean. Will that be a problem with the commands?
 
The third line i suspect is the name of your Mac much like mint-Aspire-4810TZ is the name of my laptop (an Acer Aspire 4810TZ running Linux mint ;) ) and fboot is the name of the folder i am in at the moment.

Not sure what the newhost#2 thing is about or why the terminal window is closing on you, unless it just drops out and is running in the background meaning newhost is a second terminal session running.

Would a screenshot be possible?
 
The phone's serial no. is correct, so that's good. I'll try to get the terminal to run in the background, but wondering if I have to start all over again, if it happens when you give me the individual commands.:p
 
Not really sure about the terminal window on a Mac closing like that. If after the fastboot command the window stays open, then just keep going. Each command is independent and shouldn't effect the other.
 
typed in commands exactly as written, and getting "no such file exists". This is day two of trying to flash the update. My frustration level is definitely rising. It took all of about 15 seconds to unlock the bootloader!
Terminal keeps telling me that the .img file doesn't exist, or can't be found. I don't have that .img file in my folder.

Did you remember to change your directory to the correct location? Also, have you unzipped the factory image file so you have all the images separate?

I will try to get some screen shots for you to make things a little clearer.
 
O.K., i have a problem. I've downloaded the android-sdk-macosx package, but can't find these files. Flash-all.bat, Flash-all.sh, Flash-base.sh. Where do i get them?

P.S. Anyone know how to take a screen shot of my desktop? I'm running Yosemite 10.10.1
 
O.K., i have a problem. I've downloaded the android-sdk-macosx package, but can't find these files. Flash-all.bat, Flash-all.sh, Flash-base.sh. Where do i get them?

In the hammerhead<something>.tgz file you downloaded from developers.google* site
 
O.K., i have a problem. I've downloaded the android-sdk-macosx package, but can't find these files. Flash-all.bat, Flash-all.sh, Flash-base.sh. Where do i get them?

P.S. Anyone know how to take a screen shot of my desktop? I'm running Yosemite 10.10.1

Screenshot is command + shit + 3 for the entire screen OR command + shift + 4 for a cropped section of the screen.

If you haven't downloaded the 5.0.1 factory image yet click here to get it.
 
Screenshot is command + shit + 3 for the entire screen OR command + shift + 4 for a cropped section of the screen.

If you haven't downloaded the 5.0.1 factory image yet click here to get it.

I heard the shutter click, but where did the picture go?
 
Ok, here's some basic things to get you (hopefully) started.



Above is the file you need to have downloaded and "unzipped" (it's a tgz file not a zip file but same dif).



Next is the contents of the folder once you have extracted the .tgz file.



Unzip the highlighted file and open the folder that is extracted from it.

ScreenShot2014-12-24at64456am.png



You should see all the individual image files, as above.



This is the location (or directory) of the files we need (on my mac, obviously it may be slightly different on yours) you can get here by right clicking any file in the folder from the previous screen shot and choosing "get info". You can highlight and copy the highlighted section to ensure you don't make any mistakes typing the directory into terminal.



Now we open terminal, type "cd " and paste the location you just copied, DON'T HIT ENTER YET.



We need to replace the little arrows with slashes (/) and remove any spaces and hit enter (it should look as it does in the above screen shot if you've done it right).

From there you can use your fastboot commands ("fastboot flash recovery recover.img" etc.) to flash the image files.

Remember, don't flash "userdata.img" unless you want to wipe the data you already have on the phone.
 
Last edited:
I was good all the way, until i tried to flash..."fastboot flash bootloader bootloader-hammerhead-hhz12d" error: cannot load bootloader-hammerhead-hhz12d : no such file.
 
Did you forget the ".img"?

it should be
Code:
fastboot flash bootloader bootloader-hammerhead-hhz12d.img

Edit: I just noticed that the "code" tag crops off the .img if you don't scroll. o_O
 
Back
Top Bottom