commit | 85fb9ea59fbf8eb643ac25e1cdadf8924a410b97 | [log] [tgz] |
---|---|---|
author | Ken Chen <cken@google.com> | Thu May 21 23:30:01 2020 +0800 |
committer | Lorenzo Colitti <lorenzo@google.com> | Mon Jun 22 12:46:47 2020 +0000 |
tree | 1a9e8efcd01e9f53858e7eb84df6d29d178d7acd | |
parent | f95c3342a18fb79b0e72d2c29ec77f9bd8e4b1a1 [diff] |
Add a resolver option to enforce AID_DNS on query The default behavior is that plaintext DNS queries are sent by the application's UID using fchown(). DoT are sent with an UID of AID_DNS This option control the plaintext uid of DNS query. Bug: 154910763 Test: atest Change-Id: Iada5d850d8bb9d7b0ad46f5c28a1fff22c7d11a6 Merged-In: Iada5d850d8bb9d7b0ad46f5c28a1fff22c7d11a6
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.