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

Commit cfa81fe4 authored by Christopher Wiley's avatar Christopher Wiley Committed by android-build-merger
Browse files

Merge \\"TetherUtil: Use ConnectivityManager for tethering\\" into nyc-mr1-dev am: fb0ec9de

am: 6c29aefb

Change-Id: If0912c3e7616bcc9b747e4c4ea528dd181afcd6d
parents c606e64e 6c29aefb
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -16,18 +16,11 @@
package com.android.settingslib;

import android.content.Context;
import android.net.wifi.WifiManager;
import android.os.SystemProperties;
import android.telephony.CarrierConfigManager;

public class TetherUtil {

    public static boolean setWifiTethering(boolean enable, Context context) {
        final WifiManager wifiManager =
                (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
        return wifiManager.setWifiApEnabled(null, enable);
    }

    private static boolean isEntitlementCheckRequired(Context context) {
        final CarrierConfigManager configManager = (CarrierConfigManager) context
             .getSystemService(Context.CARRIER_CONFIG_SERVICE);