ADB debug commands in detail-2016.02.01

Source: Internet
Author: User

ADB (Android Debug Bridge), the debug axle allows the device to debug the monitoring process at the remote, without having to run the actual application on the device to facilitate debugging output.

1 command explanation

A View Help information

ADB--help

Option parameters:

adb [-d|-e|-s <serialnumber>] <command>

-A connects to ADB and listens on all network cards

-D only for USB connected devices to execute commands, if more than one device uses a USB connection, the failure will be returned.

-e executes the command only on the running emulator, and fails if there are multiple simulations running.

-S If the ADB connection has multiple devices, you can perform subsequent commands on the specified device through the-S option adb–s <specific device> <command> For example Adb–s 192.168.1.156:5555 logcat

Executable command:

Devices list all connected device information

Connect the device via the TCP/IP protocol, using the default 5555 port when no port is specified

Disconnect disconnecting a device connected via TCP/IP

ADB push copies files locally to the connected device, using-p to display the transfer process

ADB pull copies files from the connected device to local, such as Adb-s 192.168.1.156:5555 pull-p/data/data/com.zhoulee.test/lib/libvoice.so E:\demo

ADB shell landing at the far end of the shell environment

ADB shell <command> execute shell command on the remote and display execution results on the local terminal

Specific commands can be executed (some commands may not be supported or supported by commands not listed)

LS Mount cat ps Kill ln insmod rmmod lsmod ifconfig setconsole rm mkdir rmdir reboot getevent sendevent date wipe sync Umo Unt start stop notify CMP DMESG Route HD DD DF getprop setprop watchprops logcat sleep renice printenv SMD chmod chown MKD OSFS netstat ioctl mv Schedtop top Iftop ID vmstat

adb logcat Output debug log information For example: Enter debug information for a specified device adb-s 192.168.1.156:5555 logcat | Find "AddIn"

You can also log on to a specific device and use the Logcat command with grep adb–s 192.168.1.156:5555 Shell login, execute Logcat | grep "addin

Log filtering rules: adb logcat viewing logs

Resources

Android ADB ADBD Analyse

Some of the ADB's commands

ADB debug commands in detail-2016.02.01

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.