Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91f6eb32 authored by Victor Hsieh's avatar Victor Hsieh
Browse files

Remove flags in fs-verity header

The flag of "has extension" has been removed since there is a field of
"extension count" in the header.

This changes the on-disk format, but is currently fine because the
feature is not enabled yet.

Test: build
Bug: 30972906
Change-Id: Ibf00070e678835842c1508fb1afe3dca38a77381
parent b23e1716
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ abstract class ApkVerityBuilder {
        buffer.putShort((short) 1);         // meta algorithm, SHA256_MODE == 1
        buffer.putShort((short) 1);         // data algorithm, SHA256_MODE == 1

        buffer.putInt(0x1);                 // flags, 0x1: has extension
        buffer.putInt(0x0);                 // flags
        buffer.putInt(0);                   // reserved

        buffer.putLong(fileSize);           // original file size