Short answer
No – the Android Emulator (AVD) cannot “see” or attach to a real-world Wi-Fi interface on your computer. The network stack inside the emulator is virtualised and always connects through a software-defined link to the host. That link is then NAT-ed out to whatever the host is using (Ethernet, Wi-Fi, 4G dongle, …). Consequently:
• Inside the AVD you can turn “Wi-Fi” on/off (it just toggles that virtual link).
• You can’t scan for access points, associate with a specific SSID, test WPA/EAP hand-shakes, measure RSSI, etc.
• All Wi-Fi–specific APIs (WifiManager#getScanResults, WifiInfo#getSSID, etc.) will return stub or empty data.
Why the emulator can’t expose a real adapter
To associate with an AP, the OS must control the NIC at the MAC/PHY layer, send/receive 802.11 management frames, change channel, perform authentication, etc. Hypervisors (and by extension the Android Emulator, which runs on top of QEMU) only pass IP packets, not raw Wi-Fi frames. Bridging the host’s adapter into a VM therefore looks like a wired (layer-3) link, not true Wi-Fi.
What you CAN still test in the emulator
• General network connectivity (HTTP, sockets, push, etc.).
• Toggling network types via the console (gsm, airplane-mode, speed/latency throttling).
• Code paths that only need to know “is Wi-Fi connected?” through ConnectivityManager (because the emulator fakes the “AndroidWifi” network).
When you really need Wi-Fi-specific behaviour
- Use a physical Android device.
- Or a specialised hardware emulator (e.g., a full virtual machine with PCI pass-through of a USB Wi-Fi dongle—but that is far outside normal Android Studio tooling).
- Third-party cloud test farms (Firebase Test Lab, AWS Device Farm, BrowserStack, etc.) provide real devices you can script against.
Handy emulator commands (if you just need to toggle connectivity)
# Enable / disable the emulator’s virtual Wi-Fi link
adb shell svc wifi enable
adb shell svc wifi disable
# Simulate poor network
adb emu network speed edge # or gprs, full, ...
adb emu network delay 1000 # ms
# Drop the link completely
adb emu network status down
adb emu network status up
Bottom line
The Android Emulator cannot replace its virtual Wi-Fi with your laptop’s actual Wi-Fi adapter. For anything that depends on real Wi-Fi behaviour (SSID, scanning, roaming, captive portals, etc.) you’ll need to test on a physical device.