Hi,
We are working on Android O with SR3 v1.1.
There is an issue that our Android STB can't find any BLE device using your library.
(https://github.com/NordicSemiconductor/Android-Scanner-Compat-Library)
Here is our code and error log
ScanSettings scanSettings = new ScanSettings.Builder() .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) .setUseHardwareBatchingIfSupported(true) .build(); bleScanner.startScan(null, scanSettings, mScanCallback);
I/zygote: Late-enabling -Xcheck:jni
W/GraphicsEnvironment: driver package 'gfxdriver-bcmstb' not installed
E/VC5: DRM: Trying to find: /dev/dri/card0
D/libEGL: loaded /vendor/lib/egl/libGLES_nexus.so
[ 08-22 11:13:47.206 9298: 9318 E/ ]
init_expose_fences v3d EGL_ANDROID_native_fence_sync extension enabled
D/OpenGLRenderer: HWUI GL Pipeline
E/VC5: DRM: Trying to open: /dev/dri/card0
E/VC5: DRM: brcmv3d Version 2.0.0 20180313, Broadcom V3D GEM provider
E/VC5: DRM: No Nexus secure graphics heap available
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
V/VC5: ==========================================================================
V/VC5: NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS = 1
V/VC5: ==========================================================================
V/VC5: ==========================================================================
V/VC5: NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS = 1
V/VC5: ==========================================================================
D/BluetoothGatt: connect() - device: E9:74:F1:2A:15:D5, auto: false
D/BluetoothGatt: registerApp()
D/BluetoothGatt: registerApp() - UUID=2cf0ce0e-fce1-41ec-9b00-e6e32acab188
D/BluetoothGatt: onClientRegistered() - status=0 clientIf=6
D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=6 device=E9:74:F1:2A:15:D5
V/BluetoothLeService: onConnectionStateChange 2
D/BluetoothGatt: discoverServices() - device: E9:74:F1:2A:15:D5
D/BluetoothGatt: onSearchComplete() = Device=E9:74:F1:2A:15:D5 Status=0
I/zygote: Do partial code cache collection, code=26KB, data=30KB
I/zygote: After code cache collection, code=26KB, data=30KB
I/zygote: Increasing code cache capacity to 128KB
D/BluetoothGatt: onClientConnectionState() - status=8 clientIf=6 device=E9:74:F1:2A:15:D5
V/BluetoothLeService: onConnectionStateChange 0
D/BluetoothGatt: discoverServices() - device: E9:74:F1:2A:15:D5
D/BluetoothGatt: close()
D/BluetoothGatt: unregisterApp() - mClientIf=6
V/VC5: ==========================================================================
V/VC5: NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS = 1
V/VC5: ==========================================================================
D/BluetoothGatt: connect() - device: E9:74:F1:2A:15:D5, auto: false
D/BluetoothGatt: registerApp()
D/BluetoothGatt: registerApp() - UUID=438ca611-8a23-4350-a40e-1dc9394ab84f
D/BluetoothGatt: onClientRegistered() - status=0 clientIf=6
D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=6 device=E9:74:F1:2A:15:D5
V/BluetoothLeService: onConnectionStateChange 2
D/BluetoothGatt: discoverServices() - device: E9:74:F1:2A:15:D5
D/BluetoothGatt: onSearchComplete() = Device=E9:74:F1:2A:15:D5 Status=0
I/zygote: Do partial code cache collection, code=43KB, data=58KB
I/zygote: After code cache collection, code=43KB, data=58KB
I/zygote: Increasing code cache capacity to 256KB
I/zygote: Compiler allocated 4MB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
I/zygote: Do full code cache collection, code=126KB, data=88KB
I/zygote: After code cache collection, code=84KB, data=41KB
D/BluetoothGatt: close()
D/BluetoothGatt: unregisterApp() - mClientIf=6
V/UploadingFragment: scanLeDevice
D/BluetoothAdapter: isLeEnabled(): ON
D/BluetoothLeScanner: onScannerRegistered() - status=0 scannerId=6 mScannerId=0
I/zygote: Do partial code cache collection, code=99KB, data=57KB
I/zygote: After code cache collection, code=99KB, data=56KB
I/zygote: Increasing code cache capacity to 512KB
I/zygote: Method exceeds compiler instruction limit: 25337 in void org.ccil.cowan.tagsoup.HTMLSchema.<init>()
W/UploadingFragment: force stop scan
D/BluetoothAdapter: isLeEnabled(): ON
V/VC5: ==========================================================================
V/VC5: NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS = 1
V/VC5: ==========================================================================
D/BluetoothGatt: connect() - device: E9:74:F1:2A:15:D5, auto: false
D/BluetoothGatt: registerApp()
D/BluetoothGatt: registerApp() - UUID=5c4971d7-1118-40cc-9e45-62b4861ffa01
D/BluetoothGatt: onClientRegistered() - status=0 clientIf=6
D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=6 device=E9:74:F1:2A:15:D5
V/BluetoothLeService: onConnectionStateChange 2
D/BluetoothGatt: discoverServices() - device: E9:74:F1:2A:15:D5
D/BluetoothGatt: onSearchComplete() = Device=E9:74:F1:2A:15:D5 Status=0
D/BluetoothGatt: close()
D/BluetoothGatt: unregisterApp() - mClientIf=6
/*
* Using https://github.com/NordicSemiconductor/Android-Scanner-Compat-Library/releases
*
* ScanSettings scanSettings = new ScanSettings.Builder()
* .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES)
* .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY)
* .setUseHardwareCallbackTypesIfSupported(true)
* .build();
* bleScanner.startScan(null, scanSettings, mScanCallback);
*/
V/UploadingFragment: scanLeDevice
D/BluetoothAdapter: isLeEnabled(): ON
D/BluetoothLeScanner: onScannerRegistered() - status=0 scannerId=6 mScannerId=0
W/UploadingFragment: force stop scan
D/BluetoothAdapter: isLeEnabled(): ON
However We worked fine on Android N with SR3 v1.1.
Thanks,
Ralph