Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95c3857c authored by Bernardo Rufino's avatar Bernardo Rufino Committed by Automerger Merge Worker
Browse files

Merge "Block trampolines for browsers w/ targetSdk >= T" into tm-dev am:...

Merge "Block trampolines for browsers w/ targetSdk >= T" into tm-dev am: c9bf2574 am: 12090735 am: 2a3e4adf

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17730887



Change-Id: I3356b7981792c9f7434f0bfab291b5bd3c534518
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e07cccbf 2a3e4adf
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -462,6 +462,15 @@ public class NotificationManagerService extends SystemService {
    @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.R)
    private static final long NOTIFICATION_TRAMPOLINE_BLOCK = 167676448L;
    /**
     * Activity starts coming from broadcast receivers or services in response to notification and
     * notification action clicks will be blocked for UX and performance reasons for previously
     * exempt role holders (browser).
     */
    @ChangeId
    @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.S_V2)
    private static final long NOTIFICATION_TRAMPOLINE_BLOCK_FOR_EXEMPT_ROLES = 227752274L;
    /**
     * Whether a notification listeners can understand new, more specific, cancellation reasons.
     */
@@ -11635,7 +11644,8 @@ public class NotificationManagerService extends SystemService {
        private boolean blockTrampoline(int uid) {
            if (mRoleObserver != null && mRoleObserver.isUidExemptFromTrampolineRestrictions(uid)) {
                return false;
                return CompatChanges.isChangeEnabled(NOTIFICATION_TRAMPOLINE_BLOCK_FOR_EXEMPT_ROLES,
                        uid);
            }
            return CompatChanges.isChangeEnabled(NOTIFICATION_TRAMPOLINE_BLOCK, uid);
        }