How To Use ADB: All Commands and Options

Discussion in 'Android Hacks and Help' started by alquimista, Dec 5, 2009.

  1. maximuscr31

    maximuscr31 New Member

    Joined:
    Feb 14, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I am trying to get this to work on kubuntu 9.10. I am following sholes installation guide and this is apparently the area I am having a problem

    I am entering
    Is this correct? I am new to this side of things in linux. I hate adding a windows partition for such a stupid mistake on my part. Where am I going wrong?

    this is what I get when i try the adb command

     
  2. serveitup911

    serveitup911 Member

    Joined:
    Dec 19, 2009
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    I also just get adb command not found. Running Ubuntu 9.10. Why does this have to be so complicated, manually editing .bashrc and crap. Can anyone point me to a tutorial for how to get adb commands working in linux? I have the sdk installed, but what do I do next so I can use commands?

    Any help is appreciated.
     
  3. B-Unit

    B-Unit Member

    Joined:
    Mar 26, 2010
    Messages:
    305
    Likes Received:
    5
    Trophy Points:
    18
    Ratings:
    +5
    A tip for Windows users, if you find yourself using ADB alot, you can add the directory to your PATH system variable and the commands will run from anywhere in command prompt.
     
  4. wlscott

    wlscott New Member

    Joined:
    Mar 31, 2010
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I have been trying to find a way to load apps to my phone that I have downloaded to my laptop. I am deployed to a country that I have no service in, so I can't use the market. I think this ADB may be what I'm needing. I'm trying to get Astro over to my phone now so I can get different apps loaded to it.

    Will I be able to load apps to my phone from my computer with this?
     
  5. brando56894

    brando56894 Active Member

    Joined:
    Mar 9, 2010
    Messages:
    1,217
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New Jersey
    Ratings:
    +0
    I feel that the serial number part should be taken out of the first post since the -s flag isn't needed. I wasted about 10 minutes trying to get it to work when i just tried "adb shell" and it worked perfectly.

    As for finding your currently location pwd works better than using ls or ls -l to find your location, pwd's main function is to show your currentl working directory :D
     
  6. shocka2430

    shocka2430 Member

    Joined:
    Mar 20, 2010
    Messages:
    530
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    yes you could use adb to push apps to your phone, but you dont need to if you can connect your usb and choose mount on your phone. which i dont know since you dont have service. but if you can that is a whole lot easier then using the adb method just drag from your laptop onto your sdcard.
     
  7. kevdog

    kevdog Member

    Joined:
    Nov 14, 2009
    Messages:
    722
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    adb is great -- those that have a problem using it obviously didn't grow up using any type of command line and probably don't use any linux distro on a regular basis. End of rant.
     
  8. manningfan10

    manningfan10 Member

    Joined:
    Mar 30, 2010
    Messages:
    121
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    when i open adb the window pops up and just closes immediately. HELP!
     
  9. alfonso777

    alfonso777 New Member

    Joined:
    Aug 5, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0

    I am having this same problem except this is where I am getting stuck. I have my phone hooked up to the USB cable. Any ideas?

    C:\Documents and Settings\Owner> cd\
    C:\>Android\android-sdk-windows\tools\adb
    Android Debug Bridge version 1.0.26
    (plus crapload of adb stuff here)
    C:\>Android\android-sdk-windows\tools\adb shell
    error: device not found
     
  10. RnD_Solo

    RnD_Solo Member

    Joined:
    Aug 16, 2010
    Messages:
    170
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    has anyone been able to find the config file that tells what to start at boot up??? ive been going through directory after directory for the last 45 minutes and i cant find it..

    basically some apps i want to keep, i just dont want them to start when i boot the phone..i want them to boot when i start the app
     
  11. RnD_Solo

    RnD_Solo Member

    Joined:
    Aug 16, 2010
    Messages:
    170
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    btw...i dont know if this is right or not..but i "think" its possible to install on the sdcard in 2.1 if you use ADB to do it.
     
  12. aj8600

    aj8600 Member

    Joined:
    Aug 7, 2010
    Messages:
    263
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    is there a command to delete a folder or object?
     
  13. breedingh8

    breedingh8 Member

    Joined:
    Dec 27, 2010
    Messages:
    195
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Arizona
    Ratings:
    +2
    anyway i can pull /data from one unrooted device and push it to another deivce like two xooms?
    Trying to image alot of stock xoom's without unlocking Bootloader
     
    Last edited: Dec 5, 2011
  14. hackercore

    hackercore New Member

    Joined:
    Jul 31, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Current Phone Model:
    Moto X
    WARNING TO ALL

    THE ADB PROGRAM AND ITS PROTOCOL SHOULD BE USED WITH CAUTION...

    Adb is for developers ONLY. It should not be used by people who do not know basic BASH or CLI scripting... I have no idea what you guys are trying to do using ADB randomly on a rooted phone but... One command done wrong could delete your entire phone.

    Now that I've warned you:
    1. MAKE SURE YOU HAVE ROOT.

    The reason people get 'opendir permission denied' or 'permission denied' in general is because they have no root.

    2. Cd to the directory.
    You cannot just type "/Users/martinllanos/Desktop/android-sdk-mac/tools/adb"
    You must type "cd /Users/martinllanos/Desktop/android-sdk-mac/tools/adb"
    NOTE: ADB HAS MOVED TO "/sdk/platform-tools"

    3. Open ADB with ./adb or adb.exe

    4. Follow instructions in quote...

    PLEASE PLEASE PLEASE, TAKE CAUTION... USE ONLY IF YOU ARE A DEVELOPER...
     
Search tags for this page
adb command
,

adb commands

,
adb permission denied
,
adb reboot
,
adb reboot bootloader
,
adb reboot recovery
,
adb shell commands
,

how to use adb

,
how to use adb shell
,
using adb