From 192cfc6ea0e151dae8141271642c6b4c6ca0a1ba Mon Sep 17 00:00:00 2001 From: Jordan Liu Date: Tue, 6 Apr 2021 10:26:15 -0700 Subject: [PATCH] Update doc for getDefaultSmsPackage Bug: 174445979 Test: no change to behavior Change-Id: Ied4b7f5bcc2ff78f4c6f04e4c11b5a10cf463fcd --- core/java/android/provider/Telephony.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java index 38945f5bcea4f..f3a8b5d79ea09 100644 --- a/core/java/android/provider/Telephony.java +++ b/core/java/android/provider/Telephony.java @@ -362,6 +362,18 @@ public final class Telephony { /** * Used to determine the currently configured default SMS package. + *

+ * As of Android 11 apps will need specific permission to query other packages. To use + * this method an app must include in their AndroidManifest: + * + * + * + * + * + * Which will allow them to query packages which declare intent filters that include + * the {@link android.provider.Telephony.Sms.Intents#SMS_DELIVER_ACTION} intent. + *

+ * * @param context context of the requesting application * @return package name for the default SMS package or null */