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

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 网络科学导论,网络控制
  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)