summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Malcolm Chen <refuhoo@google.com> 2018-04-16 15:20:38 -0700
committer Malcolm Chen <refuhoo@google.com> 2018-04-16 15:20:38 -0700
commitb56234fc9bd2fc291b6d1a8675aec2da3b5d16a2 (patch)
tree82a1f37c27e46b6dde4ef0e1ceccaabe9ca388fd
parent5ea8ba5c0c06d0fd7a70f649f879f1f26bd403ef (diff)
Add carrier config for partial sms raw message expiration.
Everytime at boot-up, we check Sms raw table, and delete the rows with any partial message that is too old. By default the expiration age is 30 days, but we want to make it configurable. Bug: 77910620 Test: sanity-test Change-Id: Ibd2374324be5513cbd09c04889e7b96051c26fb4
-rw-r--r--telephony/java/android/telephony/CarrierConfigManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java
index aa76eab89681..838f86f4df75 100644
--- a/telephony/java/android/telephony/CarrierConfigManager.java
+++ b/telephony/java/android/telephony/CarrierConfigManager.java
@@ -1919,6 +1919,15 @@ public class CarrierConfigManager {
public static final String KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING =
"wcdma_default_signal_strength_measurement_string";
+ /**
+ * When a partial sms / mms message stay in raw table for too long without being completed,
+ * we expire them and delete them from the raw table. This carrier config defines the
+ * expiration time.
+ * @hide
+ */
+ public static final String KEY_UNDELIVERED_SMS_MESSAGE_EXPIRATION_TIME =
+ "undelivered_sms_message_expiration_time";
+
/** The default value for every variable. */
private final static PersistableBundle sDefaults;