Using Android Debug Bridge (ADB) via TCP/IP
16lz
2021-01-23
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 upnetcfg eth0 dhcp #get your dhcp ip for eth0 intergaceifconfig eth0 #confirm your board IP echo 0>/sys/class/android_usb/android0/enable #enable adb via IPstop adbdsetprop service.adb.tcp.port 6565start 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-serverandroid-sdk-linux_x86/platform-tools/adb connect <board's IP>:6565android-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 andintended to be used only on development-only devices in a physically and networkedlycontrolled environment. Never enable those on a production-use device or on a devicewhich may contain sensitive data. The same goes for unauthenticated root access.
CategoryAndroidTips
Platform/Android/SetupAdbOverTcp (2012-05-03 05:34:44由liuyq0307编辑)
更多相关文章
- Android 富文本编辑器RichEdit,完整demo
- Eclipse下载Github用Android Studio编辑的Android源码
- 解决Android编辑框在全屏模式下无法检测布局变化的问题
- android edittext编辑框光标改变事件
- android studio在编辑时出现如Failed to sync Gradle project类
- 让EditText无法点击编辑和RatingBar无法点击
- Android Studio 新建编辑条 点击按钮显示控件中的内容
- 在Android中创建启动界面 编辑
- android2.2中EditText不可编辑的问题