HidHost: Do not remove bonded device due to unexpected HID connection
New incoming HID connections are not allowed. Such connections should be rejected and disabled, instead of removing the device. It is possible that the remote device intiaited HID connection immediately after pairing while the Android BT stack was still performing service discovery. In such cases, HidHostService must reject the connection but not remove the device. After service discovery is completed, PhonePolicy may ask to connect the HID service. Test: mmm packages/modules/Bluetooth Test: Manual | Pair HID device, disable input device toggle, initiate connection from HID device, connection should be unsuccessful but bond should be retained Bug: 331350601 Bug: 320762367 Change-Id: Ie32559468d7b8d70caab5bda37f590f6f3e4a42e
Loading
Please register or sign in to comment