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

Commit d50066f8 authored by Suchi Amalapurapu's avatar Suchi Amalapurapu
Browse files

invoke sendMessage instead of dispatchMessage to avoid deadlocks in ActivityManagerService

parent ad4bc607
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -4818,7 +4818,7 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
            msg.arg1 = uid;
            msg.arg1 = uid;
            msg.arg2 = 0;
            msg.arg2 = 0;
            msg.obj = pkg;
            msg.obj = pkg;
            mHandler.dispatchMessage(msg);
            mHandler.sendMessage(msg);
        } else {
        } else {
            throw new SecurityException(callerUid + " cannot kill pkg: " +
            throw new SecurityException(callerUid + " cannot kill pkg: " +
                    pkg);
                    pkg);