summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorAdam Seaton <aseaton@google.com>2016-08-26 22:01:26 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-08-26 22:01:26 +0000
commit8e8770bdc8811be61a747952e49b223a4c1af90a (patch)
tree46b64325238195b97cd78a6cd3c67856ce1ddc97 /src/com/android
parent14ae5650e450984f7882e022f3332852fbd2b300 (diff)
parent6a6944d1f4abb75ab7b27f2973ccedc244fbcd4e (diff)
downloadandroid_packages_providers_DownloadProvider-8e8770bdc8811be61a747952e49b223a4c1af90a.tar.gz
android_packages_providers_DownloadProvider-8e8770bdc8811be61a747952e49b223a4c1af90a.tar.bz2
android_packages_providers_DownloadProvider-8e8770bdc8811be61a747952e49b223a4c1af90a.zip
Revert "Enforce calling identity before clearing." am: b440ceb00f am: 6777320335 am: a474af3a08 am: 8bec536bf2 am: 34ccbd80ea am: 956426bee5
am: 6a6944d1f4 Change-Id: Ib01cab89347d96c44478e51a27ef2cf17e1e7b2d
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/providers/downloads/DownloadProvider.java13
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 4e14a6b8..e79aff5f 100644
--- a/src/com/android/providers/downloads/DownloadProvider.java
+++ b/src/com/android/providers/downloads/DownloadProvider.java
@@ -1232,19 +1232,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,