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