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

Commit f2632364 authored by Paul Lawrence's avatar Paul Lawrence
Browse files

Flag trade in mode service correctly

Bug: 307713521
Test: manual test
Flag: com.android.tradeinmode.flags.enable_trade_in_mode
Change-Id: I210a80cb3c62c8ff58fe38e2644f0654a9528766
parent c8311fec
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import static android.system.OsConstants.O_RDONLY;
import static android.view.Display.DEFAULT_DISPLAY;

import static com.android.server.utils.TimingsTraceAndSlog.SYSTEM_SERVER_TIMING_TAG;
import static com.android.tradeinmode.flags.Flags.enableTradeInMode;

import android.annotation.NonNull;
import android.annotation.StringRes;
@@ -1769,7 +1770,7 @@ public final class SystemServer implements Dumpable {
                t.traceEnd();
            }

            if (!isWatch && !isTv && !isAutomotive) {
            if (!isWatch && !isTv && !isAutomotive && enableTradeInMode()) {
                t.traceBegin("StartTradeInModeService");
                mSystemServiceManager.startService(TradeInModeService.class);
                t.traceEnd();