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-05-17 16:49:12 -0700
commitb668535a69e1b3020121228d95725f32fd24bd4e (patch)
tree002183975babe319c78429413b2288acd39a98db
parentd27a9f4465c7159b046a3087b7c4d1fad3c2a7c5 (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 Merged-In: 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 b8a1c134764f..b672e690d45f 100644
--- a/telephony/java/android/telephony/CarrierConfigManager.java
+++ b/telephony/java/android/telephony/CarrierConfigManager.java
@@ -1895,6 +1895,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;