yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) General] mordetx:
Please Help!!!

Hi I followed all your instructions and right when i was ready and tried to flash the recovery, I get this list of options after waiting for device:

usage: fastboot [ <option> ] <command>

commands:

update <filename> reflash device from update.zip

flashall flash boot + recovery + system

flash <partition> [ <filename> ] write a file to a flash partition

erase <partition> erase a flash partition

format <partition> format a flash partition

getvar <variable> display a bootloader variable

boot <kernel> [ <ramdisk> ] download and boot kernel

flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it

devices list all connected devices

continue continue with autoboot

reboot reboot device normally

reboot-bootloader reboot device into bootloader

help show this help message

options:

-w erase userdata and cache (and format

if supported by partition type)

-u do not first erase partition before

formatting

-s <specific device> specify device serial number

or path to device port

-l with "devices", lists device paths

-p <product> specify product name

-c <cmdline> override kernel commandline

-i <vendor id> specify a custom USB vendor id

-b <base_addr> specify a custom kernel base address. default: 0x10000000

-n <page size> specify the nand page size. default: 2048

-S <size>[K|M|G] automatically sparse files greater than

size. 0 to disable

I don't understand what I should pick or if I should pick any. Please help as soon as possible.

EDIT: The reason I got this list is because I dragged in the fastboot into the terminal because when I tried to enter ./fastboot flash recovery openrecovery-twrp-2.6.0.0-flo.img, it said this: -bash: fastboot: command not found
[Nexus 7 (2013) General] geckocavemen:
Don't worry you haven't broken anything. What you saw is basically just a message that says you entered an incorrect command and then it presents a list of acceptable commands. Just start the section C. Rooting over again and don't move the recovery file into the command window...just type the full name of the recovery file instead.

EDIT...I think I didn't understand your edit properly the first time. I think you got the bash message because terminal was no longer pointed at the platform-tools folder. To do the rooting process you must make sure terminal is still directed at platform-tools folder. It should still be if you didn't close terminal or do anything else in terminal after the unlocking process. However, if terminal is not directed to the platform-tools folder you can use the "cd" command found in part B. of the how-to to get terminal pointed to the right place again. Once you've done that you can just start Part C. again and all should be fine. When I rooted I just left terminal open after completing the unlocking process and it was still directed at platform-tools. If you closed terminal it wouldn't be pointed at the right location where fastboot is.

One other thing: Are you sure there is a fastboot file in your platform-tools folder? It should look just like the adb file except it will be named fastboot instead.

LAST EDIT PLEASE READ: I'm assuming you used wad3g's download because I just checked and it does not have a fastboot file in it and that is why you got the -bash message. Please use the link in the how-to to download the full sdk from google. Pull out the fastboot file from Google's sdk and put it wherever you put your adb file that you got from wad3g. At that point you will be able to continue with Part C. Rooting.
[Nexus 7 (2013) General] geckocavemen:
Hope that last edit of mine helped out. Just follow the how-to step by step (including my links) and you'll be ok.
[Nexus 7 (2013) General] mordetx:
Thanks So Much But One Last Question

Again in a bit of a sticky pickle. I got it to work because my problem was that I didn't direct the terminal to the folder. Now I am booted into TWRP but I don't understand what you mean by the SuperSu file. I it just the whole folder titled UPDATE-SUPERSU-v1.51?

EDIT: OMG IT WORKED!!! Thanks so much I got it rooted and it works awesome now!!!
[Nexus 7 (2013) General] TheBlueOne:
Best tutorial for mac ever

I found this so helpful and easy! My nexus 7 is rooted now!:good:
[Nexus 7 (2013) General] miou:
:good::good::good::good:

thanks a lot
[Nexus 7 (2013) General] p4rot:
Thanks for the guide.
[Nexus 7 (2013) General] harrishanifa:
Want to say thanks for your very detailed explanations.

If I may, I would like to suggest one more step after the final step. Make a Nandroid backup. That really helps a lot for people who screwed stuff up.
[Nexus 7 (2013) General] geckocavemen:
Yes, creating a nandroid backup is very important and can definitely save you when flashing Roms and stuff if something goes wrong. Creating a nandroid before rooting could get you back to stock with an unlocked botloader too. But I guess that isn't as important now that Google has released the factory images.
[Nexus 7 (2013) General] tt100b:
Question

