Add flags for saving system image size
Not adding the flags for SDK builds, they depend on
liblayout-legacy that depends on debug symbols.
Bug: 110392642
Test: Compiled including clean SDK build on qt-release
Change-Id: Ia2dcba6c2d6747577d61b2b00b562546be3a59b2
diff --git a/products/atv_base.mk b/products/atv_base.mk
index 4b2602e..3d99946 100644
--- a/products/atv_base.mk
+++ b/products/atv_base.mk
@@ -73,6 +73,21 @@
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.media.avsync=true
+
+# SDK builds needs to build layoutlib-legacy that depends on debug info
+ifneq ($(PRODUCT_IS_ATV_SDK),true)
+ # Strip the local variable table and the local variable type table to reduce
+ # the size of the system image. This has no bearing on stack traces, but will
+ # leave less information available via JDWP.
+ # From //build/make/target/product/go_defaults_common.mk
+ PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
+
+ # Do not generate libartd.
+ # From //build/make/target/product/go_defaults_common.mk
+ PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
+endif
+
+
# Do not include the Live Channels app if USE_OEM_TV_APP flag is set.
# The feature com.google.android.tv.installed is used to tell whether a device
# has the pre-installed Live Channels app. This is necessary for the Play Store