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

Commit b668535a 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
Merged-In: Ibd2374324be5513cbd09c04889e7b96051c26fb4
parent d27a9f44
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -1895,6 +1895,15 @@ public class CarrierConfigManager {
    public static final String KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING =
    public static final String KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING =
            "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. */
    /** The default value for every variable. */
    private final static PersistableBundle sDefaults;
    private final static PersistableBundle sDefaults;