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

Commit df9c43de authored by Ye Wen's avatar Ye Wen
Browse files

Hide carrier app intents in Telephony (2/2)

b/17608135

Change-Id: I312fc65477323e88972156e909e5a241056233a7
parent 1b2607bd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -866,6 +866,7 @@ public final class Telephony {
             * It must also declare {@link android.Manifest.permission#BROADCAST_SMS} as a required
             * permission in the <a href="{@docRoot}guide/topics/manifest/receiver-element.html">
             * {@code &lt;receiver>}</a> tag.
             * {@hide}
             */
            @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
            public static final String SMS_FILTER_ACTION =
@@ -1101,6 +1102,7 @@ public final class Telephony {
             * It must also declare {@link android.Manifest.permission#BROADCAST_SMS} as a required
             * permission in the <a href="{@docRoot}guide/topics/manifest/receiver-element.html">
             * {@code &lt;receiver>}</a> tag.
             * {@hide}
             */
            @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
            public static final String SMS_SEND_ACTION =
@@ -2304,6 +2306,7 @@ public final class Telephony {
             * It must also declare {@link android.Manifest.permission#BROADCAST_WAP_PUSH} as a required
             * permission in the <a href="{@docRoot}guide/topics/manifest/receiver-element.html">
             * {@code &lt;receiver>}</a> tag.
             * {@hide}
             */
            @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
            public static final String MMS_SEND_ACTION =
@@ -2340,6 +2343,7 @@ public final class Telephony {
             * It must also declare {@link android.Manifest.permission#BROADCAST_WAP_PUSH} as a required
             * permission in the <a href="{@docRoot}guide/topics/manifest/receiver-element.html">
             * {@code &lt;receiver>}</a> tag.
             * {@hide}
             */
            @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
            public static final String MMS_DOWNLOAD_ACTION =
@@ -2353,6 +2357,7 @@ public final class Telephony {
            /**
             * The content provider of the PDU to be sent/downloaded passed as an extra for
             * {@link #MMS_DOWNLOAD_ACTION} and {@link #MMS_SEND_ACTION}.
             * {@hide}
             */
            public static final String EXTRA_MMS_CONTENT_URI =
                    "android.provider.Telephony.extra.MMS_CONTENT_URI";
@@ -2361,6 +2366,7 @@ public final class Telephony {
             * The message URL to be downloaded passed as an extra for {@link #MMS_DOWNLOAD_ACTION}.
             * It is also the URL to send an MMS to passed as an extra for
             * {@link #MMS_SEND_ACTION}.
             * {@hide}
             */
            public static final String EXTRA_MMS_LOCATION_URL =
                    "android.provider.Telephony.extra.MMS_LOCATION_URL";
+4 −0
Original line number Diff line number Diff line
@@ -269,6 +269,7 @@ public final class SmsManager {
     *  the same time an SMS received from radio is acknowledged back.
     *
     *  @throws IllegalArgumentException if format is not one of 3gpp and 3gpp2.
     *  {@hide}
     */
    public void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) {
        if (!format.equals(SmsMessage.FORMAT_3GPP) && !format.equals(SmsMessage.FORMAT_3GPP2)) {
@@ -297,6 +298,7 @@ public final class SmsManager {
     * @param messageRef the reference number of the SMS message.
     * @param success True if and only if the message was sent successfully. If its value is
     *  false, this message should be resent via PSTN.
     * {@hide}
     */
    public void updateSmsSendStatus(int messageRef, boolean success) {
        try {
@@ -1029,6 +1031,7 @@ public final class SmsManager {
     *   If status is MMS_ERROR_RETRY, this message would be resent via carrier
     *   network. The message will not be resent for other MMS error statuses.
     * @param contentUri the URI of the sent message
     * {@hide}
     */
    public void updateMmsSendStatus(Context context, int messageRef, byte[] pdu, int status,
            Uri contentUri) {
@@ -1061,6 +1064,7 @@ public final class SmsManager {
     *   If status is MMS_ERROR_RETRY, this message would be re-downloaded via carrier
     *   network. The message will not be re-downloaded for other MMS error statuses.
     * @param contentUri the URI of the downloaded message
     * {@hide}
     */
    public void updateMmsDownloadStatus(Context context, int messageRef, int status,
            Uri contentUri) {