Hi,all.I'm trying to use usb bluetooth in android 2.1.
I find I can use  "bttest enable", "bttest disable" ,and "scan” etc bluztool
in adb mode,but when I try to set bluetooth ON,in the UI,

It didn't work,the logcat just show  "V/BluetoothEventRedirector( 2143):
Received android.bluetooth.adapter.action.STA
TE_CHANGED"

I have changed bluetooth.c  to avoid use  rfkill method.and modified
init.rc  like this:
anyone can give some advice?

 mkdir /data/misc/bluetoothd 0777 bluetooth bluetooth


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/logwrapper /system/bin/bluetoothd -d -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 hciattach /system/bin/logwrapper /system/bin/hciattach -l
    user root
    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

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

Reply via email to