I had an embarrassingly difficult time rooting the new Nexus 7 from my Linux installation. It wasn’t the fault of the stickied guide on XDA that I used; that’s a good guide, albeit for Windows. It wasn’t the Nexus line’s tools; those are terrifically simple to use. It was I who made several (Arch-Linux-specific) mistakes:
- I installed the android-sdk AUR package, which holds the actual Android development kit, not the android-sdk-platform-tools AUR package, which holds tools like adb and fastboot.
- I failed to install the android-udev AUR package, so while “adb devices” would find devices, “fastboot devices” would not.
- I didn’t boot into the OS after unlocking and before rooting. As a result, my sdcard never got populated with the default folders and files, remaining at 0MB. Apparently, symptoms of this problem include being unable to factory reset from recovery, being stuck on the splash screen, and having TWRP demand a password. Worse, had I read through the thread like a good girl, I would have been clearly warned. Luckily, though I wasn’t bright enough to read through the thread before starting, I was bright enough to do so after I bootlooped, so did eventually find a solution.
Thankfully, XDA is as always a great resource. So in short, if you want to unlock and root a 2013 Nexus 7 (and probably other devices, but I only did this on a 2013 Nexus 7) on Arch Linux (and probably other distros, but you need to figure out the relevant packages yourself), you need the android-sdk-platform-tools and android-udev packages. Also, you need to boot into the OS after unlocking and before rooting.