I am having a weird issue with one of our tablets, if I try to intercept the pairing request, and check the Pairing Variant to provide the pin, the variant is set to 3:
int variant = intent.getIntExtra("android.bluetooth.device.extra.PAIRING_VARIANT",0);
As far as the docs go, it should either be 0 or 2
Used as an int extra field in ACTION_PAIRING_REQUEST intents to indicate pairing method used. Possible values are: PAIRING_VARIANT_PIN, PAIRING_VARIANT_PASSKEY_CONFIRMATION https://developer.android.com/reference/android/bluetooth/BluetoothDevice#EXTRA_PAIRING_VARIANT
Searching a little further, I found that Android Things also has 3 : https://developer.android.com/reference/com/google/android/things/bluetooth/PairingParams.html#PAIRING_VARIANT_CONSENT
However I should definitely not retrieve that on Android 9, so what goes wrong here ? Providing a pin via setPin also results in a failed pairing, how can I pair this tablet by code ?