Delete product specific mini-debug code
Enabled by default now for system server jars.
Bug: 62862291
Test: make
Test: readelf -e $OUT/system/framework/oat/arm64/services.odex | grep gnu_debug
Change-Id: Id87f7133c9dc7be69ae614f0cb5db40c48a19f98
diff --git a/device.mk b/device.mk
index fa6a9ff..da7683b 100644
--- a/device.mk
+++ b/device.mk
@@ -546,17 +546,6 @@
PRODUCT_PROPERTY_OVERRIDES += \
ro.product.first_api_level=23
-# In userdebug, add minidebug info the the boot image and the system server to support
-# diagnosing native crashes.
-ifneq (,$(filter userdebug, $(TARGET_BUILD_VARIANT)))
- # Boot image.
- PRODUCT_DEX_PREOPT_BOOT_FLAGS += --generate-mini-debug-info
- # System server and some of its services.
- # Note: we cannot use PRODUCT_SYSTEM_SERVER_JARS, as it has not been expanded at this point.
- $(call add-product-dex-preopt-module-config,services,--generate-mini-debug-info)
- $(call add-product-dex-preopt-module-config,wifi-service,--generate-mini-debug-info)
-endif
-
# setup dalvik vm configs.
$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)