From 49a359053d8bedff3d254ec09eded5a915615e0b Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 15 Nov 2017 09:00:00 +0100 Subject: [PATCH] Log/notify other apps only --- app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java index 7bbc5e32..5ae6af6d 100644 --- a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java +++ b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java @@ -1893,7 +1893,8 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS if (prefs.getBoolean("log", false) || prefs.getBoolean("log_app", false)) if (packet.protocol != 6 /* TCP */ || !"".equals(packet.flags)) - logPacket(packet); + if (packet.uid != Process.myUid()) + logPacket(packet); return allowed; }