I have struck on the same problem, from another angle.

The problem for me is permissions.
If I run the same line as root, all works fine.

I have tried a number of different permission settings,
but to no avail.

Most of the stuff works if I set BLUETOOTH
and BLUETOOTH_ADMIN, but not the raw socket
call.

I get error code 13 - Permission Denied.

Any hints to a permission I can set that makes it
work without root is appreciated.

Regards, Kenneth

On 24 Mar., 18:07, Johan Zander <johanzan...@gmail.com> wrote:
>
> static int ioctl_connadd(struct hidp_connadd_req *req)
> {
>         int ctl, err = 0;
>
>         ctl = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HIDP);
>         if (ctl < 0)
>                 return -errno;
> ...
>
> }
>

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to