#include <stdio.h>
#include "device_vendors.h"
#include "log.h"
+#include "sdb_usb.h"
VENDOR tizen_device_vendors[] = {
- {"samsung", 0x04e8} //1256
+ {"samsung", VENDOR_ID_SAMSUNG, SDB_INTERFACE_SUBCLASS, SDB_INTERFACE_PROTOCOL}, //1256
+ {"samsung adb", VENDOR_ID_SAMSUNG, ADB_INTERFACE_SUBCLASS, ADB_INTERFACE_PROTOCOL}
};
#define SDB_INTERFACE_CLASS 0xff
#define SDB_INTERFACE_SUBCLASS 0x20
+#define ADB_INTERFACE_SUBCLASS 0x42
#define SDB_INTERFACE_PROTOCOL 0x02
#define ADB_INTERFACE_PROTOCOL 0x01
// Samsung's USB Vendor ID
return;
}
usbVendor = tizen_device_vendors[i].id;
- subClass = SDB_INTERFACE_SUBCLASS;
- protocol = SDB_INTERFACE_PROTOCOL;
+ subClass = tizen_device_vendors[i].subclass;
+ protocol = tizen_device_vendors[i].protocol;
- LOG_DEBUG(
- "Looking for devices matching vendor ID=%0x(%0x, %0x)\n", usbVendor, subClass, protocol);
+ LOG_DEBUG("Looking for devices matching vendor ID=%0x(%0x, %0x)\n", usbVendor, subClass, protocol);
// We are interested in all USB Devices (as opposed to USB interfaces). The Common Class Specification
// tells us that we need to specify the idVendor, idProduct, and bcdDevice fields, or, if we're not interested