Merge "No need PDU data for deleteMessageFromIcc()"

am: 0280bd3970

Change-Id: Ida80e7e57477eb13a7d999ab589fef8e1139acb7
This commit is contained in:
Taesu Lee
2019-08-28 01:27:10 -07:00
committed by android-build-merger

View File

@@ -53,7 +53,6 @@ import com.android.internal.telephony.SmsRawData;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.concurrent.Executor; import java.util.concurrent.Executor;
@@ -1555,15 +1554,13 @@ public final class SmsManager {
public boolean public boolean
deleteMessageFromIcc(int messageIndex) { deleteMessageFromIcc(int messageIndex) {
boolean success = false; boolean success = false;
byte[] pdu = new byte[SMS_RECORD_LENGTH-1];
Arrays.fill(pdu, (byte)0xff);
try { try {
ISms iSms = getISmsService(); ISms iSms = getISmsService();
if (iSms != null) { if (iSms != null) {
success = iSms.updateMessageOnIccEfForSubscriber(getSubscriptionId(), success = iSms.updateMessageOnIccEfForSubscriber(getSubscriptionId(),
ActivityThread.currentPackageName(), ActivityThread.currentPackageName(),
messageIndex, STATUS_ON_ICC_FREE, pdu); messageIndex, STATUS_ON_ICC_FREE, null /* pdu */);
} }
} catch (RemoteException ex) { } catch (RemoteException ex) {
// ignore it // ignore it