Explicitly require root privs for tests requiring it
These tests currently require root privs to interact with netd:
resolv_integration_test
libnetdbpf_test
netd_unit_test
netd_integration_test
Bug: 134891412
Test: atest
Change-Id: I3e286fd7e7603e30b4f4d655fe311c35e05fbc78
diff --git a/libnetdbpf/Android.bp b/libnetdbpf/Android.bp
index bd25535..b5fefac 100644
--- a/libnetdbpf/Android.bp
+++ b/libnetdbpf/Android.bp
@@ -35,6 +35,7 @@
cc_test {
name: "libnetdbpf_test",
test_suites: ["device-tests"],
+ require_root: true,
srcs: [
"BpfNetworkStatsTest.cpp",
],