On Mon, Mar 9, 2009 at 11:08 PM, NickS <[email protected]> wrote:
>
> Thanks your help, Nick, I had built libbluedroid.so. Now I want to run
> bluetooth from UI and in system/bluetooth/bluedroid/bluetooth.c,
> asprintf(&rfkill_state_path, "/sys/class/rfkill/rfkill%d/state",
> rfkill_id); can get the path of state, but when I running Android on
> NetBook, my /sys/class/rfkill/ is null,  I have no idea about the path
> of state. What can I do for run bluetooth from UI?


Ok so your platform does not use rfkill for Bluetooth power on/off? If
it uses something else you should probably switch to rfkill - it is
very easy. See board-trout-rfkill.c for an example.

If you do not need any userspace Bluetooth power switch then we can
skip all the rfkill stuff in bluetooth.c. I would take a patch that
skips rfkill if a bluetooth rfkill node does not exist.

Nick

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

Reply via email to