Commit graph android_packages_modules_Co.../DnsResolver
Message SHA1
[DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
<add g3 doc link>

Bug: 304529413
Test: N/A
Change-Id: I243f17b3f0ad7af9ffa15ca242456e36688733f5
Merged-In: I243f17b3f0ad7af9ffa15ca242456e36688733f5

Aditya Choudhary   commited 2024-01-31 12:34:50 +00:00
01b5ede2b2
Document more errno(s) on ADnsHelper_ API
Address comments from android-api-council review.

Bug: 310992535
Change-Id: I722725bd3d3a3df1687721175e9434efae9da37a
Test: presubmit

Ken Chen   commited 2024-01-05 11:58:47 +00:00
96aa4824b9
Reference DataSaver setting from BPF map on V+ only
Only reference DataSaverEnabled map on V+ platform because the
information in map before platform V is not time-precise. See comment in
this commit for detail.

Bug: 288340533
Test: presubmit
Change-Id: I0795e88e6006e6d24d27b63c31d0e3ed81d0262c

Ken Chen   commited 2023-12-08 02:42:51 +00:00
9e1865e48e
Support Data Saver awareness in libcom.android.tethering.dns_helper.so
Make ADnsHelper_isUidNetworkingBlocked() to reference 'metered'
information and Data Saver related BPF maps to make the final decision.

Bug: 288340533
Test: atest dns_helper_unit_test
Change-Id: I51b1dadd56a8d6fda3f8b18d64740e52b76e1bfe

Ken Chen   commited 2023-11-01 06:23:09 +08:00
006a3f1514
[Test] for libcom.android.tethering.dns_helper.so
Exercise the BpfReader::isUidNetworkingBlocked().

Bug: 288340533
Test: atest dns_helper_unit_test
Change-Id: Icc889a6a9649e991cba222427f9b8d4f5ee3b325

Ken Chen   commited 2023-11-01 06:23:09 +08:00
d4876dec06
Add a library for DNS resolver to read bpf maps
The library provides an init function and an API for DNS resolver to
query whether the application is allowed to send DNS query based on BPF
maps settings.

Bug: 288340533
Test: atest dns_helper_unit_test (with test CL)
Change-Id: Ibfb383bfb074da2104a25aa4f04ebc32b22d11da

Ken Chen   commited 2023-11-01 06:23:04 +08:00
ec0f7ac36f