0. ADB란?
안드로이드 디바이스를 디버깅 하는 툴.
1. 개요
Android SDK 설치->sdk tools path 설정(<s>C:\Program Files\android-sdk-windows\tools</s>->D:\android-sdk-windows\platform-tools)
2. adb command
2-1. 디바이스 조회
> adb devices
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
emulator-5554 device
2-2. ip/tcp server 설정
> set ADBHOST=192.169.3.201
2-3. server
> adb start-server
> adb kill-server
2-4. device shell
> adb shell
#
2-5. application install
> adb install HelloWorld.apk
2-6. copy
2-6-1. adb pull [android dev] [pc]
> adb pull /init.rc /download
2-6-2. adb push [pc] [android dev]<local><remote></remote></local>
> adb push test.txt /sdcard/test.txt
2-7. 선택연결
> adb -s emulator-5554 shell
> adb -s emulator-5554 install hello.apk
2-8. logcat.
$ adb logcat -v time -b radio > radio_log.txt
$ adb logcat -v time -b main -b radio -b events -b system > all_log.txt
2-9. apk 설치.
$ adb install toInstall.apk
[출처] 1. ADB (Android Debug Bridge)|작성자 grayjoker
'JAVA' 카테고리의 다른 글
Troubleshooting ADT Installation (0) | 2013.08.05 |
---|---|
adb command not found (0) | 2013.08.02 |
make boottarball 에러 (0) | 2013.07.15 |
javax.mail 수신확인 (0) | 2013.07.13 |
ia32-libs 설치 안될경우 (0) | 2013.06.29 |