ADB 通过蓝牙 Android
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11129817/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ADB over Bluetooth Android
提问by Juan Cortés
I have no WIFI, I have no cable connection available.
我没有WIFI,我没有可用的电缆连接。
Is there hope for me to connect my device to ADB?
我有希望将我的设备连接到 ADB 吗?
采纳答案by Juan Cortés
With the latest releases of Cyanogenmod (7.2 and 9) and presumably some other roms the option of adb over networkhas arrived.
随着 Cyanogenmod(7.2 和 9)的最新版本以及可能的其他一些 rom ,网络上的adb选项已经到来。
Similar to ADB over WIFIwhich has been available for a while, it pretty much does the same.
类似于ADB over WIFI已经有一段时间了,它几乎是一样的。
- Enable Bluetooth on your laptop and device
- Pair them
- Connect from your laptop to your device via Bluetooth PAN (Personal Area Network)
- Enable the ADB over Networksetting (Settings/Applications/Development)
- Find out your IP address from the terminal (
busybox ifconfigshould do)- Non-root: check the
default gatewayon your computer, it should be your device's IP
- Non-root: check the
- Connect your device from your computer via
adb connect xxx.xxx.xxx.xxx - Enjoy.
- 在您的笔记本电脑和设备上启用蓝牙
- 配对
- 通过蓝牙 PAN(个人区域网络)从您的笔记本电脑连接到您的设备
- 启用ADB over Network设置(设置/应用程序/开发)
- 从终端找出您的 IP 地址(
busybox ifconfig应该这样做)- 非root:检查
default gateway你电脑上的,应该是你设备的IP
- 非root:检查
- 通过计算机连接您的设备
adb connect xxx.xxx.xxx.xxx - 享受。
Make sure to disable the ADB over Network setting after your done with it to avoid Mobile Internet ADB stuff. Just disable the Bluetooth when your done and it should be fine.
确保在完成后禁用 ADB over Network 设置以避免移动互联网 ADB 的东西。完成后只需禁用蓝牙,它应该没问题。
Bonus part is, that while your paired and developing for this, you are able to use the devices mobile internet as well. (if you have coverage, of course)
额外的部分是,当您为此配对和开发时,您也可以使用设备移动互联网。(当然,如果您有保险)
This is only a partial solution since it needs the device to be both rooted and running a rom that offers that particular setting. I can only assume that it can be done some other way from the terminal, but I'm not savvy enough to manage it.
这只是部分解决方案,因为它需要设备扎根并运行提供该特定设置的 rom。我只能假设它可以从终端以其他方式完成,但我不够精明来管理它。

