Major Update for the Sony Smartwatch 2 Brings DND and More

With the wearables landscape now dominated by Android Wear and Pebble, its … more

How to Root Android Wear 5.0.1 Lollipop Devices – XDA TV

The Lollipop update for Android Wear devices has hit the market and people are … more

Android 5.0.2 and New Factory Images For Nexus 7 (Wi-Fi) Available

Android 5.0 is has been publicly available since early November, and the … more

Github Tutorial App Shows You How to Use… Github

Github can get pretty complicated and using it can become quite daunting, especially … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] ADB "Permission Denied"

OP mrpanic7

14th November 2010, 06:01 AM   |  #11  
Senior Member
Thanks Meter: 20
 
112 posts
Join Date:Joined: Apr 2007
Quote:
Originally Posted by mrpanic7

So typing su works and the message terminal emulator is granted permissions, but then any other commands dont work

Sent via MyTouch 4G

I ran into this same issue and it drove me crazy. I would not get prompted by the phone to allow su permissions when going through ADB- kept getting "permission denied"

I did finally get SU permissions through ADB, but I dont recall exactly what I did to get prompted to allow access.

I will try to retrace what I did... believe I had ADB shell running (without su permissions "$"), but I also had terminal emulator running on my phone. I entered the su command on my phone, then I did the same from ADB shell.

Finally the phone prompted me to allow access - accepted - and no problems from that point.

Basically, I just had to keep f'n with it.
14th November 2010, 06:21 AM   |  #12  
mrpanic7's Avatar
OP Senior Member
Thanks Meter: 28
 
547 posts
Join Date:Joined: Apr 2010
More
Yeah thats my problem exactly. Yeah I appreciate any assistance you can provide. I mean my pc reads my device when I adb devices command, but it wont allow nothing past that. Please keep me informed on anything I can try, also im not thag most fluent with using sdk/adb stuff so any additional info with using that is much appreciated thanks again fellow enthusiasts!

Sent via MyTouch 4G
14th November 2010, 07:00 AM   |  #13  
Senior Member
Thanks Meter: 20
 
112 posts
Join Date:Joined: Apr 2007
Have you tried to bacup su, then uninstall su. Reinstall su, Then try it again. MIGHT work



Sent from my HTC Glacier using XDA App
14th November 2010, 09:26 PM   |  #14  
mrpanic7's Avatar
OP Senior Member
Thanks Meter: 28
 
547 posts
Join Date:Joined: Apr 2010
More
yeah i re-installed su and didnt help, @dbiggs-what can i do thru adb to initiate the su permissions to the device like you did?
14th November 2010, 10:20 PM   |  #15  
Senior Member
Thanks Meter: 20
 
112 posts
Join Date:Joined: Apr 2007
I wish I could help more specifically, but I dont remember exactly what I did that allowed me access- just kept trying

Maybe try this...(dont be offended if any of these steps are ones that you already know or have tried, I am just trying to be as thorough as I can from memory)

Open up super user, then go back to the terminal emulator and enter the "su" command to gain superuser permissions.

Plug the phone into the computer, select charge only, enter ADB through tools (probably "C:\Android\tools" if your Android folder is in the root of your harddrive).

from the prompt C:\Android\Tools, enter:
adb shell

then you will get the "$" that you mentioned.

enter the "su" command, and hopefully you will get prompted to allow superuser permissions for ADB.

I am pretty sure these are the steps that I took, just had to keep trying.

Lemme know how it works out.
14th November 2010, 10:55 PM   |  #16  
Senior Member
Flag Atlanta, GA
Thanks Meter: 11
 
251 posts
Join Date:Joined: Dec 2009
More
I see some people here asking about getting su privileges in adb, however I do have SU and I can run su in adb shell. My problem is that I am trying to push some files and use Android Commander. I can't run "adb remount" (remount failed: Operation not permitted), I can't copy files in Android Commander (it's says that I do not have ROOT)

How can I get Read-Write in ADB ??


Edit: Oh, now I got it, I don't have root in ADB, when i type "adb root" it says "adbd cannot run as root in production builds"
Last edited by QUEDRO; 14th November 2010 at 11:07 PM. Reason: edit
19th November 2010, 08:52 PM   |  #17  
kaiso's Avatar
Senior Member
Flag MD
Thanks Meter: 21
 
189 posts
Join Date:Joined: Mar 2007
More
Did anyone figure this out? I'm being denied on TE and PC also.
22nd November 2010, 02:38 AM   |  #18  
Senior Member
Thanks Meter: 20
 
112 posts
Join Date:Joined: Apr 2007
I have managed to be able to get around this issue by going into recovery mode on my phone.

If the end result that you are looking for is to adb push files, then the easier way to do this is to flash clockwork recovery to your phone, then start your phone into recovery mode, mount system and you should be able to push files no problem.

Lemke know if this helps.

Sent from my HTC Glacier using XDA App
22nd November 2010, 03:49 AM   |  #19  
Senior Member
Thanks Meter: 381
 
696 posts
Join Date:Joined: Jun 2010
Donate to Me
Quote:
Originally Posted by mrpanic7

hey guys need help so my Mytouch 4G updated and perm rooted, and i keeep gettin gthe permission denied everytime i try and execute a command thru adb thru my pc or on the Terminal Emulator. Did something not go thru on root or am i missing something simple? any help would be greatly appreciated. Thanks

I'm pretty sure your issue has nothing to do with SU access. Most likely, your phone is simply mounting as r/o (read only) when it boots up, so ADB is unable to change anything to the system folder. The easiest way to mount as r/w (Read/Write) is to go into Root Explorer and click the r/w button in the top right corner, and then go to ADB and see if it will allow you to do the same commands that it previously denied.
I have the same issue with my phone mounting as r/o by default, but I haven't been able to figure out how to automount as r/w on the MT4G. If anyone knows how, please share.
24th December 2010, 05:48 PM   |  #20  
Member
Thanks Meter: 7
 
86 posts
Join Date:Joined: Sep 2009
I had this same issue, on several android phones including MT4G. Here is how I fixed it.

1. Connect phone via usb (I was in "charge only" mode, not disk drive mode)
2. Open command prompt and navigate to the android tools folder
3. type "adb shell"
4. MAKE SURE YOUR PHONE SCREEN IS ON AND UNLOCKED
- The above step is very important otherwise you will not get the SU prompt
5. At the "$" prompt type "su"
6. Your phone should now display the SU screen asking you to allow the connection root access.
7. Once you allow it, you are golden.

I did this on a windows pc. Hope it helps.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes