Voicemail content provider API for api council review.

This is a new content provider implemented to add visual voicemail
support in android.

Voicemail content provider is the central repository for storing
voicemails inserted by various voicemail sources. The content provider
also exposes a status table to let the voicemail source application
convey its current status to the system.

The primary application that reads from this content provider is the phone app.
The phone app shows voicemails along with other call entries within the
call log and optionally any relevent message about the voicemail source
status.

The implementation of this content provider can be found at
https://android-git.corp.google.com/w/?p=platform/packages/providers/ContactsProvider.git;a=blob;f=src/com/android/providers/contacts/VoicemailContentProvider.java

Change-Id: I8ad46aec20c70684f7bfa45530bbb90dd841d81a
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index 0397dfa..290f049 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -292,6 +292,23 @@
         android:description="@string/permdesc_setAlarm"
         android:protectionLevel="normal" />
 
+   <!-- Allows an application to read/write the voicemails owned by its own
+        package. -->
+    <permission android:name="com.android.voicemail.permission.READ_WRITE_OWN_VOICEMAIL"
+        android:permissionGroup="android.permission-group.PERSONAL_INFO"
+        android:protectionLevel="dangerous"
+        android:label="@string/permlab_readWriteOwnVoicemail"
+        android:description="@string/permdesc_readWriteOwnVoicemail" />
+
+   <!-- Allows an application to read/write all voicemails. In order to be able
+        access all voicemails, this permission is needed in *addition* to
+        READ_WRITE_OWN_VOICEMAIL. -->
+    <permission android:name="com.android.voicemail.permission.READ_WRITE_ALL_VOICEMAIL"
+        android:permissionGroup="android.permission-group.PERSONAL_INFO"
+        android:protectionLevel="signature"
+        android:label="@string/permlab_readWriteAllVoicemail"
+        android:description="@string/permdesc_readWriteAllVoicemail" />
+
     <!-- ======================================= -->
     <!-- Permissions for accessing location info -->
     <!-- ======================================= -->