Go Back   Android Forums > Android Development > Android System Mods, Scripts and Hacks

Like Tree10Likes

test: Reply
 
LinkBack Thread Tools
Old April 3rd, 2013, 03:52 PM   #1 (permalink)
Moderator
Thread Author (OP)
 
jhawkkw's Avatar
 
Join Date: Jul 2011
Location: Rochester, NY
Posts: 10,277
 
Device(s): Nexus 5, HP 14 Chomebook w/ HSPA+, Google Glass, LTE Nexus 7(2013), Chromecast
Carrier: T-Mobile USA

Thanks: 3,139
Thanked 6,944 Times in 3,748 Posts
Default [Guide]How to flash a Nexus Factory Image manually.

This is a guide for all those who run into a circumstance that requires a complete return to stock. Most people who have windows can avoid this through the use of a toolkit like Wugs, but that still leaves those on Macs or Linux behind.

Step 1: Make sure the fastboot drivers are installed & configured if your OS requires them. The easiest way is to use Koush's Universal drivers found here: Universal Driver

Step 2: Make sure you have the fastboot files. You can get it from our mini-sdk here on the forums.

Step 3: Download the factory image from Google Developer website. The latest builds are listed below:
Once downloaded, extract the .tzg into the same folder you put the sdk files.

Step 4: Make sure the device is connected to the computer while in fastboot mode. Different devices may require different commands to get into fastboot mode. Make sure the device is powered off and then use the following button commands:
  • Nexus S - Vol Up + Power
  • Galaxy Nexus - Vol Up + Vol Down + Power
  • Nexus 7 - Vol Down + Power
  • Nexus 4 - Vol Down + Power
  • Nexus 5 - Vol Down + Power
  • Nexus 10 - Vol Up + Vol Down + Power
Step 5: Open up a command line terminal and navigate it to the location where the factory image and fastboot files are located. This can be done with the following command
Quote:
cd "directory address goes here"
Windows users can take a shortcut by having the folder open with windows explorer and then using the combo of Shift + Ctrl + right click and then clicking on "Open session window here"

Step 6: All commands are going to be executed through the fastboot binary.
Windows:
Quote:
fastboot "rest of command"
Mac:
Quote:
./fastboot-mac "rest of command"
Linux
Quote:
sudo ./fastboot-linux "rest of command"
For simplicity, I'm only going to progress using windows commands because it's simpler. First we want to make sure the computer sees the device. Use the command:
Quote:
fastboot devices
This should return a device ID if it's recognized. If nothing is returned, it means your device is not connected in fastboot mode, or the drivers aren't installed/configured correctly.

*Note* Steps 7 and/or 8 will wipe the device completely. So if you wish to back anything up, do it now.

Step 7: If your bootloader is already unlocked, skip this step. If it is not, it has to be unlocked in order to flash anything. To do this, use the command:
Quote:
fastboot oem unlock
Use the Vol Up to go up to yes and then use the power key to select. The device should now be unlocked

Step 8: We now want to wipe the device. Use the following commands in order:
Quote:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
Step 9: We will now flash the bootloader. It is important that you do not disconnect the device or mess with it during this step or else you hard brick the device.
Quote:
fastboot flash bootloader "name of bootloader"
fastboot reboot-bootloader
Step 10: If using a phone or data enabled tablet, we will now flash the mobile radios. Some phones have more than one radio file. Flash the CDMA radio after the LTE radio.
Quote:
fastboot flash radio "name of radio"
fastboot reboot-bootloader
Step 11: We will now flash the system, boot, and recovery all in one shot with the following command:
Quote:
fastboot -w update "name of zip file"
Alternatively, you could extract all the .img files in the zip file and flash them manually one at a time. This makes things really handy if you're using the factory image to act as an update rather than a complete return to stock. If trying to update using the factory image, extract the .img from the zip file into the same directory as your bootloader and radio img files and execute the following commands in order:
Quote:
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
If going for a complete back to stock using the manual flashing of the zip file, execute the following commands after the above 4:
Quote:
fastboot erase userdata
fastboot flash userdata userdata.img
Step 12: The device now has been flash back to stock. Only one thing left to do is reboot.
Quote:
fastboot reboot
Your device will now reboot and should be completely back to stock as well as be unrooted.

Advertisements
__________________
Site Rules/Guidelines / Meet the Team
If something needs attention, Report it .
If someone helped you, hit to show it.

