summaryrefslogtreecommitdiff
path: root/packages/PackageInstaller
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-11-09 16:55:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-11-09 16:55:26 +0000
commit1df7cf9bf1a2b1a74b035d57c51d072aa4ec692f (patch)
treec83b97b06ef3e299637894bc57ec8b3d2529231f /packages/PackageInstaller
parent265a962d72605361ba3b674103fc2317e82d5e06 (diff)
parentcf550678c56e9ec75e174790df0707cee26e5338 (diff)
Merge "Grant access to the URI when forwarding intent from InstallStart to InstallInstalling" into rvc-qpr-dev
Diffstat (limited to 'packages/PackageInstaller')
-rw-r--r--packages/PackageInstaller/src/com/android/packageinstaller/InstallStart.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/PackageInstaller/src/com/android/packageinstaller/InstallStart.java b/packages/PackageInstaller/src/com/android/packageinstaller/InstallStart.java
index 6fbee16e3dae..861a8ef0a910 100644
--- a/packages/PackageInstaller/src/com/android/packageinstaller/InstallStart.java
+++ b/packages/PackageInstaller/src/com/android/packageinstaller/InstallStart.java
@@ -105,7 +105,8 @@ public class InstallStart extends Activity {
}
Intent nextActivity = new Intent(intent);
- nextActivity.setFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT);
+ nextActivity.setFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT
+ | Intent.FLAG_GRANT_READ_URI_PERMISSION);
// The the installation source as the nextActivity thinks this activity is the source, hence
// set the originating UID and sourceInfo explicitly