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

Commit 3872caf5 authored by rambowang's avatar rambowang
Browse files

Clean up aconfig flag hide_preinstalled_carrier_app_at_most_once

Flag hide_preinstalled_carrier_app_at_most_once has been advanced to
next for a while and there is no regression observed. It's time to clean
it up to keep code healthy.

Bug: 158028151
Test: atest CarrierAppUtilsTest
Flag: EXEMPT flag clean up only
Change-Id: I325099fc588ae3408e0ed13174585e5392dee9b7
parent 42e2819d
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -118,17 +118,6 @@ flag {
    }
}

# OWNER=rambowang TARGET=24Q3
flag {
    name: "hide_preinstalled_carrier_app_at_most_once"
    namespace: "telephony"
    description: "Fix bug when preloaded carrier app is uninstalled and lose provisioning data"
    bug:"158028151"
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}

# OWNER=sangyun TARGET=24Q3
flag {
    name: "roaming_notification_for_single_data_network"
+0 −8
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ import android.os.Build;
import android.os.Bundle;
import android.os.CarrierAssociatedAppEntry;
import android.os.UserHandle;
import android.platform.test.flag.junit.SetFlagsRule;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.test.mock.MockContentProvider;
@@ -35,12 +34,9 @@ import androidx.test.InstrumentationRegistry;
import androidx.test.filters.SmallTest;
import androidx.test.runner.AndroidJUnit4;

import com.android.internal.telephony.flags.Flags;

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
@@ -63,9 +59,6 @@ public class CarrierAppUtilsTest {
    private static final int USER_ID = 12345;
    private static final String CALLING_PACKAGE = "phone";

    @Rule
    public final SetFlagsRule mSetFlagsRule = new SetFlagsRule();

    // Mocked classes
    private Context mContext;
    private PackageManager mPackageManager;
@@ -86,7 +79,6 @@ public class CarrierAppUtilsTest {

    @Before
    public void setUp() throws Exception {
        mSetFlagsRule.enableFlags(Flags.FLAG_HIDE_PREINSTALLED_CARRIER_APP_AT_MOST_ONCE);
        System.setProperty("dexmaker.dexcache",
                InstrumentationRegistry.getTargetContext().getCacheDir().getPath());
        Thread.currentThread().setContextClassLoader(getClass().getClassLoader());