From 9d6cf7e5980e3077bc041aeb02b40e9b481edd7e Mon Sep 17 00:00:00 2001 From: mattgilbride Date: Tue, 10 Jan 2023 21:05:21 +0000 Subject: Disable new lint checks from Android Studio PermissionImpliesUnsupportedChromeOsHardware is ChromeOS specific and does not apply to the Android tree, thus disabled. UnsafeImplicitIntentLaunch surfaces false positives and crashes in a specific corner case. Disable until the related detector can surface errors only when it is certain the intent will get launched. InvalidId gives false positives due to the package name that is used in several places in platform. Bug: 264608708 Test: TH Change-Id: I441ba27a6fa97ed674145a051944dce4280692cd --- java/lint_defaults.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/java/lint_defaults.txt b/java/lint_defaults.txt index 061f4d0db..1bb49962c 100644 --- a/java/lint_defaults.txt +++ b/java/lint_defaults.txt @@ -40,6 +40,13 @@ # NewApi checks will continue to be enforced for apex deps since # lint.strict_updatability_linting will be true for those Soong modules --disable_check NewApi +# Disable ChromeOS specific checks +--disable_check PermissionImpliesUnsupportedChromeOsHardware +# Disable UnsafeImplicitIntentLaunch until it can avoid false positives/crash +# TODO(265425607) +--disable_check UnsafeImplicitIntentLaunch +# InvalidId will give errors on ids defined like android:id="@androidprv:id/contentPanel" +--disable_check InvalidId # Downgrade existing errors to warnings --warning_check AppCompatResource # 55 occurences in 10 modules -- cgit v1.2.3