diff --git a/packages/PackageInstaller/Android.bp b/packages/PackageInstaller/Android.bp index 6ecd3280a0e7a..8283ec99bcd88 100644 --- a/packages/PackageInstaller/Android.bp +++ b/packages/PackageInstaller/Android.bp @@ -46,6 +46,10 @@ android_app { "androidx.leanback_leanback", "androidx.annotation_annotation", ], + + lint: { + error_checks: ["Recycle"], + }, } android_app { @@ -65,6 +69,10 @@ android_app { "androidx.leanback_leanback", ], aaptflags: ["--product tablet"], + + lint: { + error_checks: ["Recycle"], + }, } android_app { @@ -85,4 +93,8 @@ android_app { "androidx.annotation_annotation", ], aaptflags: ["--product tv"], + + lint: { + error_checks: ["Recycle"], + }, }