Originally Posted by xchdave
this rom is great, however it doesn't seem to support usb host mode properly.
I am trying to use an xbox 360 controller with an app called usb/bt joystick center
after attempting to use this app the developer has helped me find the issue and has told me to ask the dev of this rom to please add
API support (UsbManager.getDeviceList())
Is this possible? this rom would be perfect if it could support that
Yes, you simply need to create an /system/etc/permission/android.hardware.usb.host.xml file with the following as it's content:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
<!-- This is the standard feature indicating that the device can communicate
with USB devices as the USB host. -->
<feature name="android.hardware.usb.host" />
or link: http://code.google.com/p/ics-nexus-s....host.xml?r=18
This file is usually missing from a lot of ICS FWs for Allwinner tablets btw.