Fetch voicemail payload, which is usually the audio file.
When the user clicks on a voicemail, dialer sends out an broadcast intent
called "FETCH_VOICEMAIL". Any receiver that receives this broadcast is
in charge of
1) determining whether the voicemail belongs to them
2) downloading the audio file
3) writing the audio file to the voicemail provider and flipping the bit
on "has_content" for the voicemail's row in the calls table
Also fix some indents in the manifest file.
Bug: 19236241
Change-Id: I081cce569c68b52c654f0737fb29fb9c7ef8bf00
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 62bc4dc..ef7a812 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -624,9 +624,9 @@
</intent-filter>
</receiver>
<service
- android:name="com.android.phone.vvm.omtp.OmtpVvmSyncService"
- android:exported="true"
- android:process=":sync">
+ android:name="com.android.phone.vvm.omtp.OmtpVvmSyncService"
+ android:exported="true"
+ android:process=":sync">
<intent-filter>
<action android:name="android.content.SyncAdapter"/>
</intent-filter>
@@ -635,18 +635,29 @@
</service>
<service
android:name="android.telecom.AuthenticatorService">
- <intent-filter>
- <action android:name="android.accounts.AccountAuthenticator"/>
- </intent-filter>
- <meta-data
- android:name="android.accounts.AccountAuthenticator"
- android:resource="@xml/authenticator" />
+ <intent-filter>
+ <action android:name="android.accounts.AccountAuthenticator"/>
+ </intent-filter>
+ <meta-data
+ android:name="android.accounts.AccountAuthenticator"
+ android:resource="@xml/authenticator" />
</service>
- <receiver android:name="com.android.phone.vvm.omtp.SimChangeReceiver"
+ <receiver android:name="com.android.phone.vvm.omtp.SimChangeReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.SIM_STATE_CHANGED" />
</intent-filter>
- </receiver>
+ </receiver>
+ <receiver
+ android:name="com.android.phone.vvm.omtp.sync.FetchVoicemailReceiver"
+ android:exported="true">
+ <intent-filter>
+ <action android:name="android.intent.action.FETCH_VOICEMAIL" />
+ <data
+ android:scheme="content"
+ android:host="com.android.voicemail"
+ android:mimeType="vnd.android.cursor.item/voicemail" />
+ </intent-filter>
+ </receiver>
</application>
</manifest>