yashsingh1/xdaforums huggingface dataset:
[Nexus 7 General] FadedLite:
interesting. try flashing a new recovery, then scroll to recovery using the vol+ and vol- buttons, then select it using the power button. You cannot access adb in fastboot/bootloader; however, you can in cwm.
[Nexus 7 General] FadedLite:
Like I said in the op, some people don't need it to stick. I think it's just a good idea to try just in case. At IO, I had to do it.
[Nexus 7 General] T-Keith:
Need some help here, I'm not sure what I'm doing wrong. My device is unlocked, but I can't seem to boot into CWM recovery. I tried flashing via the linux toolkit and manually, which I did not my GNEX. When I try to boot into recovery it hangs at the android with the exclamtion point and then eventually boots normally. I know I need to erase the recovery-from-boot.p file and install supersu, but can't get into recovery to do it.

Well never mind, I tried the toolkit again, but before it restarted my device I held the power and volume keys and got it into recovery.
[Nexus 7 General] ikslawlok:
Hello T-Keith.

android-sdks/platform-tools/fastboot

Then :

android-sdks/platform-tools/fastboot flash recovery [/.../]recovery-clockwork-touch-6.0.1.0-grouper.img

or

android-sdks/platform-tools/fastboot flash recovery [/.../]openrecovery-twrp-2.2.2.0-grouper.img

Then :

android-sdks/platform-tools/fastboot reboot

And go immediately in Recovery mode pressing Volume Key

I think in Recovery Mode,

there is an option in settings to turn this Recovery as default.

Remember the OP:

I hope this will help you
[Nexus 7 General] Kalavere:
Hey folks, I am trying to install my ADB drivers but every time in plug in my N7 it keeps installing the bloody Windows N7 driver. Where am I going wrong? How do I stop it from auto-installing the driver I don't want?
[Nexus 7 General] janedoesmith:
Its probably auto installing the mtp/ptp driver. On the nexus 7, go to the developer setting and tick the USB debugging option then plug in the nexus 7 to the PC. Now manually install the adb drivers.
[Nexus 7 General] Kalavere:
Ha, how embarrassing! I forgot the most basic step. Thanks JaneDoesSmith. :)
[Nexus 7 General] raywaldo:
More embarrassing is adding an extra "s" in her name and then emphasizing the insult.
[Nexus 7 General] Kalavere:
Ha! Apologies. :o
[Nexus 7 General] janedoesmith:
Lol. That was funny. I didn't notice that. Its all good.
[Nexus 7 General] raywaldo:
Having fun

It is all good when everyone can have a good laugh! As long as YOU were not offended. :)

I do a lot of writing and although my degrees are in Psy (not English), I am pretty good at spotting typos. ;)
[Nexus 7 General] digital006:
Hi thanks for the guide I'm just having a little trouble.

I managed to flash and get cwm to stick but when it comes to flashing the CWM super user zip I can't mount the sdcard. Everytime I try to mount the /sdcard directory from CWM I get "Error mounting /sdcard"

Does anyone know a fix?

Scartch this, I booted into android set it all up and then did "adb reboot recovery" and then pushed the file again and flashed it, I know have root.
[Nexus 7 General] waacow:
I ran into the same error "Can't mount /sdcard" during last step in CWM.

As @digital006 has pointed out, need to let the system boot normally into Android OS once, then Power off.

And start it up with Volume Down key to start in Recovery mode.

Then CWM can mount /sdcard correctly then you can push all the zip files to /sdcard to be flashed.
[Nexus 7 General] Fallon9111:
Sorry, but you are missing a / at the end. Its an android debug bridge thing that you need a / at the end.

Edit: Everyone struggling with an adb command of pushing a file, try adding a slash (/) to the end of the directory.

adb push my-file/is-here/woot.zip /sdcard/

not

adb push my-file/is-here/woot.zip /sdcard
[Nexus 7 General] epicnoob66:
This worked perfect thanks OP
[Nexus 7 General] miodrag.cutura:
Hey guys,

