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-kerne...@googlegroups.com
> website: http://groups.google.com/group/android-kernel
--
--Pavan Savoy
But you must request it for the hci0 interface isn't it ....
Can you do that ?
> I looked at the permissions, but none seem to map to AID_NET_RAW:
> http://developer.android.com/reference/android/Manifest.permission.htm
>
> Regards, Kenneth
>