def start(self): """ start device """ self.mnc = MNCDevice(self.device_id) self.player = ActionPlayer(self.device_id) self.toolkit = PYAToolkit(self.device_id) logger.debug('FDevice [{}] started'.format(self.device_id))
def start(self): """ start device """ self.mnc = MNCDevice(self.device_id) self.player = ActionPlayer(self.device_id) self.toolkit = PYAToolkit(self.device_id) self.adb_utils = adb.device(serial=self.device_id) logger.debug("FDevice [{}] started".format(self.device_id))
def start(self, simple_mode: bool = None): """ start device """ self.mnc = MNCDevice(self.device_id) self.toolkit = PYAToolkit(self.device_id) if not simple_mode: self.player = ActionPlayer(self.device_id) self.adb_utils = adb.device(serial=self.device_id) else: self.player = AdbPlayer(self.device_id) logger.debug("FDevice [{}] started".format(self.device_id))