DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 8 of 8

Thread: Having trouble with ADB shell (permission denied)...what am I doing wrong?

  1. Master Droid
    r314bd's Avatar
    Member #
    32744
    Join Date
    Jan 2010
    Posts
    866
    Liked
    55 times
    Phone
    Droid 4
    #1

    Having trouble with ADB shell (permission denied)...what am I doing wrong?

    I rooted properly I think, used the one click update.zip and I now have the Superuser Permissions icon in my apps list. I am trying to get the wireless tether and I'm following this tutorial: http://www.droidforums.net/forum/dro...oot-users.html

    I downloaded the Android Developer Kit for 2.0.1 and I can get to the ADB shell from my command prompt. I added "C:\Program Files (x86)\Android\Tools" to the PATH in the "Environmental Variables" section of My Computer properties (it's where I copied mine, saw this on a YouTube tutorial) My Droid is plugged in to my laptop and USB debugging is on.

    What am I doing wrong? I can't believe I'm getting stuck on the very first step
    Last edited by r314bd; 05-05-2013 at 05:35 PM.
  2.  
     
     
     
  3. Droid Sensei
    KZIWarrior's Avatar
    Member #
    21812
    Join Date
    Dec 2009
    Location
    Nashville, TN
    Posts
    2,634
    Liked
    11 times
    Phone
    SGS3
    #2
    After connecting/launching adb shell did your ninja come up and prompt you to give SU permission to the app? Did you click 'remember'?
    You are right to be wary. There is much bullcrap. Be wary of me too, because I may be wrong. Make up your own mind after you evaluate all the evidence and the logic. - Mark Rippetoe
  4. Beta Team
    thebowers's Avatar
    Member #
    8519
    Join Date
    Nov 2009
    Location
    Iowa
    Posts
    2,548
    Twitter
    dabowerman
    Phone
    Rooted Droid, OC @ 1.1 Ghz
    DroidForums.net Theme Developer
    Premium Member
    #3
    Download Terminal Emulator and type su in it. Like said before about a pop-up box set to remember. If u don't get the prompt u don't have root. Look for a correct root update.zip
    If you like what I do, thanks



    Your can follow me as follows

    @dabowerman - Twitter
    Derek Bower - G+ - this is where I will be @ the most and where stuff gets released first.

    Theming Guides that might come in handy
    Theming Guide for Progress Bar
    Notification Text Color Change (How to)
    Theming Guide for System Text
  5. Master Droid
    r314bd's Avatar
    Member #
    32744
    Join Date
    Jan 2010
    Posts
    866
    Liked
    55 times
    Phone
    Droid 4
    #4
    Well I figured out what the problem was...I wasn't in my SDK->tools folder lol. I changed the path and didn't get the message any more.

    However, this is still complicated as hell and half the commands in the tutorials aren't working properly for me. I give up, for now. Maybe in a few days I'll try again lol.
  6. Droid Ninja
    52brandon's Avatar
    Member #
    28679
    Join Date
    Jan 2010
    Posts
    1,021
    Liked
    42 times
    Phone
    motorola droid
    #5
    what are you using adb shell for? You can just put the wifi tether .apk on your sd, open it with astro and install...


    ETA: dont give up on learning adb shell, its amazingly useful for basically everything. But if the wifi tether is your #1 priority, it can be done the way I said and you can take your time figuring out adb shell
  7. Master Droid
    roberj13's Avatar
    Member #
    28166
    Join Date
    Jan 2010
    Location
    Austin, TX
    Posts
    878
    Phone
    Droid Incredible
    #6
    Ya, for some reason, I had a hard time picking up adb, was not paying attention to the details I guess. One time I would be using adb commands in shell, then I'd 'accidentally' figure out what I did wrong, so I never learned what I was doing wrong. It would literally go like this...

    adb shell
    su
    adb push ......
    'hmmm, scratch head...'
    adb push.......
    exit
    adb push....
    '?why did it work that time..'
    mount -o remount,rw......
    'oh...'
    su
    mount -o re.....
    'why is this not working now'
    'oh...'
    adb shell
    su
    mount -o remount......
    FINALLY..
  8. Master Droid
    r314bd's Avatar
    Member #
    32744
    Join Date
    Jan 2010
    Posts
    866
    Liked
    55 times
    Phone
    Droid 4
    #7
    Quote Originally Posted by roberj13 View Post
    Ya, for some reason, I had a hard time picking up adb, was not paying attention to the details I guess. One time I would be using adb commands in shell, then I'd 'accidentally' figure out what I did wrong, so I never learned what I was doing wrong. It would literally go like this...

    adb shell
    su
    adb push ......
    'hmmm, scratch head...'
    adb push.......
    exit
    adb push....
    '?why did it work that time..'
    mount -o remount,rw......
    'oh...'
    su
    mount -o re.....
    'why is this not working now'
    'oh...'
    adb shell
    su
    mount -o remount......
    FINALLY..
    LMAO that's exactly what I went through haha

    Luckily I found ChevyNo1's exe file which automated the whole thing...although I wish I had found it 4 hours ago
  9. Droid Ninja
    Se7enLC's Avatar
    Member #
    5148
    Join Date
    Nov 2009
    Posts
    1,263
    Liked
    6 times
    Phone
    Samsung Galaxy Nexus
    #8
    Quote Originally Posted by roberj13 View Post
    adb shell
    su
    adb push ......
    You can't run adb from inside adb. Does that help explain it? "adb shell" is a command you run to get a terminal on the droid. From that terminal, you can run commands on the droid. You can't run adb from the droid, because adb is on the computer, not the droid.

    'hmmm, scratch head...'
    adb push.......
    exit
    adb push....
    '?why did it work that time..'
    It worked that time because you weren't already in adb when you tried to run an adb command.

    mount -o remount,rw......
    'oh...'
    su
    mount -o re.....
    'why is this not working now'
    'oh...'
    adb shell
    su
    mount -o remount......
    FINALLY..
    "mount" is a command you run to remount the droid filesystem as read/write (so you can write to it). You run that from the droid, so you need to be in adb shell (and root) to do it - so it only worked after you ran "adb shell" and "su"

    It helps a lot to know what the commands you're running are doing:

    "adb shell" -> using a computer, open up a remote terminal to run commands on the droid (things you type after this are run on the droid, until you type "exit")

    "adb push" -> push a file from the computer to the droid.

    "su" -> become root (give yourself admin access). This will pop up a window on the droid to allow/deny. This needs to be run on the droid (through adb shell or in terminal emulator)

    "mount -o remount,rw /system" -> remount the filesystem as read/write. This allows you to write to it (normally it is read-only)

    "mount -o remount,ro /system" -> remount the filesystem as read-only. This makes it so you can no longer write to it.

    "sync" -> synchronize the filesystem. This means that it will finish writing whatever it is currently writing. Not really needed, but it is a good percaution to make sure that whatever you were changing has completed before rebooting (you don't want half a corrupt file!)

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. ADB Shell SU - Permission Denied - On a Rooted Phone
    By hyzdufan in forum Android Hacks and Help
    Replies: 10
    Last Post: 04-24-2011, 04:18 PM
  2. Permission Denied
    By Shmooze in forum Android Hacks and Help
    Replies: 11
    Last Post: 01-29-2010, 11:11 AM
  3. permission denied in adb shell
    By searayman in forum Android Hacks and Help
    Replies: 13
    Last Post: 01-24-2010, 08:42 PM
  4. I get permission denied in adb
    By bspau in forum Android Hacks and Help
    Replies: 7
    Last Post: 01-12-2010, 02:35 PM
  5. ADB Push -- Permission Denied
    By vpshockwave in forum Android Hacks and Help
    Replies: 13
    Last Post: 01-08-2010, 10:27 PM

Search tags for this page

adb permission denied
,
adb push permission denied
,
adb remount permission denied
,

adb shell permission denied

,

adb shell root

,
adb shell root permission denied
,
adb shell su permission denied
,
how to get shell root permission
,
permission denied adb shell
,
shell root permission
Click on a term to search our site for related topics.
Find us on Google+