khvzak / bluez-tools

A set of tools to manage bluetooth devices for linux
GNU General Public License v2.0
176 stars 51 forks source link

"bt-device --connect" incorrectly prompts use to confirm PIN/passcode instead of simply displaying PIN/passcode #41

Open c0d3h4x0r opened 4 years ago

c0d3h4x0r commented 4 years ago

When bluez calls back into a pairing Agent's Display methods, they are supposed to display the PIN or passcode on the host device's screen along with instructions telling the user to type that PIN or passcode (followed by ENTER) into the device they are trying to pair. Instead, bt-device --connect incorrectly prompts the user to confirm the device on the host (i.e. Confirm passkey: 123456 (yes/no)?), which is the wrong thing to do. It disrupts the pairing process and causes pairing to fail.