public class VisualVoicemailSmsFilter extends Object
Constructor and Description |
---|
VisualVoicemailSmsFilter() |
Modifier and Type | Method and Description |
---|---|
static boolean |
filter(Context context,
byte[][] pdus,
String format,
int destPort,
int subId)
Attempt to parse the incoming SMS as a visual voicemail SMS.
|
public static boolean filter(Context context, byte[][] pdus, String format, int destPort, int subId)
VoicemailContract.ACTION_VOICEMAIL_SMS_RECEIVED
intent will be sent to the visual
voicemail client, and the SMS should be dropped.
The accepted format for a visual voicemail SMS is a generalization of the OMTP format:
[clientPrefix]:[prefix]:([key]=[value];)*
Additionally, if the SMS does not match the format, but matches the regex specified by the
carrier in com.android.internal.R.array.config_vvmSmsFilterRegexes
, the SMS will
still be dropped and a VoicemailContract.ACTION_VOICEMAIL_SMS_RECEIVED
with VoicemailContract.EXTRA_VOICEMAIL_SMS_MESSAGE_BODY
will be sent.