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

Commit 21f031fe authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't block the boot on hashing sepolicy" into main

parents bd647513 d2a86b62
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -1464,6 +1464,7 @@ public class BinaryTransparencyService extends SystemService {
        FrameworkStatsLog.write(FrameworkStatsLog.VBMETA_DIGEST_REPORTED, mVbmetaDigest);

        if (android.security.Flags.binaryTransparencySepolicyHash()) {
            IoThread.getExecutor().execute(() -> {
                byte[] sepolicyHash = PackageUtils.computeSha256DigestForLargeFileAsBytes(
                        "/sys/fs/selinux/policy", PackageUtils.createLargeFileBuffer());
                String sepolicyHashEncoded = null;
@@ -1473,6 +1474,7 @@ public class BinaryTransparencyService extends SystemService {
                }
                FrameworkStatsLog.write(FrameworkStatsLog.BOOT_INTEGRITY_INFO_REPORTED,
                        sepolicyHashEncoded, mVbmetaDigest);
            });
        }
    }