| commit | 69390aa5cf446fc6a3465cf1c2bd00e79973623c | [log] [tgz] |
|---|---|---|
| author | Ken Chen <cken@google.com> | Tue Oct 24 14:49:16 2023 +0800 |
| committer | Ken Chen <cken@google.com> | Wed Nov 01 03:33:24 2023 +0000 |
| tree | 8633c6167e1b4481731eb341cd72b6ba4f940e93 | |
| parent | b900105e82799d87a59efda4fc20b91749677515 [diff] |
Take metered information from setResolverConfiguration 1. Uses dnsresolver_aidl_interface_lateststable_version 12. 2. Get the 'metered' parameter from setResolverConfiguration and keep it in NetConfig of each network. 3. Add resolv_is_metered_network() for DnsProxyListener. Bug: 288340533 Test: atest resolv_integration_test resolv_unit_test Change-Id: I390199b93a9f5b3c0abc8f072d91153ef9fac32e
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.