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

Commit 3cd50f70 authored by Sravan voleti's avatar Sravan voleti Committed by sravan voleti
Browse files

OPP: Fix SDP event receive issue.

Usecase:
1. DUT paired with another phone
2. select a  pictures, and send it over Bluetooth
3. select paired device

Observed Results:
Bluetooth didn't create connection with another phone.

Rootcause:
OPP transfer not received ACTION_SDP event
after completion of SDP.

Fix:
In Some rare cases before register  SDP event receiving ACTION_SDP event from
sdp manager. so, register SDP event before start SDP search
to avoid this race condition issue.

Fixes: 141837772
Test: Manually performed above use case, issue not seen.
Change-Id: Ibe867cf55f4176fa540acfe723aa776ec752f055
parent 16b4eea9
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -474,7 +474,7 @@ public class BluetoothOppTransfer implements BluetoothOppBatch.BluetoothOppBatch
            mBatch.mStatus = Constants.BATCH_STATUS_FAILED;
            mBatch.mStatus = Constants.BATCH_STATUS_FAILED;
            return;
            return;
        }
        }

        registerConnectionreceiver();
        if (mHandlerThread == null) {
        if (mHandlerThread == null) {
            if (V) {
            if (V) {
                Log.v(TAG, "Create handler thread for batch " + mBatch.mId);
                Log.v(TAG, "Create handler thread for batch " + mBatch.mId);
@@ -495,7 +495,7 @@ public class BluetoothOppTransfer implements BluetoothOppBatch.BluetoothOppBatch
                startObexSession();
                startObexSession();
            }
            }
        }
        }
        registerConnectionreceiver();

    }
    }


    /**
    /**