Device panel: fall back to system adb on PATH when ANDROID_HOME / ~/Android/Sdk is absent
Summary
After #43007 ("list physical Android phones on hosts without emulator tools"), T3 Code can discover and stream connected Android devices without installing the Android Emulator — but only if platform-tools/adb exists inside ANDROID_HOME, ANDROID_SDK_ROOT, or ~/Android/Sdk.
On Linux (e.g. Fedora/Bazzite/Arch/Ubuntu via android-tools) and macOS (Homebrew android-platform-tools), users who only want physical/ADB Android devices typically have /usr/bin/adb on PATH and no Android SDK directory at all.
Current Behavior (0.1.13-nightly.20261126.5305)
/usr/bin/adbis installed andadb devices -lshows a connected Android device.ANDROID_HOME/ANDROID_SDK_ROOTare unset and~/Android/Sdkdoes not exist.device_listreports:Android SDK was not found. Install it with Android Studio or set ANDROID_HOME to your SDK directory.- The Device panel shows
No simulators or emulators were found on this environment.
Workaround (Confirms No Full SDK Is Needed)
Creating a 1-file symlink shim makes discovery, expo-device-hub, and agent-device work immediately:
mkdir -p ~/Android/Sdk/platform-tools && ln -sf /usr/bin/adb ~/Android/Sdk/platform-tools/adb
Expected Behavior
When no Android SDK root exists, fall back to adb on PATH for local physical/ADB Android device discovery (passing a temporary platform-tools/adb shim to expo-device-hub if the hub still requires an SDK-shaped path — similar to #27525, which still requires an existing SDK root).