OPP: Remove sdp record during BT off to prevent leak
Step by Step procedure: =================== 1. DO file transfer using OPP. 2. Turn off BT. 3. Turn on BT. 4. Repeat above 4 steps for multiple times. Expected Result: ================ File transfer should get success. Actual Result: ============== Instead of OPP request, observed MAP authentication dialog popped up. Reproducibility: ============== very rare Root cause: =========== There is a leak in security manager record even though socket is closed. AS there could be two entries with same PSM ( one for MAP and other for OPP ), when there is an incoming connection for OPP, it may take MAP entry as it is first and goes ahead with high security which is not expected. Fix: ==== Assign proper value to SDP handle to remove SDP record created dynamically for OPP server during off state. without this call, there is a leak in sdp layer in the stack as sdp record is never removed, even though socket is closed. Test: Checked above use-case and no error is seen. Bug: 64595692 Change-Id: I5d7692485d7422079be6b16d7cf3663f3ae500a3
Loading