commit | e60ab415c28bb968f5c3ccb5b59d200aeb3d57ac | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Tue Dec 01 17:56:12 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Tue Dec 15 17:49:52 2020 +0800 |
tree | e55ca396719e7d59a498e99aafa623024c3477fe | |
parent | c9f623a19342e720b8ac11fdcb562afa6a3f7027 [diff] |
Support sending validation request to PrivateDnsConfiguration Extend PrivateDnsConfiguration to support validation request. The request is deniable. If the request is denied, no validation starts. Callers can know if requests are accepted by the return value of the call. This change also extends DnsTlsServer to store the mark used by validation, which helps on preventing running validation with an unexpected socket mark and resulting in updating wrong validation state. Bug: 79727473 Test: cd packages/modules/DnsResolver && atest Change-Id: Ib92f6b4dd94ed426bf28cb9756d1514e34f16140
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.