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

Skip to content
Commit c7303e88 authored by Chong Zhang's avatar Chong Zhang
Browse files

Use caller's uid and pid for resource tracking for untrusted caller

If an untrusted caller creates MediaCodec with other's uid/pid,
these should be counted toward the caller itself. Otherwise they
could bypass resourcemanager and create codecs that's out of
the system, not blamed for battery usage and never be reclaimed.

bug: 168307955
bug: 154733526
test: manually check that if mediatranscoding is made untrusted,
the MediaCodec instance will be added with its own uid/pid, and
appears in 'adb shell dumpsys media.resource_manager'. After test
run, it should dispear in 'adb shell dumpsys media.resource_manager'.

Change-Id: I943317f71ea43470d86c5e0ea5b703d23f08a678
parent 5e883d13
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment