summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorJoanne Chung <joannechung@google.com>2021-03-08 04:08:19 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-03-08 04:08:19 +0000
commit779ea7feb32075fe3e07b95e0cedc9deca312e53 (patch)
tree781badf107e82b5bd9ee937f9c561ad2da76c636 /core/java/android
parent39baa852c6b2126bf07ff7350b1d4e651fc9794e (diff)
parentf876b914461c5492d94db15fa864304fb33e0578 (diff)
Merge "Allow translation cts can add itself into allowlist for content capture" into sc-dev
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/content/ContentCaptureOptions.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/content/ContentCaptureOptions.java b/core/java/android/content/ContentCaptureOptions.java
index c296bb52e73d..77072890a1eb 100644
--- a/core/java/android/content/ContentCaptureOptions.java
+++ b/core/java/android/content/ContentCaptureOptions.java
@@ -134,7 +134,8 @@ public final class ContentCaptureOptions implements Parcelable {
final String packageName = at.getApplication().getPackageName();
- if (!"android.contentcaptureservice.cts".equals(packageName)) {
+ if (!"android.contentcaptureservice.cts".equals(packageName)
+ && !"android.translation.cts".equals(packageName)) {
Log.e(TAG, "forWhitelistingItself(): called by " + packageName);
throw new SecurityException("Thou shall not pass!");
}