Commit c3b03994 authored by Bandari Ramesh's avatar Bandari Ramesh Committed by venkata Jagadeesh garaga
Browse files

BT: Added bind retry logic to handle race condition in Bluetooth off/on

Issue:
BT turn on not happening after network reset

Turn on Location from Settings

Steps:
1.Turn off BT
2.Turn ON BT
3.Do Network Reset

Repeat steps 1 to 3

Observed Result:
BT turn on not happening after network reset

Expected Result:
BT turn on should be successful network reset


Root Cause:
After network reset, BT turned off and Bluetoothmanagerservice waiting with 400ms delay to restart Bluetooth.
But GMS APP triggering enableble, hence bluetoothmanagerservice tried to bind to Adapterservice before previous bluetooth process
exited, its leading bind timeout and BT did not turn on.


Fix:
- Added bind retry logic to handle race condition in Bluetooth off/on

- Reset retry flag after 1 retry so that next
   enable from user will try bind 2 times.

CRs-Fixed: 2640422
Change-Id: I0f487fa3629cc7b20a8c4e25526e1b328ebd6393
parent cfec6768
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment