Pass car API stubs to non-SDK enforcement
Restrictions on non-SDK API access need to be given the public API
stubs to mark public vs. private DEX members. Add the necessary
build rules and add the stub packages to the list of parsed stubs.
Bug: 112762570
Test: lunch aosp_car_arm64-userdebug; m appcompat
Change-Id: Ibdd123b756aff5326890b76b94a9bd503e61ab7e
diff --git a/car_product/build/car.mk b/car_product/build/car.mk
index 669e828..0250813 100644
--- a/car_product/build/car.mk
+++ b/car_product/build/car.mk
@@ -126,5 +126,11 @@
PRODUCT_BOOT_JARS += \
android.car
+PRODUCT_HIDDENAPI_STUBS := \
+ android.car-stubs
+
+PRODUCT_HIDDENAPI_STUBS_SYSTEM := \
+ android.car-system-stubs
+
INCLUDED_ANDROID_CAR_TO_PRODUCT_BOOT_JARS := yes
endif