Added a temp workaround for sim switch am: 117c26dd3b am: 2fec866bfc am: c1fb0cdb64 am: f31e66ea87
am: ba87fc6e27
Change-Id: Icd1c5a593468bf544816f8869baf4a87e2680fe5
(cherry picked from commit 9c6072508f61d533033c5e11f30c6384d8ea65de)
diff --git a/acts/framework/acts/test_utils/tel/TelephonyBaseTest.py b/acts/framework/acts/test_utils/tel/TelephonyBaseTest.py
index 9506a7b..bab9fb6 100644
--- a/acts/framework/acts/test_utils/tel/TelephonyBaseTest.py
+++ b/acts/framework/acts/test_utils/tel/TelephonyBaseTest.py
@@ -162,6 +162,16 @@
setattr(self, "diag_logger",
self.register_controller(
acts.controllers.diag_logger, required=False))
+
+ # Workaround for SIM switch b/63808825. Pls remove once fixed
+ for ad in self.android_devices:
+ if not ad.adb.shell("getprop gsm.sim.operator.alpha"):
+ ad.log.warning("Workaround as per b/63808825")
+ ad.adb.shell(
+ "am broadcast -a android.provider.Telephony.SECRET_CODE "
+ "-d android_secret_code://794824746 "
+ "com.google.android.euicc")
+
if not self.user_params.get("Attenuator"):
ensure_phones_default_state(self.log, self.android_devices)
else: