Use UID instead of PID.
Jeff Sharkey [Fri, 11 Nov 2011 20:37:21 +0000 (12:37 -0800)]
Bug: 5606426
Change-Id: I9b9cee142c360da2a30a4bb8be8dcf40b8c7e43e

src/com/android/providers/downloads/DownloadProvider.java

index 02e5d58..3efdf63 100644 (file)
@@ -1086,7 +1086,7 @@ public final class DownloadProvider extends ContentProvider {
                 != PackageManager.PERMISSION_GRANTED) {
             selection.appendClause(
                     Constants.UID + "= ? OR " + Downloads.Impl.COLUMN_OTHER_UID + "= ?",
-                    Binder.getCallingUid(), Binder.getCallingPid());
+                    Binder.getCallingUid(), Binder.getCallingUid());
         }
         return selection;
     }