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

Skip to content
Commit 46b42e3b authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Add a rate limiter to the getRunningAppProcesses() call

Allow at most 400 calls per second to system_server and
return a cached value at other times. This is distributed
as 4 calls every 10 ms.

Bug: 360374604
Test: Take a trace to verify AIDL call doesn't exceed
      4 every 10ms.
Flag: android.app.rate_limit_get_running_app_processes

Change-Id: I0781949fe3fcef170e8a3c09f6de4aeba4c2989d
parent 94e64d08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment