1. aapt(Android Asset Packaging Tool)
- 안드로이드 패키징 Tool
- eclipse의 ADT를 사용하고 있다면 굳이 볼 필요는 없음.
2. adb(Android Debug Bridge)
- emulator instance나 device의 상태를 관리하는 Tool
- Clietn / Server로 구성(Server는 emulator나 Device의 daemon과 client와의 Communication을 관리한다.
- Client를 실행하면 Server의 활성화를 확인하며, 활성화되지 않은 경우 Server를 시작한다.
- Server는 local TCP port 5037에 bind한다.
- Server는 emulator와 Device에서 사용하는 5555에서 5585까지의 port를 스캔한다.
- emulator와 Device은 한쌍의 순차적 port를 사용하는데, emulator가 5554를 사용하면 adb는 5555를 사용한다.
1) emulator/Device Instance조회
> adb devices
[serialNumber] [state] -- state: offlline or device
List of devices attached
emulator-5554 device
emulator-5556 device
emulator-5558 device
2) 특정 emulator/Device에 Command 실행
> adb -s <serialNumber> <command>
adb -s emulator-5556 install helloWorld.apk
3) Application 설치
> adb install <path_to_apk>
4) Forwarding Port
> adb forward tcp:<port> tcp:<port>
5) copy file to or from emulator/device instance
> adb pull <remote> <local>
> adb push <local> <remote>
6) 기타 Command는 http://developer.android.com/guide/developing/tools/adb.html#commandsummary 참조