Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e707bb5 authored by twyen's avatar twyen Committed by Eric Erfanian
Browse files

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
parent 5e685035
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);
  }