Loading services/core/java/com/android/server/wm/ActivitySecurityModelFeatureFlags.java +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ class ActivitySecurityModelFeatureFlags { static final String DOC_LINK = "go/android-asm"; /** Used to determine which version of the ASM logic was used in logs while we iterate */ static final int ASM_VERSION = 5; static final int ASM_VERSION = 6; private static final String NAMESPACE = NAMESPACE_WINDOW_MANAGER; private static final String KEY_ASM_PREFIX = "ActivitySecurity__"; Loading services/core/java/com/android/server/wm/ActivityStarter.java +6 −2 Original line number Diff line number Diff line Loading @@ -1948,9 +1948,13 @@ class ActivityStarter { boolean passesAsmChecks = true; Task sourceTask = mSourceRecord.getTask(); // Don't allow launches into a new task if the current task is not foreground. // Allow launching into a new task (or a task matching the launched activity's // affinity) only if the current task is foreground or mutating its own task. // The latter can happen eg. if caller uses NEW_TASK flag and the activity being // launched matches affinity of source task. if (taskToFront) { passesAsmChecks = sourceTask != null && sourceTask.isVisible(); passesAsmChecks = sourceTask != null && (sourceTask.isVisible() || sourceTask == targetTask); } if (passesAsmChecks) { Loading Loading
services/core/java/com/android/server/wm/ActivitySecurityModelFeatureFlags.java +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ class ActivitySecurityModelFeatureFlags { static final String DOC_LINK = "go/android-asm"; /** Used to determine which version of the ASM logic was used in logs while we iterate */ static final int ASM_VERSION = 5; static final int ASM_VERSION = 6; private static final String NAMESPACE = NAMESPACE_WINDOW_MANAGER; private static final String KEY_ASM_PREFIX = "ActivitySecurity__"; Loading
services/core/java/com/android/server/wm/ActivityStarter.java +6 −2 Original line number Diff line number Diff line Loading @@ -1948,9 +1948,13 @@ class ActivityStarter { boolean passesAsmChecks = true; Task sourceTask = mSourceRecord.getTask(); // Don't allow launches into a new task if the current task is not foreground. // Allow launching into a new task (or a task matching the launched activity's // affinity) only if the current task is foreground or mutating its own task. // The latter can happen eg. if caller uses NEW_TASK flag and the activity being // launched matches affinity of source task. if (taskToFront) { passesAsmChecks = sourceTask != null && sourceTask.isVisible(); passesAsmChecks = sourceTask != null && (sourceTask.isVisible() || sourceTask == targetTask); } if (passesAsmChecks) { Loading