R
If you're not setting a custom BondFilter, then something else is going on. The connection bug fix should only happen if you set a custom BondFilter, the DefaultBondFilter doesn't run the connection bug fix.
@teruyama said in ConnectionBugHack:
The customBondFilter is not set.
I have set autoBondFixes to false.
Since the target device uses passkey authentication, I don't want it to unbond every time it is disconnected.
I am using the following code to bond, connect and it happens every time on Google Pixel3 and other smartphones.
I assume you are referring to the bondFilter field in BleDeviceConfig/BleManageConfig as there is no customBondFilter field.
Are you seeing device get unbonded when you disconnect? This shouldn't happen in normal circumstances.
As far as not re-bonding, I wish you well. There are some devices (many Sony, and Motorola devices) that don't handle bond credentials very well. I'm hoping for you sake that they handle it better when a pin code is required.
Have you changed any settings in BleDeviceConfig/BleManagerConfig? If so, please post what they are.