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

Commit 2d096185 authored by Victor Hsieh's avatar Victor Hsieh Committed by Android (Google) Code Review
Browse files

Merge "Restore the check of fs-verity status"

parents e6cf58ac 2ee62d08
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2785,6 +2785,7 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
        // Default to require only if existing base apk has fs-verity signature.
        mVerityFoundForApks = PackageManagerServiceUtils.isApkVerityEnabled()
                && params.mode == SessionParams.MODE_INHERIT_EXISTING
                && VerityUtils.hasFsverity(pkgInfo.applicationInfo.getBaseCodePath())
                && (new File(VerityUtils.getFsveritySignatureFilePath(
                        pkgInfo.applicationInfo.getBaseCodePath()))).exists();