Android AVC отклонил RS485 ⇐ Android
-
Anonymous
Android AVC отклонил RS485
I'm using an Android-based motherboard for a project, and this board has an integrated RS485 port. I want to connect to a different system via Modbus RTU over this port and read and write data from certain addresses. However, when I run the program I wrote in Android Studio, I receive the following message on the logcat screen. I contacted the manufacturer and they sent me 2 files and 1 jar file to sign the written APK, but I can't debug and test the program. I wonder if anyone has encountered this problem and can help me. The device is rooted.
type=1400 audit(0.0:2178): avc: denied { open } for path="/dev/ttyS5" dev="tmpfs" ino=11547 scontext=u:r:untrusted_app:s0:c127,c256,c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 app=com.syssoft.myapplication
Источник: https://stackoverflow.com/questions/780 ... nied-rs485
I'm using an Android-based motherboard for a project, and this board has an integrated RS485 port. I want to connect to a different system via Modbus RTU over this port and read and write data from certain addresses. However, when I run the program I wrote in Android Studio, I receive the following message on the logcat screen. I contacted the manufacturer and they sent me 2 files and 1 jar file to sign the written APK, but I can't debug and test the program. I wonder if anyone has encountered this problem and can help me. The device is rooted.
type=1400 audit(0.0:2178): avc: denied { open } for path="/dev/ttyS5" dev="tmpfs" ino=11547 scontext=u:r:untrusted_app:s0:c127,c256,c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 app=com.syssoft.myapplication
Источник: https://stackoverflow.com/questions/780 ... nied-rs485
Мобильная версия