1. screen capture
ex) adb shell screencap -p /sdcard/screen.png
2. 특정 기기 선택
ex) adb -s devicename shell screencap -p /sdcard/screen.png
3. broadcast
adb shell am broadcast -a packagename --ei key value --es key value
ex) adb shell am broadcast -a com.android.test
ex) adb shell am broadcast -a com.android.test --ei event 1 --es name "john snow"
4. 화면 이동
ex) adb shell am start -a android.settings.SETTINGS
ex) adb shell am start -a android.settings.BLUETOOTH_SETTINGS
ex) adb shell am start -n com.android.car.carlauncher/.AppGridActivity
5. display 선택
adb shell am start -a activity --display number
ex) adb shell am start -a android.settings.SETTINGS --display 0
6. app 삭제
ex) adb shell pm uninstall --user 0 com.android.test
7. key event 전달
ex) adb shell input keyevent 4
[Reference]
https://developer.android.com/studio/command-line/adb
댓글 없음:
댓글 쓰기