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

Commit a26bb1fd authored by Hunsuk Choi's avatar Hunsuk Choi
Browse files

Suppress the excessive logging for HAL_SERVICE_IMS

The logging related HAL_SERVICE_IMS is appearing
even in cases where there is no functional failures,
which is confusing. It appears quite frequently
in normal cases, such as hanging up a call, etc.

Bug: 340613346
Test: manual test
Step1. Confirm IMS is registered.
Step2. Dial VoLTE call
Step3. Verify the call completes successfully.

Change-Id: I9a8c1fafab96010262a3c63cb2aa98ba59d896c7
parent 6b9d674b
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -728,9 +728,12 @@ public class RIL extends BaseCommands implements CommandsInterface {
    public synchronized RadioServiceProxy getRadioServiceProxy(int service) {
        if (!SubscriptionManager.isValidPhoneId(mPhoneId)) return mServiceProxies.get(service);
        if ((service >= HAL_SERVICE_IMS) && !isRadioServiceSupported(service)) {
            // Suppress the excessive logging for HAL_SERVICE_IMS when not supported.
            if (service != HAL_SERVICE_IMS) {
                riljLogw("getRadioServiceProxy: " + serviceToString(service) + " for "
                        + HIDL_SERVICE_NAME[mPhoneId] + " is not supported\n"
                        + android.util.Log.getStackTraceString(new RuntimeException()));
            }
            return mServiceProxies.get(service);
        }
        if (!mIsCellularSupported) {