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

Commit 9438de20 authored by San Mehat's avatar San Mehat
Browse files

ActivityManager: Ensure that we clear the calling process identity around...


ActivityManager: Ensure that we clear the calling process identity around calls to Process.setProcessGroup().

Signed-off-by: default avatarSan Mehat <san@google.com>
parent 0cb53209
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -12190,11 +12190,15 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
                        "Setting process group of " + app.processName
                        + " to " + app.curSchedGroup);
                if (true) {
                    long oldId = Binder.clearCallingIdentity();
                    try {
                        Process.setProcessGroup(app.pid, app.curSchedGroup);
                    } catch (Exception e) {
                        Log.w(TAG, "Failed setting process group of " + app.pid
                                + " to " + app.curSchedGroup);
                        e.printStackTrace();
                    } finally {
                        Binder.restoreCallingIdentity(oldId);
                    }
                }
                if (false) {