Thanks much for the friendly advice and instruction. I've run into an issue that I'm sure isn't a big deal, but can't figure it out. I'm still trying though...

I had done everything already up to the point of booting into recovery and flashing the 1.51.zip file. The flash fails every time I try it.

N7 (2013) stock ROM, unlocked and have 2.6.0.0 installed. Everything else works fine.

For my part I've reformatted, wiped, and re-installed everything and tried three different sources for 1.51 and keep getting the fail when I try to flash.

To be honest what I'd like to do is find out how to do it the old way (ADB commands) and learn something but I haven't been able to find a post that walks through that. It seems the 1.51.zip is currently in vogue. I'm still searching though...

Another guy on a different thread told me that the commands for terminal now are a bit different than last year (i.e. instead of "adb devices" I learned you now insert "fastboot devices", etc...
[Nexus 7 (2013) General] geckocavemen:
I wish I could help you out but I don't know how to flash SuperSU using terminal commands. It's weird that you got all the way to the end before running into problems. And you downloaded the SuperSU file on your nexus 7 and its in the device's download folder?
[Nexus 7 (2013) General] sfhub:
What error does it say on the mini terminal?
[Nexus 7 (2013) General] tt100b:
In all three cases I downloaded the su file from the n7 to the download folder, and then booted to recovery. I still haven't had any luck finding the Mac command lines so don't know what to do with terminal
[Nexus 7 (2013) General] sfhub:
When you install in twrp it shows a mini terminal where you can see the status messages. What error do you see there?
[Nexus 7 (2013) General] tt100b:
Oh, I see. I get "E: Unable to load zip file"
[Nexus 7 (2013) General] geckocavemen:
You might try flashing a custom Rom and see if that is able to flash or not. At least at that point you would know if the problem lies with twrp or the SuperSU zip file and then go from there. Make a nandroid backup first though so you can restore your stock system if you don't want to keep the custom Rom.

That's assuming of course that it's possible to flash a custom Rom if you aren't rooted yet, which I'm not sure of.
[Nexus 7 (2013) General] tt100b:
Fixed...

...though I can't logically explain it. Here's what happened:

When I got home tonight from work I picked up the N7 and it had the 1.51.zip file in download and the newest TWRP installed (2.6.0.0). I also had installed 1.51 from the Play store but of course it wouldn't do anything.

I tried a coupled reboots and flashes with the same "fail"result. After studying some more pages I got the brainy idea to try and flash a 1.43.zip of Super SU and then try to update it to 1.51. When I flashed 1.43 it succeeded in loading. I then rebooted and Voila! -- I had root. The weird thing is when I checked App info to verify I had 1.43 it reflected version 1.51. I know for a fact I installed the file in downloads called 1.43. Weird, but it worked.

Thanks again for the guide and the patience. Learning the hard way seems to be the only way stuff like this sticks in my brain. One of the days maybe I'll be further along to the point where I can help out other people to pay it forward...

BTW, if anyone ever comes across a guide or explanation of manual command rooting on any kind of computer (Mac / PC / Linux) please forward. I want to understand that,
[Nexus 7 (2013) General] raybansandfedora:
First off Thank you geckocavemen for these instructions. It worked flawlessly for me on the first try. Simple and easy.

I made a youtube video of how I unlocked the bootloader and rooted the new nexus 7 with geckocavemen's instructions.

youtube.com/watch?v=ykoPPTou4dE[/url]

youtube dot com/watch?v=ykoPPTou4dE
[Nexus 7 (2013) General] Kusaiashi:
Root Failed

I followed the entire process and have unlocked my bootloader, but when I got to step C10, I get the message, "Failed" every time I attempt to swipe to flash. I am assuming the SuperSU .zip file is what is causing the problem, but I am not sure how to get around that. I downloaded and used the file from the SuperSU thread that's on the main post. I just got my Nexus 7 this weekend and this is my first attempt ever at rooting a device. Has anyone seen this issue before? Thanks.
[Nexus 7 (2013) General] geckocavemen:
There is a newer version of SuperSU available that you can try here...it's version 1.55. Please try that and let me know if it works. If not I have an another idea that might work.

Edited to add: One other thing...are you certain you downloaded the correct file for TWRP? There are TWRP files for the old version of the nexus 7 also. You should have gotten the TWRP file from the page that says Nexus 7 2013 Wifi Only.
[Nexus 7 (2013) General] Kusaiashi:
Worked!

Hey thanks. The version 1.55 file worked great. Took a little over a second after I swiped to flash. Now, as I am completely new to rooting, do you have any tips on what to do next to take advantage of these new privileges? Probably not the right place to ask, but if you could point me in the right direction, that would be appreciated. Thanks again for the rooting method!
[Nexus 7 (2013) General] geckocavemen:
The primary reason I rooted was for titanium backup. It lets you backup all your apps so you can restore them when you get a new device. That way you don't lose game progress and stuff like that. There are a bunch of other cool things you can do with root but that is the main one for me.

This thread might help you out with some ideas also. http://xdaforums.com/showthread.php?t=2422772&highlight=root
[Nexus 7 (2013) General] MMeester:
Just tried it, works great, thank you! :)

