commit | d6b2e5bf3f35345b040d5e738786fe8154393fef | [log] [tgz] |
---|---|---|
author | Ken Chen <cken@google.com> | Thu Dec 21 12:17:38 2023 +0800 |
committer | Ken Chen <cken@google.com> | Thu Dec 21 12:17:38 2023 +0800 |
tree | 01f0d85357b34383b4a567fd32c6f32a635a3a0d | |
parent | 9d1db844309743b1e2d2d7d89e18769bc63b0691 [diff] |
Not abort when the function is not found in dns_helper.so As the NDK API name is not final until reviewed by NDK council, it is possible that after rolling out DnsResolver the methods would need to be renamed. Bug: 314893716 Test: manually change code to dlsym a non-existing function and there is no crash. Change-Id: I3da924c87a0e3995b8eb8fa8f4d1176a92fbc9e3
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.