summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Tomislav Novak <tnovak@meta.com> 2023-10-19 12:32:40 -0700
committer Jing Ji <jji@google.com> 2023-10-21 15:59:35 -0700
commitac57e889dffcfcee7768495737666cc2228d2c29 (patch)
tree3fa93d72ca13b394d7f7a76794e9d3c87ddb809c /libs/androidfw/FileStream.cpp
parentd4d5d54c8e49018333c7d4d3a9fb03a1d915b828 (diff)
Revert^2 "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). This is a resubmission of aosp/2577299 with a missing null check added (see aosp/2650877) and an additional test. Test: atest MockingOomAdjusterTests Change-Id: I405e7d8b0cfbb755a4f3d5165f596fae15d9907c
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions