On Sat, Apr 9, 2011 at 8:08 PM, Kenneth Skovhede <kenn...@hexad.dk> wrote:
> 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.

isn't this because of the ANDROID PARANOID NETWORK security options?
All of BT HID implementations I've seen till date on android go via
DBus, so you should consider writing your program via Dbus...

> 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



-- 
--Pavan Savoy

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

Reply via email to