Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0dae51fb authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

apex: 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
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: I40fb9bbd61b36d44b8bb9db118eb83e8218aa81b
parent 0a70475a
Loading
Loading
Loading
Loading

apex/mediaswcodec.32rc

0 → 100644
+6 −0
Original line number Diff line number Diff line
service media.swcodec /apex/com.android.media.swcodec/bin/mediaswcodec
    class main
    user mediacodec
    group camera drmrpc mediadrm
    ioprio rt 4
    task_profiles ProcessCapacityHigh
+12 −0
Original line number Diff line number Diff line
# media.transcoding service is defined on com.android.media apex which goes back
# to API29, but we only want it started on API31+ devices. So we declare it as
# "disabled" and start it explicitly on boot.
service media.transcoding /apex/com.android.media/bin/mediatranscoding
    class main
    user media
    group media
    ioprio rt 4
    # Restrict to little cores only with system-background cpuset.
    task_profiles ServiceCapacityLow
    interface aidl media.transcoding
    disabled