adb shell command to trigger phone.notifyCarrierRoamingNtnEligibleStateChanged API.
adb shell cmd phone set-satellite-access-restriction-checking-result true
Flag: EXEMPT bugfix
Bug: 370033218
Test: Manually verified.
Change-Id: Iaef003f5833752c288779eff934314d8e697d64e
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 559effa..251976b 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -14505,4 +14505,17 @@
enforceReadPrivilegedPermission("getTestEuiccUiComponent");
return mTestEuiccUiComponent;
}
+
+ /**
+ * This API can be used only for test purpose to override the carrier roaming Ntn eligibility
+ *
+ * @param state to update Ntn Eligibility.
+ * @param resetRequired to reset the overridden flag in satellite controller.
+ * @return {@code true} if the shell command is successful, {@code false} otherwise.
+ */
+ public boolean overrideCarrierRoamingNtnEligibilityChanged(boolean state,
+ boolean resetRequired) {
+ return mSatelliteAccessController.overrideCarrierRoamingNtnEligibilityChanged(state,
+ resetRequired);
+ }
}