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

Commit ac0a841e authored by Dan Pasanen's avatar Dan Pasanen Committed by Gerrit Code Review
Browse files

ConnectivityService: add persist.radio.noril

* For those of us with a tablet or device that has a radio, but
  don't plan to ever use it

Change-Id: I8b1a5805254b549886eb5b08005fb92e97a6b7ce
parent 1c09ba62
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -679,7 +679,8 @@ public class ConnectivityService extends IConnectivityManager.Stub
        mNetConfigs = new NetworkConfig[ConnectivityManager.MAX_NETWORK_TYPE+1];

        // TODO: What is the "correct" way to do determine if this is a wifi only device?
        boolean wifiOnly = SystemProperties.getBoolean("ro.radio.noril", false);
        boolean wifiOnly = SystemProperties.getBoolean("ro.radio.noril", false)
                || SystemProperties.getBoolean("persist.radio.noril", false);
        log("wifiOnly=" + wifiOnly);
        String[] naStrings = context.getResources().getStringArray(
                com.android.internal.R.array.networkAttributes);