我目前有一个 Android 应用程序通过 USB OTG 连接到设备。
通信是使用 libusb 1.0.9 完成的,对于 api 级别
type=1400 audit(0.0:107): avc: denied { read } for name="usb" dev="tmpfs" ino=24433 scontext=u:r:untrusted_app:s0 tcontext=u: object_r:usb_device:s0 tclass=dir
A/libc(12605): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 12605 (mapp.sdk.sample)
我正在 Nexus 5 上使用最新的 NDK 10c 编译 libusb 1.0.9。
我不认为这是 ART 运行时问题,因为该应用程序在启用了 ART 而不是 Dalvik 的 Android 4.4.4 上运行。
有人熟悉这个问题吗? (this https://stackoverflow.com/questions/25662307/android-libusb-init-returns-libusb-error-other-99/26034824#26034824看起来很相似)
这和PIE有关系吗?
谢谢。
我上传了一个有效的解决方案。
它基于 libusb 1.0.9 并与 Lollipop 配合使用。
https://github.com/Gritzman/libusb https://github.com/Gritzman/libusb
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)