diff options
author | Svetoslav <svetoslavganov@google.com> | 2015-06-25 18:20:14 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-25 18:20:16 +0000 |
commit | 263b6e6983f50910f7e59d688ceb7ebd031ea2b3 (patch) | |
tree | aab3d5ef8866e6ebb64fbd3bf2df5f204a4ec8ce /core/java/android/content | |
parent | 46f087c43b0fd3e4740bbb7183601e645a493716 (diff) | |
parent | 7008b51817361443fc6f136c5b187e1d471c94f5 (diff) | |
download | frameworks_base-263b6e6983f50910f7e59d688ceb7ebd031ea2b3.zip frameworks_base-263b6e6983f50910f7e59d688ceb7ebd031ea2b3.tar.gz frameworks_base-263b6e6983f50910f7e59d688ceb7ebd031ea2b3.tar.bz2 |
Merge "Prevent certain actions of app has revoked permissions" into mnc-dev
Diffstat (limited to 'core/java/android/content')
-rw-r--r-- | core/java/android/content/Intent.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 5190037..83d6cb0 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1020,6 +1020,11 @@ public class Intent implements Parcelable, Cloneable { * <p>Note: this Intent <strong>cannot</strong> be used to call emergency * numbers. Applications can <strong>dial</strong> emergency numbers using * {@link #ACTION_DIAL}, however. + * + * <p>Note: if you app targets {@link android.os.Build.VERSION_CODES#MNC MNC} + * and above and declares as using the {@link android.Manifest.permission#CALL_PHONE} + * permission which is not granted, then atempting to use this action will + * result in a {@link java.lang.SecurityException}. */ @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) public static final String ACTION_CALL = "android.intent.action.CALL"; |