summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2017-06-26 23:49:00 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2017-06-26 23:49:07 +0000
commitc4ccefc7fd50ddf0d4d3baa3df0a655f4a14cb0b (patch)
treee03a73ff8d244e4bc4776a12c1d876288d5284b4
parenteb63919bc4a4c8673b34114b7b61e40181f6c07a (diff)
parentfb2d50e891ea1ce81ec792a8ae29d2a9429bf9fc (diff)
Merge "Whitelist ACTION_QUICK_CONTACT from StrictMode.onFileUriExposed" into oc-dr1-dev
-rw-r--r--core/java/android/content/Intent.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index 852e5f708ec3..f70215b46a5e 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -16,6 +16,8 @@
package android.content;
+import static android.content.ContentProvider.maybeAddUserId;
+
import android.annotation.AnyRes;
import android.annotation.BroadcastBehavior;
import android.annotation.IntDef;
@@ -43,7 +45,7 @@ import android.os.ResultReceiver;
import android.os.ShellCommand;
import android.os.StrictMode;
import android.os.UserHandle;
-import android.os.storage.StorageManager;
+import android.provider.ContactsContract.QuickContact;
import android.provider.DocumentsContract;
import android.provider.DocumentsProvider;
import android.provider.MediaStore;
@@ -51,7 +53,9 @@ import android.provider.OpenableColumns;
import android.util.ArraySet;
import android.util.AttributeSet;
import android.util.Log;
+
import com.android.internal.util.XmlUtils;
+
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlSerializer;
@@ -69,8 +73,6 @@ import java.util.Locale;
import java.util.Objects;
import java.util.Set;
-import static android.content.ContentProvider.maybeAddUserId;
-
/**
* An intent is an abstract description of an operation to be performed. It
* can be used with {@link Context#startActivity(Intent) startActivity} to
@@ -9782,6 +9784,7 @@ public class Intent implements Parcelable, Cloneable {
&& leavingPackage) {
switch (mAction) {
case ACTION_PROVIDER_CHANGED:
+ case QuickContact.ACTION_QUICK_CONTACT:
// Ignore actions that don't need to grant
break;
default: