Uart Communication on Raspberry PI Compute Module 4 using Emteria OS based on Android 13
Hi,
I am trying to implement the example Serial app code provide in Emteria github on a Raspberry Pi Compute Module 4. I have updated the code to use sushell instead of su. But i am getting the following errors
type=1400 audit(0.0:2024): avc: denied { read } for name="ttyS0" dev="tmpfs" ino=406 scontext=u:r:untrusted_app_27:s0:c97,c256,c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 app=com.emteria.serial
type=1400 audit(0.0:2025): avc: denied { write } for name="ttyS0" dev="tmpfs" ino=406 scontext=u:r:untrusted_app_27:s0:c97,c256,c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 app=com.emteria.serial
type=1400 audit(0.0:2026): avc: denied { open } for path="/dev/ttyS0" dev="tmpfs" ino=406 scontext=u:r:untrusted_app_27:s0:c97,c256,c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 app=com.emteria.serial
type=1400 audit(0.0:2027): avc: denied { ioctl } for path="/dev/ttyS0" dev="tmpfs" ino=406 ioctlcmd=0x5401 scontext=u:r:untrusted_app_27:s0:c97,c256,c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 app=com.emteria.serial
Kindly let me know how to resolve for the same.
Regards
Sai Ram
Comments
Emteria OS version is 13.4.0
It works with Emteria OS version 11.11.0
Works with 14.2.0 also
Hi @SaiRam
The errors are somewhat related but cannot be the cause, the part "permissive=1" tells you that in principle it would be denied, but it's still allowed - if that makes sense.
Can you attach a full log? Any reason not to go with 14.2.0?
OK Thank you for the feedback, I am interested in 14.2.0 only, but the touch response was laggy as compared to 13.4.0 or 11.11.0
@SaiRam Understood. We are constantly releasing new versions, might give 14 a try every now and than. As for the issue with version 13, I would need a full log as the avc messages you have copied cannot be the cause for the behaviour you are seeing