Merge "Remove unused SmsManager API."
This commit is contained in:
committed by
Android (Google) Code Review
commit
90e1f53456
@@ -773,37 +773,6 @@ public final class SmsManager {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a text based SMS without writing it into the SMS Provider.
|
||||
*
|
||||
* <p>Requires Permission:
|
||||
* {@link android.Manifest.permission#MODIFY_PHONE_STATE} or the calling app has carrier
|
||||
* privileges.
|
||||
* </p>
|
||||
*
|
||||
* <p class="note"><strong>Note:</strong> This method is intended for internal use by carrier
|
||||
* applications or the Telephony framework and will never trigger an SMS disambiguation
|
||||
* dialog. If this method is called on a device that has multiple active subscriptions, this
|
||||
* {@link SmsManager} instance has been created with {@link #getDefault()}, and no user-defined
|
||||
* default subscription is defined, the subscription ID associated with this message will be
|
||||
* INVALID, which will result in the SMS being sent on the subscription associated with logical
|
||||
* slot 0. Use {@link #getSmsManagerForSubscriptionId(int)} to ensure the SMS is sent on the
|
||||
* correct subscription.
|
||||
* </p>
|
||||
*
|
||||
* @see #sendTextMessage(String, String, String, PendingIntent,
|
||||
* PendingIntent, int, boolean, int)
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void sendTextMessageWithoutPersisting(
|
||||
String destinationAddress, String scAddress, String text,
|
||||
PendingIntent sentIntent, PendingIntent deliveryIntent, int priority,
|
||||
boolean expectMore, int validityPeriod) {
|
||||
sendTextMessageInternal(destinationAddress, scAddress, text, sentIntent, deliveryIntent,
|
||||
false /* persistMessage */, priority, expectMore, validityPeriod);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Inject an SMS PDU into the android application framework.
|
||||
|
||||
Reference in New Issue
Block a user