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

Commit c241cad7 authored by Alex Yakavenka's avatar Alex Yakavenka
Browse files

Telephony: Don't start RilReceiver when not needed

Basebandless targets don't need RilReceiver.

Change-Id: I510cc6f0100219af9479738fc4b48c7ab85ea666
CRs-Fixed: 367918
parent 135bf68d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -640,6 +640,8 @@ public final class RIL extends BaseCommands implements CommandsInterface {
                Context.CONNECTIVITY_SERVICE);
        if (cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE) == false) {
            riljLog("Not starting RILReceiver: wifi-only");
        } if (SystemProperties.getBoolean("ro.radio.noril", false)) {
            riljLog("Not starting RILReceiver: basebandless target");
        } else {
            riljLog("Starting RILReceiver");
            mReceiver = new RILReceiver();