* This command is "http://adbshell.com/commands/adb-devices" more than detail descriptions.
ADB wireless 연결을 해야 하는 경우
- adb connect
- If use ADB over WiFi
- adb connect <host>[:<port>]
- step. 1
connect to the device over USB. - step. 2
adb devices
- List of devices attached
#########device - step. 3
adb tcpip 5555
restarting in TCP mode port : 5555 - step. 4
Find Wireless Network
ADB 연결이 필요한 경우
- adb device
- In response, return serial number and state
- e4s23889 device
- emulator-5554 device
- adb forward
- adb forward <local><remote>
- adb forward tcp:8000 tcp:8080 set up forwarding of host port 8000 to emulator/device port 8080
- adb kill-server
- adb kill-server
Logcat 사용하기
- Print log data to the screen
adb logcat [option] [filter-specs] - adb logcat *:V
- lowest priority, filter to only show Verbose level
- adb logcat *:D
- filter to only show Debug level
- adb logcat *:I
- filter to only show Info level
- adb logcat *:W
- filter to only show Warning level
- adb logcat *:E
- filter to only show Error level
- adb logcat *:F
- filter to only show Fatal level
- adb logcat *:S
- Silent, highest priority, on which nothing is ever printed
adb logcat -b radio
adb logcat -r <kbytes> Rotates the log file every <kbytes> of output.Notes: The default value is 16. Requires the -f option.
adb logcat -s Sets the default filter spec to silent.adb logcat -v <format>
adb logcat -v brief Display priority/tag and PID of the process issuing the message (default format).adb logcat -v process Display PID only.)adb logcat -v tag Display the priority/tag only.adb logcat -v raw Display the raw log message, with no other metadata fields.adb logcat -v time Display the date, invocation time, priority/tag, and PID of the process issuing the message.adb logcat -v threadtime Display the date, invocation time, priority, tag, and the PID and TID of the thread issuing the message.adb logcat -v long Display all metadata fields and separate messages with blank lines
'TEST Engineering > E2E Test Tips' 카테고리의 다른 글
Eclipse Project Import through MAVEN (0) | 2017.03.14 |
---|---|
Android device DB SQL debug (0) | 2016.09.06 |
Android studio build -Gradle- (0) | 2016.04.18 |
Shell 만져보기 (0) | 2016.03.28 |
Unique Device ID (0) | 2016.03.27 |