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

Commit 76946f28 authored by Jing Ji's avatar Jing Ji Committed by Android (Google) Code Review
Browse files

Merge "Use ActivityManagerService lock in grantUriPermission" into sc-dev

parents f34eed4c dfdee53c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5632,7 +5632,7 @@ public class ActivityManagerService extends IActivityManager.Stub
            final int modeFlags, int userId) {
        enforceNotIsolatedCaller("grantUriPermission");
        GrantUri grantUri = new GrantUri(userId, uri, modeFlags);
        synchronized (mProcLock) {
        synchronized (this) {
            final ProcessRecord r = getRecordForAppLOSP(caller);
            if (r == null) {
                throw new SecurityException("Unable to find app for caller "
@@ -5666,7 +5666,7 @@ public class ActivityManagerService extends IActivityManager.Stub
    public void revokeUriPermission(IApplicationThread caller, String targetPackage, Uri uri,
            final int modeFlags, int userId) {
        enforceNotIsolatedCaller("revokeUriPermission");
        synchronized (mProcLock) {
        synchronized (this) {
            final ProcessRecord r = getRecordForAppLOSP(caller);
            if (r == null) {
                throw new SecurityException("Unable to find app for caller "