Empty Merge Android U (ab/10368041)
Bug: 291102124
Merged-In: I199fcd4d8b2db4b26a93294e155edcc7a5696633
Change-Id: Id50579ba1bc25c23de63ba90421d3d21e09ef3f7
diff --git a/bpfloader/BpfLoader.cpp b/bpfloader/BpfLoader.cpp
index fe51ed5..e1dbd06 100644
--- a/bpfloader/BpfLoader.cpp
+++ b/bpfloader/BpfLoader.cpp
@@ -251,6 +251,11 @@
(void)argc;
android::base::InitLogging(argv, &android::base::KernelLogger);
+ if (!android::bpf::isAtLeastKernelVersion(4, 19, 0)) {
+ ALOGE("Android V requires kernel 4.19.");
+ return 1;
+ }
+
// Ensure we can determine the Android build type.
if (!android::bpf::isEng() && !android::bpf::isUser() && !android::bpf::isUserdebug()) {
ALOGE("Failed to determine the build type: got %s, want 'eng', 'user', or 'userdebug'",