packages/providers/BlockedNumberProvider: Set LOCAL_SDK_VERSION where possible.

This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: I489d9c21f2f9339f4548f34293c00a01359c1e12
diff --git a/Android.mk b/Android.mk
index 2031db3..e5afdfb 100644
--- a/Android.mk
+++ b/Android.mk
@@ -11,6 +11,7 @@
 LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.providers.blockednumber.*
 
 LOCAL_PACKAGE_NAME := BlockedNumberProvider
+LOCAL_PRIVATE_PLATFORM_APIS := true
 LOCAL_CERTIFICATE := shared
 LOCAL_PRIVILEGED_MODULE := true
 
diff --git a/tests/Android.mk b/tests/Android.mk
index e7b15fa..636056d 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -15,6 +15,7 @@
 LOCAL_SRC_FILES := $(call all-java-files-under, src)
 
 LOCAL_PACKAGE_NAME := BlockedNumberProviderTest
+LOCAL_PRIVATE_PLATFORM_APIS := true
 LOCAL_COMPATIBILITY_SUITE := device-tests
 
 LOCAL_INSTRUMENTATION_FOR := BlockedNumberProvider