[Satellite] Reading the datagram value from carrierConfig.
adb shell cmd phone set-satellite-access-restriction-checking-result true
Flag: EXEMPT bugfix
Bug: 373476685
Test: Built successfully.
Change-Id: Ibbbe5d247ec574ecafadac9a92f3eacaafb2f68a
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java
index 02999c8..6535b9b 100644
--- a/telephony/java/android/telephony/CarrierConfigManager.java
+++ b/telephony/java/android/telephony/CarrierConfigManager.java
@@ -9856,6 +9856,16 @@
public static final String KEY_REMOVE_SATELLITE_PLMN_IN_MANUAL_NETWORK_SCAN_BOOL =
"remove_satellite_plmn_in_manual_network_scan_bool";
+ /**
+ * This value is used to set the max datagram size, if the value is not available then the
+ * default one will be used.
+ * If key is {@code true}, retrieve the max datagram value and use this value always,
+ * {@code false} the default value from the modem will be used.
+ *
+ * @hide
+ */
+ public static final String KEY_SATELLITE_SOS_MAX_DATAGRAM_SIZE =
+ "satellite_sos_max_datagram_size";
/** @hide */
@IntDef({
diff --git a/telephony/java/android/telephony/satellite/SatelliteCapabilities.java b/telephony/java/android/telephony/satellite/SatelliteCapabilities.java
index 0d8f101..f34522a 100644
--- a/telephony/java/android/telephony/satellite/SatelliteCapabilities.java
+++ b/telephony/java/android/telephony/satellite/SatelliteCapabilities.java
@@ -200,6 +200,15 @@
}
/**
+ * Setting the maximum number of bytes per datagram that can be sent over satellite.
+ *
+ * @hide
+ */
+ public void setMaxBytesPerOutgoingDatagram(int maxBytesPerOutgoingDatagram) {
+ mMaxBytesPerOutgoingDatagram = maxBytesPerOutgoingDatagram;
+ }
+
+ /**
* Antenna Position received from satellite modem which gives information about antenna
* direction to be used with satellite communication and suggested device hold positions.
* @return Map key: {@link SatelliteManager.DeviceHoldPosition} value: AntennaPosition