dns66 icon indicating copy to clipboard operation
dns66 copied to clipboard

RFE: include app name in logcat

Open chiastic-security opened this issue 8 years ago • 3 comments

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.

chiastic-security avatar Aug 03 '17 08:08 chiastic-security

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.

julian-klode avatar Aug 03 '17 13:08 julian-klode

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.

chiastic-security avatar Aug 03 '17 20:08 chiastic-security

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

julian-klode avatar Aug 10 '17 00:08 julian-klode