5

Is it possible to make an Android phone present itself as not being from the Phone device class when connecting over Bluetooth? For example, imagine I wanted to pretend my phone was a Bluetooth keyboard to another device.

I've been looking around the Bluetooth API and I don't see anyway to change it.

4

1 に答える 1

0

COD(Class of device) cannot be changed from the application. For bluez stack in phone, COD is defined in adapter.c . Though if u want that ur phone can act as a keyboard to some other device, may be adding SDP record can help. If peer device searches for the services supported on your phone, it can recognize as HID device with the SDP record

于 2013-01-30T12:39:02.863 に答える