Skip to content

Commit

Permalink
cmsdk: Add permissions for ALARMS.
Browse files Browse the repository at this point in the history
Change-Id: Ibf8f8a51b97d4c90dcddb11f093e64d82b478f44
  • Loading branch information
Adnan Begovic committed Sep 2, 2015
1 parent 0523911 commit 7f17704
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
22 changes: 22 additions & 0 deletions cm/res/AndroidManifest.xml
Expand Up @@ -88,6 +88,28 @@
android:description="@string/permdesc_writeSecureSettings"
android:protectionLevel="signature|system|development" />

<!-- Allows an application to write alarms to the default alarm clock application
<p>Not for use by third-party applications. -->
<permission android:name="cyanogenmod.permission.WRITE_ALARMS"
android:permissionGroup="android.permission-group.SYSTEM_CLOCK"
android:protectionLevel="system|signature"
android:label="@string/permlab_write_alarms"
android:description="@string/permdesc_write_alarms"/>

<!-- Allows an application to manage alarms on the default alarm clock application -->
<permission android:name="cyanogenmod.permission.MANAGE_ALARMS"
android:permissionGroup="android.permission-group.SYSTEM_CLOCK"
android:protectionLevel="normal"
android:label="@string/permlab_manage_alarms"
android:description="@string/permdesc_manage_alarms"/>

<!-- Allows an application to read alarms from the default alarm clock application -->
<permission android:name="cyanogenmod.permission.READ_ALARMS"
android:permissionGroup="android.permission-group.SYSTEM_CLOCK"
android:protectionLevel="normal"
android:label="@string/permlab_read_alarms"
android:description="@string/permdesc_read_alarms"/>

<application android:process="system"
android:persistent="true"
android:hasCode="false"
Expand Down
12 changes: 12 additions & 0 deletions cm/res/res/values/strings.xml
Expand Up @@ -46,6 +46,18 @@
<string name="permlab_useHardwareFramework">use hardware framework</string>
<string name="permdesc_useHardwareFramework">Allows an app access to the CM hardware framework.</string>

<!-- Labels for the WRITE_ALARMS permission. -->
<string name="permlab_write_alarms">directly change alarms</string>
<string name="permdesc_write_alarms">Allows an app to add, modify or delete all of your alarms.</string>

<!-- Labels for the MANAGE_ALARMS permission. -->
<string name="permlab_manage_alarms">toggle scheduled alarms</string>
<string name="permdesc_manage_alarms">Allows an app to turn on or off your scheduled alarms.</string>

<!-- Labels for the READ_ALARMS permission. -->
<string name="permlab_read_alarms">access scheduled alarms</string>
<string name="permdesc_read_alarms">Allows an app to read your scheduled alarms.</string>

<!-- Labels for the WRITE_SETTINGS permission -->
<string name="permlab_writeSettings">modify CM system settings</string>
<string name="permdesc_writeSettings">Allows an app to modify CM system settings.</string>
Expand Down

0 comments on commit 7f17704

Please sign in to comment.