OSDN Git Service

Prevent INTERACT_ACROSS_USERS exception in DefaultDialerManager.
authorTyler Gunn <tgunn@google.com>
Fri, 1 Sep 2017 22:17:05 +0000 (15:17 -0700)
committerTyler Gunn <tgunn@google.com>
Fri, 1 Sep 2017 22:17:05 +0000 (15:17 -0700)
commit0907bd674a5015f823bb07a121df786bd731ccf0
tree2218164199f2af4e7f8d6191607557f9bf18c22b
parent70f7bc45cdacca372a10be9c13b45ce665b7ba15
Prevent INTERACT_ACROSS_USERS exception in DefaultDialerManager.

When TelecomManager methods perform a read phonestate check from a work
profile user, it is possible to get an INTERACT_ACROSS_USERS exception.
This is due to the fact that the filterByIntent method was not calling
queryIntentActivitiesAsUser.

Test: Manual
Bug: 31304557
Change-Id: I2a1869162e5a52aed986a99cc378a6c630af4a70
telecomm/java/android/telecom/DefaultDialerManager.java