Hi ALl:

  when I tred to enable a generic USB Bluetooth on my board. It gives
following error messages about " Unable to get the control socket for
'bluetooth'.

I removed the ANDROID_PARANOID_NETWORK from Kernel.

-----------------------------------------------------------------------------------------
# bluetoothd -n -d
bluetoothd[613]: Bluetooth deamon 4.69
bluetoothd[613]: external/bluetooth/bluez/src/main.c:parse_config() parsing
main.conf
bluetoothd[613]: external/bluetooth/bluez/src/main.c:parse_config()
discovto=120
bluetoothd[613]: external/bluetooth/bluez/src/main.c:parse_config() pairto=0
bluetoothd[613]: external/bluetooth/bluez/src/main.c:parse_config()
pageto=8192
bluetoothd[613]: external/bluetooth/bluez/src/main.c:parse_config() name=%m
bluetoothd[613]: external/bluetooth/bluez/src/main.c:parse_config()
class=0x40020C
bluetoothd[613]: external/bluetooth/bluez/src/main.c:parse_config()
discov_interval=0
bluetoothd[613]: external/bluetooth/bluez/src/main.c:parse_config()
deviceid=android:generic:1.5
bluetoothd[613]: external/bluetooth/bluez/src/main.c:parse_config()
default_link_policy=7
bluetoothd[613]: Starting SDP server
bluetoothd[613]: Unable to get the control socket for 'bluetooth'
bluetoothd[613]: Server initialization failed
bluetoothd[613]: external/bluetooth/bluez/src/plugin.c:plugin_init()
Loading builtin plugins
bluetoothd[613]: external/bluetooth/bluez/src/plugin.c:add_plugin() Loading
hciops plugin
bluetoothd[613]: external/bluetooth/bluez/src/plugin.c:plugin_init()
Loading plugins /system/lib/bluez-plugin
bluetoothd[613]: external/bluetooth/bluez/src/plugin.c:add_plugin() Loading
audio plugin
bluetoothd[613]: external/bluetooth/bluez/src/plugin.c:add_plugin() Loading
input plugin
bluetoothd[613]: Failed to open RFKILL control device
bluetoothd[613]: external/bluetooth/bluez/src/main.c:main() Entering main
loop

-----------------------------------------------------------------------------------------
Kernel dmesg info:
dmesg:
# [ 2919.647051] usb 1-1.2: new full speed USB device using s5p-ehci and
address 11
[ 2919.757646] usb 1-1.2: New USB device found, idVendor=0a12,
idProduct=3500
[ 2919.763061] usb 1-1.2: New USB device strings: Mfr=0, Product=0,
SerialNumber=0
[ 2919.772847] hub 1-1.2:1.0: USB hub found
[ 2919.775505] hub 1-1.2:1.0: 3 ports detected
[ 2920.053299] usb 1-1.2.1: new full speed USB device using s5p-ehci and
address 12
[ 2920.172389] usb 1-1.2.1: New USB device found, idVendor=0a12,
idProduct=0001
[ 2920.177972] usb 1-1.2.1: New USB device strings: Mfr=1, Product=2,
SerialNumber=0
[ 2920.185492] usb 1-1.2.1: Product: BCM2035
[ 2920.189408] usb 1-1.2.1: Manufacturer: BroadCom Corp
[ 2920.268174] usb 1-1.2.2: new full speed USB device using s5p-ehci and
address 13
[ 2920.379784] usb 1-1.2.2: New USB device found, idVendor=0a5c,
idProduct=3502
[ 2920.385368] usb 1-1.2.2: New USB device strings: Mfr=0, Product=0,
SerialNumber=0
[ 2920.404987] input: HID 0a5c:3502 as
/devices/platform/s5p-ehci/usb1/1-1/1-1.2/1-1.2.2/1-1.2.2:1.0/input/input6
[ 2920.458884] generic-usb 0003:0A5C:3502.0005: input,hidraw0: USB HID
v1.11 Keyboard [HID 0a5c:3502] on usb-s5pv210-1.2.2/input0
[ 2920.568990] usb 1-1.2.3: new full speed USB device using s5p-ehci and
address 14
[ 2920.680936] usb 1-1.2.3: New USB device found, idVendor=0a5c,
idProduct=3503
[ 2920.686554] usb 1-1.2.3: New USB device strings: Mfr=0, Product=0,
SerialNumber=0
[ 2920.708160] input: HID 0a5c:3503 as
/devices/platform/s5p-ehci/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/input/input7
[ 2920.777558] generic-usb 0003:0A5C:3503.0006: input,hidraw1: USB HID
v1.11 Mouse [HID 0a5c:3503] on usb-s5pv210-1.2.3/input0

-----------------------------------------------------------------------------------------
init.rc
service dbus /system/bin/dbus-daemon --system --nofork
    socket dbus stream 660 bluetooth bluetooth
    user bluetooth
    group bluetooth net_bt_admin

service bluetoothd /system/bin/bluetoothd -n
    socket bluetooth stream 660 bluetooth bluetooth
    socket dbus_bluetooth stream 660 bluetooth bluetooth
    # init.rc does not yet support applying capabilities, so run as root and
    # let bluetoothd drop uid to bluetooth with the right linux capabilities
    group bluetooth net_bt_admin misc
    disabled

service hfag /system/bin/sdptool add --channel=10 HFAG
    user bluetooth
    group bluetooth net_bt_admin
    disabled
    oneshot

service hsag /system/bin/sdptool add --channel=11 HSAG
    user bluetooth
    group bluetooth net_bt_admin
    disabled
    oneshot

service opush /system/bin/sdptool add --channel=12 OPUSH
    user bluetooth
    group bluetooth net_bt_admin
    disabled
    oneshot

service pbap /system/bin/sdptool add --channel=19 PBAP
    user bluetooth
    group bluetooth net_bt_admin
    disabled
    oneshot

thinks

-- 
Jiang Bian
http://www.wifihack.net/
http://golang-china.org/

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to