Sort out permission around "instant text response"
- Remove SEND_SMS_NO_CONFIRMATION - Add SEND_RESPOND_VIA_MESSAGE Permission This permission is held by the phone and applications that want to handle respond-via-message should require this permission of the sender. This permission is signature/system and currently only held by the Phone app. Bug: 5108429 Change-Id: Ib611368d488de2f8e1e853f550eb2c654305eda4
This commit is contained in:
committed by
Santos Cordon
parent
a5c9fd93cc
commit
149ceec6eb
@@ -124,6 +124,28 @@ public class TelephonyManager {
|
||||
public static final String ACTION_PHONE_STATE_CHANGED =
|
||||
"android.intent.action.PHONE_STATE";
|
||||
|
||||
/**
|
||||
* The Phone app sends this intent when a user opts to respond-via-message during an incoming
|
||||
* call. By default, the MMS app consumes this message and sends a text message to the caller. A
|
||||
* third party app can provide this functionality in lieu of MMS app by consuming this Intent
|
||||
* and sending the message using their own messaging system. The intent contains a URI
|
||||
* describing the recipient, and an EXTRA containg the message itself.
|
||||
* <p>
|
||||
* The intent-filter which consumes this Intent needs to be in a service which requires the
|
||||
* permission SEND_RESPOND_VIA_MESSAGE.
|
||||
*
|
||||
* <p>
|
||||
* {@link #getData} is a URI describing the recipient of the message.
|
||||
* <p>
|
||||
* The {@link android.intent.Intent#EXTRA_TEXT} extra contains the message
|
||||
* to send.
|
||||
* <p>
|
||||
* Output: nothing.
|
||||
*/
|
||||
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
|
||||
public static final String ACTION_RESPOND_VIA_MESSAGE =
|
||||
"android.intent.action.RESPOND_VIA_MESSAGE";
|
||||
|
||||
/**
|
||||
* The lookup key used with the {@link #ACTION_PHONE_STATE_CHANGED} broadcast
|
||||
* for a String containing the new call state.
|
||||
|
||||
Reference in New Issue
Block a user