안드로이드 앱 설치/삭제, 스크린샷/녹화/로그
ABD 설치
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
상세도움말
https://developer.android.com/studio/command-line/adb.html?hl=ko
공통 (경로 지정)
cd C:\Utility\platform-tools-latest-windows\platform-tools\
설치
adb install [apk 경로]
설치 (bat파일 위로 드래그앤드롭)
adb install "%~1"
패키지명 확인
adb shell pm list packages -f [검색어]
삭제
adb uninstall [패키지명]
스크린샷
set TIMESTAMP=%date:-=%_%RANDOM%
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png %USERPROFILE%\Desktop\%TIMESTAMP%.png
adb shell rm /sdcard/screen.png
녹화 (취소는 Ctrl+C > 일괄취소 물어보면 n)
set TIMESTAMP=%date:-=%_%RANDOM%
adb shell screenrecord --verbose /sdcard/video.mp4
adb pull /sdcard/video.mp4 %USERPROFILE%\Desktop\%TIMESTAMP%.mp4
adb shell rm /sdcard/video.mp4
로그
set TIMESTAMP=%date:-=%_%RANDOM%
adb logcat -v time -d > log_%TIMESTAMP%.txt
---
일부는 시간 형식이 24시간 포맷이 아니면 에러가 나서 랜덤 함수 사용
실행이 안되면 adb.exe 프로세스 종료 후 다시 해보기
---
ChromeADB 도 갠춘
https://chrome.google.com/webstore/detail/chromeadb/fhdoijgfljahinnpbolfdimpcfoicmnm?hl=ko
---
로그 안뽑히면 다른 툴 사용
---
무선 연결
---
PC에서 화면 제어
https://github.com/Genymobile/scrcpy
무선에서 하려면
adb tcpip 5555
adb connect IP:5555 #실행 후 usb 케이블 연결 해제
scrcpy -b 2M -m 800 --show-touches --turn-screen-off --stay-awake