Now I'm waiting for CM to boot up.
[Nexus 7 (2013) General] amf:
Great! Will I be able to get OTA updates after using this method of unlocking and rooting my N7 LTE? Thanks!
[Nexus 7 (2013) General] geckocavemen:
Yes, but you will lose root and twrp after updating and have to do the steps over again once the update completes.
[Nexus 7 (2013) General] amf:
Thanks a lot!

If I want to lock and unroot, what is the procedure? Thanks.
[Nexus 7 (2013) General] geckocavemen:
First you would unroot using the SuperSU app...it has an unroot option in the settings.

Next, if you wanted to replace TWRP with the stock recovery (you don't have to if you don't want to though), you would download the Google factory image for your device and unzip the file, then unzip another file within the one you just unzipped, and pull out the recovery.img file. Place the recovery.img file in your platform-tools folder and then basically repeat the same process you used to flash TWRP....using the command ./fastboot flash recovery recovery.img

Finally, to lock the device type ./fastboot oem lock
[Nexus 7 (2013) General] amf:
Thanks a lot! :good:
[Nexus 7 (2013) General] kregerator:
How to Backup First

Is there a good way to do a backup first from a mac? All the instructions say, make a backup first before rooting but all the backup instructions I can find require you to be rooted first or use a windows tool like Nexus Root Toolkit.
[Nexus 7 (2013) General] geckocavemen:
When they say to backup everything they just mean take anything important on your device and move it to your computer, store it in the cloud, etc. For example, if you have important pictures on your device you would want to email them to yourself or manually move them to the hard drive of your computer because rooting will wipe your device. Same goes for videos, documents, or anything else.

As far as I know there is no way to do the kind of backup you are talking about until you are rooted.
[Nexus 7 (2013) General] kregerator:
Thanks! That helps. Pretty much everything is anyway in Dropbox or Google already. Now to find some free time...
[Nexus 7 (2013) General] natzakaria:
Brilliant instructions
[Nexus 7 (2013) General] xdhall:
As of android 4.0, you can execute the commands adb backup and adb restore to, well, backup and restore without root. Here's a guide on the galaxy nexus/Windows, but it's the same on the nexus 7, Mac (just use terminal).

http://xdaforums.com/showthread.php?t=1420351

Also, FYI, the reason you have had to muck around with cd and prepending your terminal commands with ./ is because you haven't fully set up your platform tools. For the final step for setting up platform tools, you create a batch profile file with your platform tools directory set as an environment variable.

And for the final FYI, you don't need to enable developer options and USB debugging in order to unlock and root.

Otherwise, great guide. It's always good to see a guide without a toolkit or screwball script.

---------- Post added at 02:13 AM ---------- Previous post was at 02:03 AM ----------

Competent instructions.

Unnecessary steps, and incomplete platform tools setup means disqualifies them from the brilliant category.

But they work, which is the most important thing.

I'm feeling snarky today.
[Nexus 7 (2013) General] geckocavemen:
On an internet forum competent is the equivalent of high praise...I'll take it. Also, how'd you manage to find a Nexus 6? I really hope it doesn't have a 6 inch screen...stupid big phones.
[Nexus 7 (2013) General] xdhall:
You're welcome.

The nexus 6 is a Bladerunner joke.

