OSDN Git Service

Take into account default app for default grants
authorSvetoslav <svetoslavganov@google.com>
Tue, 3 Nov 2015 00:41:53 +0000 (16:41 -0800)
committerSvetoslav <svetoslavganov@google.com>
Tue, 3 Nov 2015 00:41:57 +0000 (16:41 -0800)
commitfce33d58d87fd494686aae4e21332b58ec260b73
tree60d6cf8be5dfb3bed324f210b61549fde63af9d6
parent6079b990f1461011a9dedb47cc65db1ce062e199
Take into account default app for default grants

Use the correct API to query activities when granting
default permissions to ensure the preferred apps are
taken into account. This allows OEMs to customize which
app should get default permission grants if there is
more than one resolving to the query intent.

Change-Id: I047f22dfff773a2ba9de1a0144442e372607777c
services/core/java/com/android/server/pm/DefaultPermissionGrantPolicy.java