SAP: Catch security exception during socket creation.
Use case:
1) Turn on BT
2) Switch User to Guest
3) Do above steps multiple times
Error:
On UI Bluetooth share has stopped is shown.
Root Cause:
Profile SAP 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 avoid
server socket creation from invalid user.
CRs-Fixed: 2541988
Change-Id: I6b5547b00a9cdbf843dc9ce363bbd28a4cb399cf
1 file changed