aboutsummaryrefslogtreecommitdiff
path: root/msm8996.mk
diff options
context:
space:
mode:
authorChenyang Zhong <zhongcy95@gmail.com>2021-10-18 17:44:47 +0800
committerDavide Garberi <dade.garberi@gmail.com>2022-08-07 12:34:51 +0200
commitf67fdef0f728380f727ca04ea39c03f72d90ccb6 (patch)
tree1b0b359aeea8b8c9accdddf26b92772f599431fd /msm8996.mk
parentd2835ec9388d7806c0031845cc65227d4d953b61 (diff)
msm8996-common: Ship cgroups.json and task_profiles.json
Google's prebuilt cgroups.json and task_profiles.json for products launched with previous API levels only covers ro.product.first_api_level >= 28. [1] These devices were launched with M (API level 23), so schedtune and task groups are completely broken. Since the system also checks /vendor/etc for vendor profiles, make a copy of cgroups_28.json and task_profiles_28.json and ship them to /vendor/etc. Profiles for previous API levels are all the same anyway. Test: boot and check /dev/stune/ [1] system/core/libprocessgroup/profiles/ Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com> Change-Id: I65fe622a804a720a97b43d8092cc8a37703f4b64
Diffstat (limited to '')
-rwxr-xr-xmsm8996.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/msm8996.mk b/msm8996.mk
index 745a21d..3de9fcc 100755
--- a/msm8996.mk
+++ b/msm8996.mk
@@ -350,6 +350,10 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
+PRODUCT_COPY_FILES += \
+ system/core/libprocessgroup/profiles/cgroups_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/cgroups.json \
+ system/core/libprocessgroup/profiles/task_profiles_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
+
# QCOM
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml \