Loading packages/PackageInstaller/src/com/android/packageinstaller/InstallStart.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -108,7 +108,8 @@ public class InstallStart extends Activity { } } Intent nextActivity = new Intent(intent); 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 // The the installation source as the nextActivity thinks this activity is the source, hence // set the originating UID and sourceInfo explicitly // set the originating UID and sourceInfo explicitly Loading Loading
packages/PackageInstaller/src/com/android/packageinstaller/InstallStart.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -108,7 +108,8 @@ public class InstallStart extends Activity { } } Intent nextActivity = new Intent(intent); 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 // The the installation source as the nextActivity thinks this activity is the source, hence // set the originating UID and sourceInfo explicitly // set the originating UID and sourceInfo explicitly Loading