I have played around with a non-rooted phone running Termux. I got it to use a USB serial device (normally /dev/ttyACM0) under linux, but it didn't show up as such device. I hade to use libusb to get it to work. Also, it doesn't work on every phone. IMO, that route is painful. It is much easier...