Merge "Grant access to the URI when forwarding intent from InstallStart to InstallInstalling"

This commit is contained in:
TreeHugger Robot
2020-11-05 02:44:31 +00:00
committed by Android (Google) Code Review

View File

@@ -108,7 +108,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