Current Devices: Nexus 5, HP 14 Chromebook (Data Enabled), Google Glass, (2013) LTE Nexus 7, Chromecast
Retired: Samsung Fascinate, Droid Charge, Galaxy Nexus, (2012) WiFi Nexus 7, Asus TF700, Nexus 4, Logitech Revue
jhawkkw is offline  
Last edited by jhawkkw; May 28th, 2014 at 07:12 PM. Reason: Long overdue update
Reply With Quote
The Following 18 Users Say Thank You to jhawkkw For This Useful Post:
ardchoille (April 3rd, 2013), Brian706 (April 22nd, 2014), EarlyMon (April 3rd, 2013), El Presidente (July 11th, 2013), HanSolo (August 12th, 2013), kyauksir (July 11th, 2013), Metroid Prime (April 3rd, 2013), mightyantskate (August 1st, 2013), OutOfPhase (April 3rd, 2013), palmtree5 (August 13th, 2013), pastafarian (April 4th, 2013), rhray (November 2nd, 2013), RichSz (April 4th, 2013), scary alien (April 3rd, 2013), scotty85 (December 7th, 2013), Sepero (May 23rd, 2014), Sharpe Man (November 16th, 2013), skelms (June 4th, 2013)
sponsored links
Old April 3rd, 2013, 07:49 PM   #2 (permalink)
Moderator
Thread Author (OP)
 
jhawkkw's Avatar
 
Join Date: Jul 2011
Location: Rochester, NY
Posts: 10,277
 
Device(s): Nexus 5, HP 14 Chomebook w/ HSPA+, Google Glass, LTE Nexus 7(2013), Chromecast
Carrier: T-Mobile USA

Thanks: 3,139
Thanked 6,944 Times in 3,748 Posts
Default

Post Reserved
jhawkkw is offline  
Reply With Quote
Old April 3rd, 2013, 08:49 PM   #3 (permalink)
Nexican
 
jmar's Avatar
 
Join Date: Sep 2010
Location: San Jose, CA
Gender: Male
Posts: 4,851
 
Device(s): hammerhead, falcon, dream (Retired: grouper, mako, toro, daytona, vivow, inc, aloha, encore)
Carrier: T-Mobile & VZW

Thanks: 7,620
Thanked 3,216 Times in 1,890 Posts
jdmartinez89@gmail.com
Default

For Linux, I've never typed ./fastboot-linux

I've always typed ./fastboot

sudo in front and rest of command after

Just an FYI

Great Guide
__________________
Introduce Yourself Here
Forum Rules & Guidelines - FAQ
Was someone helpful? Hit the Thanks! button. Do you like the contents of a post? Hit the Like button. If you see rude behavior, bickering or spam, Report! it to the Moderators.
My favorite getaway--->Galaxy Nexus Watering Hole
jmar is offline  
Reply With Quote
The Following 2 Users Say Thank You to jmar For This Useful Post:
EarlyMon (April 3rd, 2013), jhawkkw (April 3rd, 2013)
Old April 3rd, 2013, 09:29 PM   #4 (permalink)
Moderator
Thread Author (OP)
 
jhawkkw's Avatar
 
Join Date: Jul 2011
Location: Rochester, NY
Posts: 10,277
 
Device(s): Nexus 5, HP 14 Chomebook w/ HSPA+, Google Glass, LTE Nexus 7(2013), Chromecast
Carrier: T-Mobile USA

Thanks: 3,139
Thanked 6,944 Times in 3,748 Posts
Default

It's because the name of the fastboot files provided in the sites mini-sdk for Linux had that file name. If you're using the official sdk, it probably would have a different name.
jmar likes this.
jhawkkw is offline  
Reply With Quote
The Following 2 Users Say Thank You to jhawkkw For This Useful Post:
EarlyMon (April 3rd, 2013), jmar (April 3rd, 2013)
Old April 3rd, 2013, 10:33 PM   #5 (permalink)
Nexican
 
jmar's Avatar
 
Join Date: Sep 2010
Location: San Jose, CA
Gender: Male
Posts: 4,851
 
Device(s): hammerhead, falcon, dream (Retired: grouper, mako, toro, daytona, vivow, inc, aloha, encore)
Carrier: T-Mobile & VZW

Thanks: 7,620
Thanked 3,216 Times in 1,890 Posts
jdmartinez89@gmail.com
Default

Quote:
Originally Posted by jhawkkw View Post
It's because the name of the fastboot files provided in the sites mini-sdk for Linux had that file name. If you're using the official sdk, it probably would have a different name.
My bad. Didn't realize the commands would be different. I use the bloated official SDK.
jhawkkw likes this.
jmar is offline  
Reply With Quote
Old April 22nd, 2013, 07:25 PM   #6 (permalink)
Premium Member
 
DeepEmissions's Avatar
 
Join Date: Feb 2011
Location: Okeechobee, FL
Gender: Male
Posts: 66
 
Device(s): HTC Hero (RIP), Samsung Epic 4G (Sold), Samsung GNex
Carrier: Sprint