Does anyone of you have the same problem as I do? My tablet does not have recovery-from-boot.p!:(

Did anyone of you see or hear something about rooting a device without the recovery-from-boot.p file? The rooting tool is able to unlock my device, install Superuser, that's it. Root doesn't work and that's basically that...

Any help?:(

Thanks!
[Nexus 7 General] minipot:
Like on other devices if u unlock and root your nexus Is it then unable to get updates straight from the manufacturer?
[Nexus 7 General] FadedLite:
I believe it will still get ota, but unless you get a ROM with ota broken, you'll get them.
[Nexus 7 General] raywaldo:
OTA & Root

My N7 was unlocked and rooted but I retained the stock ROM.

My device received the OTA to 1.4.2. However, the device ASKED me allow the update. When I agreed, it rebooted and upgraded to 1.4.2.

My device is still UNLOCKED (see the unlock icon at boot), I still have SuperSU installed. However, the SU command does not work.
[Nexus 7 General] Nate2:
I lost root and cwm with the recent OTA JB 4.1.2 update too :(

Will the same files and steps work with 4.1.2, or are new img files required?
[Nexus 7 General] FadedLite:
Yes, the same steps and files will work with 4.1.2 :)
[Nexus 7 General] Nate2:
Does one need to rename /system/etc/install-recovery.sh as well?
[Nexus 7 General] FadedLite:
No, don't do that. That could possibly lead to major problems. As I'm unsure ow it will cripple your hone, I'm pretty sure it would.
[Nexus 7 General] FadedLite:
This is because you lost the su binary in the update, flash the root package you used before or flash an updated version.
[Nexus 7 General] raywaldo:
OTA & Root

Thanks. I understood the issue. I was just explaining what would happen with an OTA because someone previously asked the question.

The IMPORTANT thing to note is that you are ASKED before it is installed. :highfive:
[Nexus 7 General] PAING1990:
Can anybody guide me how to safely root nexus 7?

I am on 4.1.2 stock and I feel like I should root it after using for 2 months. I found many different ways and I don't know which methods still apply for Android 4.1.2.

Anyone who knows, please help me :D Thanks
[Nexus 7 General] Kalavere:
What are you talking about?! You do know this

entire

threads purpose is to show you how to do

exactly

that?

Did you even read it?

If you've been stock for two months, came to XDA, found a thread with a

step-by-step

guide on how to root the N7 and you're asking how it's done, you shouldn't be rooting your N7. Period.
[Nexus 7 General] Minker17:
Is it safe to assume this is still going to be the same process on 4.2?
[Nexus 7 General] FadedLite:
Yes, the process will be the same :)
[Nexus 7 General] rootbox00:
If i root the stock ROM will i be able to recive updates from Google? (i just want root for some applications, no need for another rom)
[Nexus 7 General] FadedLite:
Yes, you will receive updates. Unless out manually break the updates, you'll continue to get updates.
[Nexus 7 General] twyztyd:
I had to fudge around bit to get mine done.

pushed the zip file to the N7 and then used the adb shell to cd to the folders to make sure they were there.

Should have made notes but it does work.

CWM wouldn't see the JB-SuperSU.zip .

Did "ls" to list files and could see it but no go on getting the shell or CWM to do anything with it. Had to rename it supersu.zip on laptop and push that file over to the N7 before CWM would see and execute.

Now that its rooted ... gotta figure out what to do with it now.
[Nexus 7 General] lauvassirds:
Where to download JB-SuperSU.zip?

You posted a link where to download the SuperSU, but it's not the same file as you mentioned in the guide. I downloaded CWM-SuperSU-v0.97.zip, will it make a difference if I flash this one instread the JB-SuperSU.zip?
[Nexus 7 General] thejrcrafter2:
updates?

when google releases android updates, will the n7 stay rooted (will it even update w/ root)?
[Nexus 7 General] amp:
Well once you root your device, your completely disconnecting the device from official OTA updates and anything officially related to Google. Unless you lock your device back using WUB tool and reset everything back to factory specifications, would be the only way to receive OTA's. Unlocking is equally or superior for cutting edge updates mate.
[Nexus 7 General] dank101:
I'm getting a nexus soon do you need cwm or can I use twrp

Sent from my KFHD of justice

Check out my kindle fire irc Freenode.net #KFTT
[Nexus 7 General] cdmackay:
given that, how do I go about getting the latest Google update on a rooted device, if I can't get it via OTA, please?
[Nexus 7 General] amp:
Latest as of now, is 4.1.2. So there won't be any updates, at least until 4.2 but even that isn't said that Google will roll an official Nexus 7 version. But all custom ROM's here mate are all updated from official sources so no worries from being "outdated" :)

But if you really want to run stock, I suggest this. This will truly roll back to OTA connection. But here's the links to super stock releases from Google, on top.
[Nexus 7 General] cdmackay:
Thanks! I think there must be a reasonable subset of users who want root, but aren't fussed about running a custom ROM. I know a few such, at least.
[Nexus 7 General] wojtek_pl:
Hi,

as a new version of Nexus 7 is available to public (32GB 3G) is this way of rooting going to work with it ? I'm planning to buy such device and root is essential to have.
[Nexus 7 General] FISKER_Q:
The method will be the same, but the files will probably differ as the hardware differs.

Shouldn't be too long for a dev to come around and provide those files.
[Nexus 7 General] amp:
I suppose everything will be the same under everything else except the inclusion of radiobands for the penta band radio.
[Nexus 7 General] wojtek_pl:
Thanks, but I just ordered plain 32GB version without 3G (too much waiting). Should I expect any problems with rooting it this way?
[Nexus 7 General] agmar:
Awesome guide. First time user of adb, worked like a charm. Side loaded su zip as CWM wouldn't let me select a zip from sd card with error message of " Error loading sdcard".

Thanks again.
[Nexus 7 General] veeman:
Nope. it's the same for every Nexus device.

Sent from my Nexus 7
[Nexus 7 General] PenguinDroid:
Can I root it without a data wipe? Cause I can't backup without root, and it would be a pain in the rear to have to redo all of the settings and stuff...

Thanks in advance! :)
[Nexus 7 General] Andrew025:
You can root but not unlock without a wipe.

