appium of common commands adb

appium of common commands adb


 

First, the real machine remote debugging steps:

(Non-operation request requires data lines and phones under the same pc-router)

  1, connect the phone to the pc

  2, adb devices detecting apparatus

  3, adb tcpip 5555 to determine the Communications phone and pc terminals (port)

  4, unplug the phone

  5, adb connect <ip address of the phone>

  6, adb disconnect Cancel remote debugging

 

1. What adb that?

  adb is used to connect Android phones and pc side of the bridge

2, adb consists of:

  1, the client (client): runs on your computer, you can call from a client via adb command;

  2, the server (server): runs in the background on your computer yourself, is responsible for managing client and daemon for communication;

  3, daemon (daemon): running in the simulator or Android device background;

 

Two, adb command

  1, adb devices detecting apparatus

  2, adb version detect version

  3, adb shell logon device (ll ls cp command can be used to enter the linux command environment, the equivalent of remote command execution)

  4, adb pull <path phone> <native path> pull information from the phone to the local computer

  5, adb push < native path > < Mobile Path >    push information from the local computer to the phone

  6, adb logcat log print

    Local print log to: adb logcat> local path (e.g.,: the adb logcat>  D: \ log.txt)

 

Guess you like

Origin www.cnblogs.com/qzyhome/p/11031159.html