Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Android 10 Compatibility

Offen
#12 8 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
android, kotlin

Rechercherichtung

Start by reproducing the BlueVoice audio-streaming issue on Android 10 with the BVBNRG board, then inspect logcat around the descriptor-write error and repeated Bluetooth reconnection. Done means audio and waveform plotting continue without the connection entering the Dead state.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Hello,

I am running the ST BLE Sensor app V 4.7.1 on a Motorola Moto g7 Power that runs Android 10 (API 29). I am using the BVBNRG board.

I am having trouble using the BlueVoice portion of the app. After a few seconds, the audio data stops streaming and the waveform graph stops plotting. If I wait a few more seconds, the Bluetooth connection between the phone and BVBNRG board disconnects and reconnects (see log below). Upon reconnection, the audio stream resumes then stops again after a few seconds.

Is the ST BLE Sensor app compatible with Android 10? If so, what changes do I need to make to allow continuous audio stream with the BlueVoice fragment?

Thanks.

09/15 15:01:00: Launching 'BlueMS' on motorola moto g(7) power.
$ adb shell am start -n "com.st.bluems.debug/com.st.BlueMS.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 22070 on device 'motorola-moto_g_7__power-ZF6523P5X4'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/st.bluems.debu: Method Landroidx/appcompat/graphics/drawable/a;.b is abstract, but the declaring class is neither abstract nor an interface in dex file /data/app/com.st.bluems.debug-X36GYPY5xORBt7A6HCYERw==/base.apk
W/st.bluems.debu: Method Landroidx/appcompat/graphics/drawable/a;.isStateful is abstract, but the declaring class is neither abstract nor an interface in dex file /data/app/com.st.bluems.debug-X36GYPY5xORBt7A6HCYERw==/base.apk
W/st.bluems.debu: Method Lio/reactivex/internal/operators/flowable/FlowableReplay$a;.m is abstract, but the declaring class is neither abstract nor an interface in dex file /data/app/com.st.bluems.debug-X36GYPY5xORBt7A6HCYERw==/base.apk!classes2.dex
W/st.bluems.debu: Method Lokhttp3/internal/cache/a;.a is abstract, but the declaring class is neither abstract nor an interface in dex file /data/app/com.st.bluems.debug-X36GYPY5xORBt7A6HCYERw==/base.apk!classes2.dex
W/st.bluems.debu: Method Lorg/bouncycastle/x509/b;.a is abstract, but the declaring class is neither abstract nor an interface in dex file /data/app/com.st.bluems.debug-X36GYPY5xORBt7A6HCYERw==/base.apk!classes3.dex
    Method Lorg/bouncycastle/x509/b;.b is abstract, but the declaring class is neither abstract nor an interface in dex file /data/app/com.st.bluems.debug-X36GYPY5xORBt7A6HCYERw==/base.apk!classes3.dex
I/MultiDex: VM with version 2.1.0 has multidex support
    Installing application
    VM has multidex support, MultiDex support library is disabled.
W/st.bluems.debu: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
W/st.bluems.debu: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
D/LeakCanary: LeakCanary is running and ready to detect leaks
I/AdrenoGLES: QUALCOMM build                   : 961b24f, Ib57168459a
    Build Date                       : 02/24/20
    OpenGL ES Shader Compiler Version: EV031.27.05.06
    Local Branch                     : 
    Remote Branch                    : 
    Remote Branch                    : 
    Reconstruct Branch               : 
    Build Config                     : S L 8.0.12 AArch64
I/AdrenoGLES: PFP: 0x005ff112, ME: 0x005ff066
W/Gralloc3: mapper 3.x is not supported
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@18a8c
D/com.st.BlueSTSDK.gui.NodeListActivity: onDiscoveryChange true
D/BluetoothAdapter: isLeEnabled(): ON
D/BluetoothLeScanner: onScannerRegistered() - status=0 scannerId=8 mScannerId=0
D/com.st.BlueSTSDK.gui.NodeListActivity: onNodeDiscovered C0:79:46:34:55:38
D/BluetoothAdapter: isLeEnabled(): ON
D/com.st.BlueSTSDK.gui.NodeListActivity: onDiscoveryChange false
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@7c78393
D/ConnectionService: id: 1 action:com.st.BlueSTSDK.gui.NodeConnectionService.CONNECT
D/NodeConnectionService: connect C0:79:46:34:55:38
D/NodeStateListener: BVBNRG1 Idle->Connecting
D/BluetoothGatt: connect() - device: C0:79:46:34:55:38, auto: false
D/BluetoothGatt: registerApp()
    registerApp() - UUID=c68bdebb-0bbf-4847-ba48-702f79c27b1d
