Files
gfps/24+BLE+连上之后手机没有查服务,紧接着手机主动下了断线.md
danni_dong bdbb2527e6
All checks were successful
Sync To /home/ubuntu/gfps / sync (push) Successful in 2s
gfps: 添加认证测试和FAQ 20260505
Change-Id: I71e676b997159a141ca07d16f82a73b45f4b2410
2026-05-05 19:24:08 +08:00

4.1 KiB
Raw Blame History

24 BLE 连上之后手机没有查服务,紧接着手机主动下了断线

问题1

https://partnerissuetracker.corp.google.com/u/0/issues/420766718

// Validator calls BluetoothDevice.connectGatt() 
05-27 18:24:26.853 I GattClientImpl: BluetoothDevice.connectGatt() - 00:00:00:00:00:0D [CONTEXT service_id=284 ]

// This follows to BluetoothDevice.connectGatt() calls, apparently one made by another app at the same time.

05-27 18:24:26.853 D BluetoothGatt: connect() - device: XX:XX:XX:XX:00:0D, auto: false
05-27 18:24:26.853 D BluetoothGatt: registerApp()
05-27 18:24:26.854 D BluetoothGatt: registerApp() - UUID=8f31e253-d3a8-492f-9165-d806b6c95c32
05-27 18:24:26.856 D BluetoothGatt: onClientRegistered() - status=0 clientIf=14

05-27 18:24:26.976 D BluetoothGatt: connect() - device: XX:XX:XX:XX:00:0D, auto: false
05-27 18:24:26.976 D BluetoothGatt: registerApp()
05-27 18:24:26.976 D BluetoothGatt: registerApp() - UUID=b48ee071-2016-4f0e-8e65-815a00cec43b
05-27 18:24:26.988 D BluetoothGatt: onClientConnectionState() - status=0 clientIf=14 device=00:00:00:00:00:0D
05-27 18:24:26.989 D BluetoothGatt: onClientRegistered() - status=0 clientIf=16

05-27 18:24:26.989 I GattClientImpl: Bluetooth connection state changed, status: GATT_SUCCESS, state: 2 - 00:00:00:00:00:0D [CONTEXT service_id=284 ]
05-27 18:24:26.990 D BluetoothGatt: requestConnectionPriority() - params: 0

// BluetoothDevice.discoverServices() called. There's also a second call to this API. From HCI service discovery is not in fact performed.
// onServicesDiscovered() is invoked right away
05-27 18:24:26.991 I GattClientImpl: discoverServices() - 00:00:00:00:00:0D [CONTEXT service_id=284 ]
05-27 18:24:26.992 D BluetoothGatt: discoverServices() - device: XX:XX:XX:XX:00:0D
05-27 18:24:26.997 D BluetoothGatt: onClientConnectionState() - status=0 clientIf=16 device=00:00:00:00:00:0D
05-27 18:24:26.998 D BluetoothGatt: discoverServices() - device: XX:XX:XX:XX:00:0D
05-27 18:24:27.001 D BluetoothGatt: onSearchComplete() = Device=00:00:00:00:00:0D Status=0
05-27 18:24:27.001 I GattClientImpl: onServicesDiscovered() - 00:00:00:00:00:0D [CONTEXT service_id=284 ]

// bluetoothGatt.writeDescriptor(Descriptor) returns false
05-27 18:24:27.101 I ValidatorImpl: Asynchronously failing: Error performing GATT operation (fe2c1238-8366-4814-8eb0-01de32100bea SUBSCRIBE_TO_NOTIFICATIONS returned false)

After BLE is connected, retroactive pairing failed due to no cache is found.

05-27 18:24:21.381 I NearbyDiscovery: [trigger-id=Paed20819D34, feature-id=Repa] RetroactivePairManager: Skip, some info is null, mac=XX:XX:XX:XX:00:0D, remainingTime=0, ble-mac=XX:XX:XX:XX:1C:2D, model-id=99F751, bleCache=NONE [CONTEXT service_id=265 ]

It may because the model-id 99f751 is filtered by spoofing detected.

ModelIdScanTriggerStats ** last-seen-ms-ago=     95982, first-seen-ms-ago=    107254, count=   90, model-id=99f751, NotDownloadedYet, mac=XX:XX:XX:XX:1C:2D, min-distance=  0.07, max-distance=  1.00, result=SPOOFING_DETECTED

Since the model-id 99f751 has still not approved in the device console yet,

could you go to Settings > Google > All services > Devices and enable Include debug results (requires to enable developer mode first)


Then, test again to see if the device can detect the advertisement correctly. Thanks!

问题2:

https://partnerissuetracker.corp.google.com/u/0/issues/502346693