如果android系统中的API或者apk无法读写usb设备,可能是没有添加读写usb的权限,需要按照如下方法进行设置:
1. 在android.hardware.usb.host.xml文件中添加如下内容
<permissions>
<featurename="android.hardware.usb.host"/>
</permissions>
2. 在tablet_core_hardware.xml文件中添加如下内容
<featurename="android.hardware.usb.host">
3. 重新编译system.img,并烧录固件,重启机器。
本文介绍了解决Android系统中API或apk无法读写USB设备的问题,通过在配置文件中添加USB主机权限来实现。具体步骤包括修改android.hardware.usb.host.xml和tablet_core_hardware.xml文件,并重新编译及烧录固件。
3794

被折叠的 条评论
为什么被折叠?



