diff options
-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 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, |