summaryrefslogtreecommitdiff
path: root/cmds/idmap2/libidmap2/BinaryStreamVisitor.cpp
diff options
context:
space:
mode:
authorRyan Mitchell <rtmitchell@google.com>2020-06-05 16:07:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-06-05 16:07:28 +0000
commit2201f8b6269f88951762851e665cd781cc7f1b10 (patch)
tree82ae48349bd4ecc6a000b0b626cb66540f9efc0e /cmds/idmap2/libidmap2/BinaryStreamVisitor.cpp
parentabbdec4281405d5568951d6952a4e18b117ee2fa (diff)
parenta707013b78cea3586fdadf9a2f04932e823d7504 (diff)
Merge "Add policies and enforce overlayable to header" into rvc-dev
Diffstat (limited to 'cmds/idmap2/libidmap2/BinaryStreamVisitor.cpp')
-rw-r--r--cmds/idmap2/libidmap2/BinaryStreamVisitor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds/idmap2/libidmap2/BinaryStreamVisitor.cpp b/cmds/idmap2/libidmap2/BinaryStreamVisitor.cpp
index 362dcb36007a..255212ad4c66 100644
--- a/cmds/idmap2/libidmap2/BinaryStreamVisitor.cpp
+++ b/cmds/idmap2/libidmap2/BinaryStreamVisitor.cpp
@@ -66,6 +66,8 @@ void BinaryStreamVisitor::visit(const IdmapHeader& header) {
Write32(header.GetVersion());
Write32(header.GetTargetCrc());
Write32(header.GetOverlayCrc());
+ Write32(header.GetFulfilledPolicies());
+ Write8(static_cast<uint8_t>(header.GetEnforceOverlayable()));
WriteString256(header.GetTargetPath());
WriteString256(header.GetOverlayPath());
WriteString(header.GetDebugInfo());