1

I have recently installed Android 6 on my Nexus.

I also have AFWall+ for [un]blocking selected application from accessing internet.

However, every time I connect to a wifi an exclamation mark will appear and Android will soon disconnect from it. Also a popup message asks me to disconnect because it cannot connect to internet.

However I can access internet indeed via wifi.

What process should I add to whitelist in order for Android not to disconnectme after a few minutes?

usr-local-ΕΨΗΕΛΩΝ
  • 1,501
  • 7
  • 31
  • 47

2 Answers2

2

I had the same problem. To find which app you need to allow you can turn on firewall logs in AFWall+. The log gives a log when traffic is blocked and shows which app was blocked.

  • Enable AFWall+ (if you had it disabled temporarily)
  • Settings->Preferences->Log->Enable logs
  • Menu->Firewall logs->Menu->Clear log
  • Disable and then enable WiFi to trigger the log
  • Menu->Firewall logs

The apps involved might vary from one device to another so you should check your own log rather than assuming it's the same as mine. I saw log entries for "root" and "com.quicince.cne.CNEService" (Qualcomm specific, and counts as part of "Android system" in AFWall+).

I have solved the problem by allowing traffic over WiFi for both the above entries. In fact I think I probably mostly don't need root, but without root the solution was not quite as reliable to remove the error.

AdamS
  • 131
  • 2
0

As the other answer and its comment show, the culprit is Data Usage Provider, which tries to connect to Google servers to test connectivity.

You could of course whitelist it in AFWall+, but if you'd rather not have your phone announce your IP to the mothership you need to disable "captive portal detection": as root, run in a terminal (or in adb shell)

settings put global captive_portal_detection_enabled 0
xlotlu
  • 1
  • CaptivePortalLogin, as it's called in my device, seems to be used to tunnel a bunch of other requests from other, non Android services so the command is preferable. I still have to see if this command still works on Andrond 13. Don't buy Xiaomi devices people. – Aspiring Dev Jan 22 '24 at 17:12