Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 779ea7fe authored by Joanne Chung's avatar Joanne Chung Committed by Android (Google) Code Review
Browse files

Merge "Allow translation cts can add itself into allowlist for content capture" into sc-dev

parents 39baa852 f876b914
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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!");
        }