summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong2017-10-16 18:21:05 -0500
committerYifan Hong2017-10-16 18:27:18 -0500
commitc81841f975705f37bfffec7e1d84a9b461539bb3 (patch)
treed81bb52657976c662542f6a627289f49daba2c61 /parse_xml.cpp
parent66444507bb258a895059544855be2f47cc523f1c (diff)
downloadplatform-system-libvintf-c81841f975705f37bfffec7e1d84a9b461539bb3.tar.gz
platform-system-libvintf-c81841f975705f37bfffec7e1d84a9b461539bb3.tar.xz
platform-system-libvintf-c81841f975705f37bfffec7e1d84a9b461539bb3.zip
Allow native HALs to have <transport> tag.
assemble_vintf should not drop the empty <transport/> tag for native HALs, otherwise older versions of libvintf cannot parse the file. Test: m system_manifest.xml -j and manually look at the file Test: sideload package from O DR Bug: 67653129 Change-Id: I403031f1546e7a26b0ad40b992d191ee3c7b80c6
Diffstat (limited to 'parse_xml.cpp')
-rw-r--r--parse_xml.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/parse_xml.cpp b/parse_xml.cpp
index 3e495fd..0094f81 100644
--- a/parse_xml.cpp
+++ b/parse_xml.cpp
@@ -588,9 +588,7 @@ struct ManifestHalConverter : public XmlNodeConverter<ManifestHal> {
588 void mutateNode(const ManifestHal &hal, NodeType *root, DocType *d) const override { 588 void mutateNode(const ManifestHal &hal, NodeType *root, DocType *d) const override {
589 appendAttr(root, "format", hal.format); 589 appendAttr(root, "format", hal.format);
590 appendTextElement(root, "name", hal.name, d); 590 appendTextElement(root, "name", hal.name, d);
591 if (!hal.transportArch.empty()) { 591 appendChild(root, transportArchConverter(hal.transportArch, d));
592 appendChild(root, transportArchConverter(hal.transportArch, d));
593 }
594 appendChildren(root, versionConverter, hal.versions, d); 592 appendChildren(root, versionConverter, hal.versions, d);
595 appendChildren(root, halInterfaceConverter, iterateValues(hal.interfaces), d); 593 appendChildren(root, halInterfaceConverter, iterateValues(hal.interfaces), d);
596 } 594 }