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

Commit 39fae7be authored by JW Wang's avatar JW Wang
Browse files

mSealed is not protected inside #setPermissionsResult (4/n)

Call isSealed() instead.

Bug: 159663586
Test: atest StagedInstallTest AtomicInstallTest
Change-Id: Ifcbeeee4a8ea4e904b18dd6c8e0c1260d2c84765
parent bf2dd8b6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2544,7 +2544,7 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
    }

    void setPermissionsResult(boolean accepted) {
        if (!mSealed) {
        if (!isSealed()) {
            throw new SecurityException("Must be sealed to accept permissions");
        }