Skip to content

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

Open

Description

@mtamburrano

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?

Activity

  1. iainrwilson commented on Mar 2, 2015

    @iainrwilson

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions