Commit 8e75effc authored by Peter Kotwicz's avatar Peter Kotwicz Committed by Commit Bot

Roll strict mode KnownViolations.java

This CL updates KnownViolations based on changes to the internal version
of KnownViolations.java

BUG=2327468

Change-Id: I594cdc210dadcb05d2601476e0ccfbcef763073a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2327829Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#793036}
parent 260c9306
......@@ -44,6 +44,8 @@ public final class KnownViolations {
DETECT_DISK_READ, "android.app.ActivityThread#parseCSCAppResource");
exemptions.ignoreExternalMethod(
DETECT_DISK_READ, "android.app.ActivityThread#performLaunchActivity");
exemptions.ignoreExternalMethod(DETECT_DISK_READ, "android.widget.Toast#makeText");
exemptions.ignoreExternalMethod(DETECT_DISK_READ, "android.widget.Toast#show");
exemptions.ignoreExternalMethod(DETECT_DISK_READ,
"com.samsung.android.knox.custom.ProKioskManager#getProKioskState");
if (model.equals("sm-g9350")) {
......@@ -56,6 +58,10 @@ public final class KnownViolations {
exemptions.ignoreExternalMethod(
DETECT_DISK_WRITE, "android.app.ActivityThread#performLaunchActivity");
}
if (Build.VERSION.SDK_INT <= 27) {
exemptions.ignoreExternalMethod(DETECT_DISK_READ,
"com.android.server.am.ActivityManagerService#startActivity");
}
break;
case "oneplus":
exemptions.ignoreExternalMethod(DETECT_DISK_READ | DETECT_DISK_WRITE,
......@@ -98,6 +104,11 @@ public final class KnownViolations {
exemptions.ignoreExternalMethod(
DETECT_DISK_WRITE, "android.content.ClipboardManager#setPrimaryClip");
}
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.O
|| Build.VERSION.SDK_INT == Build.VERSION_CODES.O_MR1) {
exemptions.ignoreExternalMethod(DETECT_DISK_READ, "dalvik.system.DexPathList#toString");
}
}
private KnownViolations() {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment