summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/java/android/hardware/UsbConstants.java5
-rw-r--r--core/res/res/values/config.xml8
2 files changed, 12 insertions, 1 deletions
diff --git a/core/java/android/hardware/UsbConstants.java b/core/java/android/hardware/UsbConstants.java
index 29a335c..4c8c4d4 100644
--- a/core/java/android/hardware/UsbConstants.java
+++ b/core/java/android/hardware/UsbConstants.java
@@ -41,6 +41,7 @@ public final class UsbConstants {
public static final int USB_ENDPOINT_XFER_BULK = 2;
public static final int USB_ENDPOINT_XFER_INT = 3;
+ // USB classes
public static final int USB_CLASS_PER_INTERFACE = 0;
public static final int USB_CLASS_AUDIO = 1;
public static final int USB_CLASS_COMM = 2;
@@ -58,6 +59,8 @@ public final class UsbConstants {
public static final int USB_CLASS_MISC = 0xef;
public static final int USB_CLASS_APP_SPEC = 0xfe;
public static final int USB_CLASS_VENDOR_SPEC = 0xff;
- public static final int USB_SUBCLASS_VENDOR_SPEC = 0xff;
+ // USB subclasses
+ public static final int USB_INTERFACE_SUBCLASS_BOOT = 1; // for HID class
+ public static final int USB_SUBCLASS_VENDOR_SPEC = 0xff;
} \ No newline at end of file
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 713fa8e..0edd33e 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -284,6 +284,14 @@
<!-- Indicate whether the device has USB host support. -->
<bool name="config_hasUsbHostSupport">false</bool>
+ <!-- List of file paths for USB host busses to exclude from USB host support.
+ For example, if the first USB bus on the device is used to communicate
+ with the modem or some other restricted hardware, add "/dev/bus/usb/001/"
+ to this list. If this is empty, no parts of the host USB bus will be excluded.
+ -->
+ <string-array name="config_usbHostBlacklist">
+ </string-array>
+
<!-- Vibrator pattern for feedback about a long screen/key press -->
<integer-array name="config_longPressVibePattern">
<item>0</item>