summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2016-05-23 16:06:10 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-05-27 10:19:55 -0700
commitb4088dd11909e3b19519520a8838251902446f9a (patch)
tree385cdbd332e8cd09b9e5e7a01097789b343b4cdf /core
parent8e897a5cb06c665fdb4a994bd9f13d0682ef4500 (diff)
downloadframeworks_base-b4088dd11909e3b19519520a8838251902446f9a.zip
frameworks_base-b4088dd11909e3b19519520a8838251902446f9a.tar.gz
frameworks_base-b4088dd11909e3b19519520a8838251902446f9a.tar.bz2
appops: Implement concept of delayedcount.
High frequency request ops will be delayed until their ignore count ceiling is met. This is to mitigate the overloading the main activity manager service handler and having watchdog kill our service. Google play services likes to share its uid with numerous packages to avoid having to grant permissions from the users perspective and thus is the worst example of overloading this queue -- so, to not encourage bad behavior, we move them to the back of the line. NOTE: these values are magic, and may need tuning. Ideally we'd want a ringbuffer or token bucket here to do proper rate limiting. Change-Id: I5c3e88807abc80f9700dd68dcecd87dac4626de7 TICKET: CYNGNOS-2869
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions