From 501c59f10dbfc1a2249a02ddf8de6266b714d789 Mon Sep 17 00:00:00 2001 From: Achim Thesmann Date: Wed, 18 Jan 2023 12:43:21 -0800 Subject: [PATCH] Allow Overrides on CompatChange Test: atest android.server.wm.BackgroundActivityLaunchTest ShortcutManagerStartShortcutTest AccessibilityPrivacySourceTest NotificationListenerCheckTest Change-Id: Ied6581d5d25b35904db65f41c793e728ab585d91 --- .../core/java/com/android/server/am/PendingIntentRecord.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/core/java/com/android/server/am/PendingIntentRecord.java b/services/core/java/com/android/server/am/PendingIntentRecord.java index 43075bcabeaba..d58fd2da6b884 100644 --- a/services/core/java/com/android/server/am/PendingIntentRecord.java +++ b/services/core/java/com/android/server/am/PendingIntentRecord.java @@ -32,6 +32,7 @@ import android.app.PendingIntent; import android.app.compat.CompatChanges; import android.compat.annotation.ChangeId; import android.compat.annotation.EnabledAfter; +import android.compat.annotation.Overridable; import android.content.IIntentReceiver; import android.content.IIntentSender; import android.content.Intent; @@ -65,6 +66,7 @@ public final class PendingIntentRecord extends IIntentSender.Stub { /** If enabled BAL are prevented by default in applications targeting U and later. */ @ChangeId @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.TIRAMISU) + @Overridable private static final long DEFAULT_RESCIND_BAL_PRIVILEGES_FROM_PENDING_INTENT_SENDER = 244637991; private static final String ENABLE_DEFAULT_RESCIND_BAL_PRIVILEGES_FROM_PENDING_INTENT_SENDER = "enable_default_rescind_bal_privileges_from_pending_intent_sender";