Hi guys, I'm having issues with Android 7.0 and a bluetooth LE HID device I'm developing.
On Android 6.0 my BLE peripheral is working fine. It looks like the HID descriptor being passed to the btif subsystem is broken and (in my case) has length 0. See logcat: 12-07 21:11:23.275 511 582 W bt_btif : btif_hh_upstreams_evt: name = Hid Remote 12-07 21:11:23.275 511 582 W bt_btif : bta_hh_co_send_hid_info: fd = 142, name = [GP HID Remote], dscp_len = 0 12-07 21:11:23.275 511 582 W bt_btif : bta_hh_co_send_hid_info: vendor_id = 0x0000, product_id = 0x0000, version= 0x0000,ctry_code=0x00 12-07 21:11:23.276 511 582 E bt_btif : uhid_write: Cannot write to uhid:Invalid argument 12-07 21:11:23.276 511 582 W bt_btif : bta_hh_co_send_hid_info: wrote descriptor to fd = 142, dscp_len = 0, result = -22 12-07 21:11:23.276 511 582 W bt_btif : bta_hh_co_send_hid_info: Error: failed to send DSCP, result = -22 12-07 21:11:23.276 511 582 W bt_btif : Added device F3:79:69:D8:7C:E3 12-07 21:11:23.276 511 582 W bt_btif : BTA_HH_GET_DSCP_EVT: Called add device 12-07 21:11:23.276 511 582 W bt_btif : BTA_HH_ADD_DEV_EVT: status = 0, handle = 16 12-07 21:11:23.279 511 511 D HidService: Saved priority F3:79:69:D8:7C:E3 = 100 12-07 21:11:23.279 511 511 D HidService: MESSAGE_CONNECT_STATE_CHANGED newState:2, prevState:1 12-07 21:11:23.279 511 511 D HidService: Connection state F3:79:69:D8:7C:E3: 1->2 12-07 21:11:23.279 511 511 D BluetoothAdapterService: getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@1807b1f 12-07 21:11:23.281 511 511 D BluetoothAdapterService: getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@1807b1f 12-07 21:11:23.283 511 571 D BluetoothAdapterState: Current state: ON, message: 0 12-07 21:11:23.283 511 511 D BluetoothAdapterProperties: CONNECTION_STATE_CHANGE: F3:79:69:D8:7C:E3: 1 -> 2 12-07 21:11:23.285 449 449 I RemoteControlService: Device Hid Remote now CONNECTED: calling updateDeviceList() 12-07 21:11:23.289 449 449 I RemoteControlService: Connected device address F3:79:69:D8:7C:E3 name Hid Remote 12-07 21:11:23.289 449 449 I RemoteControlService: Found 0 connected remotes 12-07 21:11:23.311 511 788 E bt_btif : Unexpected Read UUID: 0x2a4a 12-07 21:11:23.642 511 788 E bt_btif : Unexpected Read UUID: 0x2a4b 12-07 21:11:26.276 511 3195 E bt_btif : uhid_read_event: Cannot read uhid-cdev: Bad file descriptor 12-07 21:11:36.949 712 712 D BluetoothDevicePairer: Pairing process has already begun, it can not be canceled. Does anyone know what could be wrong here? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/9e2bdb48-a403-4aef-ba87-f071d63f4ee9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

