Loading android/app/src/com/android/bluetooth/opp/BluetoothOppService.java +10 −10 Original line number Diff line number Diff line Loading @@ -227,14 +227,6 @@ public class BluetoothOppService extends ProfileService implements IObexConnecti public void handleMessage(Message msg) { switch (msg.what) { case STOP_LISTENER: if (mAdapter != null && mOppSdpHandle >= 0 && SdpManager.getDefaultManager() != null) { if (D) Log.d(TAG, "Removing SDP record mOppSdpHandle :" + mOppSdpHandle); boolean status = SdpManager.getDefaultManager().removeSdpRecord(mOppSdpHandle); Log.d(TAG, "RemoveSDPrecord returns " + status); mOppSdpHandle = -1; } stopListeners(); mListenStarted = false; //Stop Active INBOUND Transfer Loading Loading @@ -366,8 +358,10 @@ public class BluetoothOppService extends ProfileService implements IObexConnecti + " mServerSocket:" + mServerSocket); return; } mOppSdpHandle = sdpManager.createOppOpsRecord("OBEX Object Push", mServerSocket.getRfcommChannel(), mServerSocket.getL2capPsm(), 0x0102, SUPPORTED_OPP_FORMAT); if (D) Log.d(TAG, "mOppSdpHandle :" + mOppSdpHandle); } @Override Loading Loading @@ -1066,6 +1060,12 @@ public class BluetoothOppService extends ProfileService implements IObexConnecti } private void stopListeners() { if (mAdapter != null && mOppSdpHandle >= 0 && SdpManager.getDefaultManager() != null) { if (D) Log.d(TAG, "Removing SDP record mOppSdpHandle :" + mOppSdpHandle); boolean status = SdpManager.getDefaultManager().removeSdpRecord(mOppSdpHandle); Log.d(TAG, "RemoveSDPrecord returns " + status); mOppSdpHandle = -1; } if (mServerSocket != null) { mServerSocket.shutdown(false); mServerSocket = null; Loading Loading
android/app/src/com/android/bluetooth/opp/BluetoothOppService.java +10 −10 Original line number Diff line number Diff line Loading @@ -227,14 +227,6 @@ public class BluetoothOppService extends ProfileService implements IObexConnecti public void handleMessage(Message msg) { switch (msg.what) { case STOP_LISTENER: if (mAdapter != null && mOppSdpHandle >= 0 && SdpManager.getDefaultManager() != null) { if (D) Log.d(TAG, "Removing SDP record mOppSdpHandle :" + mOppSdpHandle); boolean status = SdpManager.getDefaultManager().removeSdpRecord(mOppSdpHandle); Log.d(TAG, "RemoveSDPrecord returns " + status); mOppSdpHandle = -1; } stopListeners(); mListenStarted = false; //Stop Active INBOUND Transfer Loading Loading @@ -366,8 +358,10 @@ public class BluetoothOppService extends ProfileService implements IObexConnecti + " mServerSocket:" + mServerSocket); return; } mOppSdpHandle = sdpManager.createOppOpsRecord("OBEX Object Push", mServerSocket.getRfcommChannel(), mServerSocket.getL2capPsm(), 0x0102, SUPPORTED_OPP_FORMAT); if (D) Log.d(TAG, "mOppSdpHandle :" + mOppSdpHandle); } @Override Loading Loading @@ -1066,6 +1060,12 @@ public class BluetoothOppService extends ProfileService implements IObexConnecti } private void stopListeners() { if (mAdapter != null && mOppSdpHandle >= 0 && SdpManager.getDefaultManager() != null) { if (D) Log.d(TAG, "Removing SDP record mOppSdpHandle :" + mOppSdpHandle); boolean status = SdpManager.getDefaultManager().removeSdpRecord(mOppSdpHandle); Log.d(TAG, "RemoveSDPrecord returns " + status); mOppSdpHandle = -1; } if (mServerSocket != null) { mServerSocket.shutdown(false); mServerSocket = null; Loading