r/Nexus7 • u/[deleted] • Aug 29 '12
Guide: How to unlock the bootloader, root, install recovery, ROM, kernel, and radios on your Nexus 7!
(Ignore the radios part of the title, that's what I get for copy/pasting)
1. Get the Nexus 7 ready
Go to Settings->System->Developer Options and enable "USB debugging".
1a. Install the Android SDK - (OPTIONAL - You don't need this, but it could be useful if you run into issues and need to debug)
This lets your computer communicate with your Nexus 7 through the command line. The download link can be found here. I installed all the Extras, Android 4.0, 4.0.3, and 4.1, and the Tools. You certainly don't need all of those but I erred on the side of caution. (Be sure to choose "Approve All")
2. Setup your computer
Download Nexus 7 Toolkit (v2.0 at time of writing) and install. Then choose "1. Install/Uninstall Google Nexus 7 Drivers on your PC." (by pressing 1 and enter). Pick your OS and wait for it to finish installing. Main Menu
3. Backup Tablet
With your Nexus 7 on and in ADB mode (that is the mode where you normally use the tablet) plug it into your computer. Make sure the Toolkit recognizes your Nexus by going to the main menu and you should have under ADB Mode at the top see some kind of numbers/letters under it. If not choose "23. Refresh Main Menu". If you don't see it, your Nexus is probably off or you didn't install the drivers.
Now "2. Backup and Restore your Tablet" Follow the on screen instructions in the toolkit and Nexus to fully backup your tablet.
4. Unlock Bootloader/Root/Custom Recovery
Once your Nexus is fully backed up reboot it into Fastboot (You do this by holding down the volume up AND volume down and the power button while turning it on, looks like this.
Check to make sure the Toolkit recognizes you are in Fastboot in the Main menu (refresh the menu, 23). Then enter in "8. 1-CLICK FOR ALL" and follow the on screen instructions. After that you should now have a stock Nexus with root and recovery (I recommend TWRP).
4a. Recovery
If you already rooted your Nexus 7 reboot into Fastboot but choose "6. Rename Recovery Restore Files", follow on screen instructions, then "7. Flash Custom Recovery [CWM Touch, TWRP Touch or Stock]" and follow the on screen instructions.
You may want to stop after this step. At this point you have not made any radical changes to the Nexus 7, it's a pure JB experience, just with root and recovery. From here on I will be going on deviating from stock.
4b. ALTERNATE METHOD
Instead of using the Toolkit you can instead use the Android SDK and ADB to unlock the bootloader, root, and install a custom recovery. To do so check out this guide
5. ROM, Kernel, and Gapps
(Note: If you want to be EXTRA careful, download AFV and check the MD5 sumcheck of every file. I never had an issue, but it's probably worth the five minutes to make sure you don't brick your Nexus. This applies to the kernel, ROM, Gapps, anything you're flashing)
Download the ROM and kernel of your choosing, I chose CM10 and Trinity kernel (Others can be found on the XDA Forums or RootzWiki). Place the .zip files (DO NOT EXTRACT) onto your Nexus, I put them in the Download folder just for the sake of convenience but anywhere on the sdcard should work.
You also need to download Gapps (Use the table or be sure to sort by Modification Time for the latest for 4.1.1). Due to legal reasons, Google apps can't be bundled with the ROMS and have to be installed seperately.
Included apps: Google Play, Syncing, Phone, Voice Search, Setup, Search Bar, Gallery, Backip, One Time Initializer (mostly crucial behind the scenes apps).
Not Included: Gmail, Youtube, Maps, Navigation, Street View, Books, Movies, Earth, Goggles, Music, Drive, Reader, Voice, Chrome (You'll have to download these yourself from the Play Store)
Reboot into the Fastboot Mode and use the volume buttons to navigate to Recovery Mode and then use the power button to boot into Recovery. TWRP looks like this
Now choose "Wipe". To be safe I do a Factory Reset and wipe the Dalvik Cache, Cache, and System. Once finished go to "Install" and find your ROM. Then "Add More Zips" and get your kernel, do it agaain for Gapps. Then "Swipe to Confirm Flash" and let it run.
NOTE: It can take several minutes to boot up, up to five or ten the first time. This is normal. Subsuequent boot ups are fine.
You now have a custom ROM and Kernel!
And just to wrap it all up, this is what my final About phone looks like. You'll see that it's 4.1.1, Trinity kernel, and CM 10.
5a. Restore Apps
Note: You'll probably need to reenable USB Debugging as in the first step again now that you've wiped the system.
If you backed up the Nexus in the Toolkit, plug in your Nexus (in ADB Mode) and choose "2. Backup and Restore your Nexus" then "2. Restore a Backup to your Nexus" and follow the onscreen instructions.
5b. Kernel Tweaks
To make your life easier, I highly recommend you download franco.Kernel Updater if you're using franco. These just make it easier to mess with your kernel.
6. Bootscreen
CAUTION: I don't know 100% for sure that this still works. I believe it will since the GNexus and Nexus 7 have the same resolution. But JB might have changed something or it just might not work. If someone could verify for me I'll edit this as need be.
First off choose the one you desire (here are some though I chose a LCARS boot but I am designing my own at the moment) and download it onto your computer. The download Empty_CWM_BootanimationZIP_Flashable.zip (taken from this XDA thread). Don't extract that file, rather drag and drop your desired bootanimation.zip into the /data/local directory in the zip file. Delete the readmes and flash it onto the Nexus like you did the ROM/kernel.
7. Keeping Up to Date
While the best way to keep up to date with ROMs is to watch the boards, for a bit less maintenance I recommend GooManager. Most popular ROMs are stored on their servers and your phone will let you know when there is an update. Download the update, download the latest Gapps, download a kernel if you wish, sort them (ROM->Gapps->Kernel->Other), be sure to set it to wipe cache/dalvik cache partition, then hit "Flash". Note: You NEED custom revcovery, preferably TWRP.
Goo Manager can even keep your Recovery up to date. Press the three dots in the top right corner and you'll get a drop down menu. Choose "Install OpenRecoveryScript" and follow the on screen instructions. If your custom recovery has an update, it'll update it!
Revert to Stock
CAUTION This will wipe EVERYTHING, even what's on your SD card. Backup anything you want to save.
There are four things you must do, reinstall stock ROM, reflash stock recovery, unroot, and lock the bootloader. Download and flash the stock ROM (same as the ROM in step 5, wipe cache/delvik/factory reset). Then reboot into Fastboot and open up the Toolkit. With your Nexus attached choose "6. Flash Recovery" and follow the on screen instructions for stock. Once finished, in the main menu of the Toolkit choose "3. UnLock or Re-Lock your Bootloader" and follow the on screen instructions for ReLock. Once finished you now have a stock Nexus 7 again!
Also for the CPU Governors (Settings->System->Performance), I was a bit confused by what they all did, so here's a general Android CPU Governers and if you're curious some more governors which aren't included and other kernel info. Be sure to set your Maximum CPU Frequency to 1600 MHz! (Note: to save your OC and chosen Governor you mus check "Set on Boot"
Please give me any feedback, criticism, steps I may have skipped or other ideas to make this better. Or unneeded steps, pretty sure I don't need to wipe as much as I did, but I preferred to be safe.
Other Guides: Root and recovery/rom/kernel on your Galaxy Nexus or Kindle Fire
1
u/garrettj Sep 10 '12 edited Sep 10 '12
Well, I seem to be stuck and really unsure of how to get out of this pickle.
I seemed to have unlocked the bootloader... but I CANNOT get it to root. It keeps giving an "boot.img" Failed (Too many links) sort of error.
No matter what I do, this keeps happening.
Do you happen to know what in the world I can do?
Here are screenshots in succession:
I really feel like it's a driver issue, but I cannot figure it out for the life of me.
1
Sep 10 '12
Huh, odd. Offfhand I don't know. Try running the root step manually? Really though the next best step would be to root through the command line instead of using the ToolKit. You could ask on xda for help. Not sure what that "Too many links" error means.
1
1
u/pxtang 16 GB Paranoid Android Aug 29 '12
Thanks for the guide! It looks awesome.
Some of your pics are way too small though :( For example, look at your first pic.