aboutsummaryrefslogtreecommitdiffstats
path: root/cm
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2015-09-01 17:04:27 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-09-01 17:14:11 -0700
commit7f177049748883b92a81caea0d49bc6faf838b82 (patch)
treec804686a70b8d3a05363ec0dd64cc492e0434b28 /cm
parent052391135bcdce944226cfac858a3ad7fc6eb914 (diff)
downloadvendor_cmsdk-7f177049748883b92a81caea0d49bc6faf838b82.zip
vendor_cmsdk-7f177049748883b92a81caea0d49bc6faf838b82.tar.gz
vendor_cmsdk-7f177049748883b92a81caea0d49bc6faf838b82.tar.bz2
cmsdk: Add permissions for ALARMS.
Change-Id: Ibf8f8a51b97d4c90dcddb11f093e64d82b478f44
Diffstat (limited to 'cm')
-rw-r--r--cm/res/AndroidManifest.xml22
-rw-r--r--cm/res/res/values/strings.xml12
2 files changed, 34 insertions, 0 deletions
diff --git a/cm/res/AndroidManifest.xml b/cm/res/AndroidManifest.xml
index 35fdd0c..2c18466 100644
--- a/cm/res/AndroidManifest.xml
+++ b/cm/res/AndroidManifest.xml
@@ -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"
diff --git a/cm/res/res/values/strings.xml b/cm/res/res/values/strings.xml
index 636ca3b..f404b52 100644
--- a/cm/res/res/values/strings.xml
+++ b/cm/res/res/values/strings.xml
@@ -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>