please choosego to mobile | Continue to access the PC version
View: 6516|Reply: 0

Orange Pi 4G IOT ttyMT0,MT1 Serial Read Write

[Copy link]

3

threads

5

posts

82

credits

Registered member

Rank: 2

credits
82
Published in 2019-5-29 15:27:55 | Show all floors |Read mode
I'm trying to read/write serial data using Pin8 & Pin10 using android 6. but in logcat it shows this message and device restart

type=1400 audit(0.0:3110): avc: denied { write } for name="ttyMT0" dev="tmpfs" ino=47 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:ttyMT_device:s0 tclass=chr_file permissive=1
type=1400 audit(0.0:3111): avc: denied { open } for path="/dev/ttyMT0" dev="tmpfs" ino=47 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:ttyMT_device:s0 tclass=chr_file permissive=1
type=1400 audit(0.0:3112): avc: denied { ioctl } for path="/dev/ttyMT0" dev="tmpfs" ino=47 ioc


I change the permission in /dev/ttyMT0, /dev/ttyMT1 to 777. when i restart device the permission set to default.

Can anyone help me to solve this problem??
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list