You can plug it into a computer and transfer the files you want to keep without root.
[Nexus 7 General] xavier86:
My ADB fix:

android sdk tools, install platform tools and extras, went into device manager and updated the drivers by searching manually to the folder android/android-sdk/extras folder and adb was fixed.

As for the commands for permanently locking CWM in you dont need to use ADB Shell to do this, once you boot into CWM reboot system and CWM promps you to lock it in. After i locked it with that i booted into the stock rom and did a temp setup with my gmail account and booted back into recovery and that fixed the ERROR with mounting the /Sdcard. Then i was able to flash supersu, booted back into the stock rom, made sure root was functional. Downloaded BAMF and their gapps, went back into recovery, backed up my stock rom, wiped system, data, cache dalvik and flashed bamf and done...
[Nexus 7 General] sportscrazed2:
getting a nexus 7 soon. i'm new to the whole adb/fastboot stuff manually so i'm playing around with it on my phone. what i have to do now is cd to the directory containing platform-tools and running the command as ./adb command here. is there a way to get it so that i don't have to type the ./adb every time?
[Nexus 7 General] xavier86:
In cmd all you should need to do is type

32bit windows

cd c:/program files/android/android-sdk/platform tools

64bit windows

cd c:/program files (x86)/android/android-sdk/platform tools

That brings you into the directory so you don't have to type out the full path name when trying to run Fastboot and adb.

I find it easier to rename zip and image file to

supersu.zip and cwm.img. it doesn't make a difference what the file names are, just leave the file extensions alone.

Adb reboot bootloader

Fastboot OEM unlock

**made sure supersu and cwm recovery are in the platform tools directory with Fastboot and adb.**

Fastboot flash recovery recoveryname.IMG

Boot into recovery. Assuming you grabbed the latest version (6.0.1.9) from his website all you should have to do is reboot to system. Cwm will prompt about the recovery not being permanent. Select yes to make it permanent and boot normally.

Do a temp setup with your gmail account. Run the updates and then download your chosen ROM and gapps (if required) and transfer them to your SD card.

There's two ways to get the supersu binaries on your nexus sdcard. The easiest is just copying it over using windows.

#2 (in the bootloader)

Adb reboot bootloader

Adb push supersu.zip /sdcard

Boot into recovery, install zip, select supersu. Reboot into the system and make sure you have root. (Get es file manager and enable root I. Settings)

Reboot back into recovery.

!!!!!!!!!!Run a backup!!!!!!!!!!!! It doesn't take long!!!!!!!!

To install a ROM after a backup.

Go into mounts and storage. (DO NOT WIPE /sdcard!!!!)

Format system, data, cache, and dalvik cache (in advanced settings)

Install zip, install the ROM first, then the gapps.

Reboot to system, done :)

Bail outs:

If you by accident wipe your SD card.

You can use Adb push to transfer a ROM & gapps to your SD.

---------- Post added at 03:37 PM ---------- Previous post was at 03:34 PM ----------

Nope.

Ubuntu or not you need the adb there. Its calling the program
[Nexus 7 General] thither:
Hi all... First off thanks for the clearly-written guide.

I'm running into an issue with this. Once I run adb reboot recovery, my Nexus just shows red triangle with a little open droid and the message "No command." While it's in this state it doesn't respond to adb at all, and when I run "fastboot oem unlock" it just hangs. I tried restarting the adb server and I still don't get any response.

