Telephony: Don't start RilReceiver when not needed
Alex Yakavenka [Wed, 6 Jun 2012 20:23:57 +0000 (13:23 -0700)]
Basebandless targets don't need RilReceiver.

Change-Id: I510cc6f0100219af9479738fc4b48c7ab85ea666
CRs-Fixed: 367918

src/java/com/android/internal/telephony/RIL.java

index dbfe5d9..68b4a1c 100644 (file)
@@ -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();