Bluetooth: Catch security exception during socket creation.
Use case:
1) Turn on Bluetooth
2) Switch User to Guest
3) Do above steps multiple times
Error:
On UI Bluetooth share has stopped is shown.
Root Cause:
Profile PBAP services trying to start from older user
account which is not in foreground.
Fix:
Catch security exception while creating server socket
and break out the loop of socket-retry, to prevent
server socket creation from invalid user.
CRs-Fixed: 2350829
Change-Id: I97bead89b89b9f066912b226b7b18f080a10a2cd
1 file changed