INNER CODE UNIT · Python

run

CursorTouch/Android-MCP · e2e_test.py:104

def run():
    print()
    log("ENV", f"ADB binary  : {ADB or 'NOT FOUND'}", YELLOW)
    log("ENV", f"PATH (first): {ENV['PATH'][:120]}…", YELLOW)

    if not ADB:
        log("ERROR", "adb not found — install it or add to PATH", RED)
        return 1

    # Confirm at least one physical device is visible before starting the server
    log("BOOT", "Running: adb devices", GREEN)
    adb_out = subprocess.run([ADB, "devices"], capture_output=True, text=True, env=ENV)
    print(adb_out.stdout.strip())

    adb_lines = adb_out.stdout.strip().splitlines()
    physical = [
        ln.split()[0]
        for ln in adb_lines[1:]          # skip "List of devices attached"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…