diff options
author | Daisuke Miyakawa <dmiyakawa@google.com> | 2012-03-26 09:04:12 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2012-12-06 16:24:48 -0800 |
commit | 149ceec6ebac9dd000c213fc91ee8e5c08522cc6 (patch) | |
tree | 8b506e077768c32a839622b4cd29c7f765bd03e6 /telephony | |
parent | a5c9fd93cc16df4708ea4c85239fad7b5be16d43 (diff) | |
download | frameworks_base-149ceec6ebac9dd000c213fc91ee8e5c08522cc6.zip frameworks_base-149ceec6ebac9dd000c213fc91ee8e5c08522cc6.tar.gz frameworks_base-149ceec6ebac9dd000c213fc91ee8e5c08522cc6.tar.bz2 |
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
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 2e8de3b..80aa778 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -125,6 +125,28 @@ public class TelephonyManager { "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. * |