Wahoo: Add minidebug-info to system server

Add minidebug-info to the system server jars, in an effort to help
diagnose native crashes.

Bug: 62823069
Test: m
Test: readelf -e $OUT/system/framework/oat/arm64/services.odex | grep gnu_debugdata
Change-Id: I3c5ac5791bd869ab596809aa177a1c903617bef8
This commit is contained in:
Andreas Gampe
2017-06-20 09:01:49 -07:00
parent 3266111d28
commit fa31a67e1d

View File

@@ -579,3 +579,11 @@ PRODUCT_PROPERTY_OVERRIDES += \
# Add an extra 10% saturation to display colors
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.sf.color_saturation=1.1
# Add minidebug info to the system server to support diagnosing native crashes.
ifneq (,$(filter user userdebug, $(TARGET_BUILD_VARIANT)))
# 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