summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jahdiel Alvarez <jahdiel@google.com> 2024-05-03 18:09:57 -0700
committer Jahdiel Alvarez <jahdiel@google.com> 2024-08-07 13:58:39 -0700
commitedef883a58f9f8dcfe9b53d7890045fc91b115f7 (patch)
treef0b025dd2f9e992686bada2c9af230e351e47d16 /libs/androidfw/StringPool.cpp
parent19f4d1a96ac7670c9cc9488da9c17ed3e96e4e5b (diff)
Stop previous user's packages early during user switch
On devices in which the previous user is stopped during user switch, we will kill the previous user's packages after all SystemServices are notified of the user switch via onUserSwitching. The entire user switch flow remains the same, except for this new step. The early killing of the packages significantly reduces CPU and memory pressure on the system. Packages with OOM score below FOREGROUND_APP_ADJ (0) are not killed given system server binds to them. They will be ultimately killed once the user is stopped, which is the current behavior. Test: Manually run user switch on device Test: atest UserControllerTest ActivityManagerInternalTest Test: atest ActivityManagerServiceTest ActiveServicesTest Bug: 323200731 Flag: android.multiuser.stop_previous_user_apps Change-Id: I83e980432d30885c05a5748e05a360ec38875cc0
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions