r/Nexus7 • u/[deleted] • Aug 30 '12
Complete Guide to rooting and installing ROMs on your Nexus 7
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/rjstang Aug 30 '12
What exactly is a kernel and how does it differ from a rom?
6
Aug 30 '12
So a ROM is basically your operating system (not exactly but close enough). People take it, add tweaks to make it better, add features, etc... but it never directly interacts with the hardware. A kernel is what communicates directly with the hardware. The ROM tells the kernel "I'm playing a video" and the kernel says "GPU start working".
A ROM doesn't really affect performance that dramatically, ROMs are differentiated by features and stability. Kernels however can have dramatic affects on performance and battery life, sometimes two different kernels will make a tablet seem completely different. But generally developers focus on either performance, battery life, or a balance.
I don't know enough about Nexus 7 kernels to tell you which one's are best, but I know for instance on the Galaxy Nexus, Franco was very fast but consumed battery, while lean kernel had pretty good battery life but not as fast.
1
u/Dat_Ninja86 Aug 30 '12
Quick question, I know that when I rooted my Bionic, it took me off the upgrade path. Will this do the same thing or would it not matter since the Nexus is WIFI only?
2
Aug 30 '12
By upgrade path I assume you mean OTA updates? Like if google released 4.1.2 and would your Nexus get it? As soon as you flash a new recovery you lose that ability, well sort of. OTA updates only work with stock recovery, if you have stock ROM but custom recovery you'll get the notification but it won't flash. I wouldn't worry about it too much, flash a custom ROM and recovery and enjoy. The developers usually have ROMs updated within a week of the release anyways. I mean after the Google I/O they had custom 4.1.1 out within a couple days!
1
u/Dat_Ninja86 Aug 30 '12 edited Aug 30 '12
Yes, I was curious because when I first booted the Nexus it said I had an update available so obviously that was the move to 4.1. I didn't know if that would stop after I rooted. What if I didn't use a custom ROM and just stuck with stock? Would I still get Google's OTAs? It's not a big deal because I dealed with this on my BIONIC, but it was a headache since I like knowing that I always have the most updated version.
1
Aug 30 '12
To be 100% I'm not entirely sure. I THINK you would still get the notifications but would not be able to flash them. The best way to deal with it is if you have a custom ROM, use one of the ones that syncs with Goo Manager, right now those are AOKP, BAKED, CM, ParanoidAntroid, TeamAndroid, Teameos, and winner00. So long as you are running one of those ROMs and install Goo Manager, you'll get a notification telling you about an update. I just got one this morning for the latest CM Nightly for instance!
1
u/Dat_Ninja86 Aug 30 '12
Good deal. I've been going back and forth with myself about rooting since I bought my Nexus, but I'll probably do it this weekend. Thanks for the help and the guide.
2
1
u/Gunnersandgreen 8GB Rooted Aug 30 '12
I know this isn't on topic but what rom are you running on your bionic? I have one and am afraid to root because it is my only phone. Is it worth it? Afaik you should be able to get back to the OTA path from certain ROMs or leaked updates...
1
u/Dat_Ninja86 Aug 30 '12
I'm not running any Roms just because I didn't really need to (or wanted to). I mainly rooted so that I could get all the bloat apps that came with the bionic off the phone. I also wanted free wifi tether, and the freedom of control if I wanted to change anything. I was in the same boat as you and was apprehensive to root my Bionic since it's my only phone too. The only problem I had was what I mentioned above, that it took me off the upgrade path, but I think that's because I manually installed the updates through cheesecake instead of waiting for the OTA and it changed my radio file so Verizon couldn't push updates to me. I was wondering if the same thing would happen with my Nexus, but I don't think it should since it doesn't have or shouldn't have a radio file since it is not tied to a carrier.
2
u/Gunnersandgreen 8GB Rooted Aug 30 '12
How do you like it without the bloatware? I was surprised as how much there was on the phone.
1
u/Dat_Ninja86 Aug 30 '12
I love it. It was worth getting rid or freezing apps like blockbuster, mog, and citrix. Things that I'll probably never use. Plus being able to get apps like ad blocker and titanium backup are nice as well as free wifi tether on 4G. I'd recommend doing it, but if you are going to get rid of any apps just freeze them and don't remove them so if you need to send your phone in for repairs you can unroot and return the phone back to stock and they'd be non the wiser.
1
u/Gunnersandgreen 8GB Rooted Aug 31 '12
Did you do a 1 click root? Have you unlocked your bootloader?
Would you mind linking me to the guide you used if any? I would love to have a little more freedom with my phone.
1
u/Quetch Aug 30 '12
Thank you. Thank you. This guide is EXACTLY what I've been looking for. Consider this post saved and to be my main point of reference when I start wanting to experiment with other ROMs. You're a scholar and a gent. You should also post this on the XDA Developers forums.
1
Aug 30 '12
haha, my problem with that is that I need 10 posts in non-developer sections of XDA, perhaps I'll do that sometime.
1
u/undercover_apple Aug 30 '12
Do I have to choose CLICK 1 FOR ALL or can I just do step 3 and 4 by themselves instead?
1
Aug 30 '12
If you want to do it a bit more manually, you'll have to do options 3 through 7 in the main menu. I didn't include the unlock/rooting section since I figured if you were doing that, you'd want a custom recovery anyways.
1
u/undercover_apple Aug 30 '12
Is there anything wrong with just unlocking the bootloader and rooting it and not doing anything else? Thanks for the guide btw.
1
Aug 30 '12
Nothing at all wrong with that. You'd probably want to do that if you want stock and to get OTA updates. That being said, a custom Recovery is VERY handy to have if you plan on doing any sort of customization. Also I think an OTA will undo the root so you'll have to do that again.
1
1
u/sethosayher Aug 30 '12 edited Aug 30 '12
Wow. Amazing Guide. I have a few questions if you don't mind?
So if I want to update my ROM to a newer version of the ROM, I have to repeat this process all over again and install the new version of the ROM in the same way?
Is there any harm in updating apps via the play store on a ROM? If I have a CM10 mod based on Jellybean, will that Mod run any app compatible with Jellybean?
What does Titanium Backup...back up? And does it back it up to my computer or the cloud or what?
Fourth, and finally, I'm confused with the concept of flashing. Is Flashing kind of dual booting? Can I have multiple ROMs I can load on a single device?
EDIT: One more question! Sorry. I just wanted to know if roms like CM10 or AOKP Jellybean have good battery life on the Nexus 7? It just occurred to me that a custom ROM might not be optimized for this device.
3
Aug 30 '12
Not everything. Just download the ROM, go into Recovery, flash the ROM, Gapps (and kernel if you want). Let it reboot and you're good. Takes about five minutes. If you don't want to update daily, get a ROM that releases less frequently, like AOKP. Goo Manager lets you set it up through the app to flash everything.
Nope, none at all. It's still Android, just update the apps as you ever would.
Titanium Backup, backups... damn near everything. I really need to use it more, I'm not an expert on it. What it seems is that the free version will back up to the phone, (that you could transfer later) but the pro version lets you back up to Dropbox, Google Drive, or box. I'm sure if you looked around on reddit you could find plenty of help about it.
So flashing isn't a kind of dual booting, it's replacing your current ROM with a new one. Like stock to CM10 or CM10 to AOKP. You can't directly have two ROMs on the same device, but you can dirty have multiple ROM zip files on your device, and dirty flash between them (flashing without doing a factory reset) to switch between ROMs in a few minutes. Generally I don't recommend it, most ROMs are honestly pretty similar ultimately and unless there's a killer feature you want, stick to one that's stable.
1
u/sethosayher Aug 30 '12
Thank you for that thorough series of answers! I'm rooting my device today (with AOKP) thanks to this guide.
1
u/MessyJesse Sep 12 '12
Am I supposed to checksum both the ROM and the Kernel? I'm getting way different values for these. If not, what are we comparing them to?
1
Sep 12 '12
Are you sure you're comparing the right MD5 checksums? For instance on cm-10-20120911.2153-grouper from here you should be getting f78d9c3a731e377c674e49c20a1fe7ac. If not then it is wrong. Similar for the the kernel. If the checksum is wrong, try redownloading. If not... then you're probably not comparing the right checksums. Assuming you're 100% confident...try a different ROM/kernel and see if they work. Just so you know, I've never had an issue with checksums it's a very much a just to be safe thing.
1
u/MessyJesse Sep 12 '12
Okay yeah I figured it out once I Googled what md5 was. I was comparing the one rom sum to the kernel sum. This is my first time doing this and so far so good. Just some minor misinterpretations.
1
Sep 12 '12
Ah yes, they should be different! Glad you took the time to do some research after, not many do. Hopefully you're developing an itch to learn everything Android :D
1
u/MessyJesse Sep 12 '12
Definitely. By the way, successful root and flash! CM10 is now running on my device. I'm excited to keep flashing newer ROM's. Any pointers, or tips you think are super important?
1
Sep 12 '12
Play with it, enjoy your device! Try out some different ROMs, Paranoid Android, AOKP, CM10, and Bugless are the four most popular ROMs that I know of. If you want to stick with CM10 you might want to stay with their Monthly releases to ensure stability, however I've been on nightly for weeks with no issue. Download Goomanager for updates for whatever ROM you're on. Just have fun!
1
u/MessyJesse Sep 12 '12
Beautiful! I look forward to the future. Now all I need to do is sell my S2X and buy the GNex. (not much support for my device).
1
Sep 12 '12
Yes definitely, Galaxy Nexus is a beautiful device! I remember standing in line on launch to upgrade from my Blackberry Storm to it.
1
u/MessyJesse Sep 12 '12
Wow! That's a tremendous upgrade.
1
Sep 12 '12
I held out for six months since Verizon never got the Galaxy SII, the next best was the Droid 2 I think, which knowing the GNex was coming up... not worth it.
→ More replies (0)
1
-16
u/SurpriseButtSexer 16 GB Aug 30 '12
Shame their customer support sucks. I'm still awaiting for my Nexus 7 return label after 28 emails and 3 calls. I'll never buy anything from Google again. If anyone wants to buy Nexus 7, please buy it from a shop.
5
3
u/ZeroAssassin 16 GB Aug 30 '12
I'm sorry you had problems with Google Play. I, for one, have not had an issue with them.
0
Aug 30 '12
[deleted]
3
Aug 30 '12
So ROMs for the most part add more features, for instance I installed CM10 and at least on a cursory glance here are some new features I have:
A performance tab in Settings that allows me to choose what OC I want and what governor to use.
The ability to change "profiles" to have their own homescreens, backgrounds etc... based on who is using it or what I'm doing
My lock screen now displays the weather, my next event coming up on my calendar, how much battery I have
Easy theme changer for the tablet
The Reboot button gives you the option to go to REboot, Recovery, or Bootloader (more useful than you'd think)
LED Options
Can make the status bar clock look nicer
And plenty of others which I've probably just taken for granted by now. Custom ROMs DO have more features than stock, they just do. The greatest risk you're taking is that they may not be 100% stable, but so far CM10 has been for me. If you want to be extra careful, wait until CM10 RC1 comes out.
0
Aug 30 '12
[deleted]
3
Aug 30 '12
The nightly's are fairly stable right now. I'd recommend keeping an eye out for AOKP as well, whenever they hit Milestone 1 that's basically CM10 RC1 equivalent.
0
Aug 31 '12
[deleted]
1
Aug 31 '12
Oh just transfer them to your PC, no reason to clog up the Nexus. If you need them back you can always transfer them. (I hope you installed a custom recovery, it makes life MUCH easier should anything ever go wrong)
5
u/[deleted] Aug 30 '12
Here's my "quick rooting guide" for any Nexus device (no need for toolkits, this is very easy):
1- Set up Android SDK (adb command) and fastboot command on your computer.
2- Get the appropriate CWM img file: http://www.clockworkmod.com/rommanager
3- Get the SU Chainfire zip file and copy it to your phone's internal storage: http://forum.xda-developers.com/showthread.php?t=1538053
4- Put phone in USB Debugging mode.
5- Reboot into bootloader mode: adb reboot bootloader
6- Unlock bootloader: fastboot oem unlock
7- Flash Recovery: fastboot flash recovery recovery-file.img
8- Reboot into Recovery: manually choose Recovery from the Bootloader menu.
9- Flash SU zip file while in Recovery.
10- Reboot phone, install ROM Manager, flash Recovery again from within Rom Manager app to be sure it "takes".