diff options
author | twyen <twyen@google.com> | 2017-07-11 15:48:56 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-07-12 09:43:16 -0700 |
commit | 4e707bb5d1a9ab1c668e834b2c56e6b75d1f82d7 (patch) | |
tree | ceae563057847a6db941f6fe20f8e6b86f285b99 /java/com | |
parent | 5e685035897403343fc6a005ebf869894c344e13 (diff) |
Add log when sending VVM SMS
OEM and carriers need this line to verify.
Bug: 62677283
Test: N/A
PiperOrigin-RevId: 161594185
Change-Id: I00cf649a745a45a14fcea9948f1f8c696fb4b6b1
Diffstat (limited to 'java/com')
-rw-r--r-- | java/com/android/voicemail/impl/sms/OmtpMessageSender.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/com/android/voicemail/impl/sms/OmtpMessageSender.java b/java/com/android/voicemail/impl/sms/OmtpMessageSender.java index e9d145cde..19661e99d 100644 --- a/java/com/android/voicemail/impl/sms/OmtpMessageSender.java +++ b/java/com/android/voicemail/impl/sms/OmtpMessageSender.java @@ -22,6 +22,7 @@ import android.telecom.PhoneAccountHandle; import android.telephony.SmsManager; import com.android.voicemail.impl.OmtpConstants; import com.android.voicemail.impl.TelephonyMangerCompat; +import com.android.voicemail.impl.VvmLog; /** * Send client originated OMTP messages to the OMTP server. @@ -75,6 +76,11 @@ public abstract class OmtpMessageSender { public void requestVvmStatus(@Nullable PendingIntent sentIntent) {} protected void sendSms(String text, PendingIntent sentIntent) { + + VvmLog.v( + TAG, + String.format("Sending sms '%s' to %s:%d", text, mDestinationNumber, mApplicationPort)); + TelephonyMangerCompat.sendVisualVoicemailSms( mContext, mPhoneAccountHandle, mDestinationNumber, mApplicationPort, text, sentIntent); } |