-
Notifications
You must be signed in to change notification settings - Fork 6
Debugging Android Host and Container
soccercheng edited this page Jan 11, 2018
·
3 revisions
Debugging Android host is identical essential Android debug, you can fully utilize all the experience and tools you have to debug Android frameworks and Linux kernel. If you're new to Android, you can simply follow the instructions on "Configure On-Device Developer Options" page on Android Studio website.
It is the Android host that dominates the USB device, so it not possible to connect container's adbd through usb, instead, you should connect to container through network. For more information, please reference the network configuration of Android host and container on project Wiki page.
You can connect to container in 2 following similar ways
- telnet from host to container
- adb shell from your PC to Android host
- on host, telnet to Android container whose static IP is 192.168.0.2
- adb through network from host to container
- instead of listening to USB, container's adbd has been configured to listen to tcp port 5555
- adb shell from your PC to Android host
- on host, adb connect 192.168.0.2:5555