Thanks: 18
Thanked 11 Times in 10 Posts
Send a message via Yahoo to DeepEmissions DeepEmissions
Surprised

I am stuck at Step 11.

This is what it says:
[HIGH]
C:\ADB-SDK>fastboot -w update signed-toroplus-img-ga02.zip
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
archive does not contain 'system.sig'
--------------------------------------------
Bootloader Version...: PRIMELC03
Baseband Version.....: L700.GA02
Serial Number........: 0149B33B0A014012
--------------------------------------------
checking product...
OKAY [ 0.008s]
checking version-bootloader...
OKAY [ 0.008s]
checking version-baseband...
OKAY [ 0.001s]
checking version-cdma...
FAILED

Device version-cdma is 'L700.FH05'.
Update requires 'L700.GA02'.

finished. total time: 0.025s
[/HIGH]

I had no problems during The other steps, but it seems I am missing files.
I checked the download and even downloaded another package (Galaxy Nexus Sprint) to check it's files and everything seems the same.

Any Ideas?
__________________
Devices: Acer Iconia A500
Samsung Galaxy Nexus
iPod 2nd Gen
DeepEmissions is online now  
Last edited by DeepEmissions; April 22nd, 2013 at 07:29 PM.
Reply With Quote
Old April 22nd, 2013, 07:32 PM   #7 (permalink)
Moderator
Thread Author (OP)
 
jhawkkw's Avatar
 
Join Date: Jul 2011
Location: Rochester, NY
Posts: 10,277
 
Device(s): Nexus 5, HP 14 Chomebook w/ HSPA+, Google Glass, LTE Nexus 7(2013), Chromecast
Carrier: T-Mobile USA

Thanks: 3,139
Thanked 6,944 Times in 3,748 Posts
Default

How did you try and flash the two radios?
jhawkkw is offline  
Reply With Quote
Old April 22nd, 2013, 08:10 PM   #8 (permalink)
Premium Member
 
DeepEmissions's Avatar
 
Join Date: Feb 2011
Location: Okeechobee, FL
Gender: Male
Posts: 66
 
Device(s): HTC Hero (RIP), Samsung Epic 4G (Sold), Samsung GNex
Carrier: Sprint

Thanks: 18
Thanked 11 Times in 10 Posts
Send a message via Yahoo to DeepEmissions DeepEmissions
Default

I flashed
fastboot flash radio radio-toroplus.img
fastboot flash radio radio-cdma-toroplus.img

I got the phone capable of booting with the exception of booting into recovery, this gives me the Android on it's back with a Caution Symbol above.
I flashed each img one at a time starting with System, Boot, and then Recovery.

So, phone will boot perfectly fine, but you can not get into recovery partition.
DeepEmissions is online now  
Last edited by DeepEmissions; April 22nd, 2013 at 08:11 PM. Reason: added info
Reply With Quote
Old April 22nd, 2013, 08:46 PM   #9 (permalink)
Moderator
Thread Author (OP)
 
jhawkkw's Avatar
 
Join Date: Jul 2011
Location: Rochester, NY
Posts: 10,277
 
Device(s): Nexus 5, HP 14 Chomebook w/ HSPA+, Google Glass, LTE Nexus 7(2013), Chromecast
Carrier: T-Mobile USA

Thanks: 3,139
Thanked 6,944 Times in 3,748 Posts
Default

You have recovery, but that Android laying on its back is a signal of the stock recovery. You'll have to manually flash custom recovery if you need to do anything with that. You are also unrooted and so you may also need to get that back.
jhawkkw is offline  
Last edited by jhawkkw; July 3rd, 2013 at 02:12 PM.
Reply With Quote
The Following User Says Thank You to jhawkkw For This Useful Post:
DeepEmissions (April 22nd, 2013)
Old April 22nd, 2013, 09:16 PM   #10 (permalink)
Premium Member
 
DeepEmissions's Avatar
 
Join Date: Feb 2011
Location: Okeechobee, FL
Gender: Male
Posts: 66
 
Device(s): HTC Hero (RIP), Samsung Epic 4G (Sold), Samsung GNex
Carrier: Sprint

Thanks: 18
Thanked 11 Times in 10 Posts
Send a message via Yahoo to DeepEmissions DeepEmissions
Default

Gotcha, that's all I needed then, as long as I am fully stock, then I'm good...
Thanks!
DeepEmissions is online now  
Reply With Quote
sponsored links
Old August 9th, 2013, 06:35 PM   #11 (permalink)
Moderator
Thread Author (OP)
 
jhawkkw's Avatar
 
Join Date: Jul 2011
Location: Rochester, NY
Posts: 10,277
 
Device(s): Nexus 5, HP 14 Chomebook w/ HSPA+, Google Glass, LTE Nexus 7(2013), Chromecast
Carrier: T-Mobile USA

