Block root and kernel
I often use networklog to see what can access internet behind my back. Since I use Xprivacy, settings and wlan test can't access the net anymore, cool. But root and kernel still can, and I see that they access some DNS, UDP/wlan0, ICMP/wlan0, and IGMP/wlan0 addresses. Well, maybe it's just impossible to block them since the device needs them to access internet, and in this case sorry for the stupid question, but since I'm not sure I ask anyway:-)
This cannot be done from Android and if it is done it will be device specific and thus outside the scope of XPrivacy.
Ok, I see... What about some apps like Android system, Settings, Settings storage and Wlan Test (one package)? Cuz I just found out that I was wrong, they still leak even with Xprivacy, but much less than before...
They can all be restricted, but read https://github.com/M66B/XPrivacy#limitations
If you found a leak, create an issue describing the leak with a link to the app (one per leak) and include a logcat. Be sure the restrict the app fully and reboot before creating an issue.
Actually I made some tests, and Android System, Settings, Settings Storage and Wlan Test all access the internet. The thing is that they are part of the same shared package, and I can't restrict isConnected from Xprivacy cuz if I do so I can't connect at all anymore. I guess it's because of Wlan Test, but since it's a shared package it means that if I allow it for one app I allow it for the others. So the question is, is there a way to restrict them anyway?
Probably not, this is how Android works.