Merge "Enable NewApi lint checks on service-connectivity" into main
diff --git a/service-t/Android.bp b/service-t/Android.bp
index c277cf6..503e99d 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",
@@ -119,4 +120,4 @@
     visibility: [
         "//visibility:private",
     ],
-}
\ No newline at end of file
+}
diff --git a/service/Android.bp b/service/Android.bp
index a65d664..f574e6b 100644
--- a/service/Android.bp
+++ b/service/Android.bp
@@ -195,7 +195,10 @@
     apex_available: [
         "com.android.tethering",
     ],
-    lint: { strict_updatability_linting: true },
+    lint: {
+        error_checks: ["NewApi"],
+        strict_updatability_linting: true,
+    },
     visibility: [
         "//packages/modules/Connectivity/service-t",
         "//packages/modules/Connectivity/tests:__subpackages__",
@@ -261,6 +264,7 @@
         proguard_flags_files: ["proguard.flags"],
     },
     lint: {
+        error_checks: ["NewApi"],
         strict_updatability_linting: true,
     },
 }