Check EXTRA_INTENT as part of leaving process.

We're checking all the other Intent objects, but we forgot this one.

Test: builds, boots
Bug: 34072700
Change-Id: I4f328950f3122258e0bdea7e87f78d7d0afdedbb
This commit is contained in:
Jeff Sharkey
2017-02-24 09:39:58 -07:00
parent 830d4b422d
commit c6fe23df52

View File

@@ -9238,6 +9238,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) {