felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.8k stars 585 forks source link

Com port "proxy" for non rooted devices #272

Open podarok opened 5 years ago

podarok commented 5 years ago

Hi There is a great Linux like system for Android - termux. And the only issue to convert any Android to perfect IOT thing is access to com ports Right now image

Which is a bit lame... Only one step to get access to any usb device from programs like zigbee2mqtt , which could be compiled for Android and work well.

Are there

Thanks in advance

felHR85 commented 5 years ago

Hi! @podarok I am afraid you need a rooted device for that. This library implements Usb to serial drivers in the user space precisely because that limitation. Using a rooted device you can access /dev/ttyXXX normally using Process class or even with C code and glue it with JNI

felHR85 commented 5 years ago

@podarok By the way it looks like you are using a X96. We've been evaluating some of them in where I work and it should be easy to have them root.

podarok commented 5 years ago

would be cool to have it non rooted @felHR85 Kinda opens easy way for wider community, not only for nerds