commit | 701238f551116427a635c3ee4667b5e413ec859c | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Thu Jul 16 02:56:52 2020 -0700 |
committer | Maciej Żenczykowski <maze@google.com> | Fri Jul 17 10:34:45 2020 +0000 |
tree | 1f60d306d870a60c3ef74ae53e77746d080d91a8 | |
parent | 61d17267051d7ffaf8cd3457207936da93e6d374 [diff] |
DnsResolver - improve api level detection for aosp Use the maximum of ro.build.version.sdk & ro.product.first_api_level to determine api level to use. This makes AOSP master be >=R (technically already S) instead of ==Q. See: rvc-dev aosp ro.build.version.sdk: [30] vs [29] ro.product.first_api_level: [29] vs [31] ro.build.version.preview_sdk: [0] vs [1] ro.build.version.preview_sdk_fingerprint: [REL] vs [...sha1...] This does require us to treat aosp as the source of truth for netd, but we do that anyway. Test: builds, atest, dnsresolver tests, TreeHugger Bug: 159994981 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I169529e883c570af351f00403f8ce13bb763c6db
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.