commit | ebe06e8babd77ed5d99d490c702e4bc6f9a7317f | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Fri Jul 17 22:36:12 2020 -0700 |
committer | Maciej Żenczykowski <maze@google.com> | Sat Jul 18 17:50:14 2020 +0000 |
tree | 7031df09a1635984559ff8e023fb1b33efa1754f | |
parent | fc9aa724a657dd5d05c7fd6cf975fbe002e6daba [diff] |
DnsResolver - improve aosp api level detection This does a better job of handling non-cuttlefish, ie. things like 'aosp_blueline' on aosp-master. This will now detect rvc-dev as R, aosp cuttlefish as S, and aosp blueline as R (should be S...). Before this change aosp blueline would still be detected as Q. Test: builds, atest, dnsresolver tests, TreeHugger Bug: 159994981 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I81cb89d221dc19fe19e1acaebe75b953ea3cfaa6
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.