summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2016-11-30 16:07:00 -0700
committerJeff Sharkey <jsharkey@google.com>2016-12-01 23:54:04 +0000
commit1de465bec2af5b93cd44b3f41e0df9473c55f2e1 (patch)
tree635097d50893bcf5831d34f4276e36821a6b11f7 /tools/aapt2/diff/Diff.cpp
parent35b84533386421422f6459839dee6b4092af18d7 (diff)
DO NOT MERGE. Retain DownloadManager Uri grants when clearing.
As part of fixing a recent security issue, DownloadManager now needs to issue Uri permission grants for all downloads. However, if an app that requested a download is upgraded or otherwise force-stopped, the required permission grants are removed. We could tell DownloadManager about the app being stopped, but that would be racy (due to background broadcast), and waking it up would degrade system health. Instead, as a special case we now only consider clearing DownloadManager permission grants when app data is being cleared. Bug: 32172542, 30537115 Test: builds, boots, app upgrade doesn't clear grants Change-Id: I7e3d4546fd12bfe5f81b9fb9857ece58d574a6b9 (cherry picked from commit 23ec811266fb728cf159a90ce4882b3c9bac1887)
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions