lshal --init-vintf: do not put empty <sepolicy> tag
Test: lshal --init-vintf
Change-Id: Id742ddbd9e79abe7cfaea5d89d184a8e36943e66
diff --git a/cmds/lshal/ListCommand.cpp b/cmds/lshal/ListCommand.cpp
index 7399692..3acdd90 100644
--- a/cmds/lshal/ListCommand.cpp
+++ b/cmds/lshal/ListCommand.cpp
@@ -265,9 +265,6 @@
<< " <interface> declared; users will have to write them by hand." << std::endl
<< " 4. A HAL with lower minor version can be overridden by a HAL with" << std::endl
<< " higher minor version if they have the same name and major version." << std::endl
- << " 5. sepolicy version is set to 0.0. It is recommended that the entry" << std::endl
- << " is removed from the manifest file and written by assemble_vintf" << std::endl
- << " at build time." << std::endl
<< "-->" << std::endl;
vintf::HalManifest manifest;
@@ -364,7 +361,7 @@
}
}
});
- out << vintf::gHalManifestConverter(manifest);
+ out << vintf::gHalManifestConverter(manifest, vintf::SerializeFlag::HALS_ONLY);
}
static Architecture fromBaseArchitecture(::android::hidl::base::V1_0::DebugInfo::Architecture a) {