I have set up an Android AVD with Android Studio. SDK31, rooted with rootAVD (if you want me to use special tooling later)
Somewhen the internet connectivity got lost. I read and tried a lot of stuff regarding this. Nothing helped so far. As you can see from the screenshot and listing below it is not a DNS issue. It is a proxy issue. There you see the IP of google (resolved successfully) and another IP (172.24.54.23) which was a proxy I used to use but not anymore. The proxy was set via the AVD Settings -> Proxy as seen on the screen below (there is now a new proxy 172.28.26.191 that I would like to use but I cannot get rid of the old one...)
# Logcat as well as dumpsys wifi | grep 172.24 similarly report this:
06-19 10:26:53.393 1787 7337 D NetworkMonitor/101: PROBE_DNS www.google.com 16ms OK 142.250.186.36,2a00:1450:4001:827::2004
06-19 10:27:03.406 1787 7338 D NetworkMonitor/101: PROBE_HTTP http://connectivitycheck.gstatic.com/generate_204 Probe failed with exception java.net.SocketTimeoutException: failed to connect to /172.24.54.23 (port 8081) from /10.0.2.15 (port 42306) after 10000ms
06-19 10:27:03.406 1787 7337 D NetworkMonitor/101: PROBE_HTTPS https://www.google.com/generate_204 Probe failed with exception java.net.SocketTimeoutException: failed to connect to /172.24.54.23 (port 8081) from /10.0.2.15 (port 42308) after 10000ms
What did not help:
- Cold boot
- Setting/Unsetting the proxy
- Checking other proxy places like in the Wifi menu or the adb based proxy setting
- a lot of AI generated first level support stuff that would exceed the maximum amount of characters I am allowed to write here (like grepping through all /system and /data related files, iptables outputs etc. etc.
It seems that this setting is stuck deep in the system. Does anybody know where I can look for this setting? I really dont want to setup this special AVD again, I want to repair it (since all my snapshots also got corrupted in the meanwhile I really would like to find the root cause here).

http_proxyhttps_proxythat I checked and that were null. Besides that there areglobal_http_proxy_hostandglobal_http_proxy_portthat were set in my case. after deleting them and rebooting, the proxy was gone. But still the emulator setting page is not in sync with the settings file on disk. Don't know, how this can be healed.