|
开发板运行测试脚本,测试uart相关apk时发现data分区在未重启的情况下变成了ro状态,导致apps崩溃。
具体信息如下:
开发板:x3399,android7.1, disable selinux 模式下
apk动作:操作ttyS4写一组数据,读一组,再写一组读一组。
monkey测试脚本动作:
1. adb 覆盖安装apk
2. 进入apk,点击读写按钮(如上所述读写两组数据)
3. 等待10s后重复1步骤。
以上步骤重复3-7小时内,必定复现此问题,相关日志如下:
serial_device:s0 tclass=chr_file permissive=1
[26757.261535] binder: 790:790 transaction failed 29189, size 88-0
[26775.791807] binder: 790:790 transaction failed 29189, size 88-0
[26787.930594] type=1400 audit(1543779602.710:791): avc: denied { write } for pid=1248 comm="com.act.r1_demo" name="ttyS4" dev="tmpfs" ino=10734 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:serial_device:s0 tclass=chr_file permissive=1
[26794.692348] binder: 790:790 transaction failed 29189, size 88-0
[26813.079239] binder: 790:790 transaction failed 29189, size 88-0
[26825.079594] type=1400 audit(1543779639.860:792): avc: denied { write } for pid=1497 comm="com.act.r1_demo" name="ttyS4" dev="tmpfs" ino=10734 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:serial_device:s0 tclass=chr_file permissive=1
[26831.791725] binder: 790:790 transaction failed 29189, size 88-0
[26850.625577] binder: 790:790 transaction failed 29189, size 88-0
[26862.316377] type=1400 audit(1543779677.096:793): avc: denied { write } for pid=1647 comm="com.act.r1_demo" name="ttyS4" dev="tmpfs" ino=10734 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:serial_device:s0 tclass=chr_file permissive=1
[26869.071822] binder: 790:790 transaction failed 29189, size 88-0
[26887.802012] binder: 790:790 transaction failed 29189, size 88-0
[26899.857094] type=1400 audit(1543779714.636:794): avc: denied { write } for pid=1833 comm="com.act.r1_demo" name="ttyS4" dev="tmpfs" ino=10734 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:serial_device:s0 tclass=chr_file permissive=1
[26906.583028] binder: 790:790 transaction failed 29189, size 88-0
[26918.702562] type=1400 audit(1543779733.483:795): avc: denied { write } for pid=1920 comm="com.act.r1_demo" name="ttyS4" dev="tmpfs" ino=10734 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:serial_device:s0 tclass=chr_file permissive=1
[26925.405577] binder: 790:790 transaction failed 29189, size 88-0
|
|