From 51f0bbdfa6faf486b1141ce5a51246a1125f0b88 Mon Sep 17 00:00:00 2001 From: Chenyang Zhong Date: Fri, 8 Oct 2021 09:48:37 -0400 Subject: [PATCH] sdm710-common: Copy cgroups and task_profiles directly from system/core This ensures that the most up-to-date JSON files are shipped. Change-Id: Ic9fae188784825ae6dc607c13b403e37290b7067 Signed-off-by: Mohammad Hasan Keramat J sdm710-common: Ship cgroups.json and task_profiles.json in vendor 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 N MR1 (API level 26), 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 Change-Id: I33c0540ef50054fad839886f9f014cc275659e77 Signed-off-by: Mohammad Hasan Keramat J --- sdm710.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdm710.mk b/sdm710.mk index 4fa0565..9dcb229 100644 --- a/sdm710.mk +++ b/sdm710.mk @@ -152,6 +152,11 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ android.hardware.contexthub@1.0-impl.generic \ android.hardware.contexthub@1.0-service + +# Control groups and task profiles +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 PRODUCT_PACKAGES += \ disable_configstore