summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Xiang Wang <xwxw@google.com> 2024-12-11 21:33:12 -0800
committer Xiang Wang <xwxw@google.com> 2024-12-18 14:59:49 -0800
commit438a5205df565eb6b7889f1c855f1a0ee3525437 (patch)
tree4e2e2f7af5a3648b965225985789df04a8d686d8 /libs/androidfw/StringPool.cpp
parent8de4fa32384df900d129f4b84b216e0822e64823 (diff)
Add cpu user mode run time rate limiter per UID
To address security review feedback, we will only allow apps to poll new CPU headroom if the CPU time executing in user mode has elapsed for longer than the min interval. The check will only happen if there is a cache miss, so any frequent polling calls within the interval with same params and default calculation window size will still be served from cache and require no proc stat file reads. Also a DEVICE_POWER permission check is used to skip the cpu time check for test and trusted apps. Bug: 346604998 Bug: 373697764 Flag: android.os.cpu_gpu_headrooms Test: atest HeadroomTest NativeSystemHealthTest Change-Id: I752aa673a26feffdce0e8828a8ee34b6219fda10
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions