Fix the service binding skipOomAdj logic
We're skipping oom adj updates if it's a self-binding or a binding from a less important process. The callsites of these skipped oom adj updates are mainly around the bumpServiceExecutingLocked() and the serviceDoneExecutingLocked(). The previous CL tried to skip the oom adj updates in the latter one if it was skipped in the former one - however there are some missing paths in the accounting which caused the necessary oom adj update is skipped unexpectedly. Now fix this issue. Bug: 325586149 Bug: 325658306 Test: atest CtsAppBindingHostTestCases:AppBindingHostTest Test: atest CtsAppTestCases:ActivityManagerTest Test: atest \ FrameworksMockingServicesTests: ServiceBindingOomAdjPolicyTest Change-Id: I47e49653eb4a5dc4f9ff59ae15d56ba615d9e7fc
Loading
Please register or sign in to comment