Check if a specific UID is allowed to bypass the private DNS rule on a given network.

Bug: 368416967
Test: TH
Change-Id: I4aa189f813866cc013f135bd8cc9184c25786114
1 file changed
tree: e72305941f78d87df6f2e749ed2b50a3ce0fa809
  1. aidl_api/
  2. apex/
  3. binder/
  4. doh/
  5. include/
  6. libs/
  7. tests/
  8. .editorconfig
  9. Android.bp
  10. cbindgen.toml
  11. Dns64Configuration.cpp
  12. Dns64Configuration.h
  13. DnsProxyListener.cpp
  14. DnsProxyListener.h
  15. DnsQueryLog.cpp
  16. DnsQueryLog.h
  17. DnsQueryLogTest.cpp
  18. DnsResolver.cpp
  19. DnsResolver.h
  20. DnsResolverService.cpp
  21. DnsResolverService.h
  22. DnsStats.cpp
  23. DnsStats.h
  24. DnsStatsTest.cpp
  25. DnsTlsDispatcher.cpp
  26. DnsTlsDispatcher.h
  27. DnsTlsQueryMap.cpp
  28. DnsTlsQueryMap.h
  29. DnsTlsServer.cpp
  30. DnsTlsServer.h
  31. DnsTlsSessionCache.cpp
  32. DnsTlsSessionCache.h
  33. DnsTlsSocket.cpp
  34. DnsTlsSocket.h
  35. DnsTlsSocketFactory.h
  36. DnsTlsTransport.cpp
  37. DnsTlsTransport.h
  38. doh.h
  39. Experiments.cpp
  40. Experiments.h
  41. ExperimentsTest.cpp
  42. getaddrinfo.cpp
  43. getaddrinfo.h
  44. gethnamaddr.cpp
  45. gethnamaddr.h
  46. hostent.h
  47. IDnsTlsSocket.h
  48. IDnsTlsSocketFactory.h
  49. IDnsTlsSocketObserver.h
  50. libnetd_resolv.map.txt
  51. LockedQueue.h
  52. NOTICE
  53. OperationLimiter.h
  54. OperationLimiterTest.cpp
  55. OWNERS
  56. params.h
  57. PREUPLOAD.cfg
  58. PrivateDnsCommon.h
  59. PrivateDnsConfiguration.cpp
  60. PrivateDnsConfiguration.h
  61. PrivateDnsConfigurationTest.cpp
  62. PrivateDnsValidationObserver.h
  63. README-DoT.md
  64. README.md
  65. res_cache.cpp
  66. res_comp.cpp
  67. res_comp.h
  68. res_debug.cpp
  69. res_debug.h
  70. res_mkquery.cpp
  71. res_query.cpp
  72. res_send.cpp
  73. res_send.h
  74. res_stats.cpp
  75. resolv_cache.h
  76. resolv_private.h
  77. resolv_test_config_template.xml
  78. resolv_test_config_without_root_template.xml
  79. resolv_test_default.map
  80. ResolverController.cpp
  81. ResolverController.h
  82. ResolverEventReporter.cpp
  83. ResolverEventReporter.h
  84. ResolverStats.h
  85. sethostent.cpp
  86. stats.h
  87. stats.proto
  88. TEST_MAPPING
  89. util.cpp
  90. util.h
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.