Thanks: 3,139
Thanked 6,944 Times in 3,748 Posts
Default

Added Wifi Nexus 7
jhawkkw is offline  
Reply With Quote
The Following User Says Thank You to jhawkkw For This Useful Post:
scary alien (August 27th, 2013)
Old September 7th, 2013, 11:48 AM   #12 (permalink)
New Member
 
Join Date: Sep 2013
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

i have been stuck on sending `system` for the past 3 hours i need some help please (wifi nexus 7)
cvkiid is offline  
Last edited by cvkiid; September 7th, 2013 at 12:05 PM.
Reply With Quote
Old September 19th, 2013, 05:09 PM   #13 (permalink)
New Member
 
Join Date: Sep 2013
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Default

I there...I was tryng to use you precious guide to recover from a almost-bricked wifi nexus7...used my iMac. Averything was fine until bootloader flashing!

I got this

How can I go on?

Please help.

Thanks
Attached Images
File Type: png Schermata 2013-09-20 alle 00.08.08.png (46.4 KB, 25 views)
bagongo is offline  
Reply With Quote
Old September 19th, 2013, 05:46 PM   #14 (permalink)
Moderator
Thread Author (OP)
 
jhawkkw's Avatar
 
Join Date: Jul 2011
Location: Rochester, NY
Posts: 10,277
 
Device(s): Nexus 5, HP 14 Chomebook w/ HSPA+, Google Glass, LTE Nexus 7(2013), Chromecast
Carrier: T-Mobile USA

Thanks: 3,139
Thanked 6,944 Times in 3,748 Posts
Default

Quote:
Originally Posted by bagongo View Post
I there...I was tryng to use you precious guide to recover from a almost-bricked wifi nexus7...used my iMac. Averything was fine until bootloader flashing!

I got this

How can I go on?

Please help.

Thanks
Is the bootloader still locked by any chance? Could you provide a picture of what your device while in fastboot mode?
jhawkkw is offline  
Reply With Quote
Old September 20th, 2013, 02:59 AM   #15 (permalink)
New Member
 
Join Date: Sep 2013
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Thumbs up

Quote:
Originally Posted by jhawkkw View Post
Is the bootloader still locked by any chance? Could you provide a picture of what your device while in fastboot mode?
Fixed...the issue was with 4.3 nakasi bootloader...I flashed 4.23 one and eveyything wasa fine. Now I'm on 4.3 stock rom. Thanks a lot. You're gave me a really great help!!!! Always grateful.
bagongo is offline  
Reply With Quote
The Following User Says Thank You to bagongo For This Useful Post:
jhawkkw (September 20th, 2013)
Old November 16th, 2013, 04:26 PM   #16 (permalink)
Junior Member
 
Join Date: Apr 2010
Location: Western Mass
Gender: Male
Posts: 48
 
Device(s): Galaxy Nexus LTE Nexus 7 16gb Wifi
Carrier: Verizon

Thanks: 290
Thanked 15 Times in 9 Posts
Default

Thanks for the great walkthrough! This seemed to work perfectly for the 2012 nexus 7 wifi. I used the factory image from Google. The only thing for me that was different is the device rebooted by itself after the fastboot -w command.

Now to go to the manually root thread and use that guide!
Sharpe Man is offline  
Reply With Quote
The Following User Says Thank You to Sharpe Man For This Useful Post:
jhawkkw (November 16th, 2013)
Old December 7th, 2013, 04:58 PM   #17 (permalink)
AF Addict
 
scotty85's Avatar
 
Join Date: Jul 2010
Posts: 11,009
 
Device(s):
Carrier: Not Provided

Thanks: 7,885
Thanked 7,199 Times in 4,480 Posts
Default

thanks a bunch for this,mister jhawkkw! i was looking at this guide,wich was less than crystal clear(): [Index] REPO for all you need for your Nexus 7 FLO (2013) - Update 26 Nov 2013 - xda-developers

yours makes perfect sense. much more "htc-like"
__________________
The Delivery Guy
If someone has helped you,please click the THANKS button on that post.
Please post questions so others can benefit from the answers.
donate to my device fund
scotty85 is offline  
Reply With Quote
The Following User Says Thank You to scotty85 For This Useful Post:
jhawkkw (December 7th, 2013)
Old December 13th, 2013, 01:38 AM   #18 (permalink)
Sunny Vacation Supporter!
 
palmtree5's Avatar
 
Join Date: May 2012
Location: USA
Gender: Male
Posts: 3,372
 
Device(s): HTC One SV, Samsung Galaxy Prevail (retired), Nexus 7 (Gen 1)
Carrier: Boost Mobile

