Priyank Sharma
loading...

Flash Nexus 7 Factory Image from a Mac

Feb 23, 2016

[dropcap]T[/dropcap] his guide caters to those who got their Nexus 7 devices stuck on bootloop (like mine) while updating to the latest Android Marshmallow OTA update. Those wanting to simply flash a factory image can also use this guide. So let’s get started…

[alert type=”danger” close=”false” heading=”Warning”]Please note that all data on the device will be lost. I do not take any responsibility whatsoever in the unlikely event that your device gets bricked. By following these instructions, you agree to take full responsibility of the consequences.[/alert]

[custom_headline type=”left” level=”h2″ looks_like=”h5″ accent=”true”]Step 1: Initial Setup[/custom_headline]

On your Mac, head into System Preferences and select [highlight type=”dark”]Keyboard > Shortcuts > Services[/highlight]. Find the “New Terminal at Folder” in [highlight type=”dark”]Services > Files and Folders[/highlight] and check the box. This enables us to launch Terminal in a specific folder.

[image src=”https://priyanksharma.com/img/flash-nexus-7-factory-image-from-a-mac-2.jpg” alt=”System Preferences” type=”rounded” float=”none” title=”System Preferences”]

[custom_headline type=”left” level=”h2″ looks_like=”h5″ accent=”true”]Step 2: Download Files[/custom_headline]

[button type=”flat” shape=”pill” size=”mini” href=”https://dl.google.com/dl/android/aosp/razor-mmb29q-factory-0fe7279d.tgz” title=”Nexus 7 System Image”]Download[/button] the Nexus 7 System Image. File size should be around 502 MB.

Next, [button type=”flat” shape=”pill” size=”mini” href=”http://priyanksharma.com/downloads/fastboot.zip” title=”ADB & Fastboot Files”]Download[/button] the ADB & Fastboot Files as well, which is a minuscule 575 KB.

[custom_headline type=”left” level=”h2″ looks_like=”h5″ accent=”true”]Step 3: Terminal Setup[/custom_headline]

Connect your Nexus 7 via USB and extract the ADB & Fastboot Files archive, and navigate to the folder – in my case [highlight type=”dark”]fastboot[/highlight].

Extract files in the Nexus 7 System Image archive and place it in our fastboot folder. Open “flash-all.sh” in a text editor and add “./” before the term “fastboot” on lines 17, 18 and 20. This will ensure that Terminal executes files in the same folder.

[image src=”https://priyanksharma.com/img/flash-nexus-7-factory-image-from-a-mac-3.jpg” alt=”flash-all.sh” type=”rounded” float=”none” title=”flash-all.sh”]

Go one level up in the folder heirarchy, right-click on the fastboot folder and select “New Terminal at Folder”. This will launch Terminal for that folder.

[image src=”https://priyanksharma.com/img/flash-nexus-7-factory-image-from-a-mac-4.jpg” alt=”New Terminal at Folder” type=”rounded” float=”none” title=”New Terminal at Folder”]

[custom_headline type=”left” level=”h2″ looks_like=”h5″ accent=”true”]Step 4: Installation[/custom_headline]

Start the device in fastboot mode: press and hold Volume Down + Power as the device begins booting up. Make sure your bootloader is unlocked. If not, type the below.

[code]./fastboot oem unlock[/code]

[image src=”https://priyanksharma.com/img/flash-nexus-7-factory-image-from-a-mac-5.jpg” alt=”Terminal” type=”rounded” float=”none” title=”Terminal”]

Finally, type the below and you will see a percentage progress of your files being sent to your tablet. Now sit and wait while Marshmallow is being installed. The entire process will take anywhere from 5-10 minutes.

[code]./flash-all.sh[/code]

Your device will automatically reboot and you will be done.

[alert type=”info” close=”false” heading=”Important”]Please note that the first boot can easily take over 7 minutes.[/alert]

That’s it. You are done! Do share your feedback/experience in the comment section below.

[gap size=”50px”]

[author title=”About the Author”]

You might also like these articles:

[recent_posts category="tech" count="4"]
recent posts
Feb 23, 2016
Feb 23, 2016
Feb 23, 2016