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

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 7月23日

悬赏问题

  • ¥15 关于#java#的问题:找一份能快速看完mooc视频的代码
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!