Skip the legacy stats recording if DNS requests are denied by network policy
In order to prevent the false INTERNAL_ERROR event which is caused by
network policy fill up the legacy DNS stats, skip adding new legacy DNS
stats when we got errno == EPERM.
Bug: 151166599
Test: atest
Merged-In: I4c1d2a5c9f43650a5346a5ee0bb88eb36f850096
Change-Id: I5486638556c0a8fdfabbc37a1b29ed2b42f9b399
(cherry picked from commit 3991974b8cf5671b49f39531a6deb9f6fe81ebf0)
diff --git a/Android.bp b/Android.bp
index b1aaef8..016b112 100644
--- a/Android.bp
+++ b/Android.bp
@@ -262,6 +262,7 @@
],
static_libs: [
"dnsresolver_aidl_interface-unstable-ndk_platform",
+ "netd_aidl_interface-ndk_platform",
"netd_event_listener_interface-ndk_platform",
"libcutils",
"libgmock",