Hi,
I have a problem.
My app uses Android NDK to open uart port.
the NDK code is :
fd = open("/dev/ttys1", O_RDWR | O_NOCTTY | O_NONBLOCK);
but fd will return -1
I check /dev/ttyS1 permission is : crw-rw-----
If I use root to chmod 666 /dev/ttyS1
fd will return > 0 , and uart port can be opened
Can I use Android NDK to open uart port without root to chmod ?
Thanks~