OSDN Git Service

lshal: --init-vintf exclude system hals
authorSteven Moreland <smoreland@google.com>
Wed, 22 Mar 2017 21:22:55 +0000 (14:22 -0700)
committerSteven Moreland <smoreland@google.com>
Thu, 23 Mar 2017 01:48:06 +0000 (01:48 +0000)
--init-vintf is provided for convenience so that vendors can initialize
their vendor interface. Excluding system hals so that they aren't
included in the default vintf file that is generated. They are
maintained manually.

Test: Verified frameworks hals are no longer visible in init-vintf.
Bug: 34772739
Change-Id: Ie40c384334affcb3abee063d58000b808f04e234

cmds/lshal/Lshal.cpp

index 8750147..0228a37 100644 (file)
@@ -257,8 +257,9 @@ void Lshal::dumpVintf() const {
                 continue;
             }
             // Strip out system libs.
-            // TODO(b/34772739): might want to add other framework HAL packages
-            if (fqName.inPackage("android.hidl")) {
+            if (fqName.inPackage("android.hidl") ||
+                fqName.inPackage("android.frameworks") ||
+                fqName.inPackage("android.system")) {
                 continue;
             }
             std::string interfaceName =