Although Google just recently added the new Nexus 7 to Google Play and will start shipping soon in July 30, It seems that TeamWin has certainly been eager to root the highly anticipated tablet! Before anyone got the chance to google “how to root 2013 Nexus 7” TeamView released a new version of their TWRP recovery made specifically for the new Nexus 7. The Android 4.3 SuperSU is already available online so we’re ready to root our Nexus you’ll just need to download a couple of files, the TWRP recovery image and the SuperSU zip file. Of course your bootloader should be unlocked which fairly easy but if you have problems doing it you can refer to this XDA tutorial.
Before you start rooting it’s crucial to back up all your data in case anything goes wrong. Back up your contacts using your Gmail account, back up your SMS, images, songs, settings, and anything else you need. USB debugging should be turned on, you can do that from “Settings > Applications > Development > USB debugging”. Plus it’s important that you charge your battery prior to rooting, battery capacity shouldn’t be less than 40% or you’ll risk your device being turned off in the middle of the rooting process.
Disclaimer: Follow all the instructions mentioned in this article, and you should be fine. If there is any damage caused due to not following instructions then we shall not be held liable or responsible.
Now on to the core steps :
1- Copy the TWRP image into the fastboot folder, and the SuperSU into the device’s internal memory, then turn off your device.
2- Boot your Nexus 7 into Fastboot Mode by pressing and holding Volume Down and Power keys together until some text appears on screen.
3- Connect your device to your PC and open a command prompt in the fastboot folder (hold Shift and Right-click on desktop and then choose Open Command Prompt).
4- Type : fastboot flash openrecovery-twrp-18.104.22.168-flo.img
5- Once the command is executed, choose RECOVERY from Fastboot menu and enter Recovery Mode.
6- From there choose Flash Zip from SD card, and choose the SuperSU zip file that we copied into the memory earlier.
7- Once the process is done, select go back, and then “reboot system now”.
Once the device reboots, you would have rooted your Nexus 7, however if the device gets into the boot loop sequence or say gets stuck in the welcome screen, just re long press the power button and re follow the above instructions so as to again follow the above mentioned instructions.