summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2015-06-24 18:47:07 -0700
committerSvetoslav <svetoslavganov@google.com>2015-06-25 10:55:11 -0700
commit7008b51817361443fc6f136c5b187e1d471c94f5 (patch)
treef32a7204125ad6bd68afeaa160c5faf84a5217f5 /core/java/android/provider
parentd4e9e0e1d6b860c7cc93d06d8b5fdc0004e56b80 (diff)
downloadframeworks_base-7008b51817361443fc6f136c5b187e1d471c94f5.zip
frameworks_base-7008b51817361443fc6f136c5b187e1d471c94f5.tar.gz
frameworks_base-7008b51817361443fc6f136c5b187e1d471c94f5.tar.bz2
Prevent certain actions of app has revoked permissions
bug:21808294 Change-Id: I7214c1fe47c15fe185423a54a74b58caf8d82daa
Diffstat (limited to 'core/java/android/provider')
-rw-r--r--core/java/android/provider/MediaStore.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/core/java/android/provider/MediaStore.java b/core/java/android/provider/MediaStore.java
index 51dbdee..e63fb04 100644
--- a/core/java/android/provider/MediaStore.java
+++ b/core/java/android/provider/MediaStore.java
@@ -283,7 +283,13 @@ public final class MediaStore {
* supply the uri through the EXTRA_OUTPUT field for compatibility with old applications.
* If you don't set a ClipData, it will be copied there for you when calling
* {@link Context#startActivity(Intent)}.
- * @see #EXTRA_OUTPUT
+ *
+ * <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#CAMERA} permission which
+ * is not granted, then atempting to use this action will result in a {@link
+ * java.lang.SecurityException}.
+ *
+ * @see #EXTRA_OUTPUT
*/
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
public final static String ACTION_IMAGE_CAPTURE = "android.media.action.IMAGE_CAPTURE";
@@ -331,6 +337,12 @@ public final class MediaStore {
* supply the uri through the EXTRA_OUTPUT field for compatibility with old applications.
* If you don't set a ClipData, it will be copied there for you when calling
* {@link Context#startActivity(Intent)}.
+ *
+ * <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#CAMERA} permission which
+ * is not granted, then atempting to use this action will result in a {@link
+ * java.lang.SecurityException}.
+ *
* @see #EXTRA_OUTPUT
* @see #EXTRA_VIDEO_QUALITY
* @see #EXTRA_SIZE_LIMIT