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

Skip to content
Commit 77f18a56 authored by Matt Garnes's avatar Matt Garnes Committed by Gerrit Code Review
Browse files

Allow alarms to be modified by 3rd parties.

- Export the ClockProvider.
- Use the ClockContract in the CM Platform SDK for external reference.
- Use these CM SDK defined permissions:
  - "cyanogenmod.permission.WRITE_ALARMS" - This
    system|signature only permission gives full write access to the
    ClockProvider.
  - "cyanogenmod.permission.READ_ALARMS" - Read only access to
    the ClockProvider.
  - "cyanogenmod.permission.MANAGE_ALARMS" - Access to perform
    a subset of all alarm changes such as turning on or off alarms.
- Protect the provider with the above permissions for read/write.
- Move the logic for updating an Alarm object directly into the Alarm
  class.
- Add a new IntentService to allow turning on and off alarms when
  started by an application with the MANAGE_ALARMS permission.

Depends on: http://review.cyanogenmod.org/#/c/125486

Derived from: http://review.cyanogenmod.org/#/c/103324

Change-Id: I399ce9f1073c6fdcb1711a11095f7c3a4bce2c6a
parent 91ac9cbe
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