summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Tomislav Novak <tnovak@meta.com> 2023-05-03 14:36:51 -0700
committer Tomislav Novak <tnovak@meta.com> 2023-05-26 07:52:35 -0700
commitcd8f5d8b18fdd66ebb992b2a6ee3a587b6fd5e42 (patch)
tree93d1b87e55cecf162ce6e7326f36618e76cc3039 /libs/androidfw/ObbFile.cpp
parentf315172a7e7225b3d2b7fe09fba0f8fbb453042b (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). Test: atest MockingOomAdjusterTests Signed-off-by: Tomislav Novak <tnovak@meta.com> Merged-In: Iee5024b8f13771bc98a39a20e5f96a89a4c79b4e Change-Id: Iee5024b8f13771bc98a39a20e5f96a89a4c79b4e
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions