Receive SYNC and STATUS SMS text messages.
These classes are adopted from the voicemail-example-for-android
voicemail source implementation with these notable differences:
skipping the interface classes, omitting OmtpSmsHandler, returning "null"
instead of throwing an exception, excluding constants that are not being used.
* Message receiver: receives SMS messages and sends to the parser
* Message parser: extracts fields and inserts into a wrapper, then create
StatusMessage and SyncMessage from the fields in the wrapper
* StatusMessage: an object containing the values of a status message
* SyncMessage: an object containing the values of a sync message
Bug:19236241
Change-Id: Ifb2dea832f5e5634fc301e9eb238650770b009e2
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index bc84bf5..14a283a 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -583,5 +583,13 @@
<action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
</intent-filter>
</provider>
+
+ <receiver android:name="com.android.phone.vvm.omtp.sms.OmtpMessageReceiver"
+ android:exported="true">
+ <intent-filter>
+ <action android:name="android.intent.action.DATA_SMS_RECEIVED" />
+ <data android:scheme="sms" />
+ </intent-filter>
+ </receiver>
</application>
</manifest>