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

Commit 0f9843fa authored by Aaron Okano's avatar Aaron Okano
Browse files

Allow enabling RT inheritance for system_server binders

This change makes it possible to enable RT inheritance across all
system_server binder services by setting sys.system_server_inherit_rt.

Flag: android.server.allow_system_server_inherit_rt
bug: 397169625
Change-Id: I046657c09dc9503a3d4ebc300a6e2693ed008935
parent 45024c67
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -987,6 +987,10 @@ public final class SystemServer implements Dumpable {
        // Start services.
        try {
            t.traceBegin("StartServices");
            if (android.server.Flags.allowSystemServerInheritRt()
                    && SystemProperties.getBoolean("sys.system_server_inherit_rt", false)) {
                Binder.setGlobalInheritRt(true);
            }
            startBootstrapServices(t);
            startCoreServices(t);
            startOtherServices(t);