Merge "Check EXTRA_INTENT as part of leaving process."

This commit is contained in:
TreeHugger Robot
2017-02-24 18:49:19 +00:00
committed by Android (Google) Code Review

View File

@@ -9269,6 +9269,13 @@ public class Intent implements Parcelable, Cloneable {
mClipData.prepareToLeaveProcess(leavingPackage, getFlags());
}
if (mExtras != null && !mExtras.isParcelled()) {
final Object intent = mExtras.get(Intent.EXTRA_INTENT);
if (intent instanceof Intent) {
((Intent) intent).prepareToLeaveProcess(leavingPackage);
}
}
if (mAction != null && mData != null && StrictMode.vmFileUriExposureEnabled()
&& leavingPackage) {
switch (mAction) {