Flash your Nexus 7 firmware when you want to wipe your phone to be clean because you don’t want to use it anymore and will give it to a family member, a friend as a gift or just want to sell it. So the factory image can do that and make your device to be like a new (in software) as stock device, start to set up everything again.
You can do following these instructions to flash your Nexus 7 and it also works in any Nexus device. All you need to make sure you have downloaded correct factory image file. And say “thank you” to Google because they always make those factory image files available shortly after a new update or version of Android release. Sometimes, you can find the factory image available on their download page before the over the air (OTA) update.
Flash Nexus 7 Factory Image Instructions
There are two points you should do before flash your firmware that the progress require to have the Android SDK on your computer and flash factory image will completely clean your phone data.
So, if you don’t have the Android SDK installed, visit here to download the latest version and install it. After that, please backup your phone before to do, it can’t undo.
1. Download the factory image you want to flash into your device to your PC or laptop.
2. Unzip the .tgz file (an archive file) and its contents into your SDK folder.
3. Open a command prompt and make sure the location on your command prompt is the same location with flash image file. Take a look at image below:
4. Type these command below:
adb reboot bootloader
fastboot flash bootloader bootloader-filename-xxx-yyy.img
If you are updating a Wi-Fi device (it’s meant no 3G/4G support), then you don’t need to run the command below, no need to flash radio.img.
fastboot flash radio radio-filename-xxx-yyy.img
If you don’t want to wipe your data, remove the “-w” element.
fastboot -w update image-filename-xxx-yyy.zip
If you using a Mac computer, be sure to add ./ in front of all commands. For example: ./fastboot reboot-bootloader
5. If you want your device to go back to 100% stock like a brand new device with a locked bootloader type:
fastboot oem lock
If no, then skip this and go to step 6.
6. If you want to keep your device bootloader unlocked, just tap the Power button from the START screen.
7. It’s done now and you are back to 100% stock.
Make sure you don’t unplug your device while it’s flashing. Also, if you have any question, leave your comment here and we will help you as we can. Take a look at the YouTube.com video for video instructions.