0

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

The AVD proxy setting

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).

2
  • Mh, seems like it is stuck here: /data/system/users/0/settings_global.xml Now I need to find out how to properly adapt this file also for the future use. If someone has a hint how this file can be "repaired" so that the emulators settings will make their way into the file I would appreciate that. Commented Jun 19 at 14:32
  • Okay, got it like 99%. These settings from the emulator settings page, that are persisted in /data/system/users/0/settings_global.xml can be managed with settings get|put|delete global. But the point is: Most guides only point to two variables: http_proxy https_proxy that I checked and that were null. Besides that there are global_http_proxy_host and global_http_proxy_port that 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. Commented Jun 19 at 19:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.