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
Loading
Please register or sign in to comment