CompatibilityMatrix::combine also allow downrev of minor version.

If level=1 states foo@1.2-3 and level=2 states foo@1.0-4, then
combine() should return a matrix with foo@1.0-4. This relaxes the
minor version requirement on upgrading devices.

Test: libvintf_test
Bug: 74341777
Change-Id: Ia9bd3f7ce4ab39745acaabbe1ed111b490a379cf
Merged-In: Ia9bd3f7ce4ab39745acaabbe1ed111b490a379cf
diff --git a/test/LibVintfTest.cpp b/test/LibVintfTest.cpp
index 7c645c2..fc7ebc9 100644
--- a/test/LibVintfTest.cpp
+++ b/test/LibVintfTest.cpp
@@ -2158,7 +2158,7 @@
               "<compatibility-matrix version=\"1.0\" type=\"framework\" level=\"1\">\n"
               "    <hal format=\"hidl\" optional=\"false\">\n"
               "        <name>android.hardware.foo</name>\n"
-              "        <version>1.2-4</version>\n"
+              "        <version>1.0-4</version>\n"
               "        <interface>\n"
               "            <name>IFoo</name>\n"
               "            <instance>default</instance>\n"