OSDN Git Service

Always create grant structures when persistable.
authorJeff Sharkey <jsharkey@android.com>
Wed, 21 Dec 2016 20:27:04 +0000 (13:27 -0700)
committerSimon Shields <simon@lineageos.org>
Tue, 30 Oct 2018 11:34:21 +0000 (12:34 +0100)
commitbd7f6a82fd1de24d315b9206897061b162112895
tree9caaa93fed6c78ab3a6138a1fa084b74703a9dd0
parentbf76beecfabd0c4cebc86e6eb4207d8667fd1514
Always create grant structures when persistable.

Certain apps may already hold permissions to an underlying provider,
but they expect APIs like takePersistableUriPermission() and
getPersistedUriPermissions() to work when a permission grant was
extended with FLAG_GRANT_PERSISTABLE_URI_PERMISSION.

Test: builds, boots
Bug: 31239684
Change-Id: I4b21c57956b70133ecadb50d0d3ee339f41e2260
services/core/java/com/android/server/am/ActivityManagerService.java