您的位置:首页 > 理论基础 > 计算机网络

Using Android Debug Bridge (ADB) via TCP/IP

2013-02-24 16:58 369 查看
https://wiki.linaro.org/Platform/Android/SetupAdbOverTcp



WhichBuild

ImageInstallation

SetupAdbOverTcp


Using Android Debug Bridge (ADB) via TCP/IP

On the device running Android (using the serial console):
netcfg eth0 up                 #get your eth network up
netcfg eth0 dhcp                 #get your dhcp ip for eth0 intergace
ifconfig eth0                       #confirm your board IP 
echo 0>/sys/class/android_usb/android0/enable  #enable adb via IP
stop adbd
setprop service.adb.tcp.port 6565
start adbd


On your host machine (assuming the its reachable via tcpip):
export ADBHOST=<board's IP>
sudo android-sdk-linux_x86/platform-tools/adb start-server
android-sdk-linux_x86/platform-tools/adb connect <board's IP>:6565
android-sdk-linux_x86/platform-tools/adb shell


Note: default adb port is 5555, and using another value is trivial security measure. However,
adb access at all, and networked access foremostly, is utterly insecure and intended to be used only on development-only
devices in a physically and networkedly controlled environment. Never enable those on a production-use device or on
a device which may contain sensitive data. The same goes for unauthenticated root access.

CategoryAndroidTips

Platform/Android/SetupAdbOverTcp (2012-05-03 05:34:44由liuyq0307编辑)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: