Related
I found less detailed guide on rootzwiki created by birdman, but i decided to repost it here in more detail.
* Disclaimer: I do not take any responsibility for anything you do to your phone, whether be brick, break, or somehow mess it up.
Requirements
1. You must have the sdk installed and you are able to access, and use adb and fastboot.
2. You must have debugging enabled on your Nexus 7.
3. Download Su here (Chainfire's thread for supersu) (Thanks Eric_Eric_Eric)
4. Download CWM here. Scroll down to Nexus 7 and choose whether touch or regular.
Pre-Steps
To make this easier, you should put the su zip on the sdcard for later.
1. In terminal, cd to the directory you have your sdk in. Then cd into platform-tools.
2. Type adb push path-to-zip/JB-SuperSU.zip /sdcard
Unlocking Your Nexus 7
To unlock your device
1. cd to platform-tools
2. Reboot to the bootloader - adb reboot bootloader
3. Unlock your device* -
fastboot oem unlock *You will have to accept and erase all the user data on the tablet.
*You must run this as sudo in Linux
Flash Clockwork Mod Recovery
(You're still inside the bootloader)
4. Flash CWM -
fastboot flash recovery path-to-img/CWM-grouper-recovery.img5. Make CWM Permanent -
1. Boot into recovery2. Go to Mounts and Storage3. Mount /System4. Type in Terminal*adb shell
cd /system
mv recovery-from-boot.p recovery-from-boot.bak
If your having trouble gaining shell, try "adb kill-server" then "abd start-server". Couple of my friends had this problem, and this should hopefully fix it.
* For some people, it has been reported that you don't have to replace recovery-from-boot.bak. The flash is enough to make the recovery stick.
Flash Su
1. Go back by pressing power button2. Install the zip in the sdcard
Reboot and your device is now rooted!!
For anybody having trouble trying to use fastboot and come up with a no-permissions error or adb ????????? problem, I created a guide to fix the problem here: [GUIDE]Fix Fastboot and USB
Any ugly splash screens indicating it has been unlocked?
No SD Card!
Not to be a jackass or anything, but this tablet has no SD Card slot...might that require slightly different steps than what you outlined?
jorge_culv said:
Not to be a jackass or anything, but this tablet has no SD Card slot...might that require slightly different steps than what you outlined?
Click to expand...
Click to collapse
I'm sure he meant internal storage.
Is there a way to do this without adb? I'm sort of new to adb....any help would be greatly appreciated. Ty
Sent from my SAMSUNG-SGH-T989 using xda premium
jorge_culv said:
Not to be a jackass or anything, but this tablet has no SD Card slot...might that require slightly different steps than what you outlined?
Click to expand...
Click to collapse
What he wrote about pushing SU to /sdcard is correct. I have a Transformer Prime and ASUS called the internal storage /sdcard, which is a little counter intuitive. I presume the same situation exists with the Nexus 7.
paddycr said:
What he wrote about pushing SU to /sdcard is correct. I have a Transformer Prime and ASUS called the internal storage /sdcard, which is a little counter intuitive. I presume the same situation exists with the Nexus 7.
Click to expand...
Click to collapse
This is correct. There is no emmc internal storage. Its just called sdcard
Sent from my Galaxy Nexus using xda app-developers app
movieaddict said:
Is there a way to do this without adb? I'm sort of new to adb....any help would be greatly appreciated. Ty
Sent from my SAMSUNG-SGH-T989 using xda premium
Click to expand...
Click to collapse
Umm, this no way to do this without adb. I'm working on a one click script which i will be posting later. I am currently in IO Sessions and should have it in the next couple of days.
But an answer, again, no, there isn't. You need to download the sdk, and install the tools. then just cd to platform-tools, and use adb like i said. If your in windows, use adb.exe then the arguments, but if your in linux, just use ./adb. Same thing with fastboot.
khaytsus said:
Any ugly splash screens indicating it has been unlocked?
Click to expand...
Click to collapse
Ya, there is, its the Google logo with the unlocked sign at the bottom, just like the galaxy nexus.
FadedLite said:
Umm, this no way to do this without adb. I'm working on a one click script which i will be posting later. I am currently in IO Sessions and should have it in the next couple of days.
But an answer, again, no, there isn't. You need to download the sdk, and install the tools. then just cd to platform-tools, and use adb like i said. If your in windows, use adb.exe then the arguments, but if your in linux, just use ./adb. Same thing with fastboot.
Click to expand...
Click to collapse
TY very much faded, looking forward to ur one click script!
what exactly does he fastboot OEM unlock do? just curious
Sent from my Amazon Kindle Fire using xda premium
smirkis said:
what exactly does he fastboot OEM unlock do? just curious
Sent from my Amazon Kindle Fire using xda premium
Click to expand...
Click to collapse
It tells fastboot to oem unlock the device.
Sent from my GT-P3113 using xda app-developers app
FadedLite said:
This is correct. There is no emmc internal storage. Its just called sdcard
Click to expand...
Click to collapse
I stand corrected, thanks and +1 for setting me straight!
stickmount?
Can someone rooted please test if stickmount works.
Thanks
Guide* and just wait there will be a one click root for this device
Sent from my HTC Vision using xda app-developers app
mintaeroboy said:
Guide* and just wait there will be a one click root for this device
Sent from my HTC Vision using xda app-developers app
Click to expand...
Click to collapse
Ya, that's me trying to write it while trying to take notes during a seminar at IO haha
But ya, I'm working on it right now.
I'm new to the tablet, so this maybe a silly question, but is it possible to use 4ext for recovery instead of CWM? I like the 4ext a lot more for my HTC Glacier.
what would unlocking do? isnt that for phones so you can put other simcards??
r0mmel said:
what would unlocking do? isnt that for phones so you can put other simcards??
Click to expand...
Click to collapse
It is technically "unlocking the boot loader" but unlocking was short and sweet for the title.
Sent from my Galaxy Nexus using xda app-developers app
[GUIDE]
Sent from my Xoom using xda premium
Hello everyone! I have a really stupid question, but here it goes... I have crappy hearing so I can't use my nexus 4 with its factory volume. I figured out how to increase the volume with a simple build.prop edit. My question is how can I simply unroot the device after making my edits without restoring back to stock. I don't like to leave that security door hanging wide open. All my search results about unrooting seem to be for prepping a device for a warranty return or just going full stock. Before anyone says "just run cm10" since it has a toggle and its better anyway, let me say that I don't want to for this device. I run and love cm on my gs3 and n7, but I want my n4 to be stock so it gets the new software updates from Google. My gs3 is my main phone, the n4 is my toy.
Sent from my Nexus 7 using Tapatalk 2
I really do not think you can unroot WITHOUT factory restore.
Madalinsuny said:
I really do not think you can unroot WITHOUT factory restore.
Click to expand...
Click to collapse
of course you can, either use the easy way of opening supersu going to settings and picking full unroot or by issuing these commands from a terminal with adb:
adb shell su -c "mount -o rw,remount /system"
adb shell su -c "rm /system/bin/su"
adb shell su -c "rm /system/app/Superuser.apk"
Dude that's awesome, thank you. I had doubts that unroot to work because, well how can a running program completely remove itself. Removing superuser via titanium backup crossed my mind, but then again I just wasn't sure it would fully clear it out. I well def be using your adb recommended commands. Thanks again!
Sent from my Nexus 7 using Tapatalk 2
Hi! Can I retore data from my bricked TF300T from internal memory somehow? I was storing photos on device memory on my Asus TF300T and now its bricked. I need to restore these photos, my girlfriend has something like 1000 of them from her trip to Caracas. Its very important for her. I already managed to connect the device through fastboot and I launched adb in cmd. What should I do next? Please help me guys
koperkowy said:
Hi! Can I retore data from my bricked TF300T from internal memory somehow? I was storing photos on device memory on my Asus TF300T and now its bricked. I need to restore these photos, my girlfriend has something like 1000 of them from her trip to Caracas. Its very important for her. I already managed to connect the device through fastboot and I launched adb in cmd. What should I do next? Please help me guys
Click to expand...
Click to collapse
As you have adb access, you can use adb pull to retrieve the files:
adb pull device_path local_path
For example:
adb pull /sdcard/photos/photo001.jpg photos/
You probably need to do that file-by-file, though I never tried a directory. Some shell scripting might help.
Sent from my TF300T using Tapatalk
Is there an easier way to copy them all? It will be pretty hard to copy 1000 photos one by one ;/
koperkowy said:
Is there an easier way to copy them all? It will be pretty hard to copy 1000 photos one by one ;/
Click to expand...
Click to collapse
How's THIS?
koperkowy said:
Is there an easier way to copy them all? It will be pretty hard to copy 1000 photos one by one ;/
Click to expand...
Click to collapse
Well, the trick is to use shell scripting, like mentioned. For example on Linux, something like:
Code:
adb shell ls /sdcard/photos/ >filelist.txt
for p in $(cat filelist.txt); do adb pull /sdcard/photos/$p photos/; done
There should be similar scripting capabilities in Windows, but never used those.
Or you can use Cygwin with above lines.
Sent from my TF300T using Tapatalk
Or better
adb pull /storage/sdcard/photos/. ~
Sent from my iPhone using Tapatalk
enedil said:
Or better on GNU/Linux
adb pull /storage/sdcard/photos/. ~
Click to expand...
Click to collapse
Oh, true, with an up-to-date adb you can indeed pull a directory. Either older versions didn't support that, or I never noticed.
Should work on Windows as well.
Sent from my TF300T using Tapatalk
f69m said:
Oh, true, with an up-to-date adb you can indeed pull a directory. Either older versions didn't support that, or I never noticed.
Should work on Windows as well.
Sent from my TF300T using Tapatalk
Click to expand...
Click to collapse
On Linux cuz there's ~ instead of something like
C:\Users\Admin\
Wysłane z mojego GT-P5100
Hi everyone,
Long story short, my device wont boot. Ive got TWRP. I have the backup on my computer, but when i plug my phone in, i cant move the backup to my TWRP Backup directory because there is no way of getting to the internal storage. Im a noob with adb and i have no clue how to use it so can someone help with that. Thanks! :crying:
adb shell
mount /data
exit
adb push c:\users\provickers\desktop\backupfile /data/media/0/whereverTWRPbackupsGO
Sent from my Nexus 5 using Tapatalk
http://forum.xda-developers.com/showthread.php?t=2513701
[TUTORIAL] How to flash a factory image | Return to stock | Unroot/SAVE your Nexus 5
sent from my HAMMERHEAD
CRIME INC. said:
http://forum.xda-developers.com/showthread.php?t=2513701
[TUTORIAL] How to flash a factory image | Return to stock | Unroot/SAVE your Nexus 5
sent from my HAMMERHEAD
Click to expand...
Click to collapse
Not really an option...
rootSU said:
adb shell
mount /data
exit
adb push c:\users\provickers\desktop\backupfile /data/media/0/whereverTWRPbackupsGO
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
that means nothing to me. can you write that in super duper nooby language please
Just read the adb stickie in q&a then
Sent from my Nexus 5 using Tapatalk
rootSU said:
Just read the adb stickie in q&a then
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I do adb shell
then mount /data
and it says: mounting /dev/block/mmcblk0p28 on /data failed: device or resource busy
Im currently in the home screen of TWRP
Maybe its already mounted by twrp in the mounts menu. If it is, skip that step. If not, mount in that menu
Sent from my Nexus 5 using Tapatalk
rootSU said:
Maybe its already mounted by twrp in the mounts menu. If it is, skip that step. If not, mount in that menu
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
alright thanks alot, hopefully it works!
rootSU said:
Maybe its already mounted by twrp in the mounts menu. If it is, skip that step. If not, mount in that menu
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Can u tell me where the twrp backups directory is? Coz obviously i cant get into my phone
I don't use twrp myself so im not sure where it is. If you use the ls command..... (thats LS in lowercase)
Eg....
ls /data/media/0
That will list all the directories on sdcard. I assume there will be a folder called twrp there. Within there not sure. But you can use ls to keep drilling down.
ls /data/media/0/twrp
I think there's a backup folder with dated folsers within it.
Take a twrp backup now and see....
Sent from my Nexus 5 using Tapatalk
Yes, the path's correct... TWRP makes a backup in /data/media/0/TWRP/3282387328 (random string)...
So, you will need to push the backup folder to /data/media/0/TWRP/... Now it will show up in the restore option.
vin4yak said:
Yes, the path's correct... TWRP makes a backup in /data/media/0/TWRP/3282387328 (random string)...
So, you will need to push the backup folder to /data/media/0/TWRP/... Now it will show up in the restore option.
Click to expand...
Click to collapse
Presuming he has the content of the random string folder, but not the folder itself, can he create a random string folder manually? Or must he take a backup and use that folder?
Sent from my Nexus 5 using Tapatalk
rootSU said:
Presuming he has the content of the random string folder, but not the folder itself, can he create a random string folder manually? Or must he take a backup and use that folder?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Like you, I've stuck with Philz for a long long time now.. Can't say for sure about twrp. I guess there's no harm in trying to make a folder and check.
However, sometimes while doing that, I faced a md5 mismatch error in twrp. But that's on a HTC One X.. No idea whether twrp has changed this since then.
rootSU said:
I don't use twrp myself so im not sure where it is. If you use the ls command..... (thats LS in lowercase)
Eg....
ls /data/media/0
That will list all the directories on sdcard. I assume there will be a folder called twrp there. Within there not sure. But you can use ls to keep drilling down.
ls /data/media/0/twrp
I think there's a backup folder with dated folsers within it.
Take a twrp backup now and see....
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I get "Permissions Denied". This is probably why nothing is working! What can i do?
ProVickers said:
Can u tell me where the twrp backups directory is? Coz obviously i cant get into my phone
Click to expand...
Click to collapse
/sdcard/TWRP/BACKUPS/your device serial number
Find the serial number in settings, about phone, status
Sent from my Nexus 5
Can't get to settings without booting phone.
OP can we keep this to one thread please? Its going to get confusing
Sent from my Nexus 5 using Tapatalk
i dont know why people dont do this, maybe they are worried of the little bit of space it takes in their storage, but i ALWAYS, since feb of 2009, keep a copy of my current rom and kernel in my storage. if i ever mess up doing anything, i always have my rom/kernel to flash again. no relying on computers(as im rarely around them). also, i always have one nandroid backup in my storage, just in case. it might not always be the most recent, but its there just in case.
@ProVickers
I'm not 100% sure of this but adb in TWRP doesn't work everywhere... You need to go to Advanced-Sideload.. then swipe right and then fire the adb push command..
rootSU said:
Can't get to settings without booting phone.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
He can get the serial number from the bootloader, right?
simms22 said:
i dont know why people dont do this, maybe they are worried of the little bit of space it takes in their storage, but i ALWAYS, since feb of 2009, keep a copy of my current rom and kernel in my storage. if i ever mess up doing anything, i always have my rom/kernel to flash again. no relying on computers(as im rarely around them). also, i always have one nandroid backup in my storage, just in case. it might not always be the most recent, but its there just in case.
Click to expand...
Click to collapse
Agreed.
Although i always have my rom, kernel and titanium backup. My nandoids move to my NAS as i don't have the space. However, I never modify anything that may require a restore when I'm away from home
Sent from my Nexus 5 using Tapatalk
I need your help, my phone decided to remove all of my files. As far as I know as long as something is not overwritten it's not really ever gone right? Is there any way to restore my lost data? I will do anything!
How did the data get deleted and are you rooted?
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
How did the data get deleted and are you rooted?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I am rooted. I browsed my phone files through my pc and saw what uneeded files I can remove, I saw a folder named storage but on propeties it only showed 38mb and only had one folder so I didn't even assume it is my storage folder. As well as that I have never ever had my storage folder inside my storage folder when I mounted my phone on my pc.
There's a lot more there than you saw on your pc. I'd chalk it up to a learning experience and start over. I don't think you're going to be able to recover everything
Sent from my Nexus 5 using XDA Free mobile app
[info] Storage: Nexus 5 Data (info / loss / recovery / prevention)
http://forum.xda-developers.com/showthread.php?t=2534010
Sent from my Nexus 5 using Tapatalk
jd1639 said:
There's a lot more there than you saw on your pc. I'd chalk it up to a learning experience and start over. I don't think you're going to be able to recover everything
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
There has to be a way to restore the data, I didn't do anything unusual. My storage folder itself shouldn't appear in the ./ folder when I open the phone through the pc. This can happen to both simple users and expert. I got false information about the contents of this folder which led me to delete it. This is just the media files not /data or /system or anything.
Eden3319 said:
There has to be a way to restore the data, I didn't do anything unusual. My storage folder itself shouldn't appear in the ./ folder when I open the phone through the pc. This can happen to both simple users and expert. I got false information about the contents of this folder which led me to delete it. This is just the media files not /data or /system or anything.
Click to expand...
Click to collapse
Read the post rootSU linked you to. You may be able to recover the data. But it's a very involved process and as rootS said it's not for the faint of heart
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
Read the post rootSU linked you to. You may be able to recover the data. But it's a very involved process and as rootS said it's not for the faint of heart
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I am trying to do this now... wish me luck
rootSU said:
[info] Storage: Nexus 5 Data (info / loss / recovery / prevention)
http://forum.xda-developers.com/showthread.php?t=2534010
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Hey thanks for your help, I have installed all of the programs required and my phone is required in adb. I opened the Cygwin and entered the commands but it just wrote command not found. I also tried to add the destination at the beginning but it did not work either. How do I open adb using cygwin?
If I were you, try disk digger
Sent from my Nexus 5 using Tapatalk
rootSU said:
If I were you, try disk digger
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
disk digger, even pro, while it can restore alot of file types in cannot restore all of them... at least according to the play store page.
True but Its easier. I can't help you with cygwin so you're on your own there.
Sent from my Nexus 5 using Tapatalk
Eden3319 said:
Hey thanks for your help, I have installed all of the programs required and my phone is required in adb. I opened the Cygwin and entered the commands but it just wrote command not found. I also tried to add the destination at the beginning but it did not work either. How do I open adb using cygwin?
Click to expand...
Click to collapse
Do you have busybox instated on your device. Also, make sure you know what partition you want to recover. The one in the example may not be what you want. Google nexus 5 partitions xda.
Sent from my Nexus 5 using XDA Free mobile app
rootSU said:
True but Its easier. I can't help you with cygwin so you're on your own there.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
You don't know how to operate it? After all you wrote the thread
Eden3319 said:
You don't know how to operate it?
Click to expand...
Click to collapse
I've never lost all my data. It's all backed up. Yeah I can use cygwin, but I can't test it to help because I don't have windows at home.
Eden3319 said:
After all you wrote the thread
Click to expand...
Click to collapse
No I didn't! I only wrote the link I gave you, not the links within that thread.
Sent from my Nexus 5 using Tapatalk
jd1639 said:
Do you have busybox instated on your device. Also, make sure you know what partition you want to recover. The one in the example may not be what you want. Google nexus 5 partitions xda.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I managed to work the adb issue out, but I'm returned with a 0 bytes file which is useless for me. I saw that issue on the thread as well but found no solution yet.
Alright I gave up the idea to restore it... although I lost some important files this is just too much work to get it back. What I wanna do now is create a task using Tasker to backup my entire device to my pc through wifi on the night (only changed files everytime). I know how to create the profile, but does anybody know how to create the task?
Eden3319 said:
Alright I gave up the idea to restore it... although I lost some important files this is just too much work to get it back. What I wanna do now is create a task using Tasker to backup my entire device to my pc through wifi on the night (only changed files everytime). I know how to create the profile, but does anybody know how to create the task?
Click to expand...
Click to collapse
yeah, I do this. Firstly I'd recommend foldersync. It's a stand alone app but it also plugs into Tasker. Take a look
I do mention this in the thread I linked you to.
Sent from my Nexus 5 using Tapatalk
rootSU said:
yeah, I do this. Firstly I'd recommend foldersync. It's a stand alone app but it also plugs into Tasker. Take a look
I do mention this in the thread I linked you to.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Ok, I got it working! Thank you very much for your help!
Eden3319 said:
Ok, I got it working! Thank you very much for your help!
Click to expand...
Click to collapse
No probs!
Enjoy your new syncing