Enable NewApi lint checks on service-connectivity
This should help find changes that do not do proper NewApi checks
in presubmit, and when building with RUN_ERROR_PRONE=true
Test: m
Change-Id: I87ce56d9df2eb27dafd2ec8d2c814c83098a979f
diff --git a/service-t/Android.bp b/service-t/Android.bp
index 7de749c..dbc89f6 100644
--- a/service-t/Android.bp
+++ b/service-t/Android.bp
@@ -68,6 +68,7 @@
apex_available: [
"com.android.tethering",
],
+ lint: { error_checks: ["NewApi"] },
visibility: [
"//frameworks/base/tests/vcn",
"//packages/modules/Connectivity/service",
@@ -118,4 +119,4 @@
visibility: [
"//visibility:private",
],
-}
\ No newline at end of file
+}