Merge "[ActivityManager] Ensure provider external access count will be released."
This commit is contained in:
@@ -10054,10 +10054,9 @@ public final class ActivityManagerService extends ActivityManagerNative
|
||||
} finally {
|
||||
// Ensure that whatever happens, we clean up the identity state
|
||||
sCallerIdentity.remove();
|
||||
// Ensure we're done with the provider.
|
||||
removeContentProviderExternalUnchecked(name, null, userId);
|
||||
}
|
||||
|
||||
// We've got the fd now, so we're done with the provider.
|
||||
removeContentProviderExternalUnchecked(name, null, userId);
|
||||
} else {
|
||||
Slog.d(TAG, "Failed to get provider for authority '" + name + "'");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user