Can you try commenting out the rfkill and the hciattach from the bluedroid? leave only the bluetoothd to start on turning on bluetooth ....
yes, I agree the current android's bluedroid is not easy for the USB bluetooth devices, but it shouldn't be too difficult either... On Mon, Oct 18, 2010 at 3:27 AM, Lay <lightai...@gmail.com> wrote: > Hi, > > Thank you. I have tried to add the lines below to my init.rc file. > However, the result is still the same. > > service hciattach /system/bin/hciattach -l > user root > group bluetooth net_bt_admin misc > disabled > oneshot > > Whenever I try to enable Bluetooth on the UI, I get the messages > below; > > D/BluetoothService( 896): Bluetooth state 10 -> 11 > > I/StatusBarPolicy( 896): received intent > android.bluetooth.adapter.action.STATE_CHANGED > D/BluetoothService( 896): Bluetooth state 11 -> 10 > > I/StatusBarPolicy( 896): received intent > android.bluetooth.adapter.action.STATE_CHANGED > V/BluetoothEventRedirector( 1148): Received > android.bluetooth.adapter.action.STATE_CHANGED > V/BluetoothEventRedirector( 1148): Received > android.bluetooth.adapter.action.STATE_CHANGED > > Could there be something with the Android framework or app settings > that I need to modify? I am using USB bluetooth. > > > On Oct 18, 12:28 pm, Pavan Savoy <pavan.sa...@gmail.com> wrote: >> disabling starting of hciattach service from the >> system/bluetooth/bluedroid/bluetooth.c or take a cleaner approach of >> having the hciattach service do nothing, as in ... >> >> service hciattach "echo usb bluetooth, nothing to do!!' or something like, >> service hciattach /system/bin/hciattach -l >> user root >> # changing user to root from bluetooth is a potential security issue >> # service hciattach_legacy is used instead of hciattach because, we dont >> # have nodes named ttyHS0 >> group bluetooth net_bt_admin misc >> disabled >> oneshot >> >> >> >> On Sun, Oct 17, 2010 at 11:22 PM, Lay <lightai...@gmail.com> wrote: >> > Dear Android experts, >> >> > I am using USB bluetooth on Android. I have finally gotten USB >> > bluetooth to work using command-line only. Bluetooth cannot be enabled >> > from the UI. >> >> > I suspect that hciattach is the cause because hciattach only works on >> > UART. What should I do with hciattach if I am not using UART >> > interface? What to do with hciattach for USB interface? Has someone >> > tried this before? >> >> > Thank you. >> >> > -- >> > unsubscribe: android-porting+unsubscr...@googlegroups.com >> > website:http://groups.google.com/group/android-porting >> >> -- >> --Pavan Savoy > > -- > unsubscribe: android-porting+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-porting > -- --Pavan Savoy -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting