Loading android/app/src/com/android/bluetooth/a2dp/A2dpService.java +3 −2 Original line number Diff line number Diff line Loading @@ -413,9 +413,10 @@ public class A2dpService extends ProfileService { if (!isOutgoingRequest) { HeadsetService headsetService = HeadsetService.getHeadsetService(); if (headsetService != null && headsetService.okToAcceptConnection(device, true)) { Log.d(TAG, "okToConnect: Fallback connection to allowed HFP profile"); Log.d(TAG, "okToConnect: return false," + " Fallback connection to allowed HFP profile"); headsetService.connect(device); return true; return false; } } // Otherwise, reject the connection if connectionPolicy is not valid. Loading android/app/src/com/android/bluetooth/hfp/HeadsetService.java +2 −2 Original line number Diff line number Diff line Loading @@ -2070,10 +2070,10 @@ public class HeadsetService extends ProfileService { if (!isOutgoingRequest) { A2dpService a2dpService = A2dpService.getA2dpService(); if (a2dpService != null && a2dpService.okToConnect(device, true)) { Log.d(TAG, "okToAcceptConnection: return temporary true," Log.d(TAG, "okToAcceptConnection: return false," + " Fallback connection to allowed A2DP profile"); a2dpService.connect(device); return true; return false; } } Log.w(TAG, "okToAcceptConnection: return false, connectionPolicy=" + connectionPolicy); Loading Loading
android/app/src/com/android/bluetooth/a2dp/A2dpService.java +3 −2 Original line number Diff line number Diff line Loading @@ -413,9 +413,10 @@ public class A2dpService extends ProfileService { if (!isOutgoingRequest) { HeadsetService headsetService = HeadsetService.getHeadsetService(); if (headsetService != null && headsetService.okToAcceptConnection(device, true)) { Log.d(TAG, "okToConnect: Fallback connection to allowed HFP profile"); Log.d(TAG, "okToConnect: return false," + " Fallback connection to allowed HFP profile"); headsetService.connect(device); return true; return false; } } // Otherwise, reject the connection if connectionPolicy is not valid. Loading
android/app/src/com/android/bluetooth/hfp/HeadsetService.java +2 −2 Original line number Diff line number Diff line Loading @@ -2070,10 +2070,10 @@ public class HeadsetService extends ProfileService { if (!isOutgoingRequest) { A2dpService a2dpService = A2dpService.getA2dpService(); if (a2dpService != null && a2dpService.okToConnect(device, true)) { Log.d(TAG, "okToAcceptConnection: return temporary true," Log.d(TAG, "okToAcceptConnection: return false," + " Fallback connection to allowed A2DP profile"); a2dpService.connect(device); return true; return false; } } Log.w(TAG, "okToAcceptConnection: return false, connectionPolicy=" + connectionPolicy); Loading