D/BluetoothGatt: onClientRegistered() - status=0 clientIf=8
D/BluetoothGattServer: registerCallback()
D/BluetoothGattServer: registerCallback() - UUID=2a3fa437-fc4a-44b9-aa9f-f4f439800be3
D/BluetoothGattServer: onServerRegistered() - status=0 serverIf=9
D/BluetoothGattServer: addService() - service: 00000000-0001-11e1-9ab4-0002a5d5c51b
D/BluetoothGattServer: connect() - device: C0:79:46:34:55:38, auto: true
W/st.bluems.debu: Accessing hidden method Landroid/bluetooth/BluetoothGatt;->refresh()Z (greylist, reflection, allowed)
D/BluetoothGatt: refresh() - device: C0:79:46:34:55:38
D/BluetoothGattServer: onServiceAdded() - handle=40 uuid=00000000-0001-11e1-9ab4-0002a5d5c51b status=0
D/com.st.BlueSTSDK.Node: Refreshing Device Cache: true
D/BluetoothGattServer: onServerConnectionState() - status=0 serverIf=9 device=C0:79:46:34:55:38
D/com.st.BlueSTSDK.NodeServer: Our gatt server connection state changed:2
D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=8 device=C0:79:46:34:55:38
D/com.st.BlueSTSDK.Node: Node: BVBNRG1 Status: 0 newState: 2 boundState:12
D/BluetoothGatt: discoverServices() - device: C0:79:46:34:55:38
D/BluetoothGatt: onConnectionUpdated() - Device=C0:79:46:34:55:38 interval=9 latency=0 timeout=400 status=0
D/BluetoothGattServer: onConnectionUpdated() - Device=C0:79:46:34:55:38 interval=9 latency=0 timeout=400 status=0
D/BluetoothGatt: onConnectionUpdated() - Device=C0:79:46:34:55:38 interval=6 latency=0 timeout=500 status=0
D/BluetoothGattServer: onConnectionUpdated() - Device=C0:79:46:34:55:38 interval=6 latency=0 timeout=500 status=0
D/BluetoothGatt: onSearchComplete() = Device=C0:79:46:34:55:38 Status=0
D/BluetoothGatt: setCharacteristicNotification() - uuid: 00002a05-0000-1000-8000-00805f9b34fb enable: true
D/BluetoothGatt: onConnectionUpdated() - Device=C0:79:46:34:55:38 interval=9 latency=0 timeout=400 status=0
D/BluetoothGattServer: onConnectionUpdated() - Device=C0:79:46:34:55:38 interval=9 latency=0 timeout=400 status=0
D/BluetoothGatt: discoverServices() - device: C0:79:46:34:55:38
D/BluetoothGatt: onSearchComplete() = Device=C0:79:46:34:55:38 Status=0
D/NodeStateListener: BVBNRG1 Connecting->Connected
W/AudioTrack: Use of stream types is deprecated for operations other than volume control
    See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
