diff options
author | Adam Seaton <aseaton@google.com> | 2016-08-26 21:44:25 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-08-26 21:44:25 +0000 |
commit | 6777320335d0ce84364a16d9936bff7994e4566b (patch) | |
tree | ae8fe48bbc79c0a044dc0624f6f30d09b11bc0f4 /src/com/android/providers/downloads | |
parent | ec19fe64858d6f702a01d094ce9c5b449baab7a1 (diff) | |
parent | b440ceb00fd46c9233723066c680a538067fbf82 (diff) | |
download | android_packages_providers_DownloadProvider-6777320335d0ce84364a16d9936bff7994e4566b.tar.gz android_packages_providers_DownloadProvider-6777320335d0ce84364a16d9936bff7994e4566b.tar.bz2 android_packages_providers_DownloadProvider-6777320335d0ce84364a16d9936bff7994e4566b.zip |
Revert "Enforce calling identity before clearing."
am: b440ceb00f
Change-Id: If9feec471d71fbfa05a4cf9a8633142c724b6da3
Diffstat (limited to 'src/com/android/providers/downloads')
-rw-r--r-- | src/com/android/providers/downloads/DownloadProvider.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/com/android/providers/downloads/DownloadProvider.java b/src/com/android/providers/downloads/DownloadProvider.java index d2a9d847..2d914c41 100644 --- a/src/com/android/providers/downloads/DownloadProvider.java +++ b/src/com/android/providers/downloads/DownloadProvider.java @@ -1192,19 +1192,6 @@ public final class DownloadProvider extends ContentProvider { logVerboseOpenFileInfo(uri, mode); } - // Perform normal query to enforce caller identity access before - // clearing it to reach internal-only columns - final Cursor probeCursor = query(uri, new String[] { - Downloads.Impl._DATA }, null, null, null); - try { - if ((probeCursor == null) || (probeCursor.getCount() == 0)) { - throw new FileNotFoundException( - "No file found for " + uri + " as UID " + Binder.getCallingUid()); - } - } finally { - IoUtils.closeQuietly(probeCursor); - } - final Cursor cursor = queryCleared(uri, new String[] { Downloads.Impl._DATA, Downloads.Impl.COLUMN_STATUS, Downloads.Impl.COLUMN_DESTINATION, Downloads.Impl.COLUMN_MEDIA_SCANNED }, null, |