Merge "Improve docs for SCHEDULE_EXACT_ALARM" into tm-dev am: 8dabf5ec4e

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

Change-Id: Ic8dec65449ac35dc69aab15c4ecfa4f1b76b82b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2022-05-24 00:55:03 +00:00
committed by Automerger Merge Worker

View File

@@ -4495,10 +4495,10 @@
android:protectionLevel="signature|privileged"/> android:protectionLevel="signature|privileged"/>
<!-- Allows applications to use exact alarm APIs. <!-- Allows applications to use exact alarm APIs.
<p>Exact alarms should only be used for user-facing features. <p>This is a special access permission that can be revoked by the system or the user.
For more details, see <a It should only be used to enable <b>user-facing features</b> that require exact alarms.
href="{@docRoot}about/versions/12/behavior-changes-12#exact-alarm-permission"> For more details, please go through the associated
Exact alarm permission</a>. <a href="{@docRoot}training/scheduling/alarms#exact">developer docs</a>.
<p>Apps need to target API {@link android.os.Build.VERSION_CODES#S} or above to be able to <p>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 request this permission. Note that apps targeting lower API levels do not need this
permission to use exact alarm APIs. permission to use exact alarm APIs.
@@ -4509,6 +4509,7 @@
{@link android.Manifest.permission#USE_EXACT_ALARM} once it targets API {@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 {@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. features (which should still be user facing) should continue using this permission.
<p>Protection level: appop
--> -->
<permission android:name="android.permission.SCHEDULE_EXACT_ALARM" <permission android:name="android.permission.SCHEDULE_EXACT_ALARM"
android:protectionLevel="normal|appop"/> android:protectionLevel="normal|appop"/>