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 {
|
} finally {
|
||||||
// Ensure that whatever happens, we clean up the identity state
|
// Ensure that whatever happens, we clean up the identity state
|
||||||
sCallerIdentity.remove();
|
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 {
|
} else {
|
||||||
Slog.d(TAG, "Failed to get provider for authority '" + name + "'");
|
Slog.d(TAG, "Failed to get provider for authority '" + name + "'");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user