【基础功能】
注意:需要你具备Root的权限,否则有些操作可能会无法完成。
强烈建议你先root设备。
推荐如下windows软件:刷机机灵或完美刷机等。
《一键root》
方法一:软件修复
推荐一款功能强大的apk软件:xxx.apk
用来检测Android设备是否具有OTG功能及Host模式,还可以自动修复OTG功能。
方法二:手工修复(不保证有效)
步骤一:你必须确定你的Android设备支持USB Host,具体支持与否请查看手机或平板设备参数。
步骤二:确认Android是否已经开放了USB访问权限,这一步非常重要。
操作如下:进入系统,找到目录“/system/etc/permissions”,可以用ES或者RE文件管理器进行操作。查看该目录下,是否有一个文件"android.hardware.usb.host.xml",如果没有,则自己创建一个同名文件,内容如下:
| <permissions> <feature name="android.hardware.usb.host"/> </permissions> |
然后,拷贝到“/system/etc/permissions”目录下。(可以用Eclipse的DDMS帮忙,push进去)
步骤三:有了步骤三基本也就可以了,但是我自己也不是很确定,于是有了步骤四。继续检查目录“/system/etc/permissions”下,将其中的“handheld_core_hardware.xml (手机)或者 tablet_core_hardware.xml(平板)”拖出来,打开文件,看看<permissions>结点下面有没有下面这个结点:
<feature name="android.hardware.usb.host" /> |
如果没有,就自己补上一行,保存,并push进去替换原来的文件。比如我的文件内容是:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <?xml version="1.0" encoding="utf-8"?> <permissions> <feature name="android.hardware.camera" /> <feature name="android.hardware.location" /> <feature name="android.hardware.location.network" /> <feature name="android.hardware.sensor.compass" /> <feature name="android.hardware.sensor.accelerometer" /> <feature name="android.hardware.bluetooth" /> <feature name="android.hardware.touchscreen" /> <feature name="android.hardware.microphone" /> <feature name="android.hardware.screen.portrait" /> <feature name="android.hardware.screen.landscape" /> <feature name="android.hardware.usb.host" /> </permissions> |
步骤四:非常重要,就是重启你的Android设备。
相关资料:http://download.youkuaiyun.com/detail/feixue2004/6870745