Merge "Add test for attribute android:allowEmbedded" into klp-modular-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3359bbe02c
@ -705,6 +705,10 @@ public final class ActivityStackSupervisor implements DisplayListener {
|
||||
profileFile, profileFd, userId);
|
||||
|
||||
ActivityContainer container = (ActivityContainer)iContainer;
|
||||
if (container != null && (aInfo.flags & ActivityInfo.FLAG_ALLOW_EMBEDDED) == 0) {
|
||||
throw new SecurityException(
|
||||
"Activities launched in ActivityContainers must set allowEmbedded=\"true\"");
|
||||
}
|
||||
synchronized (mService) {
|
||||
int callingPid;
|
||||
if (callingUid >= 0) {
|
||||
|
Reference in New Issue
Block a user