Added Florin's changes for android and bluetooth serial. Doesn't work possibly due to permissions issues on /dev/tty