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

Commit bbc4808b authored by David Anderson's avatar David Anderson Committed by Android (Google) Code Review
Browse files

Merge "Fix a race condition when testing trade-in mode." into main

parents 775440c6 a5590c89
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ import android.os.Binder;
import android.os.ITradeInMode;
import android.os.RemoteException;
import android.os.SystemProperties;
import android.os.RemoteException;
import android.provider.Settings;
import android.provider.Settings.SettingNotFoundException;
import android.service.persistentdata.PersistentDataBlockManager;
@@ -317,6 +316,7 @@ public final class TradeInModeService extends SystemService {

    private void enterTestMode() {
        SystemProperties.set(TIM_TEST_PROP, "1");
        SystemProperties.set(TIM_PROP, Integer.toString(TIM_STATE_FOYER));
    }

    private void leaveTestMode() {