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

Commit a431e37c authored by Hunsuk Choi's avatar Hunsuk Choi Committed by Automerger Merge Worker
Browse files

Suppress the excessive logging for HAL_SERVICE_IMS am: a26bb1fd

parents 88c9f84c a26bb1fd
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -811,9 +811,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) {