D/BluetoothGatt: setCharacteristicNotification() - uuid: 40000000-0001-11e1-ac36-0002a5d5c51b enable: true
D/BluetoothGatt: setCharacteristicNotification() - uuid: 08000000-0001-11e1-ac36-0002a5d5c51b enable: true
D/LeakCanary: Watching instance of androidx.coordinatorlayout.widget.CoordinatorLayout (com.st.BlueMS.demos.Audio.SpeechToText.SpeechToTextFragment received Fragment#onDestroyView() callback (references to its views should be cleared to prevent leaks)) with key 9b6df368-13d6-43fd-887a-fa409b36b284
D/BluetoothGatt: setCharacteristicNotification() - uuid: 08000000-0001-11e1-ac36-0002a5d5c51b enable: false
D/LeakCanary: Scheduling check for retained objects because found new object retained
I/st.bluems.debu: Explicit concurrent copying GC freed 194049(7999KB) AllocSpace objects, 32(640KB) LOS objects, 49% free, 3950KB/7901KB, paused 251us total 57.550ms
D/LeakCanary: Rescheduling check for retained objects in 2000ms because found only 1 retained objects (< 5 while app visible)
W/AudioTrack: Use of stream types is deprecated for operations other than volume control
    See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
I/st.bluems.debu: Explicit concurrent copying GC freed 13847(631KB) AllocSpace objects, 27(540KB) LOS objects, 49% free, 3933KB/7867KB, paused 149us total 58.160ms
D/AudioTrack: stop(33): called with 185080 frames delivered
D/LeakCanary: Check for retained object found no objects remaining
D/BluetoothGattServer: onServerConnectionState() - status=0 serverIf=9 device=C0:79:46:34:55:38
E/com.st.BlueSTSDK.Node: onDescriptorWrite Error writing the descriptor for char: 08000000-0001-11e1-ac36-0002a5d5c51b
D/com.st.BlueSTSDK.NodeServer: Our gatt server connection state changed:0
E/com.st.BlueSTSDK.Node: Error connecting to the node:BVBNRG1
D/BluetoothGattServer: clearServices()
D/BluetoothGattServer: close()
    unregisterCallback() - mServerIf=9
D/BluetoothGatt: close()
    unregisterApp() - mClientIf=8
D/NodeStateListener: BVBNRG1 Connected->Dead
D/NodeConnectionService: re connectC0:79:46:34:55:38
D/NodeStateListener: BVBNRG1 Dead->Connecting
D/BluetoothGatt: onClientConnectionState() - status=22 clientIf=8 device=C0:79:46:34:55:38
D/BluetoothGatt: connect() - device: C0:79:46:34:55:38, auto: false
    registerApp()
    registerApp() - UUID=d617ebcd-7aa0-4fcd-83f6-df993a4face3
D/BluetoothGattServer: registerCallback()
    registerCallback() - UUID=f847a361-1631-4273-acfd-cddaa076ea12
D/BluetoothGatt: onClientRegistered() - status=0 clientIf=8
D/BluetoothGattServer: onServerRegistered() - status=0 serverIf=9
D/BluetoothGattServer: addService() - service: 00000000-0001-11e1-9ab4-0002a5d5c51b
D/BluetoothGattServer: connect() - device: C0:79:46:34:55:38, auto: true
D/BluetoothGattServer: onServiceAdded() - handle=40 uuid=00000000-0001-11e1-9ab4-0002a5d5c51b status=0
D/BluetoothGattServer: onServerConnectionState() - status=0 serverIf=9 device=C0:79:46:34:55:38
D/com.st.BlueSTSDK.NodeServer: Our gatt server connection state changed:2
D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=8 device=C0:79:46:34:55:38
D/com.st.BlueSTSDK.Node: Node: BVBNRG1 Status: 0 newState: 2 boundState:12
D/BluetoothGatt: discoverServices() - device: C0:79:46:34:55:38
D/BluetoothGatt: onSearchComplete() = Device=C0:79:46:34:55:38 Status=0
D/BluetoothGatt: setCharacteristicNotification() - uuid: 00002a05-0000-1000-8000-00805f9b34fb enable: true
D/BluetoothGatt: onConnectionUpdated() - Device=C0:79:46:34:55:38 interval=9 latency=0 timeout=400 status=0
D/BluetoothGattServer: onConnectionUpdated() - Device=C0:79:46:34:55:38 interval=9 latency=0 timeout=400 status=0
D/BluetoothGatt: discoverServices() - device: C0:79:46:34:55:38
D/BluetoothGatt: onSearchComplete() = Device=C0:79:46:34:55:38 Status=0
D/NodeStateListener: BVBNRG1 Connecting->Connected
W/AudioTrack: Use of stream types is deprecated for operations other than volume control
    See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
D/BluetoothGatt: setCharacteristicNotification() - uuid: 40000000-0001-11e1-ac36-0002a5d5c51b enable: true
D/BluetoothGatt: setCharacteristicNotification() - uuid: 08000000-0001-11e1-ac36-0002a5d5c51b enable: true
Vorherrschende Sprache
Kotlin
Sterne
132
Forks
73
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus STMicroelectronics/STBLESensor_Android

Alle Issues in STMicroelectronics/STBLESensor_Android

Ähnliche Issues

Weitere Issues zu Kotlin

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.