Fixed flaky unit tests
[android/platform/frameworks/opt/telephony.git] / tests / telephonytests / src / com / android / internal / telephony / TelephonyTest.java
index b38659c..ed5ca43 100644 (file)
@@ -41,6 +41,7 @@ import android.os.IDeviceIdleController;
 import android.os.RegistrantList;
 import android.os.ServiceManager;
 import android.provider.BlockedNumberContract;
+import android.provider.Settings;
 import android.telephony.ServiceState;
 import android.telephony.SubscriptionManager;
 import android.telephony.TelephonyManager;
@@ -441,6 +442,9 @@ public abstract class TelephonyTest {
         mSST.mSS = mServiceState;
         mServiceManagerMockedServices.put("connectivity_metrics_logger", mConnMetLoggerBinder);
 
+        Settings.Global.putInt(mContext.getContentResolver(),
+                Settings.Global.ENABLE_CELLULAR_ON_BOOT, 1);
+
         setReady(false);
     }