INNER CODE UNIT · Python
_not_configured_message
CursorTouch/Android-MCP · src/android_mcp/__main__.py:178
def _not_configured_message() -> str:
return (
"No device configured. Use --device flag, --wifi, --usb, or ANDROID_MCP_DEVICE."
+ _format_available_devices()
)
def _connect_preferred_device() -> None:
if mobile.is_connected:
return
target = _resolve_target()
if not target.serial:
raise RuntimeError(_not_configured_message())
serial = target.serial
if target.connection == "wifi" or ":" in serial:
serial = Mobile.normalize_wifi_serial(serial)