Commit 23c6c84c authored by Peter Kotwicz's avatar Peter Kotwicz Committed by Commit Bot

Suppress DexPathList#toString() strict mode violations on Android P

This CL adds a strict mode violation exemption for DexPathList#toString() for
Android P in addition to the existing suppression for Android O. The fix
to not call File#isDirectory() in DexPathList#toString() landed in Android Q.

BUG=1109678
TBR=agrieve

Change-Id: I5d028a4584c2e2de7acfe2cdd2631260d3f61cab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2417494
Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org>
Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#808884}
parent 50d3489f
......@@ -105,8 +105,8 @@ public final class KnownViolations {
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) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O
&& Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) {
exemptions.ignoreExternalMethod(DETECT_DISK_READ, "dalvik.system.DexPathList#toString");
}
}
......
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