summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Guojing Yuan <guojing@google.com> 2022-03-07 23:04:42 +0000
committer Guojing Yuan <guojing@google.com> 2022-03-15 17:02:35 +0000
commit39387cbdf92ac36d6b5199c709323ec0f213b327 (patch)
treebcea4951c462d3493d475c9729253e10d5a45113 /libs/androidfw/StringPool.cpp
parent40ca086c4003e70760284e5fb3ad6361d8dc3387 (diff)
Update CDM binding flags
When bindImportant is false, the binding flag will be BIND_ALMOST_PERCEPTIBLE (oom_score_adj = PERCEPTIBLE_MEDIUM_APP = 225). The target service will be treated as important as a perceptible app (IMPORTANCE_VISIBLE = 200), and will be unbound when the app is removed from task manager. When bindImportant is true, the binding flag will be BIND_IMPORTANT (oom_score_adj = PERCEPTIBLE_MEDIUM_APP = -700). The target service will have the highest priority to avoid being killed (IMPORTANCE_FOREGROUND = 100). One time permission's importance level to keep session alive is IMPORTANCE_FOREGROUND_SERVICE = 125. In order to kill the one time permission session, the service importance level should be higher than 125. Fix: 211757348 Test: CDM tests Change-Id: I41d72f1e6e362e987b49106e1a4169364a3392a2
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions