One thing I noticed is that Lineage OS (and others) pings Google servers to check that the internet connection works. Which was hilarious to find out in China, where I'd connect to Wifi and it'd tell me I have no internet.
You can disable this check through ADB and then go manually into Firefox and go to http://detectportal.firefox.com/ to open up wifi login portals. It's a bit of drag - but it works
It's crazy to think Google knows when every Android user logs into a wifi.. I'm not sure how much info can be inferred from the ping - but still