Nexus 7 2013 lollipop 5.1.1 with ArduinoDroid problems

I have been desperately trying to download sketches to my Nexus 7 2013 lollipop 5.1.1 tablet from ArduinoDroid but failed everytime so far.
When I have the ArduinoDroid setting to use AVRDude programmer I get the following error message:
failed to init libusb:-99
When I use the internal programmer I get this error message:
Error:length=1;index=1

I have external power connected to my Arduino Uno R3
I have an OTG cable for my Nexus 7
I am using the blink example which compiles OK.
I can program my Arduino Uno OK from my PC and Laptop.

Has anybody got any experience with getting this working? As yet I don't even know where the problem lies: lollipop 5.1.1 or OTG or ArduinoDroid.

I have got a HC05 bluetooth on order so if the usb cable method fails me then I can try over bluetooth if I have to.

Any help appreciated.
Thanks,
Paul

Hi. I'm working on fixing this but it seems tricky without rooting the device. It seems to be a problem with many devices using Android version 5.0.1 or higher (aka Lollipop). The error code means just LIBUSB_ERROR_OTHER so doesn't tell much.

It could be a problem with libusb-libraries in newer Android or my guess it has something to do with the new SELinux being set to enforcing, instead of permissive by default on newer Android versions. You can change it to permissive, or disable it (not recommended).

SELinux: Security-Enhanced Linux in Android  |  Android Open Source Project
LIBUSB: https://github.com/libusb/libusb/tree/master/android

Both of these require rooting so therefore I'm currently unable to test them. I will be posting all progress being made on this thread: http://forum.arduino.cc/index.php?topic=160105.0

Hopefully well fix it,
Joonas Tuomi.