def adb_init(): adb = ADB() adb.set_adb_path(parameter.variables.executable_path) adb.DEFAULT_TCP_PORT = parameter.variables.default_tcp_port adb.DEFAULT_TCP_HOST = parameter.variables.wireless_address if not adb.get_version(): raise ConnectionError("Unable to communicate with adb daemon!") return adb