diff options
| author | Craig Mautner <cmautner@google.com> | 2014-12-01 05:33:49 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-01 05:33:49 +0000 |
| commit | 1d027d6661af6c55e940af8535cd6252718cf5d3 (patch) | |
| tree | 56cc8a45d2e1896029791bbdf0f5eef53b2d3eba | |
| parent | ad9c287add50853d0988c489f2a509b9ddd7ece8 (diff) | |
| parent | bda8e4192a26b5ab137ba3c22ea00b493a1b673e (diff) | |
| download | frameworks_base-1d027d6661af6c55e940af8535cd6252718cf5d3.zip frameworks_base-1d027d6661af6c55e940af8535cd6252718cf5d3.tar.gz frameworks_base-1d027d6661af6c55e940af8535cd6252718cf5d3.tar.bz2 | |
am bda8e419: am be342ef0: am c4cf78f4: Merge "[ActivityManager] Ensure provider external access count will be released."
* commit 'bda8e4192a26b5ab137ba3c22ea00b493a1b673e':
[ActivityManager] Ensure provider external access count will be released.
| -rwxr-xr-x | services/core/java/com/android/server/am/ActivityManagerService.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index 82469f4..eb2198f 100755 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -9910,10 +9910,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 + "'"); } |
