VintfObject::checkCompatibility reads incoming kernel info.

Test: vintf_object_test
Bug: 111125947
Change-Id: Ib89e5769093c1c5c36fc063022cfad3b9f217ef3
diff --git a/VintfObject.cpp b/VintfObject.cpp
index 1100977..fbe4045 100644
--- a/VintfObject.cpp
+++ b/VintfObject.cpp
@@ -548,9 +548,15 @@
         return INCOMPATIBLE;
     }
 
+    CheckFlags::Type runtimeInfoCheckFlags = flags;
+    if (!!getDeviceHalManifest()->kernel()) {
+        // Use kernel from incoming OTA package, but not on the device.
+        runtimeInfoCheckFlags = runtimeInfoCheckFlags.disableKernel();
+    }
+
     if (flags.isRuntimeInfoEnabled()) {
         if (!getRuntimeInfo()->checkCompatibility(*getFrameworkCompatibilityMatrix(), error,
-                                                  flags)) {
+                                                  runtimeInfoCheckFlags)) {
             if (error) {
                 error->insert(0,
                               "Runtime info and framework compatibility matrix are incompatible: ");