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

编程入门 行业动态 更新时间:2024-10-25 10:29:55
本文介绍了可以自动接受蓝牙配对吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在带有 createInsecureRfcommSocketToServiceRecord() API 的 Android 2.3.3 BluetoothChat 示例中,即使没有提供 PIN 码,仍会提示用户接受配对请求.

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.

有没有办法在无需用户干预的情况下自动完成蓝牙配对请求?或者由于安全问题,这永远不可能?我已经在网上找了两天了,并没有真正找到多少,所以如果有人知道,请发帖.

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 地址,总会有提示.有人告诉我,如果您的设备已 root 并且对蓝牙服务的 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.

更多推荐

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

本文发布于:2023-11-08 11:12:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1569205.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:蓝牙   可以自动

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!