From c747af4dc88315445ba2c9e74bf3773f1808ff56 Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Wed, 27 Dec 2023 08:51:53 +0300 Subject: [PATCH] dre: Replace writepid with task_profiles command for cgroup migration writepid command usage to join a cgroup has been deprecated in favor of a more flexible approach using task_profiles. This way cgroup path is not hardcoded and cgroup changes can be easily made. Replace writepid with task_profiles command to migrate between cgroups. Bug: 191283136 Test: build and boot Change-Id: I12fe7186af1ee5db6f19d485987e78ae0792c606 Signed-off-by: Suren Baghdasaryan --- extract-files.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/extract-files.sh b/extract-files.sh index cd2469a..7dc70bf 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -61,6 +61,15 @@ function blob_fixup() { system_ext/lib64/libwfdnative.so) sed -i "s/android.hidl.base@1.0.so/libhidlbase.so\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00/" "${2}" ;; + odm/etc/init/android.hardware.drm@1.3-service.widevine.rc) + sed -i "s|writepid /dev/cpuset/foreground/tasks|task_profiles ProcessCapacityHigh|g" "${2}" + ;; + vendor/etc/init/android.hardware.neuralnetworks@1.3-service-qti.rc) + sed -i "s|writepid /dev/stune/nnapi-hal/tasks|task_profiles NNApiHALPerformance|g" "${2}" + ;; + vendor/etc/init/vendor.qti.media.c2@1.0-service.rc) + sed -i "s|writepid /dev/cpuset/foreground/tasks|task_profiles ProcessCapacityHigh|g" "${2}" + ;; vendor/etc/libnfc-nci.conf) sed -i "s/NFC_DEBUG_ENABLED=1/NFC_DEBUG_ENABLED=0/" "${2}" ;;