im trying to use vim3 uart sdk, and got this error
type=1400 audit(0.0:319): avc: denied { read write } for name=“ttyS3” dev=“tmpfs” ino=16426 scontext=u:r:system_app:s0 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1
type=1400 audit(0.0:321): avc: denied { ioctl } for path="/dev/ttyS3" dev=“tmpfs” ino=16426 ioctlcmd=0x5401 scontext=u:r:system_app:s0 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1
anyone can help?
if this is the permission issue, can someone please tell me how to add permission?
You did not mention OS.
If running ubuntu:
$sudo usermod -aG dialout,tty <your user name>
You will have to log out and log back in for that to take effect. Then to make sure its updated:
$ groups
1 Like
its android uart sdk vim3 provided
Sorry, I don’t use Android. Pretty sure some others might help you.
@Chen_Adam
you should add sepolicy permission as above
according to vim3 documentation, default is ttyS3, which is closed from your picture, i already have [1-2] opened (default from android source code),do i just change ttyS[1-2] to ttyS[1-3]? other settings i need to adapt?