Want to know how to finish setting up your platform tools? It's easy. I'll even give you instructions that don't require a bunch of terminal commands.
[Nexus 7 (2013) General] geckocavemen:
Sure that would be great...I've seen it discussed before but never found the time to learn. At the time I was still learning how to manually unlock and root and didn't want to add extra steps that I didn't understand but I think I can incorporate some new knowledge now.
[Nexus 7 (2013) General] geckocavemen:
Thanks! I definitely like the instructions with terminal commands better. I'll be able to give it a try on Monday and I'll let you know how it goes.
[Nexus 7 (2013) General] knightprowler71:
Followed your instructions but made an error along the way which may be useful. Instead of simply downloading SuperSU I installed it (I misread, my fault). So I got into TWRP and cursed myself. When I asked TWRP to reboot the device, it offered to install SuperSU for me. So I think you'll find the manual download and installation is unnecessary. Once you reboot back to your device, if you run SuperSU it will offer to update to the latest version.

Overall, these were really great directions. I ran them as written not deviating from previous rooting experience and thought they went really cleanly. No complaints.
[Nexus 7 (2013) General] cmccorkle21416:
Question:

Will this work with my Nexus 7 2013 Running Kit Kat 4.4.2?
[Nexus 7 (2013) General] TarantuL_Russia:
really worked. thx4all.
[Nexus 7 (2013) General] geckocavemen:
Yes it will work with 4.4.2...just follow the instructions. :)
[Nexus 7 (2013) General] TarantuL_Russia:
i use nexus 7 root tool! Very good! thx
[Nexus 7 (2013) General] geckocavemen:
Yeah the root tools work also but I prefer to root manually in case something goes wrong I have a better chance of knowing how to fix the problem.
[Nexus 7 (2013) General] whymista:
Thanks for this guide it was very easy to follow through. I'd tried other methods before and had bricked it after getting stuck on just getting it unlocked.
[Nexus 7 (2013) General] jeremyjjbrown:
Great post

Rooted in 20 minutes thanks to you!
[Nexus 7 (2013) General] Mrcartoons:
Rooting N7 (2013) didn't work...

Hey, I've followed your guide step by step to root my N7. The thing is, for some reason, it doesn't turn on, it just stays on the Google screen forever (not the boot screen, but the previous one where it says "Google" on white). I've realized that, when I go into the recovery menu, then to Install, I have a bunch of files. I look for the one that says supersu, press it, but then nothing happens, and there's nothing inside that file... I don't know what I have done wrong but there's for sure a mistake I've made. If you could help me out that would be great, because my N7 is right now useless. Thank you very much in advanced :)

PS: excuse my grammar mistakes, English isn't my mother language so...
[Nexus 7 (2013) General] geckocavemen:
No worries about your grammar but I need some more info to help you out...

1. What recovery are you using?

2. What step of the guide did you start with and what step did you reach before you ran into problems?

3. What is the exact, full name of the supersu file you can see in the download folder of your recovery?

4. What other files do you see there?

5. Can you be more specific about what happens when you click on the supersu file as you are attempting to install it?

6. Edited to add: If you are using TWRP as your recovery, go into the install section and tell me how much internal storage it says the tablet has. You can find that info in the top third of the screen in the install section of TWRP.
[Nexus 7 (2013) General] Mrcartoons:
______________________________________________________________________________________________________________

1. Im using openrecovery-twrp-2.6.3.1-flo.img from the link you gave in your guide.

2. I started with step 4 in the first section,

A. Prep

