依然是菜菜鸟 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 求解 yolo算法问题
  • ¥15 虚拟机打包apk出现错误
  • ¥30 最小化遗憾贪心算法上界
  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