본문 바로가기
프로그래밍 놀이터/안드로이드, Java

[android] Useful ADB commands

by 돼지왕 왕돼지 2015. 12. 12.
반응형

 [android] Useful ADB commands



*:E, 26, 82, adb command, adb shell, adb shell pm, am start, Android, clean logcat buffer, Filter, fullyqualifiedActivityName, input keyevent, logcat, logcat -c, menu button, packageName, pm list packages, pm list packages -f, power button, print all installedpackage, priority, S, start activity, tagname, Useful, [android] Useful ADB commands


# Start an activity

adb shell am start <packageName>/<fullyQualifiedActivityName>



# Power Button

adb shell input keyevent 26



# Menu Button

adb shell input keyevent 82



# Print all installed packages

adb shell pm list packages [-f] // -f 옵션이 있으면 apk 위치까지 함께 표시된다.



# Logcat filter by tagname

adb logcat -s TAG_NAME_1 TAG_NAME_2



# Logcat filter by priority

adb logcat "*:E"



# Logcat filter by tagname and priority

adb logcat -s TAG_NAME_1:PRIORITY TAG_NAME_2:PRIORITY



# Clean Logcat buffer

adb logcat -c






반응형

댓글