반응형

이전 포스팅(http://alnova2.tistory.com/888)에서 처럼 개발자 모드로 설정되어 있다면 안드로이드 웨어 디바이스의 스크린샷을 찍을수 있다.(이건 adb로 연결된 안드로이드 디바이스는 모두 가능하다.) shell로 들어가서 screencap 명령어를 사용해도 되고, PC에서 직접 명령을 내려도 된다.

  • adb shell에서 screepcap 실행

1) adb -s localhost:4444 shell

2) $screencap -p /sdcard/DCIM/xxxxx.png

  • PC에서 명령

adb -s localhost:4444 shell screencap -p /sdcard/DCIM/xxxxx.png


이후 adb에서 pull 명령을 이용해서 파일을 가져오면 된다.

  • 파일 하나 가져오기: adb -s localhost:4444 pull /sdcard/DCIM/xxxxx.png
  • 폴더에 있는거 다 가져오기: adb -s localhost:4444 pull/sdcard/DCIM/
반응형
Posted by alias
,