gritzman / libusb Goto Github PK
View Code? Open in Web Editor NEWLibusb for android based on libusb 1.0.9 - Working on Lollipop
License: GNU General Public License v2.0
Libusb for android based on libusb 1.0.9 - Working on Lollipop
License: GNU General Public License v2.0
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 <[email protected]> (use the mailing list rather than mailing developers directly) -2014 Shachar Gritzman <[email protected]> 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
I have to use newest libusb. Although Gritzman's libusb can work, I want know which file been modified, so that I can do it in newest libusb.
I have checked the source code, but because I don't know which version of libusb been modified by Grizman, so I can't modify the source code.
hi, i have a error (return -1) on in libusb_init() for android Oreo non rooted
supports_flag_bulk_continuation = kernel_version_ge(2,6,32);
if (supports_flag_bulk_continuation == -1) {
usbi_err(ctx, "error checking for bulk continuation support");
return LIBUSB_ERROR_OTHER;
}
an idea please?
Please add brief usage on android to the readme, not clear without digging sources:
Exactly that order will work.
I see your instructions in the README:
The substeps for step number 2 are, as I understand them:
...but I encounter a problem when attempting to open the device with libusb: libusb_init
returns -99
. I suppose that this is because my app lacks permissions to access /dev/bus/usb
, but is there anything I can do about that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.