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

Commit 7f477021 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Maybe fix issue #12957738: SecurityException in..."

parents 66ebe947 9358dcca
Loading
Loading
Loading
Loading
+20 −15
Original line number Original line Diff line number Diff line
@@ -7755,6 +7755,8 @@ public final class ActivityManagerService extends ActivityManagerNative
     */
     */
    public void removeContentProvider(IBinder connection, boolean stable) {
    public void removeContentProvider(IBinder connection, boolean stable) {
        enforceNotIsolatedCaller("removeContentProvider");
        enforceNotIsolatedCaller("removeContentProvider");
        long ident = Binder.clearCallingIdentity();
        try {
            synchronized (this) {
            synchronized (this) {
                ContentProviderConnection conn;
                ContentProviderConnection conn;
                try {
                try {
@@ -7772,6 +7774,9 @@ public final class ActivityManagerService extends ActivityManagerNative
                    updateOomAdjLocked();
                    updateOomAdjLocked();
                }
                }
            }
            }
        } finally {
            Binder.restoreCallingIdentity(ident);
        }
    }
    }
    public void removeContentProviderExternal(String name, IBinder token) {
    public void removeContentProviderExternal(String name, IBinder token) {