自动接受蓝牙配对可能吗?蓝牙

由网友(单身、不需要解释)分享简介:在Android 2.3.3 BluetoothChat例如与createInsecureRfcommSocketToServiceRecord()API,用户仍然提示是否接受配对请求,即使没有密码code是presented。In the Android 2.3.3 BluetoothChat example wi...

在Android 2.3.3 BluetoothChat例如与createInsecureRfcommSocketToServiceRecord()API,用户仍然提示是否接受配对请求,即使没有密码code是presented。

In the Android 2.3.3 BluetoothChat example with with createInsecureRfcommSocketToServiceRecord() API, users are still prompted to accept the pairing request, even though no PIN code is presented.

有没有一种方法来自动化,无需用户干预的蓝牙配对请求?还是这绝不可能的,因为安全问题?我一直在寻找在线2天现在还没有真正找到了,所以如果有人知道,请邮寄。

Is there a way to automate Bluetooth pairing request without user intervention? Or is this never possible due to security concerns? I have been looking online for 2 days now and haven't really found much, so if anybody knows, please post.

谢谢!

推荐答案

不使用标准的API,没有:如果MAC地址尚未在配对数据库中总是会有提示。有人告诉我,如果你有一个已经根深蒂固的设备和拥有公共读/写访问的蓝牙服务的的DBus终端,你可以解决这一点,但我从来没有见过真正执行。

Not with the standard API, no: if the MAC address is not already in the pairing database there will always be the prompt. I'm told that if you have a device that has been rooted and have public read/write access to the bluetooth service's DBus endpoint you can work around that but I've never seen that actually implemented.

阅读全文

相关推荐

最新文章