From 6cb36385d7b07d0ab6b531776898a64ba9240da1 Mon Sep 17 00:00:00 2001 From: SamarV-121 Date: Fri, 23 Jun 2023 18:34:13 +0300 Subject: [PATCH] universal7885: add Task Profiles 2/2 - Inherit several Android Go configurations and enable Speed Profile services and wifi-service to reduce RAM and storage Co-authored-by: krasCGQ --- universal7885-common/universal7885-common.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/universal7885-common/universal7885-common.mk b/universal7885-common/universal7885-common.mk index e3a8ebb..83c748f 100644 --- a/universal7885-common/universal7885-common.mk +++ b/universal7885-common/universal7885-common.mk @@ -312,6 +312,15 @@ PRODUCT_SOONG_NAMESPACES += \ hardware/google/pixel \ hardware/samsung +# Speed profile services and wifi-service to reduce RAM and storage +PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile +PRODUCT_USE_PROFILE_FOR_BOOT_IMAGE := true +PRODUCT_DEX_PREOPT_BOOT_IMAGE_PROFILE_LOCATION := frameworks/base/config/boot-image-profile.txt + +# Task profiles +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/tasks/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json + # Thermal PRODUCT_PACKAGES += \ android.hardware.thermal@1.0-impl \