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

Commit a09473c7 authored by Jordan Liu's avatar Jordan Liu Committed by Automerger Merge Worker
Browse files

Merge "Update doc for getDefaultSmsPackage" into sc-dev am: 145e5e21

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14102434

Change-Id: Ib6a1c1ef2ede8ac8329753250ec582d6c607ce42
parents 0421aaa4 145e5e21
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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
         */