Help - flashing factory image - Nexus 4 Q&A, Help & Troubleshooting

hey
I got the nexus 4 and I decided to flash the official factory image with this. so I unlocked the bootloader and when I need to type the 'flash' command I get: "flash is not recognized as an internal or external command, operable command or batch file"
please help what I need to do..

Tlazipex said:
hey
I got the nexus 4 and I decided to flash the official factory image with this. so I unlocked the bootloader and when I need to type the 'flash' command I get: "flash is not recognized as an internal or external command, operable command or batch file"
please help what I need to do..
Click to expand...
Click to collapse
This is not the place to ask this. Mod move this thread please...
You have to extract the occam package in your adb and fastboot directory to run the commands

luiseteyo said:
This is not the place to ask this. Mod move this thread please...
You have to extract the occam package in your adb and fastboot directory to run the commands
Click to expand...
Click to collapse
I did extracted the occam package to the adb directory but it still not working

Tlazipex said:
hey
I got the nexus 4 and I decided to flash the official factory image with this. so I unlocked the bootloader and when I need to type the 'flash' command I get: "flash is not recognized as an internal or external command, operable command or batch file"
please help what I need to do..
Click to expand...
Click to collapse
It doesn't mean that you've to write the flash command.. Just double click on flash-all.bat... it'll get your job done..
Sent from my Nexus 4 using Tapatalk 4

Tlazipex said:
I did extracted the occam package to the adb directory but it still not working
Click to expand...
Click to collapse
well then go to fastboot mode
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase recovery
fastboot erase boot
close cmd and then press flash-all bat

luiseteyo said:
well then go to fastboot mode
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase recovery
fastboot erase boot
close cmd and then press flash-all bat
Click to expand...
Click to collapse
thanks man! it worked. now processing
thanks!

Forum Moderator ! Please move this thread out

Related

Returning to stock

