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

Commit d2c22c7e authored by Thiébaud Weksteen's avatar Thiébaud Weksteen
Browse files

Disable DynamicCodeLoggingService

If dynamic_code_logging_service_removal is set, ignore scheduling of
this service.

Bug: 403391929
Test: presubmit
Flag: com.android.server.flags.dynamic_code_logging_service_removal
Change-Id: Ib7538afd8d707a7fb8bc03ebf2ea3bc41f21fc47
parent 9752de17
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -78,6 +78,9 @@ public class DynamicCodeLoggingService extends JobService {
     * Schedule our jobs with the {@link JobScheduler}.
     */
    public static void schedule(Context context) {
        if (com.android.server.flags.Flags.dynamicCodeLoggingServiceRemoval()) {
            return;
        }
        ComponentName serviceName = new ComponentName(
                "android", DynamicCodeLoggingService.class.getName());