Thanks: 2,242
Thanked 1,895 Times in 998 Posts
Default

I tend to wonder if there's something wrong with the factory image I downloaded (despite the fact the the file's MD5 checksum matches the one on the page) because my 2012 N7 is choosing to not get past the boot animation

EDIT: This is with the new images. Also, I went ahead and wiped cache and data via stock recovery

EDIT: Just kept flashing and flashing until it finally worked
__________________
Find a post helpful? Hit
See spam or something offensive? Hit
New to the site? Site Rules/Guidelines and Introductions
Not a member yet but want to join? Join here!
Want to chat with staff?Here
Want to chat with mods?Here
palmtree5 is online now  
Last edited by palmtree5; December 13th, 2013 at 02:17 AM.
Reply With Quote
Old December 14th, 2013, 06:19 PM   #19 (permalink)
New Member
 
Join Date: Dec 2013
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I keep getting an error when trying to flash the system image. It says
could not allocate 721539744 bytes error: cannot load 'system.img'. All of the other images work fine though.
llkj11 is offline  
Reply With Quote
Old December 15th, 2013, 03:23 AM   #20 (permalink)
Sunny Vacation Supporter!
 
palmtree5's Avatar
 
Join Date: May 2012
Location: USA
Gender: Male
Posts: 3,372
 
Device(s): HTC One SV, Samsung Galaxy Prevail (retired), Nexus 7 (Gen 1)
Carrier: Boost Mobile

Thanks: 2,242
Thanked 1,895 Times in 998 Posts
Default

Which device? What version are you flashing?
palmtree5 is online now  
Reply With Quote
sponsored links
Old December 15th, 2013, 11:20 AM   #21 (permalink)
New Member
 
Join Date: Dec 2013
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by palmtree5 View Post
Which device? What version are you flashing?
I'm trying to flash a Nexus 7 2013 with the stock 4.4.2 image.
llkj11 is offline  
Reply With Quote
Old January 28th, 2014, 07:34 AM   #22 (permalink)
Junior Member
 
Join Date: Dec 2013
Posts: 39
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 3 Times in 2 Posts
Default nexus 4 flash

hi everybody, I need some help fast!
I was trying to flash a nexus 4 4.2 to stock firmware hoping to fix a glitch with proximity sensor, but after flashing bootloader I stuck in step 10, it says: error : failed to load "file": no error.
no matter how many times and how many variation of the command I did with no success. I even tried to skip to next step flashing system with no success either, I'm really STUCK and don't know what to do, any help will be much appreciated.
rachid is offline  
Reply With Quote
Old January 28th, 2014, 11:28 AM   #23 (permalink)
Sunny Vacation Supporter!
 
palmtree5's Avatar
 
Join Date: May 2012
Location: USA
Gender: Male
Posts: 3,372
 
Device(s): HTC One SV, Samsung Galaxy Prevail (retired), Nexus 7 (Gen 1)
Carrier: Boost Mobile

Thanks: 2,242
Thanked 1,895 Times in 998 Posts
Default

Quote:
Originally Posted by rachid View Post
hi everybody, I need some help fast!
I was trying to flash a nexus 4 4.2 to stock firmware hoping to fix a glitch with proximity sensor, but after flashing bootloader I stuck in step 10, it says: error : failed to load "file": no error.
no matter how many times and how many variation of the command I did with no success. I even tried to skip to next step flashing system with no success either, I'm really STUCK and don't know what to do, any help will be much appreciated.
Try rebooting to the bootloader (fastboot reboot-bootloader). Try a different USB cable. Try a different USB port.

Edit: you may also want to consider flashing 4.3, then 4.4 and see if that helps
palmtree5 is online now  
Last edited by palmtree5; January 28th, 2014 at 11:31 AM.
Reply With Quote
The Following User Says Thank You to palmtree5 For This Useful Post:
rachid (January 28th, 2014)
Old January 28th, 2014, 11:43 AM   #24 (permalink)
Moderati ergo sum
 
lunatic59's Avatar
 
Join Date: Jun 2010
Location: Pennsylvania
Posts: 24,808
 
Device(s): Galaxy Note 10.1 (2014), Nexus 4, Galaxy S II, Captivate, Nexus 1, Nook Color, Asus Transformer T-1
Carrier: AT&T

Thanks: 8,309
Thanked 13,213 Times in 7,226 Posts
Default

Let's make sure of a few things (sorry if it seems obvious).

You have the correct radio file for your device. You are in the directory where the radio file is located when you issue the fastboot command. When you boot the phone into fastboot mode it displays locked state as "unlocked".

Assuming your radio file is named "myradio.img", the correct syntax would be
Code:
fastboot flash radio myradio.img
__________________
_
If the information is useful, Like the post, if the person was helpful, Thank the member.
RULES: Lest we forget | This part of signature intentionally left blank.
_________________________________________________

