- Oct 11, 2009
- 5,577
- 2,816
- 113

[WARN]THIS ERASES EVERYTHING ON YOUR NEXUS 7.
You will have to flash the factory images to get back.
If you screw up your tablet, it ain't my fault. Walk into the bathroom, lean over the sink, and look into the mirror. Blame that dude.
[/WARN]
Your bootloader must be unlocked.
You must have fastboot and a fastboot driver set-up properly. You'll also want to have fastboot in your path. Poke around the stickies for info about doing this. If this is too difficult for you, that's OK, but it means the you probably shouldn't be flashing Ubuntu to your N7 anyway.
Download these images to a folder on your desktop
8GB version:
rootfs.img
boot.img
SHA256sums:
07547fa4b87e057cb67205358bc45d4d644eb8d6eb297b21e736b2b4ce1db7f7 boot.img
33ef1729dcf0aeabd6866cd609c1065f6fa1a162226fba47f2773085b8300acd rootfs.img
16GB version:
rootfs.img
boot.img
SHA256sums:
07547fa4b87e057cb67205358bc45d4d644eb8d6eb297b21e736b2b4ce1db7f7 boot.img
64a6c60be9b5b4b6ad25e67f23ac599c4cb567f7d590b6ab048b5defd9c565bd rootfs.img
Reboot your Nexus 7 into fastboot mode. Verify that your computer sees it.
Open a command prompt in the folder you downloaded the images to, and enter the follow commands one line at a time. As soon as you type the first command, ALL DATA ON YOUR N7 IS GONE.
Code:
fastboot erase boot
fastboot flash boot boot.img
fastboot erase userdata
fastboot flash userdata rootfs.img
fastboot reboot
When your tablet reboots, it takes a long time. You'll see white text on a black background, and you'll think it's stalled. It isn't. Give it at least 10 minutes to boot up.
As soon as it boots, use the power button to reboot it once.
When it reboots again, tap the wireless icon in the top status bar to connect to your Wifi AP.
To revert, see the sticky about flashing factory images.
Have fun.