OSDN Git Service

DO NOT MERGE Prevent OOM death for services under ServiceWatcher's care.
authorVictoria Lease <violets@google.com>
Wed, 16 Jan 2013 20:51:04 +0000 (12:51 -0800)
committerVictoria Lease <violets@google.com>
Thu, 17 Jan 2013 01:37:21 +0000 (17:37 -0800)
Change-Id: If87be5769b55368edaf4776189e8f6e51a21eb03

Conflicts:

services/java/com/android/server/ServiceWatcher.java

services/java/com/android/server/ServiceWatcher.java

index 2e7c6d1..67f926a 100644 (file)
@@ -177,7 +177,7 @@ public class ServiceWatcher implements ServiceConnection {
         mVersion = version;
         if (D) Log.d(mTag, "binding " + packageName + " (version " + version + ")");
         mContext.bindService(intent, this, Context.BIND_AUTO_CREATE | Context.BIND_NOT_FOREGROUND
-                | Context.BIND_ALLOW_OOM_MANAGEMENT | Context.BIND_NOT_VISIBLE, mCurrentUserId);
+                | Context.BIND_NOT_VISIBLE, mCurrentUserId);
     }
 
     public static boolean isSignatureMatch(Signature[] signatures,