Bluetooth: Avoiding ANR, while rejecting SAP authorization request
- A case, where SAP has rejected remote device authorization
request, DUT start RFCOMM Listener thread & does not update
authorization status(isWaitingAuthorization is true), then
ACTION_ACL_DISCONNECTED is received. As isWaitingAuthorization
is true, So DUT try to start RFCOMM Listener thread again, which
is running. So ANR due to longer OBJECT wait in main thread.
Updating the correct authorization status while rejecting remote
SAP authorization request to solve the issue.
- Avoiding the resource leak by closing RFCOMM Socket, if
Sapd client socket is not successfully initialized.
Change-Id: I2820d5b04502b344f43c22af08c173a526c30834
CRs-Fixed: 647175
1 file changed