One possible wrinkle, I did let the nexus update itself to Android 4.2 before all this. Is there anything I can do? (I'm pretty experienced with rooting phones but this is my first try with a Nexus 7.) Any advice?

Thanks in advance!
[Nexus 7 General] veeman:
You should have done "adb reboot bootloader" not "adv reboot recovery"

The image of the red triangle and the droid is the stock recovery.

Hold down the power button until it shuts off then as soon as the Google logo pops up, hold down the power button and both volume buttons at the same time to get to the bootloader. Then you should be able to do "fastboot oem unlock"

Sent from my Nexus 7

Stop... MUFFIN TIME!!!
[Nexus 7 General] thither:
Oh, got it. Thanks, I didn't realize the bit about holding down the volume keys to get into fastboot. (I was typing adb, not adv, though - not sure where you got that? :) )

I'm seeing another issue now - I can still get into fastboot ok, but the actual recovery mode doesn't seem to work - I get a dead android with a red triangle (and no error message), whether I go into recovery from fastboot or from "adb reboot recovery". I'm guessing recovery-clockwork-touch-6.0.1.9-manta.img might be incompatible with the android 4.2 OTA update? I'll do some poking around in the CWM thread and report back here in case anyone else has this problem.

Thanks!

---------- Post added at 02:57 PM ---------- Previous post was at 02:36 PM ----------

Aha - I couldn't get the touch version of the CWM recovery image to boot at all, but when I tried the non-touch version it worked like a charm. Everything looks good now and I'm unlocked and rooted. Thanks again!
[Nexus 7 General] veeman:
The adv part was just a typo on my part. I was pointing out that you should have done adb reboot bootloader instead of adb reboot recovery. :)

And no problem.
[Nexus 7 General] xavier86:
That's good. I'm running the latest cwm. Weird that it wouldnt boot. Hardware keys is better then not having one at all. Glad you worked it out :)
[Nexus 7 General] m2xtreme:
Great guide. Only issue I ran into involved installing SuperSu. I had to use the sideloading method since my /sdcard/ partition wasn't mounting correctly for some reason. Thanks OP!

adb sideload /path/to/zip.zip
[Nexus 7 General] sportscrazed2:
so getting mine tommorow and read through entire thread. made a list of stuff to do. i'm on linux btw. does this look accurate or am i missing something?

make sure usb debugging is enabled
copy supersu.zip and recovery.zip to platform-tools folder
su
cd /opt/android-sdk/platform-tools
./adb push supersu.zip /sdcard/
./adb reboot bootloader
./fastboot oem unlock
./fastboot flash recovery recovery.img
reboot into recovery using menus on device
mounts and storage
mount /system
./adb shell
cd /system
ls to see if recovery-from-boot.p exists
mv recovery-from-boot.p recovery-from-boot.bak
install supersu.zip from sd card (may have to reboot once first)

well your guide wasretty good. Had to reboot before I could flash supersu . Also had to retransfer supersu because I couldn't find it. What was Google thinking removing mass storage capabilities for this?
[Nexus 7 General] 99ryan993:
sd card

In reply you can got to amazon and 51p for a mini USB to USB converter and plug in USB devices
[Nexus 7 General] sportscrazed2:
If you read the thread tablets without SD cards use sdcard to mean internal storage.
[Nexus 7 General] TheDude:
What gives? For whatever reason I cant flash cwm. Other fastboot commands work. fastboot oem unlock worked... Any thoughts? Thanks.

C:\Users\Braden>fastboot flash recovery D:\AndroidDev\android-sdk\platform-tools\grouper.img

sending 'recovery' (6530 KB)...

FAILED (data transfer failure (Unknown error))

finished. total time: 0.040s

C:\Users\Braden>fastboot flash recovery D:\AndroidDev\android-sdk\platform-tools\grouper.img

sending 'recovery' (6530 KB)...

FAILED (command write failed (Invalid argument))

finished. total time: 0.005s

C:\Users\Braden>fastboot reboot

rebooting...

finished. total time: 0.001s
[Nexus 7 General] RootTheMachine:
I feel like this should be a sticky... Maybe not in this section though.
[Nexus 7 General] thanantos:
I was able to complete all the steps and the boot loader is now unlocked with CWM installed but not SuperSU.

The thread linked to for that tells you to download it from Play Store which I did, but when I try to run SuperSU I get an error that the binaries have not been installed.

