summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Tomislav Novak <tnovak@meta.com> 2023-05-03 14:36:51 -0700
committer Jing Ji <jji@google.com> 2023-05-25 15:43:29 -0700
commita18cd7c08b7d2e2445bf51c0444d1a11b7a84e0b (patch)
tree7890af7be6dbb1055fd811d632e2a45f122cd2db /libs/androidfw/FileStream.cpp
parente76ef0bd24ddb12979610453625ade2adf57b3d5 (diff)
Ignore BIND_ABOVE_CLIENT for same-process connections
Binding to a service using BIND_ABOVE_CLIENT affects the OOM adjustment of both the client and the service; client's value is dropped by one level in modifyRawOomAdj() to make sure it's lower than the service's. Doing this unconditionally, however, means that the process' OOM score will be reduced if binding to a service that lives in the same process as the client. For example, a top app would have its oom_score_adj set to 100 (visible) rather than 0 (foreground). Bug: 284355269 Test: atest MockingOomAdjusterTests Signed-off-by: Tomislav Novak <tnovak@meta.com> Change-Id: Iee5024b8f13771bc98a39a20e5f96a89a4c79b4e Merged-In: Iee5024b8f13771bc98a39a20e5f96a89a4c79b4e
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions