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

Commit b2926b1d authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix a security exception when unbinding services

Clear calling identity before calling oom adjust.

Bug: 38183641
Test: manual
Change-Id: Ia3cc7bb83a94d1bb280a43912a250bddc9ef2c11
parent 1c38d294
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1493,12 +1493,13 @@ public final class ActiveServices {
                    mAm.updateOomAdjLocked(r.binding.service.app, false);
                }
            }

            mAm.updateOomAdjLocked();

        } finally {
            Binder.restoreCallingIdentity(origId);
        }

        mAm.updateOomAdjLocked();

        return true;
    }