diff options
author | paulhu <paulhu@google.com> | 2020-09-08 11:19:01 +0800 |
---|---|---|
committer | paulhu <paulhu@google.com> | 2020-09-08 11:19:01 +0800 |
commit | 41c59babd51dfb26171365e7aa51942f1794c7c3 (patch) | |
tree | 5ae5f6fd5d8ce9fd0c3dce728d1e0dd180bac739 /tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java | |
parent | 854710d0f36d47666ed8f8b86b23e254fc44ab67 (diff) |
Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to DownloadProvider
- DownloadManager will use the requestor app's default network to
open a connection. When the VPN app lists the DownloadProvider as
a disallowed application, this will fail with EPERM.
- This is because in R, the DownloadProvider lost its privileges
due to the removal of the CONNECTIVITY_INTERNAL permission. It's
removed without considering the corner case where the
DownloadProvider is excluded from using the VPN. It's the only
case where this makes a difference.
- Adding CONNECTIVITY_USE_RESTRICTED_NETWORKS will give
DownloadProvider the ability to use the VPN again in this case,
fixing the issue.
Bug: 165774987
Test: Build, flash rom and boot to home. Manully test that
DownloadProvider can download file via VPN.
Change-Id: If8fa785568ace1f15f53daec67c06e1207d5dc9c
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java')
0 files changed, 0 insertions, 0 deletions