Mobile/Android
adb를 이용하여 화면 캡쳐하기
out of coding
2018. 1. 12. 13:31
안드로이드 adb는 많은 기능들을 제공합니다.
파일을 전송하거나 빼오거나 혹은 몽키를 동작하거나, linux shell처럼 동작을 하죠.
폰을 가지고도 이미지를 캡쳐할수도 있겠지만.
명령어로 하는 방법을 알아보도록 하겠습니다.
adb shell screencap -p /sdcard/screen.png adb pull /sdcard/screen.png adb shell rm /sdcard/screen.png | cs |
이렇게 하면 현재 명령어를 실행하고 있는 폴더에 screen.png 파일이 생성이 되어 있을것이다.
같이 볼만한 사이트
https://developer.android.com/studio/command-line/adb.html?hl=ko