setHardwareDeviceDetectorFactory