Workaround link-type check warnings on CtsCarTestCases and AtsDeviceInfo

xTS should be built with public APIs only. However, these two Auto test
cases are using private Auto APIs because there hasn't been a stub
library for Auto APIs.

Until the stub is created and Auto APIs are correctly defined, building
them with private plataform APIs by dropping LOCAL_SDK_VERSION and
adding LOCAL_PRIVATE_PLATFORM_APIS instead.

Bug: 72620511
Test: m -j CtsCarTestCases AtsDeviceInfo is successful and does not show
any link-type check warning

Merged-In: I39c4b4811f896021bfc8ea6aca6574db568b5e4b
Change-Id: I39c4b4811f896021bfc8ea6aca6574db568b5e4b
(cherry picked from commit 8d33002c73a9fcbcdd58cec2bad6241deee636cf)
diff --git a/build/device_info_package.mk b/build/device_info_package.mk
index 7922f28..a7bf688 100644
--- a/build/device_info_package.mk
+++ b/build/device_info_package.mk
@@ -96,6 +96,10 @@
 # And when built explicitly put it in the data partition
 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
 
+
+#TODO(b/72620511) remove this condition when AtsDeviceInfo can be built with SDK again
+ifneq ($(LOCAL_PRIVATE_PLATFORM_APIS),true)
 LOCAL_SDK_VERSION := current
+endif
 
 include $(BUILD_CTS_SUPPORT_PACKAGE)