Wanting to go back to stock on the nexus 7. I have downloaded the factory image but for the life of me cannot figure out how to flash it. I am in the bootloader and i've extracted the image to my adb and fastboot directory. there is a "flash-all.sh" file but I'm unsure what to do with it. Any help would be appreciated. Thanks.
I personally don't remember how to use the .sh files.
But open the file with a text editor such as Notepad++, and you'll see the commands the script will run. You can run them manually.
sh files are purely for Linux users (it's the equivalent of batch files in Windows). Just run the commands in the sh file in your command prompt (or alter them so that it matches your fastboot).
I downloaded the images and looked at the script. Here is what it does.
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader bootloader-grouper-3.34.img
fastboot reboot-bootloader
<Wait for it to reboot>
fastboot -w update image-nakasi-jrn84d.zip
And you're done.
Thanks to all three of you. I am now back to stock. I appreciate the help at this crazy hour in the morning.
chris.wueste said:
Thanks to all three of you. I am now back to stock. I appreciate the help at this crazy hour in the morning.
Click to expand...
Click to collapse
Help asap....trying to flash stock file... in adb, I've typed all fast boot commands...I get an error at the " boot loader boot loader grouper" command. It says error, cannot load etc.
gmen78 said:
Help asap....trying to flash stock file... in adb, I've typed all fast boot commands...I get an error at the " boot loader boot loader grouper" command. It says error, cannot load etc.
Click to expand...
Click to collapse
Are you still stuck? What is going on at the moment? What have you tried? PM me if you would rather.
Ya I'm still stuck....tried using wugfresh toolkit to get back to stock but drivers ain't working correctly. I'd rather just flash stock Google image if possible and be done.
Sent from my Galaxy Nexus using Tapatalk 2
Can you use ADB and Fastboot???
Do you know how to use ADB and Fastboot???
If you are stuck returning to stock, I have just posted a full guide in the development section. I just did it myself to make sure that it works. Enjoy.

Nexus 7 Bricked??/Broken

Nexus 7 was rooted,unlocked bootloader and was running paranoid anroid 3.90+ i think . i plugged it into the computer to get a new rom using nexus root toolkit v1.7.2. i was asked to update a few things, so i clicked yes. i then tried to flash stock + unroot and chose 4.3 cause i wanted to try the new OS. but i guess something happened because when i turned my nexus 7 back on i was stuck on the load screen (GOOGLE image with a unlocked lock) i could cycle thru a few options using volume keys (start,recovery,power off) .all of them seemed useless as they would just bring me back to where i was.when clicking start "booting failed" come up on the upper left side. when trying to flash stock +unroot using NRT i get up to the sending "bootloader" part and my nexus 7 just freezes, how do i fix this. please and thanks
download the factory image from the google factory image and extract the archive.
try flashing the bootloader manualy with fastboot.
locate your fastboot binary and copy the bootloader image to that directory.
open a commandline in that directory and type
fastboot flash bootloader name-of-bootloader.img
after that you can try to flash the whole factory image with the flash-all.sh script.
Simple
dieselmonkeyy said:
i could cycle thru a few options using volume keys (start,recovery,power off) .all of them seemed useless as they would just bring me back to where i was.when clicking start "booting failed" come up on the upper left side.
Click to expand...
Click to collapse
Boot failed??? That's a bad flash of the stock ROM. I had the same problem at my first attempt trying to flash Stock ROM, but don't worry! Let's do this:
WARNING: Before you continue you are accepting that I'm not responsible of anything can happen to your Nexus and your battery is fully charged.
When you download the stock ROM you have to uncompress the zip file. You will find the bootloader and another zip.
Uncompress that zip file, put fastboot program, the bootloader and the files together.
Then start your Nexus into bootloader mode, connect it to your PC, open a console (cmd for Windows, Terminal for Linux and Mac OS X) and type this:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
WARNING: Your Nexus is FULLY EMPTY!!! Don't reboot it because it can get a full brick (It will not turn on any more).
Now type this:
fastboot flash bootloader bootloader-grouper-X.XX.img
NOTE: Replace X.XX with your version.
Now type:
fastboot reboot-bootloader
Your Nexus will reboot.
Type this:
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash system system.img #Will take a very long time. DON'T INTERRUPT THE PROCESS!!!!!
fastboot flash userdata userdata.img
Now reboot again with:
fastboot reboot-bootloader
Re-unlock bootloader to get a full wipe:
fastboot oem lock
Reboot again:
fastboot reboot-bootloader
And then unlock the bootloader:
fastboot oem unlock
Press "Yes" to the petition screen and reboot:
fastboot reboot
Ready the Nexus!
I had the same problem and I did this.
I hope I can help you.
Sorry for my bad English. I'm from Argentina and I'm learning.
Well,
Good luck!
MlucianoEze said:
Boot failed??? That's a bad flash of the stock ROM. I had the same problem at my first attempt trying to flash Stock ROM, but don't worry! Let's do this:
WARNING: Before you continue you are accepting that I'm not responsible of anything can happen to your Nexus and your battery is fully charged.
When you download the stock ROM you have to uncompress the zip file. You will find the bootloader and another zip.
Uncompress that zip file, put fastboot program, the bootloader and the files together.
Then start your Nexus into bootloader mode, connect it to your PC, open a console (cmd for Windows, Terminal for Linux and Mac OS X) and type this:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
WARNING: Your Nexus is FULLY EMPTY!!! Don't reboot it because it can get a full brick (It will not turn on any more).
Now type this:
fastboot flash bootloader bootloader-grouper-X.XX.img
NOTE: Replace X.XX with your version.
Now type:
fastboot reboot-bootloader
Your Nexus will reboot.
Type this:
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash system system.img #Will take a very long time. DON'T INTERRUPT THE PROCESS!!!!!
fastboot flash userdata userdata.img
Now reboot again with:
fastboot reboot-bootloader
Re-unlock bootloader to get a full wipe:
fastboot oem lock
Reboot again:
fastboot reboot-bootloader
And then unlock the bootloader:
fastboot oem unlock
Press "Yes" to the petition screen and reboot:
fastboot reboot
Ready the Nexus!
I had the same problem and I did this.
I hope I can help you.
Sorry for my bad English. I'm from Argentina and I'm learning.
Well,
Good luck!
Click to expand...
Click to collapse
what do i type into cmd inorder to be able to type
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
and get it to work. im a noob . thanks in advance
You have to be in the folder with fastboot inside else those commands will not work.
It will be easier if you put the images extracted from the zip into the zip together with the fastboot program.
If you don't understand yet I'll try to be more specific.
Sent from my Nexus 7 using xda app-developers app
dieselmonkeyy said:
what do i type into cmd inorder to be able to type
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
and get it to work. im a noob . thanks in advance
Click to expand...
Click to collapse
It can be intimidating... and the so-called tool-kits don't help you learn
I assume you are using Windows.
follow the unzip instructions from the previous poster. (not quoted here). note the directory.
find the directory containing your android tools... ADB.exe and FASTBOOT.exe.
transfer your unzipped files to this directory. Open your CMD prompt window and change to this directory if necessary.
plug in your Nexus.
type fastboot device at the prompt. MAKE SURE YOUR NEXUS 7 is listed (serial number)
proceed with the complete instructions from the previous poster.
that should do it.
YES!!!
thanks alot for the instructions, it worked!!! i hope people use ur instructions as reference if they have the same problem. THANKS ALOT!!!
dieselmonkeyy said:
thanks alot for the instructions, it worked!!! i hope people use ur instructions as reference if they have the same problem. THANKS ALOT!!!
Click to expand...
Click to collapse
I'm glad the problem is solved. Do not forget to click the THANKS button.
Sent from my Nexus 7 using xda app-developers app
Hello. My brother's Nex 7 is also has this issue. I cannot follow any of the steps as it gets stuck on erasing any of the partitions. I tried erasing those partitions in any order and they still get stuck. His device was stock and bootloader locked too. When I try to unlock the bootloader, it gets stuck as well at the erasing userdata part. I suspect a bad memory chip. Anyone else experience this?
Yes, mine is sticking on the (bootloader) erasing userdata on bootloader unlock as well.
It also sticks on any fastboot ERASE command.
Factory reset had a bunch of errors and no longer comes up. none of the FLASH commands work because the BOOTLOADER is locked.
And since it freezes on the unlocking bootloader commands I believe I am screwed.
This was a factory installed, never flashed, unlocked or rooted Nexus 7 wifi 2nd gen. After installing the 4.4.2 that popped up it loaded once then crashed and never loaded again
I have tried every tool I can find. They all stick on the erase part.
jophisdrazin said:
Yes, mine is sticking on the (bootloader) erasing userdata on bootloader unlock as well.
It also sticks on any fastboot ERASE command.
Factory reset had a bunch of errors and no longer comes up. none of the FLASH commands work because the BOOTLOADER is locked.
And since it freezes on the unlocking bootloader commands I believe I am screwed.
This was a factory installed, never flashed, unlocked or rooted Nexus 7 wifi 2nd gen. After installing the 4.4.2 that popped up it loaded once then crashed and never loaded again
I have tried every tool I can find. They all stick on the erase part.
Click to expand...
Click to collapse
Send your device for repair. My brother did so. My suspicions were correct. A faulty chip. They replaced the whole board, according to my brother.
Sent from my Nexus 7 using Tapatalk

[Q] Stock flashable JWR66Y downlaod

Hello Community.
I have searched and searched and searched. Can some one link me to a full ODEX of JWR66Y ROM? I am trying to restore my N4 back to stock. Thanks will be given...
jgentry151 said:
Hello Community.
I have searched and searched and searched. Can some one link me to a full ODEX of JWR66Y ROM? I am trying to restore my N4 back to stock. Thanks will be given...
Click to expand...
Click to collapse
Here you are. Flash it using fastboot commands
DOWNLOAD
luiseteyo said:
Here you are. Flash it using fastboot commands
DOWNLOAD
Click to expand...
Click to collapse
Thanks!!! Do you happen to know the fastboot command? Or an instructional for this? Will I have to use stock boot loader and so on?
jgentry151 said:
Thanks!!! Do you happen to know the fastboot command? Or an instructional for this? Will I have to use stock boot loader and so on?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2010312
Sent from my Nexus 4 using xda app-developers app
jgentry151 said:
Thanks!!! Do you happen to know the fastboot command? Or an instructional for this? Will I have to use stock boot loader and so on?
Click to expand...
Click to collapse
this is my favourite guide.
Follow this steps:
1. Fastboot mode.
2. Type:
Code:
> fastboot erase boot
> fastboot erase cache
> fastboot erase recovery
> fastboot erase system
> fastboot erase userdata
> fastboot flash bootloader bootloader-tilapia-4.23.img
> fastboot reboot-bootloader
> fastboot flash radio radio-tilapia-1231_0.18.0_0409.img
> fastboot reboot-bootloader
> fastboot -w update image-nakasig-jwr66y.zip
done!
Why download from random place when you get it officially from Google: https://developers.google.com/android/nexus/images#occam
And if you open the package it has the bat script file that will run all the commands to flash the phone automatically, you just have to put it in fastboot mode and unlock the bootloader first, or you can read the script file and manually type in the commands.
luiseteyo said:
this is my favourite guide.
Follow this steps:
1. Fastboot mode.
2. Type:
Code:
> fastboot erase boot
> fastboot erase cache
> fastboot erase recovery
> fastboot erase system
> fastboot erase userdata
> fastboot flash bootloader bootloader-tilapia-4.23.img
> fastboot reboot-bootloader
> fastboot flash radio radio-tilapia-1231_0.18.0_0409.img
> fastboot reboot-bootloader
> fastboot -w update image-nakasig-jwr66y.zip
done!
Click to expand...
Click to collapse
Muchisimas Gracias!!!
eksasol said:
Why download from random place when you get it officially from Google: https://developers.google.com/android/nexus/images#occam
And if you open the package it has the bat script file that will run all the commands to flash the phone automatically, you just have to put it in fastboot mode and unlock the bootloader first, or you can read the script file and manually type in the commands.
Click to expand...
Click to collapse
Mine was the link from google. And I prefer to do it manually.
luiseteyo said:
Mine was the link from google. And I prefer to do it manually.
Click to expand...
Click to collapse
How do I flash stock Android without deleting any of my apps/data/settings?
Do I need to skip or remove any of those lines from the script??
The process will wipe your entire device. You have to back up your stuff and move it out of your phone. You can use the Helium app to back up apps data, if you don't have root you also need to install this http://www.clockworkmod.com/carbon for it to work.
You could leave your data alone and only flash certain partitions though. Don't run the scripts, do it all manually. Skip "fastboot erase userdata" which will wipe your apps data. Also skip "fastboot -w update image-nakasig-jwr66y.zip".
Extract the *.img files from "image-occam-jwr66y.zip" and flash them manually, skipping userdata.img of course, the other three files you want to flash would be:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
However, depending on the Android version and configuration, you might run into issues by doing this.

Trying to flash stock on nexus 6p command prompt not recognizing commands

I'm trying to flash stock android from pure nexus, im in bootloader and have opened command prompt from the folder my images are in, I'm trying to use these commands i found on xda forum's guide to flash to stock
fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
fastboot flash cache C:\angler\images\cache.img
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img
but im getting the error - 'fastboot' is not recognized as an internal or external command, operable program or batch file.
please help, how do i get through this :/
kalendaan said:
I'm trying to flash stock android from pure nexus, im in bootloader and have opened command prompt from the folder my images are in, I'm trying to use these commands i found on xda forum's guide to flash to stock
fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
fastboot flash cache C:\angler\images\cache.img
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img
but im getting the error - 'fastboot' is not recognized as an internal or external command, operable program or batch file.
please help, how do i get through this :/
Click to expand...
Click to collapse
1) Is this on Windows, Linux, or Mac?
2) Were you able to unlock the bootloader on this same computer with no issues?
3) Are you getting this error after each fastboot command or just for "fastboot flash vendor"? If this is an error for any command, you should first update your platform-tools and fastboot.
kalendaan said:
I'm trying to flash stock android from pure nexus, im in bootloader and have opened command prompt from the folder my images are in, I'm trying to use these commands i found on xda forum's guide to flash to stock
fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
fastboot flash cache C:\angler\images\cache.img
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img
but im getting the error - 'fastboot' is not recognized as an internal or external command, operable program or batch file.
please help, how do i get through this :/
Click to expand...
Click to collapse
Do you have the correct drivers and sdk files installed on your pc listed here? http://developer.android.com/sdk/index.html#download
kalendaan said:
I'm trying to flash stock android from pure nexus, im in bootloader and have opened command prompt from the folder my images are in, I'm trying to use these commands i found on xda forum's guide to flash to stock
fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
fastboot flash cache C:\angler\images\cache.img
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img
but im getting the error - 'fastboot' is not recognized as an internal or external command, operable program or batch file.
please help, how do i get through this :/
Click to expand...
Click to collapse
You need to setup Android SDK tools on your PC. The generic process is by downloading, installing, and setting up the Android SDK. Once that is done, you should be good to go.

