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

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为什么这个按钮监听事件不触发
    • ¥20 unity打光没有照亮物体
    • ¥25 powershell如何拷贝1周前的文件
    • ¥15 询问MYSQL查询SQLSERVER数据表并比较差异后,更新MYSQL的数据表
    • ¥15 关于#前端#的问题,请各位专家解答!
    • ¥15 最小生成树问题 Prim算法和Kruskal算法
    • ¥25 医院住院病人呼叫器设计
    • ¥15 不想和现在的团队合作了,怎么避免他们对程序动手脚
    • ¥20 C语言字符串不区分大小写字典排序相关问题
    • ¥15 关于#python#的问题:我希望通过逆向技术爬取1688搜索页下滑加载的数据