Update doc for getDefaultSmsPackage

Bug: 174445979
Test: no change to behavior
Change-Id: Ied4b7f5bcc2ff78f4c6f04e4c11b5a10cf463fcd
This commit is contained in:
Jordan Liu
2021-04-06 10:26:15 -07:00
parent 78fe2eda6b
commit 192cfc6ea0

View File

@@ -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
*/