Skip to content
Commit 39387cbd authored by Guojing Yuan's avatar Guojing Yuan
Browse files

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
parent 40ca086c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment