Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't open Device on Nexus 5 with Lollipop 5.0 #91

Open
mtamburrano opened this issue Feb 4, 2015 · 1 comment
Open

can't open Device on Nexus 5 with Lollipop 5.0 #91

mtamburrano opened this issue Feb 4, 2015 · 1 comment

Comments

@mtamburrano
Copy link

Hi,
I'm building an android application that makes use of a Structure Sensor through openni2.
I've tested on a OnePlus One with Android 4.4.4 and works nice, but I can't open the device on a nexus 5 with Lollipop 5.0.

On the lines
Status rc = device.open(openni::ANY_DEVICE);
I obtain the following with OpenNI::getExtendedError():
DeviceOpen using default: no devices found

both phones have OTG enabled and openni::OpenNI::initialize(); return STATUS_OK
Maybe there is some incompatibility with shared libraries and Android 5.0?

@iainrwilson
Copy link

I ran into the same problem, the issue is the stricter security in Android 5.0.x. SELinux blocks whatever PS1080.so tries to do on initialisation.

My solution was to root my device and set SELinux to permissive:

The link below describes the problem and suggest another workaround with a different libusb version (assuming libusb is the culprit).
http://stackoverflow.com/questions/25662307/android-l-libusb-init-returns-libusb-error-other-99

I hope this helps.
Iain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants