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

Commit 0c58d760 authored by Song Chun Fan's avatar Song Chun Fan
Browse files

[PreVerfiedDomains] throw if API is called on a committed session

Also checks if the caller is the owner of the session.

Change-Id: I15c212a08a225af5c2c5c1011841e0e66f6c6134
BUG: 341788662
Test: will add cts
parent 678b3bc8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5153,6 +5153,8 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
        }
        // Okay to proceed
        synchronized (mLock) {
            assertCallerIsOwnerOrRoot();
            assertPreparedAndNotSealedLocked("setPreVerifiedDomains");
            mPreVerifiedDomains = preVerifiedDomains;
        }
    }