Amazon Prime G4: Cannot install Nougat OTA, stuck at fastboot screen.

So I tried to install the nougat update, but my phone, which has been booting to fastboot ever since I messed around a little with it on RSD Lite, will not turn all the way off and the Nougat update fails. I have tried several times. My bootloader is locked and I am running completely stock with the ads. It shows up in the boot logs as "fastboot reason: utag bootmode configured as fastboot" . Anyway to fix this so I can upgrade to nougat? Thank you.
enter into fastboot mode and run this
Code:
mfastboot oem fb_mode_clear
mfastboot reboot
lerg96 said:
enter into fastboot mode and run this
Code:
mfastboot oem fb_mode_clear
mfastboot reboot
Click to expand...
Click to collapse
Thank you so much. That fixed the problem!
Where did you find the nougat update ,my xt1625 prime is bricked and I need that to try unbrick it .
If anyone else reads this; I had the issue and I just selected reboot recovery so I could manually tell the phone to apply the update. When it booted into recovery, it actually continued to install it automatically.
Does anyone have a backup of boot and recovery images for nougat xt1625 amazon?
Sent from my Moto G (4) using Tapatalk
hmm
lerg96 said:
enter into fastboot mode and run this
Code:
mfastboot oem fb_mode_clear
mfastboot reboot
Click to expand...
Click to collapse
Does this command have to be run from a specific directory?
'mfastboot' is not recognized as an internal or external command.
Thanks
andnewb1 said:
Does this command have to be run from a specific directory?
'mfastboot' is not recognized as an internal or external command.
Thanks
Click to expand...
Click to collapse
You have to open the cmd in the folder where you have the fastboot and run fastboot or mfastboot depend or which version you r using .
andnewb1 said:
enter into fastboot mode and run this
Does this command have to be run from a specific directory?
'mfastboot' is not recognized as an internal or external command.
Thanks
Click to expand...
Click to collapse
You have to download this file and use CMD and go to the mfastboot directory and the run the commands.

Categories

Resources