No Ivory-Billed Woodpeckers were harmed in the composition of this message.
lunatic59 is offline  
Reply With Quote
Old January 28th, 2014, 01:01 PM   #25 (permalink)
Junior Member
 
Join Date: Dec 2013
Posts: 39
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 3 Times in 2 Posts
Default

@palmtree
I will try to do that'

@lunatic
that's exactly what I did, cannot make mistake on image radio because, it comes in the same zip file as bootloader and system.
rachid is offline  
Reply With Quote
Old January 28th, 2014, 01:05 PM   #26 (permalink)
Moderati ergo sum
 
lunatic59's Avatar
 
Join Date: Jun 2010
Location: Pennsylvania
Posts: 24,808
 
Device(s): Galaxy Note 10.1 (2014), Nexus 4, Galaxy S II, Captivate, Nexus 1, Nook Color, Asus Transformer T-1
Carrier: AT&T

Thanks: 8,309
Thanked 13,213 Times in 7,226 Posts
Default

There is an off chance, however unlikely, that something was corrupted in the download/unzipping. You might need to re-download the files.
lunatic59 is offline  
Reply With Quote
Old January 28th, 2014, 02:23 PM   #27 (permalink)
Junior Member
 
Join Date: Dec 2013
Posts: 39
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by lunatic59 View Post
There is an off chance, however unlikely, that something was corrupted in the download/unzipping. You might need to re-download the files.
that's what I thought, I deleted all the downloads and did it anew, but I'm confronted with a new problem, am not able to extract the factory image to sdk-tools folder, it doesn't give me the zipped system file and the bootloader and radio like the first time, but stays just in one single file.
I used the same link from developers.google.com
this is the sdk folder.
adb
adb-linux
adb-mac
adbWinapi.dll
adbWinUsbapi.dll
fastboot
fastboot-linux
fastboot-mac
md5sums
Occam-kot49h-factory-02e344de
sdk.sh
version
rachid is offline  
Reply With Quote
Old January 28th, 2014, 02:25 PM   #28 (permalink)
Moderati ergo sum
 
lunatic59's Avatar
 
Join Date: Jun 2010
Location: Pennsylvania
Posts: 24,808
 
Device(s): Galaxy Note 10.1 (2014), Nexus 4, Galaxy S II, Captivate, Nexus 1, Nook Color, Asus Transformer T-1
Carrier: AT&T

Thanks: 8,309
Thanked 13,213 Times in 7,226 Posts
Default

Can you post the link you are using?
lunatic59 is offline  
Reply With Quote
Old January 28th, 2014, 02:34 PM   #29 (permalink)
Junior Member
 
Join Date: Dec 2013
Posts: 39
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 3 Times in 2 Posts
Default

https://developers.google.com/android/nexus/images
rachid is offline  
Reply With Quote
Old January 28th, 2014, 02:54 PM   #30 (permalink)
Moderati ergo sum
 
lunatic59's Avatar
 
Join Date: Jun 2010
Location: Pennsylvania
Posts: 24,808
 
Device(s): Galaxy Note 10.1 (2014), Nexus 4, Galaxy S II, Captivate, Nexus 1, Nook Color, Asus Transformer T-1
Carrier: AT&T

Thanks: 8,309
Thanked 13,213 Times in 7,226 Posts
Default

That's not a zip file, it's a gzip tarball. Not quite exactly the same thing, but similar. did you try the instructions on the download page?

Quote:
You need to uncompress each download before use, which creates a new directory for that exact download. That directory contains a ./flash-all.sh script, which handles the various operations, installs the necessary bootloader, baseband firmware(s), and operating system.
lunatic59 is offline  
Reply With Quote
sponsored links
Old January 28th, 2014, 03:27 PM   #31 (permalink)
Junior Member
 
Join Date: Dec 2013
Posts: 39
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 3 Times in 2 Posts
Default

I'm using WinRAR to decompress and extract. it's never been that difficult.
rachid is offline  
Reply With Quote
Old January 28th, 2014, 03:35 PM   #32 (permalink)
Moderati ergo sum
 
lunatic59's Avatar
 
Join Date: Jun 2010
Location: Pennsylvania
Posts: 24,808
 
Device(s): Galaxy Note 10.1 (2014), Nexus 4, Galaxy S II, Captivate, Nexus 1, Nook Color, Asus Transformer T-1
Carrier: AT&T

Thanks: 8,309
Thanked 13,213 Times in 7,226 Posts
Default

You are using 4.2.2 (JDQ39)?

(downloading now, going to give it a look-see)
lunatic59 is offline  
Reply With Quote
Old January 28th, 2014, 03:40 PM   #33 (permalink)
Moderati ergo sum
 
