From dd4f11a699100b17388b08d6682245c6215fdd75 Mon Sep 17 00:00:00 2001 From: Aishwarya Mallampati Date: Mon, 20 Mar 2023 21:22:02 +0000 Subject: [PATCH] Add sub_id column in SMS and MMS tables. sub_id column is added in following tables: - canonical_addresses - part - threads - addr - words Bug: 267435875 Test: Manually sending/receiving SMS/MMS, atest com.android.providers.telephony.SmsProviderTest, atest com.android.providers.telephony.MmsProviderTest, atest com.android.providers.telephony.ProviderUtilTest, atest CtsTelephonyProviderTestCases, atest CtsTelephonyTestCases Change-Id: I1201a2b2107c096890552e9b270aa7a2e7c6fca8 --- core/java/android/provider/Telephony.java | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java index d2f9ff01ca985..59b945c9c9a4f 100644 --- a/core/java/android/provider/Telephony.java +++ b/core/java/android/provider/Telephony.java @@ -2051,6 +2051,14 @@ public final class Telephony { *

Type: TEXT

*/ public static final String ADDRESS = "address"; + + /** + * The subscription to which the message belongs to. Its value will be less than 0 + * if the sub id cannot be determined. + *

Type: INTEGER (long)

+ * @hide + */ + public static final String SUBSCRIPTION_ID = "sub_id"; } /** @@ -2119,6 +2127,14 @@ public final class Telephony { *

Type: INTEGER (boolean)

*/ public static final String ARCHIVED = "archived"; + + /** + * The subscription to which the message belongs to. Its value will be less than 0 + * if the sub id cannot be determined. + *

Type: INTEGER (long)

+ * @hide + */ + public static final String SUBSCRIPTION_ID = "sub_id"; } /** @@ -2476,6 +2492,14 @@ public final class Telephony { */ public static final String CHARSET = "charset"; + /** + * The subscription to which the message belongs to. Its value will be less than 0 + * if the sub id cannot be determined. + *

Type: INTEGER (long)

+ * @hide + */ + public static final String SUBSCRIPTION_ID = "sub_id"; + /** * Generates a Addr {@link Uri} for message, used to perform Addr table operation * for mms. @@ -2596,6 +2620,14 @@ public final class Telephony { */ public static final String TEXT = "text"; + /** + * The subscription to which the message belongs to. Its value will be less than 0 + * if the sub id cannot be determined. + *

Type: INTEGER (long)

+ * @hide + */ + public static final String SUBSCRIPTION_ID = "sub_id"; + /** * Generates a Part {@link Uri} for message, used to perform Part table operation * for mms. @@ -2635,6 +2667,14 @@ public final class Telephony { *

Type: INTEGER (long)

*/ public static final String SENT_TIME = "sent_time"; + + /** + * The subscription to which the message belongs to. Its value will be less than 0 + * if the sub id cannot be determined. + *

Type: INTEGER (long)

+ * @hide + */ + public static final String SUBSCRIPTION_ID = "sub_id"; } /** @@ -2868,6 +2908,14 @@ public final class Telephony { *

Type: TEXT

*/ public static final String INDEXED_TEXT = "index_text"; + + /** + * The subscription to which the message belongs to. Its value will be less than 0 + * if the sub id cannot be determined. + *

Type: INTEGER (long)

+ * @hide + */ + public static final String SUBSCRIPTION_ID = "sub_id"; } }