, the one that says that I need to download the Android SDK for Mac (you mention in that step "DO NOT use the link posted below for the sdk. It does not contain fastboot and you will not be able to complete the rooting process. Please use the full sdk from Google that I have linked here." I don't know what links you are talking about, I just downloaded from Android developers, the adt-bundle-mac...). I did the whole process untill step 8. or step 9 from last section, C. Rooting. The step says "Using the touch screen, select install and then navigate to the download folder where you saved the SuperSU file", the thing is, I do not have a "Download" folder...

3. Well as I just said, there's no "Download" folder so... I can't see any file from that "non-existing folder".

4. Same thing, can't see any file because the folder just isn't there.

5. I can't click it because I can't get to it since the Download folder isn't in the Install section of the Recovery Menu.

6. Before I had 0 Mb but doing some process I found out on Internet, now I have "Storage: Internal Storage (12093 MB).

I hope this makes it easier for you to know what's going on with my tablet. One last thing that might be important: when my N7 is powered off and I long-press the Power button in order to Power it On, it directly goes to the Bootloader screen or to the Fastboot Mode (I'm assuming it's the same thing). Let me just tell you the info I have in this screen, just in case it's helpful:

FASTBOOT MODE

PRODUCT NAME - flo

VARIANT - flo 16G

HW VERSION - rev_e

BOOTLOADER VERSION - FLO-04.02

CARRIER INFO - None

A serial number which I don't think is relevant

SIGNING - yes

SECURE BOOT - enabled

LOCK STATE - unlocked

Thank you very much for caring
[Nexus 7 (2013) General] Mrcartoons:
PERFECT!!

It works!! I did what you told me and rooted again. Now its rooted and whats most important, it works haha. Tyvm for your patience and for taking time to help me. I truelly appreciate it. Tyvm :)
[Nexus 7 (2013) General] geckocavemen:
Glad it worked for you. Which part fixed it? Just wiping data or restoring the entire OS?
[Nexus 7 (2013) General] Mrcartoons:
Restoring OS

I had to Restore the whole OS. I found out what was the mistake I made. I downloaded SuperSu on my computer but didn't install it in my N7, that's why I could not see the Download folder with the SuperSu file (I'm guessing). But it's all good now, running CM11, smooth like silk ;)
[Nexus 7 (2013) General] Sassi666:
Thank you

Thank you so much for this post. I have been toying with rooting my Nexus 7 2013 since I recieved it as a Christmas present a couple of months ago but I have been too nervous to attempt it. I have a mac laptop and this walkthrough on how to unlock the bootloader and root the device is very clear and easy to understand. I have not rooted any of my devices before but decided yesterday to give it a shot. I read through this post a few times and made sure I had everything downloaded and ready to go.

Everything went smoothly, very easy with no problems at all, I now have a rooted Nexus 7 2013

Thanks again for this very clear and concise guide I wouldn't have been able to do it without it :)
[Nexus 7 (2013) General] Riccardo83:
Hello guys, can you please tell me how to unroot using the same method on a Mac?
[Nexus 7 (2013) General] geckocavemen:
There is an option in the SuperSu app to unroot. Just follow that...you don't actually have to do anything on the computer to unroot.
[Nexus 7 (2013) General] Riccardo83:
thanks. I might need to return my device. How can I make it like I got it straight from the factory? Adding the official Google Bootloader back?
[Nexus 7 (2013) General] geckocavemen:
From an earlier post:

First you would unroot using the SuperSU app...it has an unroot option in the settings.

Next, to replace TWRP with the stock recovery, you would download the Google factory image for your device and unzip the file, then unzip another file within the one you just unzipped, and pull out the recovery.img file. Place the recovery.img file in your platform-tools folder and then basically repeat the same process you used to flash TWRP....using the command ./fastboot flash recovery recovery.img

Finally, to lock the device type ./fastboot oem lock

This all assumes you didn't flash any custom roms. If you did and you need to re-install Google's factory OS first follow my guide in the post at the top of this page then proceed with this one. Keep in mind that following the guide at the top of this page will wipe everything from your device.
[Nexus 7 (2013) General] Riccardo83:
I just saw that post. I did unroot with the SuperSU app.

I downloaded the Mac SDK and the Google Image for my Nexus 7 2013 LTE Device (https://developers.google.com/android/nexus/images#razorg)

Which file do I put into the "platform-tools" folder? I used the bootloader-deb-flo-04.02.img (4 MB). But I also see a file radio-deb-deb-g0.....img with a filesize of 454.6 MB.

I restarted with /.adb reboot bootloader and got the message "FAILED (remote: image is not a boot image)

Did I use an incorrect image?

Please advice.

---------- Post added at 12:30 AM ---------- Previous post was at 12:20 AM ----------

sorry, i just foudn out to unzip the factory image again and extract the recovery.img. now flashing did work. Bootloader was locked too. restarting now.

How do i check that im back to Stock and everything back to normal?

Should I do another wipe or so?
[Nexus 7 (2013) General] geckocavemen:
There isn't really anything you can check. Just make sure you don't have SuperSu installed anymore, you re-installed the original recovery, and you re-locked your bootloader. Nothing else left to do as long as you aren't running a custom rom.