summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorJordan Liu <jminjie@google.com>2021-04-07 18:51:31 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-04-07 18:51:31 +0000
commit145e5e211b542e43860a27193afa62e5b3189288 (patch)
tree5f03a0c1e9ae10fc316992434cc6a766c11aae31 /core/java
parent00475492322a1b326f1c95d930811054fef862d6 (diff)
parent192cfc6ea0e151dae8141271642c6b4c6ca0a1ba (diff)
Merge "Update doc for getDefaultSmsPackage" into sc-dev
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/provider/Telephony.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java
index 38945f5bcea4..f3a8b5d79ea0 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.
+ * <p>
+ * As of Android 11 apps will need specific permission to query other packages. To use
+ * this method an app must include in their AndroidManifest:
+ * <queries>
+ * <intent>
+ * <action android:name="android.provider.Telephony.SMS_DELIVER"/>
+ * </intent>
+ * </queries>
+ * Which will allow them to query packages which declare intent filters that include
+ * the {@link android.provider.Telephony.Sms.Intents#SMS_DELIVER_ACTION} intent.
+ * </p>
+ *
* @param context context of the requesting application
* @return package name for the default SMS package or null
*/