INNER CODE UNIT · Python

_find_adb

CursorTouch/Android-MCP · e2e_test.py:41

def _find_adb() -> Optional[str]:
    candidates = [
        shutil.which("adb"),
        "/opt/homebrew/bin/adb",
        os.path.expanduser("~/Library/Android/sdk/platform-tools/adb"),
        "/usr/local/bin/adb",
        "/usr/bin/adb",
    ]
    for c in candidates:
        if c and os.path.isfile(c) and os.access(c, os.X_OK):
            return c
    return None


ADB = _find_adb()


def _make_env() -> dict:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…