Any ideas?
[Nexus 7 General] amp:
An apk install from the store won't suffice. You have to download the SuperSU zip included in here and intall it through recovery, then install supersu.apk or through play store.

Other Link also posted in this thread, http://xdaforums.com/showthread.php?t=1538053
[Nexus 7 General] thanantos:
That worked thanks!
[Nexus 7 General] Jaydizzle414:
when i type adb push C:\supersu.zip \sdcard it says cannot copy, read only file system. what do i do??
[Nexus 7 General] FadedLite:
Are you trying to push it from cwm or inside Android?

Sent from my Nexus 7 IO Dev Edition
[Nexus 7 General] KidCarter93:
Just gave you the 100th thank on the OP :p

Great write up for those that need it :)
[Nexus 7 General] mumbles202:
Can I download this SU CWM-SuperSU-v0.99.zip and then push TWRP for recovery via ADB?
[Nexus 7 General] PutoFace:
When I get to the step "5. Make CWM Permanent," when I type in "adb shell" in the cmd terminal, it says "error:device not found." I tried the adb kill-server and adb start-server commands and it still gives the error. Tried reading through the responses but most were over my head. Suggestions?
[Nexus 7 General] jamcar:
ADB doesn't see my device... Are there drviers I need?

EDIT: never mind. when i updated the SDK and ADB it didn't download the info for newer devices or their drivers

EDIT: it still doesn't work?!? Windows says the drivers aren't installed O_o
[Nexus 7 General] jaxrunner:
I had the same issue and was thoroughly frustrated as I spent at an hour or two trying to troubleshoot! I'm doing this all from linux so I unnecessarily went through manually setting up udev rules...urggg! Now that I think about it I was always able to run "adb reboot bootloader" and "adb shell" which means my environment was already setup to recognize my N7...right? I ended up skipping this step. I think the latest CWM recovery takes care of renaming "recovery-from-boot.p r"

I'm also assuming once you get into recovery you no longer can use adb as I got the same device error not found. However adb shell works fine before I actually restart bootloader from terminal. I hope someone can chime in as I really would like to know whats going on with adb not recognizing device while device is in the bootloader. And yes I mounted /System from recovery menu.

The most important part is unlocking boot loader, flashing recovery image and installing Su zip via recovery menu. Once you grasp what going on with each of these processes then things should get a little clearer.
[Nexus 7 General] slapperypete:
I feel like this thread should be linked in the OP.
[Nexus 7 General] FadedLite:
This guide is made for those who don't want to use a toolkit and do it themselves.
[Nexus 7 General] rockstar283:
Hi..n00b question..

As Nexus 7 does not have any SD card..how can I execute the command:

adb push path-to-zip/JB-SuperSU.zip /sdcard

I tried

adb push C:\Users\xxx\desktop\update-supersu-v1.34.zip /sdcard

I get an error: device not found

help pls
[Nexus 7 General] underwaterjr:
If your having trouble that way you can always just reboot after you have unlocked your bootloader and plug the N7 back into your computer and drop the file in the "root" of the sd card extension. Then reboot to bootloader and install cwm recovery, reboot to recovery and install the super user zip.
[Nexus 7 General] rockstar283:
Thanks for the reply mate..but before flashing I am trying to perform the PRE steps..as there is no sdcard extension..there is no root folder either..something is off here..

This is what I did..let me know if I am doing anything wrong (p.s. I am yet to root and unlock N7):

1) Downloaded SU and saved it on desktop

2) Downloaded CWM and saved it on desktop

3) Connected my N7 with laptop using USB cable

4) Fired up CMD and went into Platform-tool folder

5) typed in 'adb push C:/Users/xxx/desktop/update-supersu-v1.34.zip computer/nexus 7/internal storage'....nothing happened

6) typed in 'adb push C:/Users/xxx/desktop/update-supersu-v1.34.zip /sdcard'....error: device not found

bummer :(
[Nexus 7 General] underwaterjr:
Lets take this to pm. I will send you one.
[Nexus 7 General] FadedLite:
It may be possible, I'm not to sure. Look around the forums when they grow, and someone might have ported the recovery. I personally don't know much about them except how to use them.
[Nexus 7 General] FadedLite:
Ya, I was in an io session trying to take notes and I quickly did this haha. Maybe its the new type of guide ;)
[Nexus 7 General] xblackvalorx:
Haha. Nice, I'm heavily regretting my io absence this year :(
[Nexus 7 General] FadedLite:
Ya, I was one of the lucky few. Off topic of the thread but I actually got my nexus signed by cyanogen himself