Hi all, I'm porting Android 4.0 to a new device and have trouble with activating the Bluetooth from the Settings UI. Bluetooth seems to be up and running from the command line:
echo 1 > /sys/class/rfkill/rfkill1/state > root@android:/ # hciconfig hci0 > up > root@android:/ # hciconfig -a > hci0: Type: BR/EDR Bus: UART > BD Address: 00:19:88:0B:29:95 ACL MTU: 310:10 SCO MTU: 64:8 > UP RUNNING > RX bytes:3017 acl:0 sco:0 events:110 errors:0 > TX bytes:1334 acl:0 sco:0 commands:107 errors:0 > Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80 > Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 > Link policy: RSWITCH HOLD SNIFF PARK > Link mode: SLAVE ACCEPT > Name: 'CSR - bc4' > Class: 0x000000 > Service Classes: Unspecified > Device Class: Miscellaneous, > HCI Version: 2.0 (0x3) Revision: 0xc5c > LMP Version: 2.0 (0x3) Subversion: 0xc5c > Manufacturer: Cambridge Silicon Radio (10) > > root@android:/ # hcitool > scan > Scanning ... > 00:1D:FE:71:AC:0A Palm Pre > root@android:/ # > But whenever I try to enable Bluetooth from within the Settings UI I can watch the following log in logcat: I/bluedroid( 139): Starting hciattach daemon > I/bluedroid( 139): Starting bluetoothd deamon > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not > provided by any .service files) > V/BluetoothEventManager( 314): Received > android.bluetooth.adapter.action.STATE_CHANGED > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not > provided by any .service files) > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not > provided by any .service files) > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not > provided by any .service files) > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not > provided by any .service files) > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not > provided by any .service files) > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not > provided by any .service files) > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not > provided by any .service files) > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not > provided by any .service files) > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not > provided by any .service files) > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not > provided by any .service files) > I/bluetoothd( 720): bluetoothd[722]: Bluetooth deamon 4.93 > V/BluetoothMasReceiver( 605): BluetoothMasReceiver onReceive > :android.bluetooth.adapter.action.STATE_CHANGED > E/BluetoothMasReceiver( 605): BluetoothMasReceiver onReceive > :android.bluetooth.adapter.action.STATE_CHANGED > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not > provided by any .service files) > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not > provided by any .service files) > I/bluetoothd( 720): bluetoothd[722]: Starting SDP server > I/bluetoothd( 720): bluetoothd[722]: Got Unix socket fd '10' from > environment > I/bluetoothd( 720): bluetoothd[722]: Adding device id record for 000a:0000 > I/bluetoothd( 720): bluetoothd[722]: Excluding (conf) network > E/BluetoothEventLoop.cpp( 139): get_adapter_path: D-Bus error: > org.bluez.Error.NoSuchAdapter (No such adapter) > I/bluetoothd( 720): bluetoothd[722]: Listening for HCI events on hci0 > I/bluetoothd( 720): bluetoothd[722]: HCI dev 0 up > I/bluetoothd( 720): bluetoothd[722]: Adapter /org/bluez/722/hci0 has been > enabled > I/bluetoothd( 720): bluetoothd[722]: Inquiry Cancel Failed with status > 0x0c > I/BluetoothEventLoop.cpp( 139): agent_event_filter: Received method > org.bluez.Agent:Release > I/bluetoothd( 720): bluetoothd[722]: HCI dev 0 down > I/bluetoothd( 720): bluetoothd[722]: Adapter /org/bluez/722/hci0 has been > disabled > E/bluetooth_common.cpp( 139): dbus_func_args_timeout_valist: D-Bus error > in Register: org.freedesktop.DBus.Error.UnknownMethod (Method "Register" > with signature "ss" on interface "org.bluez.NetworkServer" doesn't exist > E/bluetooth_common.cpp( 139): ) > E/bluetooth_common.cpp( 139): dbus_func_args_timeout_valist: D-Bus error > in Unregister: org.freedesktop.DBus.Error.UnknownMethod (Method > "Unregister" with signature "s" on interface "org.bluez.NetworkServer" > doesn't exist > E/bluetooth_common.cpp( 139): ) > I/bluedroid( 139): Stopping bluetoothd deamon > I/bluedroid( 139): Stopping hciattach deamon > V/BluetoothEventManager( 314): Received > android.bluetooth.adapter.action.STATE_CHANGED > V/BluetoothMasReceiver( 605): BluetoothMasReceiver onReceive > :android.bluetooth.adapter.action.STATE_CHANGED > E/BluetoothMasReceiver( 605): BluetoothMasReceiver onReceive > :android.bluetooth.adapter.action.STATE_CHANGED > I am especially concerned about this line: I/bluetoothd( 720): bluetoothd[722]: Inquiry Cancel Failed with status 0x0c > What is going wrong in my setup? And what does " Inquiry Cancel Failed with status 0x0c" mean? Is anybody able to help me out? Thanks, Lukas -- -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
