I am trying to send and receive data to hardware serial port ttyS1 on my android device(yes, my device has a user accesible serial port which can be accesed via termux)
when I build and run my app on the device ,I receive this error
12-21 16:05:36.478 1976 1976 I UnityMain: type=1400 audit(0.0:540): avc: denied { read write } for name=“ttyS1” dev=“tmpfs” ino=320 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 app=com.DefaultCompany.blurredforprivacy
12-21 16:05:36.478 1976 1976 I UnityMain: type=1400 audit(0.0:541): avc: denied { open } for path=“/dev/ttyS1” dev=“tmpfs” ino=320 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 app=com.DefaultCompany.blurredforprivacy
12-21 16:05:36.488 0 0 E of_dma_request_slave_channel: dma-names property of node ‘/serial@fe6a0000’ missing or empty
12-21 16:05:36.488 0 0 W : ttyS1 - failed to request DMA, use interrupt mode
12-21 16:05:36.482 1976 1976 I UnityMain: type=1400 audit(0.0:542): avc: denied { ioctl } for path=“/dev/ttyS1” dev=“tmpfs” ino=320 ioctlcmd=0x5401 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 [app=com.DefaultCompany.blurredfor privacy
I face this issue.
I tried building a native plugin with no results.
I also tried implementing this via shell command with some level of success, but the reading frequency was slow about 1 time per second, whereas I would like it to read atleast 10 times a second so I don’t miss any data
I have a corresponding hardware setup which can send and receive data via uart
Urgent assitance is required.