Git Product home page Git Product logo

rxusb-android's Introduction

RxUsb Android backend

RxUsb is a high level reactive facade. Read more about RxUsb here.

RxUsb for Android brings two kinds of implementations: using LibUsb and Native Android USB.

RxUsb backed by LibUsb and android

The default system configuration on most Android devices will not allow access to USB. There are several options for changing this.

If you have control of the system image

Modify the ueventd.rc used in the image to change the permissions on /dev/bus/usb/*/*. If using this approach then it is advisable to create a new Android permission to protect access to these files. It is not advisable to give all applications read and write permissions to these files.

The following example will give all applications read and write permissions for all USB devices.

# vi /ueventd.rc

find line starting with /dev/bus/usb/* and edit it to have 0666 in second column:

/dev/bus/usb/*            0666   root       usb

If you can't modify the image but device is rooted

All other cases

In most cases it is still possible to obtain permission with android.hardware.usb.UsbManager.

The difficulties in this method is that there is no guarantee that it will continue to work in the future Android versions, it requires invoking Java APIs and running code to match each android.hardware.usb.UsbDevice to a libusb_device.

rxusb-android's People

Contributors

tntclaus avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.