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

Commit 2239be87 authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

Do not purge process groups on system_server startup



Removing all process groups during system_server startup can race with
process group creation from init which results in occasional failure to
create a process group and failure to boot the device.
Move process group purging into init to prevent such a race.

Bug: 228160715
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: I2e50f53c9692424c994c0b4ee6f1e2762632c3bc
parent 14fff66f
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -91,7 +91,6 @@ import static android.os.Process.killProcessQuiet;
import static android.os.Process.myPid;
import static android.os.Process.myUid;
import static android.os.Process.readProcFile;
import static android.os.Process.removeAllProcessGroups;
import static android.os.Process.sendSignal;
import static android.os.Process.setThreadPriority;
import static android.os.Process.setThreadScheduler;
@@ -2388,8 +2387,6 @@ public class ActivityManagerService extends IActivityManager.Stub
    }
    private void start() {
        removeAllProcessGroups();
        mBatteryStatsService.publish();
        mAppOpsService.publish();
        Slog.d("AppOps", "AppOpsService published");