반응형
* This command is "http://adbshell.com/commands/adb-devices" more than detail descriptions.
If you use to Android device or embeded in adb device.
At first, you installed adb kit or Android studio, SDK.
And to connected console view. (e.x. CMD or shell prompt)
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 <Buffer>
adb logcat -b radio
adb logcat -b radio
View the buffer that contains radio/telephony related messages.
adb logcat -b event
View the buffer containing events-related messages.
adb logcat -b main
default
adb logcat -c Clears the entire log and exits.adb logcat -d Dumps the log to the screen and exits.adb logcat -f test.logs Writes log message output to test.logs .adb logcat -g Prints the size of the specified log buffer and exits.adb logcat -n <count> Sets the maximum number of rotated logs to <count>. Notes: The default value is 4. Requires the -r option.
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 -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
반응형
'QA Engineering > End to End Test' 카테고리의 다른 글
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 |