Pass car API stubs to non-SDK enforcement
am: 43231d977b
Change-Id: I0fe7d444a91770b024c7f77f3ee43a5ea4f8099b
diff --git a/car-lib/Android.bp b/car-lib/Android.bp
index 6fe7f8b..287949e 100644
--- a/car-lib/Android.bp
+++ b/car-lib/Android.bp
@@ -196,4 +196,21 @@
enabled: false,
},
},
+ compile_dex: true,
+}
+
+java_library_static {
+ name: "android.car-system-stubs",
+ srcs: [
+ ":android.car-system-stubs-docs",
+ ],
+ libs: [
+ "android.car",
+ ],
+ product_variables: {
+ pdk: {
+ enabled: false,
+ },
+ },
+ compile_dex: true,
}
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