Skip to content
Commit 51ec8010 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Exempt exact alarms using listener from permission

Listener alarms rely on the caller staying in valid lifecycle till the
alarm expires. In this case the caller should be encouraged to use
exact alarms for use-cases requiring timing precisions without needing
additional user consent.

Adding explicit reason codes for listener and prioritized alarms for
logging when these alarms are also exact.

Also reducing the quota of listener allow-while-idle alarms to match
other alarms that do not require permission.

Test: atest CtsAlarmManagerTestCases:ExactAlarmsTest

Bug: 228125912
Change-Id: I7636126c411b174a71ad91583c9fbd9d9457623d
parent 82f3aad5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment