Skip to content
Libusb for android based on libusb 1.0.9 - Working on Lollipop
C Other
  1. C 99.4%
  2. Other 0.6%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
jni Rename jinterfcae.c to jinterface.c Feb 15, 2015
.gitignore Initial commit Dec 16, 2014
LICENSE Initial commit Dec 16, 2014
README Update README Jul 3, 2016

README

libusb
======

libusb is a library for USB device access from Linux, Mac OS X,
OpenBSD, NetBSD, and Windows userspace.
It is written in C and licensed under the LGPL-2.1 (see COPYING).

libusb is abstracted internally in such a way that it can hopefully
be ported to other operating systems. See the PORTING file for some
information, if you fancy a challenge. :)

libusb homepage:
http://libusb.org/

Developers will wish to consult the API documentation:
http://libusb.sourceforge.net/api-1.0/

Use the mailing list for questions, comments, etc:
http://libusb.org/wiki/MailingList

- Peter Stuge <peter@stuge.se>
(use the mailing list rather than mailing developers directly)

-2014 Shachar Gritzman <gritzman@outlook.com> 
this libusb version support android(no root needed). 
in android 5.0(lollipop) google has changed security policy and now SELinux is enforced on all devices.
the original libusb has been modified without breking the interface in order to work with this new policy.

In order to use this solution you have to do those steps:

1. you need to open device by UsbManager
2. open by libusb
3. close by libusb
4. close by UsbManager
You can’t perform that action at this time.