please choosego to mobile | Continue to access the PC version
View: 5027|Reply: 1

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??

1

threads

366

posts

951

credits

Senior member

Rank: 4

credits
951
Published in 2022-9-14 20:21:53 | Show all floors
You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it understandable and easy to read. You have some real writing talent. Thank you.        horizontal rolling chute discharge door
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list