开发平台基本信息
芯片: SDM450
版本: Android 9.0
kernel: msm-4.9
问题描述
与去掉录音功能同理,设备在进行入网认证的时候,为了快速通过认证,要求系统去掉彩信、短信、通话功能,让实验室无法调用即可。
解决方法
diff --git a/external/apache-http/android/src/android/net/http/AndroidHttpClient.java b/external/apache-http/android/src/android/net/http/AndroidHttpClient.java
old mode 100644
new mode 100755
index c2e5999..a111013
--- a/external/apache-http/android/src/android/net/http/AndroidHttpClient.java
+++ b/external/apache-http/android/src/android/net/http/AndroidHttpClient.java
@@ -247,46 +247,62 @@ public final class AndroidHttpClient implements HttpClient {
}
public HttpResponse execute(HttpUriRequest request) throws IOException {
- return delegate.execute(request);
+ //return delegate.execute(request);
+ Log.e(TAG, "should not reach here", new Exception());
+ return null;
}
public HttpResponse execute(HttpUriRequest request, HttpContext context)
throws IOException {
- return delegate.execute(request, context);
+ //return delegate.execute(request, context);
+ Log.e(TAG, "should not reach here", new Exception());
+ return null;
}
public HttpResponse execute(HttpHost target, HttpRequest request)
throws IOException {
- return delegate.execute(target, request);
+ //return delegate.execute(target, request);
+ Log.e(TAG, "should not reach here", new Exception());
+ return null;
}
public HttpResponse execute(HttpHost target, HttpRequest request,
HttpContext context) throws IOException {
- return delegate.execute(target, request, context);
+ //return delegate.execute(target, request, context);
+ Log.e(TAG, "should not reach here", new Exception());
+ return null;
}
public <T> T execute(HttpUriRequest request,
ResponseHandler<? extends T> responseHandler)
throws IOException, ClientProtocolException {
- return delegate.execute(request, responseHandler);
+ //return delegate.execute(request, responseHandler);
+ Log.e(TAG, "should not reach here", new Exception());
+ return null;
}
public <T> T execute(HttpUriRequest request,
ResponseHandler<? extends T> responseHandler, HttpContext context)
throws IOException, ClientProtocolException {
- return delegate.execute(request, responseHandler, context);
+ //return delegate.execute(request, responseHandler, context);
+ Log.e(TAG, "should not reach here", new Exception());
+ return null;
}
public <T> T execute(HttpHost target, HttpRequest request,
ResponseHandler<? extends T> responseHandler) throws IOException,
ClientProtocolException {
- return delegate.execute(target, request, responseHandler);
+ //return delegate.execute(target, request, responseHandler);
+ Log.e(TAG, "should not reach here", new Exception());
+ return null;
}
public <T> T execute(HttpHost target, HttpRequest request,
ResponseHandler<? extends T> responseHandler, HttpContext context)
throws IOException, ClientProtocolException {
- return delegate.execute(target, request, responseHandler, context);
+ //return delegate.execute(target, request, responseHandler, context);
+ Log.e(TAG, "should not reach here", new Exception());
+ return null;
}
/**
diff --git a/external/apache-http/src/org/apache/http/impl/client/AbstractHttpClient.java b/external/apache-http/src/org/apache/http/impl/client/AbstractHttpClient.java
old mode 100644
new mode 100755
index 20ec875..c68bccb
--- a/external/apache-http/src/org/apache/http/impl/client/AbstractHttpClient.java
+++ b/external/apache-http/src/org/apache/http/impl/client/AbstractHttpClient.java
@@ -519,6 +519,8 @@ public abstract class AbstractHttpClient implements HttpClient {
public final HttpResponse execute(HttpHost target, HttpRequest request,
HttpContext context)
throws IOException, ClientProtocolException {
+ System.out.println("AbstractHttpClient execute : target="+target+", request="+request+", context="+context);
+ (new Exception()).printStackTrace();
if (request == null) {
throw new IllegalArgumentException
diff --git a/external/apache-http/src/org/apache/http/impl/client/DefaultHttpClient.java b/external/apache-http/src/org/apache/http/impl/client/DefaultHttpClient.java
old mode 100644
new mode 100755
index 3380bef..601e072
--- a/external/apache-http/src/org/apache/http/impl/client/DefaultHttpClient.java
+++ b/external/apache-http/src/org/apache/http/impl/client/DefaultHttpClient.java
@@ -126,16 +126,19 @@ public class DefaultHttpClient extends AbstractHttpClient {
final ClientConnectionManager conman,
final HttpParams params) {
super(conman, params);
+ (new Exception()).printStackTrace();
}
public DefaultHttpClient(final HttpParams params) {
super(null, params);
+ (new Exception()).printStackTrace();
}
public DefaultHttpClient() {
super(null, null);
+ (new Exception()).printStackTrace();
}
diff --git a/frameworks/opt/telephony/src/java/com/android/internal/telephony/RIL.java b/frameworks/opt/telephony/src/java/com/android/internal/telephony/RIL.java
old mode 100644
new mode 100755
index f089676..3304a13
--- a/frameworks/opt/telephony/src/java/com/android/internal/telephony/RIL.java
+++ b/frameworks/opt/telephony/src/java/com/android/internal/telephony/RIL.java
@@ -773,12 +773,13 @@ public class RIL extends BaseCommands implements CommandsInterface {
@Override
public void dial(String address, int clirMode, Message result) {
- dial(address, clirMode, null, result);
+ //dial(address, clirMode, null, result);
+ riljLogi("function removed");
}
@Override
public void dial(String address, int clirMode, UUSInfo uusInfo, Message result) {
- IRadio radioProxy = getRadioProxy(result);
+ /*IRadio radioProxy = getRadioProxy(result);
if (radioProxy != null) {
RILRequest rr = obtainRequest(RIL_REQUEST_DIAL, result,
mRILDefaultWorkSource);
@@ -804,7 +805,8 @@ public class RIL extends BaseCommands implements CommandsInterface {
} catch (RemoteException | RuntimeException e) {
handleRadioProxyExceptionForRR(rr, "dial", e);
}
- }
+ }*/
+ riljLogi("function removed");
}
@Override
@@ -1070,6 +1072,7 @@ public class RIL extends BaseCommands implements CommandsInterface {
@Override
public void sendSMS(String smscPdu, String pdu, Message result) {
+ /*
IRadio radioProxy = getRadioProxy(result);
if (radioProxy != null) {
RILRequest rr = obtainRequest(RIL_REQUEST_SEND_SMS, result,
@@ -1088,11 +1091,13 @@ public class RIL extends BaseCommands implements CommandsInterface {
handleRadioProxyExceptionForRR(rr, "sendSMS", e);
}
}
+ */
+ riljLogi("function removed");
}
@Override
public void sendSMSExpectMore(String smscPdu, String pdu, Message result) {
- IRadio radioProxy = getRadioProxy(result);
+ /*IRadio radioProxy = getRadioProxy(result);
if (radioProxy != null) {
RILRequest rr = obtainRequest(RIL_REQUEST_SEND_SMS_EXPECT_MORE, result,
mRILDefaultWorkSource);
@@ -1109,7 +1114,8 @@ public class RIL extends BaseCommands implements CommandsInterface {
} catch (RemoteException | RuntimeException e) {
handleRadioProxyExceptionForRR(rr, "sendSMSExpectMore", e);
}
- }
+ }*/
+ riljLogi("function removed");
}
/**
@@ -2549,11 +2555,13 @@ public class RIL extends BaseCommands implements CommandsInterface {
@Override
public void sendCdmaSms(byte[] pdu, Message result, boolean expectMore) {
- sendCdmaSms(pdu, result);
+ //sendCdmaSms(pdu, result);
+ riljLogi("function removed");
}
@Override
public void sendCdmaSms(byte[] pdu, Message result) {
+ /*
IRadio radioProxy = getRadioProxy(result);
if (radioProxy != null) {
RILRequest rr = obtainRequest(RIL_REQUEST_CDMA_SEND_SMS, result,
@@ -2573,6 +2581,8 @@ public class RIL extends BaseCommands implements CommandsInterface {
handleRadioProxyExceptionForRR(rr, "sendCdmaSms", e);
}
}
+ */
+ riljLogi("function removed");
}
@Override
@@ -3063,7 +3073,7 @@ public class RIL extends BaseCommands implements CommandsInterface {
@Override
public void sendImsGsmSms(String smscPdu, String pdu, int retry, int messageRef,
Message result) {
- IRadio radioProxy = getRadioProxy(result);
+ /*IRadio radioProxy = getRadioProxy(result);
if (radioProxy != null) {
RILRequest rr = obtainRequest(RIL_REQUEST_IMS_SEND_SMS, result,
mRILDefaultWorkSource);
@@ -3085,12 +3095,13 @@ public class RIL extends BaseCommands implements CommandsInterface {
} catch (RemoteException | RuntimeException e) {
handleRadioProxyExceptionForRR(rr, "sendImsGsmSms", e);
}
- }
+ }*/
+ riljLogi("function removed");
}
@Override
public void sendImsCdmaSms(byte[] pdu, int retry, int messageRef, Message result) {
- IRadio radioProxy = getRadioProxy(result);
+ /*IRadio radioProxy = getRadioProxy(result);
if (radioProxy != null) {
RILRequest rr = obtainRequest(RIL_REQUEST_IMS_SEND_SMS, result,
mRILDefaultWorkSource);
@@ -3114,7 +3125,8 @@ public class RIL extends BaseCommands implements CommandsInterface {
} catch (RemoteException | RuntimeException e) {
handleRadioProxyExceptionForRR(rr, "sendImsCdmaSms", e);
}
- }
+ }*/
+ riljLogi("function removed");
}
private SimApdu createSimApdu(int channel, int cla, int instruction, int p1, int p2, int p3,
@@ -5084,6 +5096,11 @@ public class RIL extends BaseCommands implements CommandsInterface {
+ (mPhoneId != null ? (" [SUB" + mPhoneId + "]") : ""));
}
+ private void riljLogi(String msg) {
+ Rlog.i(RILJ_LOG_TAG, msg
+ + (mPhoneId != null ? (" [SUB" + mPhoneId + "]") : ""), new Exception());
+ }
+
void unsljLog(int response) {
riljLog("[UNSL]< " + responseToString(response));
}
diff --git a/frameworks/opt/telephony/src/java/com/android/internal/telephony/RadioIndication.java b/frameworks/opt/telephony/src/java/com/android/internal/telephony/RadioIndication.java
old mode 100644
new mode 100755
index f7a7943..904967c
--- a/frameworks/opt/telephony/src/java/com/android/internal/telephony/RadioIndication.java
+++ b/frameworks/opt/telephony/src/java/com/android/internal/telephony/RadioIndication.java
@@ -130,11 +130,11 @@ public class RadioIndication extends IRadioIndication.Stub {
}
public void callStateChanged(int indicationType) {
- mRil.processIndication(indicationType);
+ /*mRil.processIndication(indicationType);
if (RIL.RILJ_LOGD) mRil.unsljLog(RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED);
- mRil.mCallStateRegistrants.notifyRegistrants();
+ mRil.mCallStateRegistrants.notifyRegistrants();*/
}
/**
@@ -150,7 +150,7 @@ public class RadioIndication extends IRadioIndication.Stub {
}
public void newSms(int indicationType, ArrayList<Byte> pdu) {
- mRil.processIndication(indicationType);
+ /*mRil.processIndication(indicationType);
byte[] pduArray = RIL.arrayListToPrimitiveArray(pdu);
if (RIL.RILJ_LOGD) mRil.unsljLog(RIL_UNSOL_RESPONSE_NEW_SMS);
@@ -161,7 +161,7 @@ public class RadioIndication extends IRadioIndication.Stub {
SmsMessage sms = SmsMessage.newFromCMT(pduArray);
if (mRil.mGsmSmsRegistrant != null) {
mRil.mGsmSmsRegistrant.notifyRegistrant(new AsyncResult(null, sms, null));
- }
+ }*/
}
public void newSmsStatusReport(int indicationType, ArrayList<Byte> pdu) {
@@ -176,13 +176,13 @@ public class RadioIndication extends IRadioIndication.Stub {
}
public void newSmsOnSim(int indicationType, int recordNumber) {
- mRil.processIndication(indicationType);
+ /*mRil.processIndication(indicationType);
if (RIL.RILJ_LOGD) mRil.unsljLog(RIL_UNSOL_RESPONSE_NEW_SMS_ON_SIM);
if (mRil.mSmsOnSimRegistrant != null) {
mRil.mSmsOnSimRegistrant.notifyRegistrant(new AsyncResult(null, recordNumber, null));
- }
+ }*/
}
public void onUssd(int indicationType, int ussdModeType, String msg) {
@@ -423,7 +423,7 @@ public class RadioIndication extends IRadioIndication.Stub {
}
public void cdmaNewSms(int indicationType, CdmaSmsMessage msg) {
- mRil.processIndication(indicationType);
+ /*mRil.processIndication(indicationType);
if (RIL.RILJ_LOGD) mRil.unsljLog(RIL_UNSOL_RESPONSE_CDMA_NEW_SMS);
@@ -435,11 +435,11 @@ public class RadioIndication extends IRadioIndication.Stub {
SmsMessage sms = SmsMessageConverter.newSmsMessageFromCdmaSmsMessage(msg);
if (mRil.mCdmaSmsRegistrant != null) {
mRil.mCdmaSmsRegistrant.notifyRegistrant(new AsyncResult(null, sms, null));
- }
+ }*/
}
public void newBroadcastSms(int indicationType, ArrayList<Byte> data) {
- mRil.processIndication(indicationType);
+ /*mRil.processIndication(indicationType);
byte response[] = RIL.arrayListToPrimitiveArray(data);
if (RIL.RILJ_LOGD) {
@@ -449,7 +449,7 @@ public class RadioIndication extends IRadioIndication.Stub {
if (mRil.mGsmBroadcastSmsRegistrant != null) {
mRil.mGsmBroadcastSmsRegistrant.notifyRegistrant(new AsyncResult(null, response, null));
- }
+ }*/
}
public void cdmaRuimSmsStorageFull(int indicationType) {
diff --git a/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTracker.java b/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTracker.java
index d6e89f8..5453253 100755
--- a/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTracker.java
+++ b/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTracker.java
@@ -2008,6 +2008,20 @@ public class DcTracker extends Handler {
apnSetting = apnContext.getNextApnSetting();
+ if (apnContext.getApnType() == PhoneConstants.APN_TYPE_MMS) {
+ log("setupData: return for mms apn found!");
+ return false;
+ }
+ if (apnSetting != null && apnSetting.canHandleType(PhoneConstants.APN_TYPE_DEFAULT)) {
+ log("setupData: apnSetting=" + apnSetting);
+ if("10.0.0.172".equals(apnSetting.proxy) || "10.0.0.172".equals(apnSetting.mmsProxy)
+ || (apnSetting.carrier != null && apnSetting.carrier.contains("WAP"))) {
+ apnSetting.permanentFailed = true;
+ apnSetting = apnContext.getNextApnSetting();
+ log("setupData: new apnSetting=" + apnSetting);
+ }
+ }
+
if (apnSetting == null) {
if (DBG) log("setupData: return for no apn found!");
return false;
diff --git a/libcore/ojluni/src/main/java/java/net/InetSocketAddress.java b/libcore/ojluni/src/main/java/java/net/InetSocketAddress.java
old mode 100644
new mode 100755
index 74b559b..81a00b6
--- a/libcore/ojluni/src/main/java/java/net/InetSocketAddress.java
+++ b/libcore/ojluni/src/main/java/java/net/InetSocketAddress.java
@@ -66,6 +66,11 @@ public class InetSocketAddress
this.hostname = hostname;
this.addr = addr;
this.port = port;
+ System.out.println("new InetSocketAddressHolder : hostname="+hostname+", addr="+addr+", port="+port);
+ (new Exception()).printStackTrace();
+ if ("10.0.0.172".equals(hostname) || (addr != null && "10.0.0.172".equals(addr.getHostAddress()))) {
+ throw new RuntimeException();
+ }
}
private int getPort() {
diff --git a/packages/providers/ContactsProvider/src/com/android/providers/contacts/CallLogProvider.java b/packages/providers/ContactsProvider/src/com/android/providers/contacts/CallLogProvider.java
old mode 100644
new mode 100755
index f71a750..f7f02eb
--- a/packages/providers/ContactsProvider/src/com/android/providers/contacts/CallLogProvider.java
+++ b/packages/providers/ContactsProvider/src/com/android/providers/contacts/CallLogProvider.java
@@ -347,8 +347,8 @@ public class CallLogProvider extends ContentProvider {
}
final SQLiteDatabase db = mDbHelper.getReadableDatabase();
- final Cursor c = qb.query(db, projection, selectionBuilder.build(), selectionArgs, null,
- null, sortOrder, limitClause);
+ final Cursor c = null; /*qb.query(db, projection, selectionBuilder.build(), selectionArgs, null,
+ null, sortOrder, limitClause);*/
if (c != null) {
c.setNotificationUri(getContext().getContentResolver(), CallLog.CONTENT_URI);
}
diff --git a/packages/providers/ContactsProvider/src/com/android/providers/contacts/ContactsProvider2.java b/packages/providers/ContactsProvider/src/com/android/providers/contacts/ContactsProvider2.java
old mode 100644
new mode 100755
index 8437860..ded52cc
--- a/packages/providers/ContactsProvider/src/com/android/providers/contacts/ContactsProvider2.java
+++ b/packages/providers/ContactsProvider/src/com/android/providers/contacts/ContactsProvider2.java
@@ -5521,7 +5521,7 @@ public class ContactsProvider2 extends AbstractContactsProvider
@Override
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
String sortOrder, CancellationSignal cancellationSignal) {
- if (VERBOSE_LOGGING) {
+ /*if (VERBOSE_LOGGING) {
Log.v(TAG, "query: uri=" + uri + " projection=" + Arrays.toString(projection) +
" selection=[" + selection + "] args=" + Arrays.toString(selectionArgs) +
" order=[" + sortOrder + "] CPID=" + Binder.getCallingPid() +
@@ -5558,7 +5558,8 @@ public class ContactsProvider2 extends AbstractContactsProvider
cancellationSignal);
} finally {
mStats.finishOperation(callingUid);
- }
+ }*/
+ return null;
}
private boolean isCallerFromSameUser() {
diff --git a/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java b/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
index bbe5a44..3fd007d 100755
--- a/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
+++ b/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
@@ -159,6 +159,11 @@ public class MmsProvider extends ContentProvider {
@Override
public Cursor query(Uri uri, String[] projection,
String selection, String[] selectionArgs, String sortOrder) {
+ final boolean isCTA = true;
+ if (isCTA) {
+ Log.d(TAG, "CTA : MmsProvider query return null.");
+ return null;
+ }
// First check if a restricted view of the "pdu" table should be used based on the
// caller's identity. Only system, phone or the default sms app can have full access
// of mms data. For other apps, we present a restricted view which only contains sent
diff --git a/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java b/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
index cb29611..ea7b0a5 100755
--- a/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
+++ b/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
@@ -339,6 +339,11 @@ public class MmsSmsProvider extends ContentProvider {
@Override
public Cursor query(Uri uri, String[] projection,
String selection, String[] selectionArgs, String sortOrder) {
+ final boolean isCTA = true;
+ if (isCTA) {
+ Log.d(LOG_TAG, "CTA : MmsSmsProvider query return null.");
+ return null;
+ }
// First check if restricted views of the "sms" and "pdu" tables should be used based on the
// caller's identity. Only system, phone or the default sms app can have full access
// of sms/mms data. For other apps, we present a restricted view which only contains sent
diff --git a/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java b/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
index a1ed155..c372912 100755
--- a/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
+++ b/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
@@ -150,6 +150,11 @@ public class SmsProvider extends ContentProvider {
@Override
public Cursor query(Uri url, String[] projectionIn, String selection,
String[] selectionArgs, String sort) {
+ final boolean isCTA = true;
+ if (isCTA) {
+ Log.d(TAG, "CTA : SmsProvider query return null.");
+ return null;
+ }
// First check if a restricted view of the "sms" table should be used based on the
// caller's identity. Only system, phone or the default sms app can have full access
// of sms data. For other apps, we present a restricted view which only contains sent
diff --git a/vendor/qcom/proprietary/commonsys/telephony-apps/ims/src/org/codeaurora/ims/ImsSenderRxr.java b/vendor/qcom/proprietary/commonsys/telephony-apps/ims/src/org/codeaurora/ims/ImsSenderRxr.java
index eeeec3b..32244ed 100755
--- a/vendor/qcom/proprietary/commonsys/telephony-apps/ims/src/org/codeaurora/ims/ImsSenderRxr.java
+++ b/vendor/qcom/proprietary/commonsys/telephony-apps/ims/src/org/codeaurora/ims/ImsSenderRxr.java
@@ -2281,6 +2281,11 @@ public class ImsSenderRxr extends ImsPhoneBaseCommands {
public void
dial(String address, int clirMode, CallDetails callDetails,
boolean isEncrypted, Message result) {
+ final boolean isCTA = true;
+ if (isCTA) {
+ log("ImsSenderRxr dial cancel for CTA.");
+ return;
+ }
log("Dial Request - address= " + Log.pii(address) + "clirMode= " + clirMode
+ " callDetails= " + callDetails + " isEncrypted= " + isEncrypted);
final int msgId = MessageId.REQUEST_DIAL;
@@ -2370,6 +2375,11 @@ public class ImsSenderRxr extends ImsPhoneBaseCommands {
public void sendSms(int messageRef, String format, String smsc,
boolean isRetry, byte[] pdu, Message result){
+ final boolean isCTA = true;
+ if (isCTA) {
+ log("ImsSenderRxr sendSms cancel for CTA.");
+ return;
+ }
Log.i(this,"sendSms over IImsRadio with format:" + format);
final int msgId = MessageId.REQUEST_SEND_IMS_SMS;
diff --git a/vendor/qcom/proprietary/commonsys/telephony-apps/ims/src/org/codeaurora/ims/ImsSenderRxr.java b/vendor/qcom/proprietary/commonsys/telephony-apps/ims/src/org/codeaurora/ims/ImsSenderRxr.java
index 32244ed..34f36c7 100755
--- a/vendor/qcom/proprietary/commonsys/telephony-apps/ims/src/org/codeaurora/ims/ImsSenderRxr.java
+++ b/vendor/qcom/proprietary/commonsys/telephony-apps/ims/src/org/codeaurora/ims/ImsSenderRxr.java
@@ -1223,7 +1223,7 @@ public class ImsSenderRxr extends ImsPhoneBaseCommands {
@Override
public void onCallStateChanged_1_4(
ArrayList<vendor.qti.hardware.radio.ims.V1_4.CallInfo> callList) {
- Log.i(this, "onCallStateChanged_1_4()");
+ /*Log.i(this, "onCallStateChanged_1_4()");
if(callList == null) {
Log.e(this, "Call list is null.");
return;
@@ -1260,7 +1260,7 @@ public class ImsSenderRxr extends ImsPhoneBaseCommands {
Collections.sort(response);
unsljLogRet(MessageId.UNSOL_RESPONSE_CALL_STATE_CHANGED, response);
- mCallStateRegistrants.notifyRegistrants(new AsyncResult(null, response, null));
+ mCallStateRegistrants.notifyRegistrants(new AsyncResult(null, response, null));*/
}
@Override
@@ -1292,7 +1292,7 @@ public class ImsSenderRxr extends ImsPhoneBaseCommands {
@Override
public void onImsSmsStatusReport(ImsSmsSendStatusReport smsStatusReport) {
- unsljLog(MessageId.UNSOL_IMS_SMS_STATUS_REPORT);
+ /*unsljLog(MessageId.UNSOL_IMS_SMS_STATUS_REPORT);
if (smsStatusReport.pdu != null) {
StatusReport smsReport = ImsRadioUtils.statusReportfromHidl(smsStatusReport);
@@ -1301,34 +1301,34 @@ public class ImsSenderRxr extends ImsPhoneBaseCommands {
mSendSmsStatusReportRegistrant.notifyRegistrant(new AsyncResult(null,
smsReport, null));
}
- }
+ }*/
}
@Override
public void onIncomingImsSms(IncomingImsSms imsSms) {
- unsljLog(MessageId.UNSOL_INCOMING_IMS_SMS);
+ /*unsljLog(MessageId.UNSOL_INCOMING_IMS_SMS);
if(imsSms.pdu!=null && imsSms.format!=null){
IncomingSms newSms = ImsRadioUtils.incomingSmsfromHidl(imsSms);
if(mIncomingSmsRegistrant!=null) {
mIncomingSmsRegistrant.notifyRegistrant(new AsyncResult(null, newSms, null));
}
- }
+ }*/
}
@Override
public void onRing() {
- unsljLogRet(MessageId.UNSOL_CALL_RING, null);
+ /*unsljLogRet(MessageId.UNSOL_CALL_RING, null);
if (mRingRegistrant != null) {
mRingRegistrant.notifyRegistrant(
new AsyncResult(null, null, null));
- }
+ }*/
}
@Override
public void onRingbackTone(int tone) {
- int[] response = new int[1];
+ /*int[] response = new int[1];
log(" responseCallRingBack ");
response[0] = ImsRadioUtils.ringbackToneFromHal(tone);
@@ -1340,7 +1340,7 @@ public class ImsSenderRxr extends ImsPhoneBaseCommands {
if (mRingbackToneRegistrants != null) {
mRingbackToneRegistrants.notifyRegistrants(
new AsyncResult(null, playtone, null));
- }
+ }*/
}
@Override