def __init__(self, adb): self._adb = adb self._device_id = adb.device_name self._is_local_device = ADB.is_local_device(self._device_id) self._client = None self._server_pid = 0 self._timeout = 40
def __init__(self, device_id): self._device_id = device_id from adb import ADB self._is_local_device = ADB.is_local_device(device_id) self._adb = None self._client = None self._use_socket = True self._module = '' self._system_version = '' self._sdk_version = 0 self._cpu_type = None self._imei = '' self._width = 0 self._height = 0