Merge "Remove Activity if it enters PiP without window" into rvc-dev am: 81224e6f76 am: d6a9b8078a am: 6255caf966 am: d128334160 am: b03c904b97
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21564420 Change-Id: Ic78a29ab734647cd3feb4f3b77e40652b155c0c7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1478,6 +1478,12 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
|||||||
mLastReportedMultiWindowMode = inPictureInPictureMode;
|
mLastReportedMultiWindowMode = inPictureInPictureMode;
|
||||||
ensureActivityConfiguration(0 /* globalChanges */, PRESERVE_WINDOWS,
|
ensureActivityConfiguration(0 /* globalChanges */, PRESERVE_WINDOWS,
|
||||||
true /* ignoreVisibility */);
|
true /* ignoreVisibility */);
|
||||||
|
if (inPictureInPictureMode && findMainWindow() == null) {
|
||||||
|
// Prevent malicious app entering PiP without valid WindowState, which can in turn
|
||||||
|
// result a non-touchable PiP window since the InputConsumer for PiP requires it.
|
||||||
|
EventLog.writeEvent(0x534e4554, "265293293", -1, "");
|
||||||
|
removeImmediately();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user