From b56ceea6f44df3b76f1fd41a90384efba8501a2b Mon Sep 17 00:00:00 2001 From: Suprabh Shukla Date: Thu, 17 Mar 2022 15:46:28 -0700 Subject: [PATCH] Clarifying docs for USE_EXACT_ALARM Test: m offline-sdk-docs Bug: 219819018 Change-Id: I404a8faf877bd69c2a1d79059fe6845391c370c6 --- core/res/AndroidManifest.xml | 38 +++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 4f9558885e409..0351fcad022ba 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -4443,21 +4443,41 @@ For more details, see Exact alarm permission. -

Apps who hold this permission and target API level 31 or above, always stay in the +

Apps need to target API {@link android.os.Build.VERSION_CODES#S} or above to be able to + request this permission. Note that apps targeting lower API levels do not need this + permission to use exact alarm APIs. +

Apps that hold this permission, always stay in the {@link android.app.usage.UsageStatsManager#STANDBY_BUCKET_WORKING_SET WORKING_SET} or lower standby bucket. - Applications targeting API level 30 or below do not need this permission to use - exact alarm APIs. +

If your app relies on exact alarms for core functionality, it can instead request + {@link android.Manifest.permission#USE_EXACT_ALARM} once it targets API + {@link android.os.Build.VERSION_CODES#TIRAMISU}. All apps using exact alarms for secondary + features (which should still be user facing) should continue using this permission. --> -