if (DeviceDescriptor.Header.Type != DTYPE_Device)
return InvalidDeviceDataReturned;
- /* Validate returned device Vendor ID against the Android ADK spec values */
- if (DeviceDescriptor.VendorID != ANDROID_VENDOR_ID)
- return IncorrectAndroidDevice;
-
/* Check the product ID to determine if the Android device is in accessory mode */
if ((DeviceDescriptor.ProductID != ANDROID_ACCESSORY_PRODUCT_ID) &&
(DeviceDescriptor.ProductID != ANDROID_ACCESSORY_ADB_PRODUCT_ID))
#endif\r
\r
/* Macros: */\r
- /** Vendor ID value in a Device Descriptor to indicate an Android device. */\r
- #define ANDROID_VENDOR_ID 0x18D1\r
-\r
/** Product ID value in a Device Descriptor to indicate an Android device in Open Accessory mode. */\r
#define ANDROID_ACCESSORY_PRODUCT_ID 0x2D00\r
\r
if (DeviceDescriptor->Header.Type != DTYPE_Device)\r
return false;\r
\r
- if (DeviceDescriptor->VendorID != ANDROID_VENDOR_ID)\r
- return false;\r
-\r
*NeedModeSwitch = ((DeviceDescriptor->ProductID != ANDROID_ACCESSORY_PRODUCT_ID) &&\r
(DeviceDescriptor->ProductID != ANDROID_ACCESSORY_ADB_PRODUCT_ID));\r
\r