Repository navigation
Description
What happened
An Android phone is plugged into the Mac over USB with USB debugging enabled, but it never appears in the device hub. The hub is empty. This has never worked on this machine.
Diagnosis
adb devices -l lists the phone as device (authorized), so USB, debugging and adb are all working.
The local device host decides whether Android is available before it lists any Android device. platformReason in apps/server/src/device/LocalDeviceHost.ts (about lines 108 to 130 at v0.1.1-nightly.20261017.3238, unchanged on main) returns a reason, which makes Android unavailable, unless the SDK contains all of:
platform-tools/adbemulator/emulatorcmdline-tools/latest/bin/avdmanager
This machine's SDK (~/Library/Android/sdk) had platform-tools and cmdline-tools/latest but no emulator package. Android was marked unavailable with "Android Emulator is missing from ...", so the hub never listed the USB device.
A physical USB device needs only adb. The emulator and avdmanager checks should gate emulator features (creating and booting AVDs), not physical devices.
The unavailable reason shows only in Settings under device hosts (DeviceHostAvailability). The device hub itself is empty with no explanation, so the user has no hint about what is missing.
Steps to reproduce
- On macOS, install the Android SDK with Platform-Tools and Command-line Tools (latest), but without the Android Emulator package (no
$ANDROID_HOME/emulator). - Connect a physical Android device over USB with USB debugging enabled, and accept the debugging prompt.
adb deviceslists it asdevice. - Open the device hub in the T3 Code desktop app.
- The hub shows no Android device. Settings shows Android as unavailable with "Android Emulator is missing".
- Install the emulator package (
sdkmanager emulator). The device check now passes.
Version
0.1.1-nightly.20261017.3238 (desktop app, T3 Code Nightly, local server)
Environment
macOS 27.0 (darwin arm64), Node v26.8.2, adb 1.0.41 (platform-tools 37.0.0), Samsung SM-S948B over USB
Evidence
$ adb devices -l
List of devices attached
<serial> device usb:0-2 product:m3qxeea model:SM_S948B device:m3q transport_id:1
$ ls ~/Library/Android/sdk
build-tools cmake cmdline-tools licenses ndk platform-tools platforms sources
# no emulator/ directoryRelated issues
#14824 (physical Android video uses the emulator-only grpc-screenshot path) is also a case of physical devices being treated as emulators, but it covers video capture, not discovery. No existing issue covers this one.
Fix applied or workaround
Installed the Android Emulator package with ~/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager emulator, then restarted the desktop app.
Filed by
Claude Code (claude-opus-5-5) via t3 triage
Activity
lbarbaglia commentedon Oct 17, 2026
Related follow-up seen after the workaround: once the emulator package was installed, the physical USB phone (samsung SM-S948B, Android 16.0) appeared in the device hub, but under the heading "Android Emulators". The heading comes from
apps/web/src/components/device/DevicePanel.tsx:28, which labels every Android device group "Android Emulators" (and every iOS group "iOS Simulators") whatever the device kind. A neutral label such as "Android devices" would fit physical devices too.Filed by Claude Code (claude-opus-5-5) via t3 triage
juliusmarminge commentedon Oct 17, 2026
Note
Grok responding on behalf of Julius.
This is the documented requirement today, not a regression.
docs/user/devices.mddescribes the Device panel as "a live iOS Simulator or Android Emulator". It also says Android needs the SDK Platform-Tools, Android Emulator and Command-line Tools (latest), plus a virtual device.platformReasoninapps/server/src/device/LocalDeviceHost.tsenforces exactly that list. When no local platform is available,DeviceService.tsskips the host's listing.The reason does show up outside Settings: the Device setup wizard's simulator-support step shows it (
apps/web/src/components/device/DeviceSetup.tsx).Workaround, which you confirmed: install the Android Emulator package with
sdkmanager emulatorand restart. The docs say to restart the environment server and refresh devices after installing. Physical phones are listed once Android is available. Video from physical devices still has its own gap, tracked in #14824.Listing physical devices with only adb would be new scope, so I'm closing this as a feature request. Please open it in Ideas.