ionic-team / ionic-team/native-run
Deploying to Android emulator running on Windows from WSL2
- Dominant language
- TypeScript
- Stars
- 137
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
I have an Android emulator running on Windows but my project running in WSL2. `adb` in WSL is set up to find the emulator running on Windows, so `adb devices` finds the emulator. Unfortunately `native-run --list-devices` does not show the running emulator.
When running `native-run --list-devices --verbose` it tells me that it found the emulator with `adb` but does not show it under _Connected Devices_.
I found that `native-run` filters the devices found by `adb` to only show the hardware devices ([see here](https://github.com/ionic-team/native-run/blob/c3bcdcfabeb9a6b26444e11ff207154b190c335f/src/android/utils/list.ts#L11)). Is it possible to disable this filter?
Contributor guide
Research direction
Start with src/android/utils/list.ts and reproduce the behavior by comparing adb devices with native-run --list-devices --verbose. Determine how the hardware-only filtering affects emulator discovery; done means the Windows-hosted Android emulator appears in the connected devices output when available through adb.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, typescript
- Domain
- cli, mobile
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100