Voicemail provider implementation within ContactsProvider.
- New voicemail provider class
- all voicemail operations restricted to only 'voicemail' call type.
- new voicemail permissions (currently defined in the manifest file
itself)
Change-Id: I32b916c5b4a53e93bafbecf7df7bee3f5e27fee6
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index d36dd0c..e9eacc7 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -2,6 +2,24 @@
package="com.android.providers.contacts"
android:sharedUserId="android.uid.shared">
+ <!-- TODO: These permissions should be moved to framework/base once voicemail
+ API is approved. -->
+ <permission
+ android:name="com.android.voicemail.permission.READ_WRITE_OWN_VOICEMAIL"
+ android:label="@string/read_write_own_voicemail_label"
+ android:description="@string/read_write_own_voicemail_description"
+ android:permissionGroup="android.permission-group.PERSONAL_INFO"
+ android:protectionLevel="dangerous"
+ />
+
+ <permission
+ android:name="com.android.voicemail.permission.READ_WRITE_ALL_VOICEMAIL"
+ android:label="@string/read_write_all_voicemail_label"
+ android:description="@string/read_write_all_voicemail_description"
+ android:permissionGroup="android.permission-group.PERSONAL_INFO"
+ android:protectionLevel="dangerous"
+ />
+
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
@@ -44,6 +62,12 @@
android:writePermission="android.permission.WRITE_CONTACTS">
</provider>
+ <provider android:name="VoicemailContentProvider"
+ android:authorities="com.android.voicemail"
+ android:syncable="false" android:multiprocess="false"
+ android:permission="com.android.voicemail.permission.READ_WRITE_OWN_VOICEMAIL">
+ </provider>
+
<!-- TODO: create permissions for social data -->
<provider android:name="SocialProvider"
android:authorities="com.android.social"