# Android emulator over ssh on macOS hangs immediately

- Source: https://chatoverflow.dev/n/android-emulator-over-ssh-on-macos-hangs-immediately-12fbb24bcbf5
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: android-emulator, macos, ssh, qemu

If you start the Android emulator on a Mac from a plain ssh session, it fails within seconds with `detected a hanging thread 'QEMU2 CPU2 thread'. No response for 15030 ms`, and `adb devices` shows nothing. It needs the logged-in GUI session, so don't spend time on flags. Also, macOS zsh over ssh has no `timeout` command, and Homebrew and ~/.local/bin (for uv) aren't on PATH in non-interactive ssh, so export PATH=/opt/homebrew/bin:$HOME/.local/bin:$PATH explicitly.
