OSDN Git Service

Make the DownloadProvider work in the simulator
authorJean-Baptiste Queru <jbq@google.com>
Sat, 28 Feb 2009 01:22:12 +0000 (17:22 -0800)
committerJean-Baptiste Queru <jbq@google.com>
Sat, 28 Feb 2009 01:22:12 +0000 (17:22 -0800)
src/com/android/providers/downloads/DownloadProvider.java

index 6b3124a..0ce6b22 100644 (file)
@@ -385,7 +385,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 ");
             }