Check unused HALs when system ext matrix exists.
System_ext matrix is another extension of framework matrix. When it is
defined, it is likely that vendor-defined HAL interfaces requirements
are listed there. Hence, also check unused HALs.
Bug: 131717099
Test: m check-vintf-all
Change-Id: I5c5ec4891a3d9c1427073ed5723ae8e70877b4c6
Merged-In: I5c5ec4891a3d9c1427073ed5723ae8e70877b4c6
diff --git a/VintfObject.cpp b/VintfObject.cpp
index 6d86682..4f47622 100644
--- a/VintfObject.cpp
+++ b/VintfObject.cpp
@@ -819,6 +819,10 @@
if (android::base::StartsWith(namedMatrix.name, kProductVintfDir)) {
return true;
}
+ // Returns true if system_ext matrix exists.
+ if (android::base::StartsWith(namedMatrix.name, kSystemExtVintfDir)) {
+ return true;
+ }
// Returns true if device system matrix exists.
if (android::base::StartsWith(namedMatrix.name, kSystemVintfDir) &&
namedMatrix.object.level() == Level::UNSPECIFIED &&