lunatic59's Avatar
 
Join Date: Jun 2010
Location: Pennsylvania
Posts: 24,808
 
Device(s): Galaxy Note 10.1 (2014), Nexus 4, Galaxy S II, Captivate, Nexus 1, Nook Color, Asus Transformer T-1
Carrier: AT&T

Thanks: 8,309
Thanked 13,213 Times in 7,226 Posts
Default

Looks okay to me ...
Attached Images
File Type: jpg screen_zip.jpg (56.3 KB, 9 views)
lunatic59 is offline  
Reply With Quote
The Following User Says Thank You to lunatic59 For This Useful Post:
rachid (January 28th, 2014)
Old January 28th, 2014, 04:10 PM   #34 (permalink)
Junior Member
 
Join Date: Dec 2013
Posts: 39
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 3 Times in 2 Posts
Default

am using 4.4.2 kot49h on nexus 4.
but I extracted it, changed usb port, usb cable still same outcome "failed to load file"
I am taking a break for a couple hours , I'm saturated right now.
rachid is offline  
Reply With Quote
Old January 28th, 2014, 04:34 PM   #35 (permalink)
Sunny Vacation Supporter!
 
palmtree5's Avatar
 
Join Date: May 2012
Location: USA
Gender: Male
Posts: 3,372
 
Device(s): HTC One SV, Samsung Galaxy Prevail (retired), Nexus 7 (Gen 1)
Carrier: Boost Mobile

Thanks: 2,242
Thanked 1,895 Times in 998 Posts
Default

Quote:
Originally Posted by rachid View Post
I'm using WinRAR to decompress and extract. it's never been that difficult.
I use 7-zip for extracting tarballs on Windows

EDIT: Are you attempting to downgrade or something?
palmtree5 is online now  
Reply With Quote
The Following User Says Thank You to palmtree5 For This Useful Post:
rachid (January 28th, 2014)
Old January 28th, 2014, 05:15 PM   #36 (permalink)
Junior Member
 
Join Date: Dec 2013
Posts: 39
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 3 Times in 2 Posts
Default

as I said in my first post I was trying to fix a problem with proximity sensor, by flashing an image of stock firmware, but at this point , it won't matter to downgrade as long as getting my phone up and running.
rachid is offline  
Reply With Quote
Old January 28th, 2014, 06:42 PM   #37 (permalink)
Junior Member
 
Join Date: Dec 2013
Posts: 39
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 3 Times in 2 Posts
Default

YEY!!! I GOT IT.
Finally my phone is working again, I had to extract the factory image, open it and copy the files to sdk-tools folder with fastboot...etc.
special thanks to palmtree and lunatic foe your support, and everyone who contributed to this thread. keep up the good job.
rachid is offline  
Reply With Quote
The Following 2 Users Say Thank You to rachid For This Useful Post:
lunatic59 (January 28th, 2014), palmtree5 (January 30th, 2014)
Old January 28th, 2014, 07:46 PM   #38 (permalink)
Moderati ergo sum
 
lunatic59's Avatar
 
Join Date: Jun 2010
Location: Pennsylvania
Posts: 24,808
 
Device(s): Galaxy Note 10.1 (2014), Nexus 4, Galaxy S II, Captivate, Nexus 1, Nook Color, Asus Transformer T-1
Carrier: AT&T

Thanks: 8,309
Thanked 13,213 Times in 7,226 Posts
Default

That's great news!
lunatic59 is offline  
Reply With Quote
Old May 9th, 2014, 10:59 PM   #39 (permalink)
Junior Member
 
Join Date: Dec 2012
Gender: Male
Posts: 28
 
Device(s): Samsung Galaxy Rush
Carrier: Boost Mobile

Thanks: 11
Thanked 1 Time in 1 Post
Default

Ignore this post, I figured it out myself.
coldcrow is offline  
Last edited by coldcrow; May 9th, 2014 at 11:43 PM.
Reply With Quote
Old May 23rd, 2014, 08:22 AM   #40 (permalink)
New Member
 
Join Date: May 2014
Location: Paris
Gender: Male
Posts: 8
 
Device(s): Nexus 4
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

first of all many thanks for this tuto !.

I try to follow the step but I have an issue with the step 9

what is the name of my bootloader ?

Many thnaks for your return,

Regards,

Denis
den75 is offline  
Reply With Quote
sponsored links
Old May 23rd, 2014, 08:31 AM   #41 (permalink)
Moderati ergo sum
 
lunatic59's Avatar
 
Join Date: Jun 2010
Location: Pennsylvania
Posts: 24,808
 
Device(s): Galaxy Note 10.1 (2014), Nexus 4, Galaxy S II, Captivate, Nexus 1, Nook Color, Asus Transformer T-1
Carrier: AT&T

