OSDN Git Service

Grant ephemeral app access during service bind
authorJesse Evans <jsje@google.com>
Wed, 3 May 2017 16:57:16 +0000 (09:57 -0700)
committerJesse Evans <jsje@google.com>
Wed, 3 May 2017 16:57:16 +0000 (09:57 -0700)
commit02af3ea1322683aaa894bbbf6a1a5c526aaa2063
tree9c8c2fb968494f3cf0db7d51c94ae88455ce150a
parentc8ca16a85a0001e6d8c5d0185f328e550f994a4a
Grant ephemeral app access during service bind

Currently we only grant ephemeral access during sendServiceArgs,
but since bindService does not actually send service arguments
the code path to grant ephemeral access is not currently hit.

This change grants ephemeral access during bindServiceLocked after
the association between the calling app and the target service has
been established.

Test: existing tests.
Bug: 37766185
Change-Id: I64847a2dcaf1255c0a7d663c4461cda62655a8d0
services/core/java/com/android/server/am/ActiveServices.java