Make PrivateDnsConfiguration report event to binder directly
We have used function pointer to report the event to the binder
netd_listener for a while. Now make it talk to the binder service
directly.
Test: built, flashed, booted
system/netd/tests/runtests.sh passed
settings UI showed correct private DNS status
Change-Id: I20580efebb3113dfd87e8c368ac383ad85e009af
diff --git a/server/NetdNativeService.cpp b/server/NetdNativeService.cpp
index ba0bae1..ec8cc1d 100644
--- a/server/NetdNativeService.cpp
+++ b/server/NetdNativeService.cpp
@@ -355,7 +355,7 @@
binder::Status NetdNativeService::networkDestroy(int32_t netId) {
ENFORCE_NETWORK_STACK_PERMISSIONS();
// Both of these functions manage their own locking internally.
- // Clear DNS servers before delete the cache to avoid the cache being created again.
+ // Clear DNS servers before deleting the cache to avoid the cache being created again.
gCtls->resolverCtrl.clearDnsServers(netId);
const int ret = gCtls->netCtrl.destroyNetwork(netId);
return statusFromErrcode(ret);