summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2023-08-09 22:38:05 -0700
committerLinux Build Service Account <lnxbuild@localhost>2023-08-09 22:38:05 -0700
commitd2e99656dc08261f5a6355b43327d813603a4f28 (patch)
treebf56a70084f73271264bcbc9ae3e427fc042f5ce
parentec11baea80b47c3100fe3488c3eac82e3e4ae971 (diff)
parentb4ce3d54eac4b72161b957def3512db3c49d1be6 (diff)
Merge b4ce3d54eac4b72161b957def3512db3c49d1be6 on remote branch
Change-Id: I5f406a1bf947841922ee01bd5e7f7176bcb963bf
-rw-r--r--services/core/java/com/android/server/audio/AudioService.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/services/core/java/com/android/server/audio/AudioService.java b/services/core/java/com/android/server/audio/AudioService.java
index 17ccc4fd89af..807ba747a011 100644
--- a/services/core/java/com/android/server/audio/AudioService.java
+++ b/services/core/java/com/android/server/audio/AudioService.java
@@ -6222,11 +6222,6 @@ public class AudioService extends IAudioService.Stub
/** @see AudioManager#startBluetoothSco() */
public void startBluetoothSco(IBinder cb, int targetSdkVersion) {
Log.i(TAG, "In startBluetoothSco()");
- BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
- if ((adapter == null) || (adapter.getState() != BluetoothAdapter.STATE_ON)) {
- Log.i(TAG, "startBluetoothSco(), BT is not turned ON or adapter is null");
- return;
- }
if (!checkAudioSettingsPermission("startBluetoothSco()")) {
return;
}
@@ -6295,11 +6290,6 @@ public class AudioService extends IAudioService.Stub
/** @see AudioManager#stopBluetoothSco() */
public void stopBluetoothSco(IBinder cb){
Log.i(TAG, "In stopBluetoothSco()");
- BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
- if ((adapter == null) || (adapter.getState() != BluetoothAdapter.STATE_ON)) {
- Log.i(TAG, "stopBluetoothSco(), BT is not turned ON or adapter is null");
- return;
- }
if (!checkAudioSettingsPermission("stopBluetoothSco()") ||
!mSystemReady) {
return;