def _initialize_daemon(self):
        if self.device_driver_file:
            try:
                self.device.execute('insmod {}'.format(self.device_driver_file))
            except DeviceError, e:
                if 'File exists' not in e.message:
                    raise
                self.logger.debug('Driver was already installed.')
        self._start_daemon()
        if self.device.platform == "android":
            port_spec = 'tcp:{}'.format(self.port)
            self.device.forward_port(port_spec, port_spec)
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/instrumentation/streamline/__init__.py/StreamlineInstrument._initialize_daemon/original