我是菜菜鸟
2021-05-04 09:57
采纳率: 66.7%
浏览 109
已结题

Android 开发华为手机扫描不到BLE设备

D/RtgSchedIpcFile: setCommandByIoctl failed ret:-1, cmdid:32, errno:13
W/.example.bmsble: type=1400 audit(0.0:823021): avc: denied { ioctl } for pid=9031 path="/proc/9031/rtg" dev="proc" ino=12434410 ioctlcmd=0xab20 scontext=u:r:untrusted_app:s0:c70,c257,c512,c768 tcontext=u:r:untrusted_app:s0:c70,c257,c512,c768 tclass=file permissive=0
D/RtgSchedIpcFile: setCommandByIoctl failed ret:-1, cmdid:32, errno:13
W/.example.bmsble: type=1400 audit(0.0:823022): avc: denied { ioctl } for pid=9031 path="/proc/9031/rtg" dev="proc" ino=12434410 ioctlcmd=0xab20 scontext=u:r:untrusted_app:s0:c70,c257,c512,c768 tcontext=u:r:untrusted_app:s0:c70,c257,c512,c768 tclass=file permissive=0
W/.example.bmsble: type=1400 audit(0.0:823023): avc: denied { ioctl } for pid=9031 path="/proc/9031/rtg" dev="proc" ino=12434410 ioctlcmd=0xab20 scontext=u:r:untrusted_app:s0:c70,c257,c512,c768 tcontext=u:r:untrusted_app:s0:c70,c257,c512,c768 tclass=file permissive=0
D/RtgSchedIpcFile: setCommandByIoctl failed ret:-1, cmdid:32, errno:13
D/RtgSchedIpcFile: setCommandByIoctl failed ret:-1, cmdid:32, errno:13
W/.example.bmsble: type=1400 audit(0.0:823024): avc: denied { ioctl } for pid=9031 path="/proc/9031/rtg" dev="proc" ino=12434410 ioctlcmd=0xab20 scontext=u:r:untrusted_app:s0:c70,c257,c512,c768 tcontext=u:r:untrusted_app:s0:c70,c257,c512,c768 tclass=file permissive=0
D/RtgSchedIpcFile: setCommandByIoctl failed ret:-1, cmdid:32, errno:13
W/.example.bmsble: type=1400 audit(0.0:823025): avc: denied { ioctl } for pid=9031 path="/proc/9031/rtg" dev="proc" ino=12434410 ioctlcmd=0xab20 scontext=u:r:untrusted_app:s0:c70,c257,c512,c768 tcontext=u:r:untrusted_app:s0:c70,c257,c512,c768 tclass=file permissive=0
D/RtgSchedIpcFile: setCommandByIoctl failed ret:-1, cmdid:32, errno:13
I/chatty: uid=10326(com.example.bmsble) identical 4 lines
D/RtgSchedIpcFile: setCommandByIoctl failed ret:-1, cmdid:32, errno:13
D/RtgSchedIpcFile: setCommandByIoctl failed ret:-1, cmdid:32, errno:13

本人开发BLE上位机过程中遇到的问题,用我的手机小米11手机开发是可以扫描到BLE设备并连接的,但是用华为(Android11)却是扫描不到,run出现上述情况,不知道是什么原因,并没有进入扫描回调

  • 点赞
  • 收藏

1条回答 默认 最新

  • 我是菜菜鸟 2021-05-05 19:56
    已采纳
    
     
    applicationId "com.example.bmsble"
            minSdkVersion 16
            //noinspection ExpiredTargetSdkVersion
            targetSdkVersion 22
            versionCode 1
            versionName "1.0"
    

    targetSdkVersion 改成 22

    点赞 评论

相关推荐 更多相似问题