Merge "Grant access to the URI when forwarding intent from InstallStart to InstallInstalling" into rvc-qpr-dev am: 1df7cf9bf1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12994918

Change-Id: I04dce87ad4d68a9a41ef85426fc6c828f57ab23d
This commit is contained in:
TreeHugger Robot
2020-11-09 17:28:01 +00:00
committed by Automerger Merge Worker

View File

@@ -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