AudioOutput selection in case only SmartWatch was previously connected to Android Device is broken.
VitaliyHTC opened this issue · 3 comments
Describe the bug
On devices that have problems with only SmartWatch connected currently we see infinite loop of connection attempts (disconnected => connecting => connected => disconnected => ....) to SmartWatch device during the conference.
This blocks us from selecting another AudioOutputs as system constantly tries to redirect audio to Bluetooth device.
For user it looks like voice interruptions during audio/video conference or sometimes no audio output at all.
-
If only SmartWatch connected w/o any other bluetooth headset - audio output selection does not work on most devices.
-
If SmartWatch connected with other bluetooth headset connected - audio output selection works on most devices.
-
Only Bluetooth headset connected (w/o SmartWatch). Audio output selection works good on most devices. (On Samsung A51 Android 11 we can't select Wired headset, but switching between BT and Speaker works stable.)
To Reproduce
- modify app to listen for AudioManager.ACTION_SCO_AUDIO_STATE_UPDATED with BroadcastReceiver, log AudioManager.EXTRA_SCO_AUDIO_STATE to logcat.
- Pair & Connect SmartWatch device to Android phone.
- Disconnect & Forget/Unpair any other audio devices from Android phone
- Force stop & clear data of App(which used with AudioSwitch audio output selection)
- Restart/Reboot Android phone
- Wait for Android system start and verify that SmartWatch device connected to Android phone
- Launch App and proceed to Audio/Video conference
- Listen to Audio from SmartWatch (silent) and Android Phone (audio with interruptions)
- Check logcat for AudioSwitch & BluetoothSCO status updates.
Expected behavior
SmartWatch device is ignored and blocked from connection to AudioOutput. Audio/Voice routed to WiredHeadset(if connected) or to Speaker. No audio/voice interruptions during conference.
Actual behavior
Audio/Voice interruptions and infinite loop of SmartWatch connection attempts to AudioOutput.
Application Logs
2021-05-27 16:02:15.099 15295-15295/com.example D/AS/AudioSwitch: AudioSwitch(1.1.2)
2021-05-27 16:02:15.099 15295-15295/com.example D/AS/AudioSwitch: Preferred device list = [BluetoothHeadset, WiredHeadset, Earpiece, Speakerphone]
2021-05-27 16:02:15.829 15295-15295/com.example D/AS/AudioSwitch: Available AudioDevice list updated: [Earpiece(name=Earpiece), Speakerphone(name=Speakerphone)]
2021-05-27 16:02:15.829 15295-15295/com.example D/AS/AudioSwitch: Current user selected AudioDevice = null
2021-05-27 16:02:15.830 15295-15295/com.example E/ExampleLogger: AudioDevicesUtils.kt audioSwitch.start() audioDevices: [Earpiece(name=Earpiece), Speakerphone(name=Speakerphone)]; selectedAudioDevice: Earpiece(name=Earpiece);
2021-05-27 16:02:15.959 15295-15295/com.example D/AS/AudioSwitch: Available AudioDevice list updated: [BluetoothHeadset(name=Galaxy Watch Active2(7A0F)), Earpiece(name=Earpiece), Speakerphone(name=Speakerphone)]
2021-05-27 16:02:15.959 15295-15295/com.example D/AS/AudioSwitch: Current user selected AudioDevice = null
2021-05-27 16:02:15.959 15295-15295/com.example E/ExampleLogger: AudioDevicesUtils.kt audioSwitch.start() audioDevices: [BluetoothHeadset(name=Galaxy Watch Active2(7A0F)), Earpiece(name=Earpiece), Speakerphone(name=Speakerphone)]; selectedAudioDevice: BluetoothHeadset(name=Galaxy Watch Active2(7A0F));
2021-05-27 16:02:15.963 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:15.966 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt checkAudioDevices() inputs: 5; outputs: 4
2021-05-27 16:02:15.968 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt inputs:
inputs==> id: 13; productName: HTC U12+; source: true; sink: false; typeInt: 15; type: TYPE_BUILTIN_MIC;
inputs==> id: 14; productName: HTC U12+; source: true; sink: false; typeInt: 15; type: TYPE_BUILTIN_MIC;
inputs==> id: 15; productName: HTC U12+; source: true; sink: false; typeInt: 16; type: TYPE_FM_TUNER;
inputs==> id: 16; productName: HTC U12+; source: true; sink: false; typeInt: 18; type: TYPE_TELEPHONY;
inputs==> id: 25; productName: Galaxy Watch Active2(7A0F); source: true; sink: false; typeInt: 7; type: TYPE_BLUETOOTH_SCO;
2021-05-27 16:02:15.970 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt outputs:
outputs==> id: 2; productName: HTC U12+; source: false; sink: true; typeInt: 1; type: TYPE_BUILTIN_EARPIECE;
outputs==> id: 3; productName: HTC U12+; source: false; sink: true; typeInt: 2; type: TYPE_BUILTIN_SPEAKER;
outputs==> id: 8; productName: HTC U12+; source: false; sink: true; typeInt: 18; type: TYPE_TELEPHONY;
outputs==> id: 23; productName: Galaxy Watch Active2(7A0F); source: false; sink: true; typeInt: 7; type: TYPE_BLUETOOTH_SCO;
2021-05-27 16:02:15.974 15295-15295/com.example D/ExampleLogger: AudioDevicesUtils.kt getConfigWithActiveDevices(): isBuiltinSpeakerAvailable: true; isBuiltinEarpieceAvailable: true; isWiredHeadsetAvailable: false; isWiredHeadphonesAvailable: false; isBluetoothSCOAvailable: true; active: isBuiltinSpeakerActive: false; isBuiltinEarpieceActive: false; isWiredHeadsetActive: false; isWiredHeadphonesActive: false; isBluetoothSCOActive: true; system: isSpeakerphoneOn: false; isBluetoothScoOn: true;
2021-05-27 16:02:16.881 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:17.412 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:17.415 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:18.045 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:18.639 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:18.642 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:19.144 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:19.671 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:19.674 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:20.276 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:20.890 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:20.893 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:21.440 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:21.961 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:21.974 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:22.602 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:23.197 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:23.211 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:23.738 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:24.264 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:24.266 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:24.865 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:25.500 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:25.504 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:26.043 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:26.562 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:26.573 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:27.282 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:27.888 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:27.891 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:28.424 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:28.910 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:28.916 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:29.407 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:29.891 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:29.902 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:30.458 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:30.948 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:30.959 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:31.604 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:32.225 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:32.229 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:32.827 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:33.459 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:33.464 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:34.006 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:34.510 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:34.513 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:35.218 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:35.879 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:35.882 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:36.519 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:37.178 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:37.180 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:37.796 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:38.427 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:38.430 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:38.972 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:39.453 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:39.455 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:40.070 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:40.654 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:40.658 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:41.138 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:41.640 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:41.644 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:42.344 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:42.960 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:42.981 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:43.488 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:44.022 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:44.024 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:44.539 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:45.080 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:45.101 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:45.735 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:46.371 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:46.375 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:46.996 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:47.622 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:47.628 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:48.330 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:48.963 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:48.976 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:49.678 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:50.105 15295-15295/com.example D/ExampleLogger: AudioDevicesUtils.kt getConfigWithActiveDevices(): isBuiltinSpeakerAvailable: true; isBuiltinEarpieceAvailable: true; isWiredHeadsetAvailable: false; isWiredHeadphonesAvailable: false; isBluetoothSCOAvailable: true; active: isBuiltinSpeakerActive: false; isBuiltinEarpieceActive: false; isWiredHeadsetActive: false; isWiredHeadphonesActive: false; isBluetoothSCOActive: true; system: isSpeakerphoneOn: false; isBluetoothScoOn: true;
2021-05-27 16:02:50.276 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:50.280 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:50.833 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:51.360 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:51.366 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:51.872 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:52.399 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:52.407 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:52.934 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:53.468 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:53.470 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:53.997 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:54.146 15295-15295/com.example D/ExampleLogger: AudioDevicesUtils.kt getConfigWithActiveDevices(): isBuiltinSpeakerAvailable: true; isBuiltinEarpieceAvailable: true; isWiredHeadsetAvailable: false; isWiredHeadphonesAvailable: false; isBluetoothSCOAvailable: true; active: isBuiltinSpeakerActive: false; isBuiltinEarpieceActive: false; isWiredHeadsetActive: false; isWiredHeadphonesActive: false; isBluetoothSCOActive: true; system: isSpeakerphoneOn: false; isBluetoothScoOn: true;
2021-05-27 16:02:54.510 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:54.514 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:55.067 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:55.572 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:55.575 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:56.282 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:56.909 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:56.912 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:57.454 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:57.972 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:57.980 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:58.607 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:02:59.206 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:02:59.211 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:02:59.973 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:00.659 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:00.664 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:01.268 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:01.910 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:01.914 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:02.414 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:02.919 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:02.937 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:03.468 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:03.940 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:03.947 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:04.476 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:04.958 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:04.960 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:05.687 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:06.293 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:06.296 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:06.825 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:07.343 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:07.345 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:07.871 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:08.369 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:08.372 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:08.888 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:09.386 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:09.398 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:09.908 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:10.409 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:10.419 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:10.952 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:11.522 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:11.524 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:12.123 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:12.784 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:12.790 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:13.397 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:14.033 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:14.038 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:14.547 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:15.043 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:15.045 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:15.649 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:16.272 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:16.278 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:16.832 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:17.361 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:17.363 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:17.992 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:18.588 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:18.592 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:19.121 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:19.563 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:19.565 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:20.113 15295-15295/com.example D/ExampleLogger: AudioDevicesUtils.kt getConfigWithActiveDevices(): isBuiltinSpeakerAvailable: true; isBuiltinEarpieceAvailable: true; isWiredHeadsetAvailable: false; isWiredHeadphonesAvailable: false; isBluetoothSCOAvailable: true; active: isBuiltinSpeakerActive: false; isBuiltinEarpieceActive: false; isWiredHeadsetActive: false; isWiredHeadphonesActive: false; isBluetoothSCOActive: true; system: isSpeakerphoneOn: false; isBluetoothScoOn: true;
2021-05-27 16:03:20.160 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:20.780 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:20.784 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:21.248 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt logState: isStartBluetoothSCORequested: false; isBluetoothScoOn: true; isSpeakerphoneOn: false; selectAudioDeviceBuiltinSpeaker() 0
2021-05-27 16:03:21.250 15295-15295/com.example D/AS/AudioSwitch: Selected AudioDevice = Speakerphone(name=Speakerphone)
2021-05-27 16:03:22.839 15295-15295/com.example D/AS/AudioSwitch: Available AudioDevice list updated: [BluetoothHeadset(name=Galaxy Watch Active2(7A0F)), Earpiece(name=Earpiece), Speakerphone(name=Speakerphone)]
2021-05-27 16:03:22.839 15295-15295/com.example D/AS/AudioSwitch: Current user selected AudioDevice = Speakerphone(name=Speakerphone)
2021-05-27 16:03:22.839 15295-15295/com.example E/ExampleLogger: AudioDevicesUtils.kt audioSwitch.start() audioDevices: [BluetoothHeadset(name=Galaxy Watch Active2(7A0F)), Earpiece(name=Earpiece), Speakerphone(name=Speakerphone)]; selectedAudioDevice: Speakerphone(name=Speakerphone);
2021-05-27 16:03:28.026 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt logState: isStartBluetoothSCORequested: false; isBluetoothScoOn: false; isSpeakerphoneOn: true; selectAudioDeviceBuiltinSpeaker() 1
2021-05-27 16:03:28.038 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:28.069 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:28.070 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:28.073 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:28.075 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:28.076 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:28.077 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:28.079 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:28.080 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:28.083 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:28.084 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:28.085 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:28.087 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:28.089 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:28.090 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:28.091 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:28.093 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:28.094 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:28.095 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:28.096 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:28.096 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:28.332 15295-15295/com.example D/ExampleLogger: AudioDevicesUtils.kt getConfigWithActiveDevices(): isBuiltinSpeakerAvailable: true; isBuiltinEarpieceAvailable: true; isWiredHeadsetAvailable: false; isWiredHeadphonesAvailable: false; isBluetoothSCOAvailable: true; active: isBuiltinSpeakerActive: false; isBuiltinEarpieceActive: false; isWiredHeadsetActive: false; isWiredHeadphonesActive: false; isBluetoothSCOActive: true; system: isSpeakerphoneOn: false; isBluetoothScoOn: true;
2021-05-27 16:03:28.654 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:29.248 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:29.253 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:29.772 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:30.305 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:30.317 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:30.932 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:31.563 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:31.587 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:32.183 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:32.793 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:32.802 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:33.492 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:34.137 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:34.144 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:34.768 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:35.395 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:35.403 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:35.943 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:36.473 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:36.475 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:37.009 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:37.580 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:37.581 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:38.073 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:38.577 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:38.602 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:39.239 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:39.850 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:39.851 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:40.480 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:41.092 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:41.094 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:41.700 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:42.334 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:42.335 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:42.996 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:43.660 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:43.662 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:44.260 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:44.906 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:44.908 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:45.423 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:45.946 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:45.947 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:46.484 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:47.002 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:47.003 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:47.611 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:48.211 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:48.218 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
2021-05-27 16:03:48.751 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTED
2021-05-27 16:03:49.237 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_DISCONNECTED
2021-05-27 16:03:49.242 15295-15295/com.example I/ExampleLogger: AudioDevicesUtils.kt bluetoothSCOState: SCO_AUDIO_STATE_CONNECTING
AudioSwitch Version
- Version: 1.1.2
Android Device (please complete the following information):
- Device: HTC U12+, Android 9 (Pie). API Version: API 28.
- SmartWatchDevice: Samsung Galaxy Watch Active2(7A0F), SM-R830, Tizen 5.5.0.2
Screenshots
Not available
Additional context
Devices we checked with SmartWatch problem:
Pixel 3a, Android 11 - Even connecting normal BT headsets not helping in any way, still broken sound output.
Xiaomi RedMi Note 9 Pro, Android 10 - After connecting normal BT headset - phone is able to differentiate and ignore SmartWatch device in some way.
Samsung A51 Android 11. It works very stable. Maybe because of Samsung Galaxy Watch Active 2 we used for testing. We still not sure how Samsung Android devices will behave with another SmartWatches made not by Samsung.
This is what we found at the moment.
Thanks @Alton09.
BR VitaliyHTC.
Looks like problem was caused by 3rd party code, and there is low probability to catch such combination in real life :)
I think there is no changes needed to AudioSwitch library.
Later I'll update with more info.
Yes. Problem was in 3rd party code that don't have filtering of Bluetooth devices and it's entered into infinite loop of connection tries to SmartWatches.
Sorry for spent time.
No worries @VitaliyHTC ! Thanks for the additional info and closing this issue