Require READ_VOICEMAIL permission for FETCH_VOCIEMAIL and SYNC_VOICEMAIL
Change-Id: I671828198acc0d9a2d4ccb80eb125bbbc9142f8a
Fixes:26778013
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index ab67100..aa12057 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -675,7 +675,8 @@
</receiver>
<receiver
android:name="com.android.phone.vvm.omtp.fetch.FetchVoicemailReceiver"
- android:exported="true">
+ android:exported="true"
+ android:permission="com.android.voicemail.permission.READ_VOICEMAIL">
<intent-filter>
<action android:name="android.intent.action.FETCH_VOICEMAIL" />
<data
@@ -686,7 +687,8 @@
</receiver>
<receiver
android:name="com.android.phone.vvm.omtp.sync.OmtpVvmSyncReceiver"
- android:exported="true">
+ android:exported="true"
+ android:permission="com.android.voicemail.permission.READ_VOICEMAIL">
<intent-filter>
<action android:name="android.intent.action.SYNC_VOICEMAIL"/>
</intent-filter>