msm8226-common: Add Android Go changes brought in Q

This commit is contained in:
RenanQueiroz 2019-11-03 20:44:14 -05:00 committed by RomanDesigner
parent 34a11ac4cd
commit b4b610fc13

View file

@ -67,7 +67,8 @@ PRODUCT_PROPERTY_OVERRIDES += \
ril.subscription.types=NV,RUIM
PRODUCT_PROPERTY_OVERRIDES += \
pm.dexopt.shared=quicken
pm.dexopt.shared=quicken \
pm.dexopt.downgrade_after_inactive_days=10
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapstartsize=16m \
@ -155,7 +156,7 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/etc/gps.conf:system/etc/gps.conf \
$(LOCAL_PATH)/gps/etc/izat.conf:system/etc/izat.conf \
$(LOCAL_PATH)/gps/etc/sap.conf:system/etc/sap.conf
# Health
PRODUCT_PACKAGES += \
android.hardware.health@2.0-impl \
@ -269,14 +270,45 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prima/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
$(LOCAL_PATH)/prima/WCNSS_qcom_wlan_nv.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
# Optimize
# Speed profile services and wifi-service to reduce RAM and storage.
PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
# Always preopt extracted APKs to prevent extracting out of the APK for gms
# modules.
PRODUCT_ALWAYS_PREOPT_EXTRACTED_APK := true
# Use a profile based boot image for this device. Note that this is currently a
# generic profile and not Android Go optimized.
PRODUCT_USE_PROFILE_FOR_BOOT_IMAGE := true
PRODUCT_DEX_PREOPT_BOOT_IMAGE_PROFILE_LOCATION := frameworks/base/config/boot-image-profile.txt
# 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.
PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
# Do not generate libartd.
PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
# Do not spin up a separate process for the network stack on go devices, use an in-process APK.
PRODUCT_PACKAGES += InProcessNetworkStack
# Disable Scudo to save RAM.
PRODUCT_DISABLE_SCUDO := true
# use the go specific handheld_core_hardware.xml from frameworks
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/go_handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
# Set lowram options
PRODUCT_PROPERTY_OVERRIDES += \
persist.traced.enable=1 \
ro.lmk.critical_upgrade=true \
ro.lmk.upgrade_pressure=40 \
ro.lmk.downgrade_pressure=60 \
ro.lmk.kill_heaviest_task=false \
ro.statsd.enable=true
# Get non-open-source specific aspects
$(call inherit-product-if-exists, vendor/samsung/msm8226-common/msm8226-common-vendor.mk)