Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd08d1ec authored by Victoria Lease's avatar Victoria Lease
Browse files

Prevent OOM death for services under ServiceWatcher's care.

Change-Id: If87be5769b55368edaf4776189e8f6e51a21eb03
parent 5ebefec5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -177,8 +177,7 @@ public class ServiceWatcher implements ServiceConnection {
        mVersion = version;
        if (D) Log.d(mTag, "binding " + packageName + " (version " + version + ")");
        mContext.bindServiceAsUser(intent, this, Context.BIND_AUTO_CREATE | Context.BIND_NOT_FOREGROUND
                | Context.BIND_ALLOW_OOM_MANAGEMENT | Context.BIND_NOT_VISIBLE,
                new UserHandle(mCurrentUserId));
                | Context.BIND_NOT_VISIBLE, new UserHandle(mCurrentUserId));
    }

    public static boolean isSignatureMatch(Signature[] signatures,