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

Commit 850c2e7f authored by Varun Shah's avatar Varun Shah
Browse files

Make the bg activity start exemption app op available to tests.

Mark OPSTR_SYSTEM_EXEMPT_FROM_ACTIVITY_BG_START_RESTRICTION as a TestApi
so that we can use it in tests.

Bug: 414682995
Test: atest ActivityManagerTest#testAddOnUidImportanceListener_legacy
Flag: EXEMPT exposing API for test only
Change-Id: I9aba67f29fa5a69dd348958913c2470dfec320b5
parent 25faa39d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -285,6 +285,7 @@ package android.app {
    field @FlaggedApi("android.service.notification.redact_sensitive_notifications_from_untrusted_listeners") public static final String OPSTR_RECEIVE_SENSITIVE_NOTIFICATIONS = "android:receive_sensitive_notifications";
    field public static final String OPSTR_RECORD_AUDIO_HOTWORD = "android:record_audio_hotword";
    field public static final String OPSTR_RESERVED_FOR_TESTING = "android:reserved_for_testing";
    field public static final String OPSTR_SYSTEM_EXEMPT_FROM_ACTIVITY_BG_START_RESTRICTION = "android:system_exempt_from_activity_bg_start_restriction";
    field public static final String OPSTR_USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER = "android:use_icc_auth_with_device_identifier";
    field public static final int OP_COARSE_LOCATION = 0; // 0x0
    field public static final int OP_RECORD_AUDIO = 27; // 0x1b
+2 −0
Original line number Diff line number Diff line
@@ -2489,6 +2489,8 @@ public class AppOpsManager {
     *
     * @hide
     */
    @TestApi
    @SuppressLint("UnflaggedApi") // Exposing via @TestApi without associated new feature
    public static final String OPSTR_SYSTEM_EXEMPT_FROM_ACTIVITY_BG_START_RESTRICTION =
            "android:system_exempt_from_activity_bg_start_restriction";