Thanks: 8,309
Thanked 13,213 Times in 7,226 Posts
Default

Quote:
Originally Posted by den75 View Post
what is the name of my bootloader ?
Hi Denis.

Your bootloader will depend on which Nexus device you own. If you downloaded the correct archive and extracted them you should see a file called something like "bootloader-mako-??????.img". That's your bootloader file.
lunatic59 is offline  
Reply With Quote
Old May 23rd, 2014, 08:36 AM   #42 (permalink)
New Member
 
Join Date: May 2014
Location: Paris
Gender: Male
Posts: 8
 
Device(s): Nexus 4
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hummm thanks for your fast reply but I don't download this archive.

On your step lines you not mention that :/

I Have a Nexus 4

And the product name is MAKO
Bootloader version - MAKOZ30d
den75 is offline  
Reply With Quote
Old May 23rd, 2014, 08:39 AM   #43 (permalink)
New Member
 
Join Date: May 2014
Location: Paris
Gender: Male
Posts: 8
 
Device(s): Nexus 4
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ahh or maybe you mention that : occam-krt16s-factory-2006f418.tgz ??

It's the factory image for the Nexus 4
den75 is offline  
Reply With Quote
Old May 23rd, 2014, 08:59 AM   #44 (permalink)
New Member
 
Join Date: May 2014
Location: Paris
Gender: Male
Posts: 8
 
Device(s): Nexus 4
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

So I follow all your steps but now when I reboot my Nexus 4 I have the logo with the four colors and nothing happens...

I'm waiting for 10min now...
den75 is offline  
Reply With Quote
Old May 23rd, 2014, 09:19 AM   #45 (permalink)
Moderati ergo sum
 
lunatic59's Avatar
 
Join Date: Jun 2010
Location: Pennsylvania
Posts: 24,808
 
Device(s): Galaxy Note 10.1 (2014), Nexus 4, Galaxy S II, Captivate, Nexus 1, Nook Color, Asus Transformer T-1
Carrier: AT&T

Thanks: 8,309
Thanked 13,213 Times in 7,226 Posts
Default

That would indicate you have firmware version 4.4.x

Can you tell the exact version?
lunatic59 is offline  
Reply With Quote
Old May 23rd, 2014, 09:27 AM   #46 (permalink)
New Member
 
Join Date: May 2014
Location: Paris
Gender: Male
Posts: 8
 
Device(s): Nexus 4
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't know the exact version because when I try to switch on the phone I have always the logo animation with the four colors... :/

I Think the phone have the version 4.4.3
den75 is offline  
Reply With Quote
Old May 23rd, 2014, 09:33 AM   #47 (permalink)
Moderati ergo sum
 
lunatic59's Avatar
 
Join Date: Jun 2010
Location: Pennsylvania
Posts: 24,808
 
Device(s): Galaxy Note 10.1 (2014), Nexus 4, Galaxy S II, Captivate, Nexus 1, Nook Color, Asus Transformer T-1
Carrier: AT&T

Thanks: 8,309
Thanked 13,213 Times in 7,226 Posts
Default

As far as I know, 4.4.2 is the latest version of the Nexus 4.

Before reflashing the firmware, have you tried a factory reset?
lunatic59 is offline  
Reply With Quote
Old May 23rd, 2014, 09:35 AM   #48 (permalink)
New Member
 
Join Date: May 2014
Location: Paris
Gender: Male
Posts: 8
 
Device(s): Nexus 4
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes I try to do a factory reset but same thing :/

Maybe I need to try to put an old version like the 4.3 ?
den75 is offline  
Reply With Quote
Old May 23rd, 2014, 09:35 AM   #49 (permalink)
Moderati ergo sum
 
lunatic59's Avatar
 
Join Date: Jun 2010
Location: Pennsylvania
Posts: 24,808
 
Device(s): Galaxy Note 10.1 (2014), Nexus 4, Galaxy S II, Captivate, Nexus 1, Nook Color, Asus Transformer T-1
Carrier: AT&T

Thanks: 8,309
Thanked 13,213 Times in 7,226 Posts
Default

If you still need to reflash the firmware, you should download the latest version from here: https://developers.google.com/android/nexus/images?hl=FR#occamkot49h

If youre phone boots to the animation, I don't think your bootloader needs to be reflashed.
lunatic59 is offline  
Reply With Quote
Old May 23rd, 2014, 09:40 AM   #50 (permalink)
New Member
 
Join Date: May 2014
Location: Paris
Gender: Male
Posts: 8
 
Device(s): Nexus 4
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

So I need to do all the tuto ?
den75 is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Android System Mods, Scripts and Hacks
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:11 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.