From 1df0aafcc34bc26cc224ed922d896040a3090224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Tue, 24 Oct 2023 03:40:38 +0000 Subject: [PATCH] BpfUtils.java - add requires T+ annotation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Networking bpf (including cgroup related portions) was mainlined in Android T. Test: TreeHugger Signed-off-by: Maciej Żenczykowski Change-Id: I779584828f03caa2d61d5081cb3d39566db9b9de --- staticlibs/device/com/android/net/module/util/BpfUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/staticlibs/device/com/android/net/module/util/BpfUtils.java b/staticlibs/device/com/android/net/module/util/BpfUtils.java index 10a8f60489..cdd6fd7665 100644 --- a/staticlibs/device/com/android/net/module/util/BpfUtils.java +++ b/staticlibs/device/com/android/net/module/util/BpfUtils.java @@ -15,7 +15,10 @@ */ package com.android.net.module.util; +import android.os.Build; + import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; import java.io.IOException; @@ -24,6 +27,7 @@ import java.io.IOException; * * {@hide} */ +@RequiresApi(Build.VERSION_CODES.TIRAMISU) public class BpfUtils { static { System.loadLibrary(JniUtil.getJniLibraryName(BpfUtils.class.getPackage()));