Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b56234fc authored by Malcolm Chen's avatar Malcolm Chen
Browse files

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
parent 5ea8ba5c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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;