dns66
dns66 copied to clipboard
RFE: include app name in logcat
It would be really useful if logcat entries mentioned not just the domain that was allowed or blocked, but also the app that made the request.
Sometimes I'm finding apps whose ads I want to add rules for, and it's hard to be sure in the logcat which entries are ad requests for those particular apps. If we could see the app names, it would make it much easier to identify the ad traffic for a specific app and block it.
This is complicated, imprecise business - you need to parse /proc/net/udp to map the port to a uid, and then get the app for the uid. Also see #30 which talks about app-based firewalls.
Ah, really? I had assumed it would be trivial because dns66 has an option for disabling itself for specific apps. I'd assumed that if it could do that, then it must be able to tell which app is making the request; but perhaps it's more complicated than I'd realised.
Blocking apps from the VPN service or allowing just a specific set can be done easily by calling methods on the VpnService.Builder - that's much easier