Auto-accept bluetooth pairing possible?

前端 未结 3 777
长情又很酷
长情又很酷 2020-12-06 03:39

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

3条回答
  •  不知归路
    2020-12-06 04:29

    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.

提交回复
热议问题