在android中读取USB设备时出错

时间:2018-06-12 02:30:38

标签: android c++ android-studio java-native-interface android-permissions

虽然我已经实现了代码以接受用户使用USB功能的权限,但设备仍然无法使用这些库。

06-11 13:47:03.180 29391-29391/sadboy.circadian W/adboy.circadian: type=1400 audit(0.0:3404): avc: denied { search } for name="/" dev="configfs" ino=1073 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:configfs:s0 tclass=dir permissive=0
    type=1400 audit(0.0:3405): avc: denied { search } for name="/" dev="configfs" ino=1073 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:configfs:s0 tclass=dir permissive=0
    type=1400 audit(0.0:3406): avc: denied { read } for name="devices" dev="sysfs" ino=6546 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0
    type=1400 audit(0.0:3407): avc: denied { read } for name="devices" dev="sysfs" ino=6546 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0

0 个答案:

没有答案