Welcome to the Atrix Forum - Motorola Atrix Forum.

Register ButtonIf this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

[Guide] ADB For Beginners - General Commands & Descriptions

This is a discussion on [Guide] ADB For Beginners - General Commands & Descriptions within the Motorola Atrix Hacks forums, part of the Motorola Atrix Development category; All these commands can be accessed from within ADB just by typing HELP (in lowercase) but, once you are in the middle of something in ...

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
Like Tree2Likes

Thread: [Guide] ADB For Beginners - General Commands & Descriptions

  1. #1
    Rescue Squad
    Member #
    133
    Join Date
    Feb 2011
    Location
    Laramie, Wyoming
    Posts
    1,894
    Liked
    486 times

    Cool [Guide] ADB For Beginners - General Commands & Descriptions

    All these commands can be accessed from within ADB just by typing HELP (in lowercase) but, once you are in the middle of something in ADB, its a royal pain to have to bring this up again. Much easier to have them listed out here and be able to switch back and forth rather that constantly scroll a window that you are limited to how large you can make it.

    This is a General List of ADB Commands, that should help beginners familiarize themselves with ADB Functions.
    All of these commands are entered from within an ADB Shell, and some may be used in conjunction with eachother for more complex tasks!

    Quote Originally Posted by Ap0c View Post
    Adb shell lets you use standard linux commands like 'rm' , so you could pull then remove from the phone. Actually, the Atrix ships with busybox, so you can basically use almost all common shell commands either one at a time, or multiples using the ';' separator. Adb is sweet.

    Commands:



    -d - directs command to the only connected USB device. returns an error if more than one USB device is present.

    -e - directs command to the only running emulator. returns an error if more than one emulator is running.

    -s <serial number> - directs command to the USB device or emulator with the given serial number. Overrides ANDROID_SERIAL environment variable.

    -p <product name or path> - simple product name like 'sooner', or a relative/absolute path to a product out directory
    like 'out/target/product/sooner'. If -p is not specified, the ANDROID_PRODUCT_OUT environment variable is used, which must be an absolute path.

    devices - list all connected devices

    connect <host>[:<port>] - connect to a device via TCP/IP. Port 5555 is used by default if no port number is specified.

    disconnect [<host>[:<port>]]
    - disconnect from a TCP/IP device. Port 5555 is used by default if no port number is specified. Using this ocmmand with no additional arguments will disconnect from all connected TCP/IP devices.

    device commands:
    adb push <local> <remote> - copy file/dir to device

    adb pull <remote> [<local>] - copy file/dir from device

    adb sync [ <directory> ] - copy host->device only if changed
    (-l means list but don't copy)
    (see 'adb help all')

    adb shell - run remote shell interactively

    adb shell <command> - run remote shell command

    adb emu <command> - run emulator console command

    adb logcat [ <filter-spec> ] - View device log

    adb forward <local> <remote> - forward socket connections. forward specs are one of:
    tcp:<port>
    localabstract:<unix domain socket name>
    localreserved:<unix domain socket name>
    localfilesystem:<unix domain socket name>
    dev:<character device name>
    jdwp:<process pid>
    (remote only)

    adb jdwp - list PIDs of processes hosting a JDWP transport

    adb install [-l] [-r] [-s] <file> - push this package file to the device and install it.
    ('-l' means forward-lock the app)
    ('-r' means reinstall the app, keeping its data)
    ('-s' means install on SD card instead of internal storage)

    adb uninstall [-k] <package> - remove this app package from the device ('-k' means keep the data and cache directories)

    adb bugreport - return all information from the device that should be included in a bug report.

    DATAOPTS:
    (no option) - don't touch the data partition
    -w - wipe the data partition
    -d - flash the data partition

    scripting:
    adb wait-for-device - block until device is online
    adb start-server - ensure that there is a server running
    adb kill-server - kill the server if it is running
    adb get-state - prints: offline | bootloader | device
    adb get-serialno - prints: <serial-number>
    adb status-window - continuously print device status for a specified device
    adb remount - remounts the /system partition on the device read-write
    adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
    adb reboot bootloader - reboots the device into the bootloader
    adb root - restarts the adbd daemon with root permissions
    adb usb - restarts the adbd daemon listening on USB
    adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port

    networking:
    adb ppp <tty> [parameters] - Run PPP over USB.
    Note: you should not automatically start a PPP connection.
    <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
    [parameters] - Eg. defaultroute debug dump local notty usepeerdns

    adb sync notes:
    adb sync [ <directory> ] <localdir> can be interpreted in several ways:

    - If <directory> is not specified, both /system and /data partitions will be updated.

    - If it is "system" or "data", only the corresponding partition is updated.

    environmental variables:
    ADB_TRACE - Print debug information. A comma separated list of the following values
    1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp

    ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.

    ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.








    Last edited by G-Man; 08-17-2011 at 02:36 AM.
    Kyyser and das8nt like this.

    If you need help, and I appear to be offline, shoot me a msg on Gtalk, or PM me and I'll respond as soon as I possibly can!!

  2. #2
    Rescue Squad
    Member #
    649
    Join Date
    Mar 2011
    Location
    The great state of America!
    Posts
    4,697
    Liked
    423 times
    Nice nice! Can adb pull work as delete and cut?

    - Sam (tapped)
    - Sam

    I have much experience with unlocked bootloaders and custom ROMs on the original ATRIX. I will do my best to hold your hand through any problem, small or large, on any phone. Please open up a thread in the help section (or Rescue Squad section if your phone is in dire need) or PM me. I don't bite

  3. #3
    Rescue Squad
    Member #
    649
    Join Date
    Mar 2011
    Location
    The great state of America!
    Posts
    4,697
    Liked
    423 times
    This should probably be in the hacks section though*, mods?

    - Sam (tapped)
    - Sam

    I have much experience with unlocked bootloaders and custom ROMs on the original ATRIX. I will do my best to hold your hand through any problem, small or large, on any phone. Please open up a thread in the help section (or Rescue Squad section if your phone is in dire need) or PM me. I don't bite

  4. #4
    Super Moderator
    Member #
    9
    Join Date
    Jan 2011
    Posts
    103
    Liked
    11 times
    Quote Originally Posted by thekooliest View Post
    This should probably be in the hacks section though*, mods?

    - Sam (tapped)
    Done and stuck

    end of line...

  5. #5
    Rescue Squad
    Member #
    133
    Join Date
    Feb 2011
    Location
    Laramie, Wyoming
    Posts
    1,894
    Liked
    486 times
    Quote Originally Posted by thekooliest View Post
    Nice nice! Can adb pull work as delete and cut?

    - Sam (tapped)
    This im not sure of...

    If you need help, and I appear to be offline, shoot me a msg on Gtalk, or PM me and I'll respond as soon as I possibly can!!

  6. #6
    Rescue Squad
    Member #
    649
    Join Date
    Mar 2011
    Location
    The great state of America!
    Posts
    4,697
    Liked
    423 times
    Quote Originally Posted by G-Man View Post
    This im not sure of...
    I think help is reserved for questions though.

    - Sam (tapped)
    - Sam

    I have much experience with unlocked bootloaders and custom ROMs on the original ATRIX. I will do my best to hold your hand through any problem, small or large, on any phone. Please open up a thread in the help section (or Rescue Squad section if your phone is in dire need) or PM me. I don't bite

  7. #7
    Senior Member
    Member #
    1335
    Join Date
    Mar 2011
    Location
    Philly
    Posts
    107
    Liked
    31 times
    Quote Originally Posted by thekooliest View Post
    Nice nice! Can adb pull work as delete and cut?

    - Sam (tapped)
    Adb shell lets you use standard linux commands like 'rm' , so you could pull then remove from the phone. Actually, the Atrix ships with busybox, so you can basically use almost all common shell commands either one at a time, or multiples using the ';' separator. Adb is sweet.

  8. #8
    Rescue Squad
    Member #
    649
    Join Date
    Mar 2011
    Location
    The great state of America!
    Posts
    4,697
    Liked
    423 times
    Quote Originally Posted by Ap0c View Post
    Adb shell lets you use standard linux commands like 'rm' , so you could pull then remove from the phone. Actually, the Atrix ships with busybox, so you can basically use almost all common shell commands either one at a time, or multiples using the ';' separator. Adb is sweet.
    Good info to know thanks

    - Sam (tapped)
    - Sam

    I have much experience with unlocked bootloaders and custom ROMs on the original ATRIX. I will do my best to hold your hand through any problem, small or large, on any phone. Please open up a thread in the help section (or Rescue Squad section if your phone is in dire need) or PM me. I don't bite

  9. #9
    Super Moderator/RS
    Member #
    7
    Join Date
    Jan 2011
    Location
    Florida Panhandle
    Posts
    11,157
    Twitter
    @das8nt
    Liked
    1281 times
    Quote Originally Posted by thekooliest View Post
    I think help is reserved for questions though.

    - Sam (tapped)
    I think he was just responding to your pull question, which the answer is no. You'll need two separate commands to "cut/paste"

    First pull "file.ext" then rm "file.ext" which is just copy then delete.

    Is that what you were looking for?

    Edit: lol! NM.

    Sent via rooted Moto Atrix using Tapatalk

    AtrixForums.com : My Anti-Drug : Above the iNfluence

  10. #10
    Rescue Squad
    Member #
    133
    Join Date
    Feb 2011
    Location
    Laramie, Wyoming
    Posts
    1,894
    Liked
    486 times
    Quote Originally Posted by das8nt View Post
    I think he was just responding to your pull question, which the answer is no. You'll need two separate commands to "cut/paste"

    First pull "file.ext" then rm "file.ext" which is just copy then delete.

    Is that what you were looking for?

    Edit: lol! NM.

    Sent via rooted Moto Atrix using Tapatalk
    Yep, I was just replying to the pull question that Sam asked. Sorry for not clarifying more Sam Been a really really long couple days @ work, and my brain is exhausted! lol.

    If you need help, and I appear to be offline, shoot me a msg on Gtalk, or PM me and I'll respond as soon as I possibly can!!


 
Page 1 of 2 12 LastLast

Remove Ads

Ads

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. Voice commands/Vlingo turn on by themselves
    By kaffene34 in forum Motorola Atrix General Discussion
    Replies: 2
    Last Post: 09-06-2011, 06:02 AM
  2. General app question
    By mdgreene in forum Motorola Atrix Help
    Replies: 3
    Last Post: 06-10-2011, 12:52 PM
  3. Replies: 0
    Last Post: 04-20-2011, 02:53 PM
  4. [TUT]Ultimate Guide To Perfect Your Atrix![GUIDE]
    By Abstract in forum Motorola Atrix Help
    Replies: 61
    Last Post: 04-18-2011, 12:47 PM

Search tags for this page

adb at commands
,

adb atrix

,
adb atrix guide
,
adb commands for dummies
,
adb for atrix
,
adb is not a valid command
,
adb is not a valid win32 application
,
adb not a valid win32 application
,
adb not valid win32
,
adb shell atrix
,
adb.exe is not a valid win32
,

adb.exe is not a valid win32 application

,

atrix adb

,
motorola atrix adb shell
,
valid adb shell commands
Click on a term to search for related topics.

Tags for this Thread