Introduce IDnsResolver#setAllowBypassPrivateDnsOnNetwork This new method allows a UID to bypass the private DNS rule on a given network. This patch also freezes dnsresolver_aidl_interface to version 16 with the new method. Bug: 368416967 Test: TH Change-Id: I16e8773ad1bec3a6053078bb82d6ae5a47626f50
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.