Update provisioned condition for SatelliteAllowedState
Bug: 341371444
Test: Manually verified checking 'SatelliteSupported=true' and 'SatelliteProvisioned=true' to eanble 'requestIsCommunicationAllowedForCurrentLocation true'
Change-Id: I739c0820b923cd97907b83cb2df866197347d014
Merged-In: I739c0820b923cd97907b83cb2df866197347d014
diff --git a/src/java/com/android/internal/telephony/satellite/SatelliteController.java b/src/java/com/android/internal/telephony/satellite/SatelliteController.java
index 35603ab..7fa624f 100644
--- a/src/java/com/android/internal/telephony/satellite/SatelliteController.java
+++ b/src/java/com/android/internal/telephony/satellite/SatelliteController.java
@@ -153,6 +153,7 @@
private static final boolean DEBUG = !"user".equals(Build.TYPE);
/** File used to store shared preferences related to satellite. */
public static final String SATELLITE_SHARED_PREF = "satellite_shared_pref";
+ public static final String SATELLITE_SUBSCRIPTION_ID = "satellite_subscription_id";
/** Value to pass for the setting key SATELLITE_MODE_ENABLED, enabled = 1, disabled = 0 */
public static final int SATELLITE_MODE_ENABLED_TRUE = 1;
public static final int SATELLITE_MODE_ENABLED_FALSE = 0;
@@ -1636,6 +1637,7 @@
/* We have already successfully queried the satellite modem. */
Bundle bundle = new Bundle();
bundle.putBoolean(SatelliteManager.KEY_SATELLITE_SUPPORTED, mIsSatelliteSupported);
+ bundle.putInt(SATELLITE_SUBSCRIPTION_ID, subId);
result.send(SATELLITE_RESULT_SUCCESS, bundle);
return;
}