DnsResolver: make libcrypto a shared lib.

A statically linked libcrypto's self test will not succeed because
the linker step (symbol relocations etc.) will change the checksum.

Since libssl is also provided by boringssl, we're giving it the
same treatment for consistency.

Note that the DnsResolver module carries its own copies of these
shared libraries on-device:

$ adb shell 'su 0 find /apex/com.android.resolv/ -name "*.so"'
/apex/com.android.resolv/lib64/libnetd_resolv.so
/apex/com.android.resolv/lib64/libcrypto.so
/apex/com.android.resolv/lib64/libssl.so

Bug: 137267623
Test: Treehugger

Change-Id: Ia418f379b7a8c8ede6539ce735a19c7f284bbce7
1 file changed
tree: a1c5dcbd4a2c062f78d3d9ba6cfa4b10eb773ca4
  1. aidl/
  2. apex/
  3. binder/
  4. include/
  5. tests/
  6. .editorconfig
  7. Android.bp
  8. Dns64Configuration.cpp
  9. Dns64Configuration.h
  10. DnsProxyListener.cpp
  11. DnsProxyListener.h
  12. DnsResolver.cpp
  13. DnsResolver.h
  14. dnsresolver_binder_test.cpp
  15. DnsResolverService.cpp
  16. DnsResolverService.h
  17. DnsTlsDispatcher.cpp
  18. DnsTlsDispatcher.h
  19. DnsTlsQueryMap.cpp
  20. DnsTlsQueryMap.h
  21. DnsTlsServer.cpp
  22. DnsTlsServer.h
  23. DnsTlsSessionCache.cpp
  24. DnsTlsSessionCache.h
  25. DnsTlsSocket.cpp
  26. DnsTlsSocket.h
  27. DnsTlsSocketFactory.h
  28. DnsTlsTransport.cpp
  29. DnsTlsTransport.h
  30. getaddrinfo.cpp
  31. getaddrinfo.h
  32. gethnamaddr.cpp
  33. gethnamaddr.h
  34. hostent.h
  35. IDnsTlsSocket.h
  36. IDnsTlsSocketFactory.h
  37. IDnsTlsSocketObserver.h
  38. libnetd_resolv.map.txt
  39. LockedQueue.h
  40. NOTICE
  41. OWNERS
  42. PREUPLOAD.cfg
  43. PrivateDnsConfiguration.cpp
  44. PrivateDnsConfiguration.h
  45. README-DoT.md
  46. README.md
  47. res_cache.cpp
  48. res_comp.cpp
  49. res_debug.cpp
  50. res_debug.h
  51. res_init.cpp
  52. res_mkquery.cpp
  53. res_query.cpp
  54. res_send.cpp
  55. res_send.h
  56. res_state.cpp
  57. res_state_ext.h
  58. res_stats.cpp
  59. resolv_cache.h
  60. resolv_cache_unit_test.cpp
  61. resolv_integration_test.cpp
  62. resolv_private.h
  63. resolv_static.h
  64. resolv_tls_unit_test.cpp
  65. resolv_unit_test.cpp
  66. ResolverController.cpp
  67. ResolverController.h
  68. ResolverEventReporter.cpp
  69. ResolverEventReporter.h
  70. ResolverStats.h
  71. sethostent.cpp
  72. stats.proto
  73. TEST_MAPPING
README.md

Logging

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.