davidawesome01
Usb tty usage on unrooted
https://github.com/ezramorris/PyVirtualSerialPorts is a good example it seams (for creating fake usb location) then just symlink from pty to specified path
88 replies
Usb tty usage on unrooted
Just did; I just dont think thats how I will implement it, they seam to not actualy lie, termux dose that. Termux api just send a fd that termux can then access in that subprocess (being inherited from the upper process that calls to the termux api after termux api uses in )
88 replies
Usb tty usage on unrooted
You mean the
/dev/
? For almost all programs this is just the default place, but not required.
I am kinda asking the same thing; should this be just a userspace package, I can make it easily in python based on a few projects?88 replies
Usb tty usage on unrooted
Last question because I am not really in on how termux dose some stuff; is there any overlay fs in /dev/ or are they just raw android /dev?
If it has a overaly fs it should be easy, if not, I need to do it in a diffrent folder, prob specified by a argument
88 replies
Usb tty usage on unrooted
I just mean a pty genearted by termux and as in faking it being a usbtty; sorry if I was not clear
https://man7.org/linux/man-pages/man7/pty.7.html
I mean socat can make one, and that works for almost any program, so I would assume that works https://unix.stackexchange.com/questions/493572/create-pty-and-connect-it-to-a-serial-port-dev-ttyusb0
88 replies
Usb tty usage on unrooted
Will see if I have time; do we know if we can just include https://github.com/mik3y/usb-serial-for-android/tree/master as MIT code into termux or should I rewrite it?
If I rewrite, can I use the MIT code (with credit) to the author in termux api? Its GPL v3 so it should be applicable
88 replies