Added restrictions for UsbDevice

Fixed #1750