Termux-packages: Package request : libusb-1.0.0

Created on 10 Feb 2017  路  4Comments  路  Source: termux/termux-packages

Depends on libudev1
Created disabled package/ basic build.sh

Great Work

package request

Most helpful comment

I think it would be huge if we could support wallet/password managers like trezor. termux api on top of it could be nice but I think double checking that existing android apps can use it is really enough for me to consider this done/done. I'd probably breakout termux-api

All 4 comments

I compiled and tested it with a package I wanted (OpenSC) but needs root permissions to access USB...

It looks like upstream is working on Android support: https://github.com/libusb/libusb/pull/242

What would the best course of action for Termux integration be? I imagine that augmenting termux-api to request permissions for USB devices would be a necessary step, but actually providing API support is a bit more involved, because important features like device scanning, hotplug detection, and enumeration are only available through the Java APIs on non-rooted devices.

At this point, a full-blown fork might be necessary to support libusb in a sane way. I imagine a stub library that passes through to termux-api calls for actual implementation would work, or an additional Termux:USB app and API could keep this complexity out of the core.

I think it would be huge if we could support wallet/password managers like trezor. termux api on top of it could be nice but I think double checking that existing android apps can use it is really enough for me to consider this done/done. I'd probably breakout termux-api

Libusb is now available from termux' root repo.
libusb/libusb#242 looks interesting, we should definitely keep an eye on that and related threads.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

divyakutty picture divyakutty  路  3Comments

bkdwt picture bkdwt  路  3Comments

am11 picture am11  路  3Comments

tigran123 picture tigran123  路  3Comments

loveablefellow007 picture loveablefellow007  路  3Comments