주로 사용하는 adb 명령어 정리
매번 검색해서 보곤 또 까먹어서 찾으로 다녀서 이곳에 정리
adb devices
연결된 장비의 이름과 상태를 알려준다.
$ adb devices
List of devices attached
[device_name1] device
[device_name2] connecting
한번에 2개 이상의 장비를 연결한 경우 adb 뒤에 -s (select)옵션으로 adb 명령어를 날릴 수 있다.
$ adb -s [device_name1] shell
root@어쩌구저쩌구 : / #
가 나오지만
$ adb -s [device_name2] shell
하면 안나옵니다. <어떤 구문이 나오는데 현제 connecting이 뜨는 장비가 없어 확인 불가>
-wait for device- 이런거 떳던기억이...
상태가 connecting 이기 때문입니다. 이경우 장비를 reboot하면 풀어지는거 같습니다.
'Android' 카테고리의 다른 글
안드로이드 드래그? 이벤트 (adb shell input swipe) (0) | 2019.01.15 |
---|---|
안드로이드 터치 이벤트 (adb shell input tap) (0) | 2019.01.15 |
안드로이드 키 이벤트 (adb shell input keyevent) (0) | 2019.01.15 |