summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/downloads
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/providers/downloads')
-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 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,