自动接受蓝牙配对可能吗? [英] Auto-accept bluetooth pairing possible?

查看:275
本文介绍了自动接受蓝牙配对可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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.

这篇关于自动接受蓝牙配对可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