Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8f2c1b8e authored by Hemant Gupta's avatar Hemant Gupta Committed by Andre Eisenbach
Browse files

MAP: Serialize closeService to prevent ANR's

Usecase
1) Connect from carkit
2) Perform BT on/off
3) Repeat step(s) 1 and 2 repeatedly multiple times

Issue:
ANR observed on Bluetooth.

Rootcasue:
Issues in map code, explained below

Fix
- Mark MAPService state to stopped while closeService is ongoing.
  This will avoid extra shutdown message in stop() and fix a relevant
  NPE.
- Do not block for AcceptThread(s) cleanup during shutdown. Fix the
  handler thread blocking to handle BT TURN OFF timeout exception.

Test: ANR not obseved after performing above usecase.

Bug: 35013633
Change-Id: I065a13193200d3aa358abe5d82f1343244b05b97
parent 444e340b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment