Grant access to the URI when forwarding intent from InstallStart to
InstallInstalling
Otherwise the URI grant might be taken away before InstallInstalling can
open it.
Fixes: 163274739
Test: atest CtsPackageInstallTestCases
Change-Id: Ibd9ffc253358606b8ae2ea41a875fcb1a1efcb2b
(cherry picked from commit a87968d4fb)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user