auto import //branches/master/...@140412
The Android Open Source Project [Thu, 19 Mar 2009 05:20:27 +0000 (22:20 -0700)]
src/com/android/providers/downloads/DownloadProvider.java

index f7cdd51..a767856 100644 (file)
@@ -386,7 +386,8 @@ public final class DownloadProvider extends ContentProvider {
             }
         }
 
-        if (Binder.getCallingPid() != Process.myPid() && Binder.getCallingUid() != 0) {
+        if (Binder.getCallingPid() != Process.myPid() && Binder.getCallingUid() != 0 &&
+                Process.supportsProcesses()) {
             if (!emptyWhere) {
                 qb.appendWhere(" AND ");
             }