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

Commit 0079fadc authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6583806 from 2e48ad06 to mainline-release

Change-Id: If71a5903d6feacb8e873022422bc6bb8b668ee99
parents cf57807a 2e48ad06
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.bluetooth.pan;

import static android.Manifest.permission.TETHER_PRIVILEGED;

import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothPan;
import android.bluetooth.BluetoothPan.LocalPanRole;
@@ -396,9 +398,8 @@ public class PanService extends ProfileService {
        }
        enforceCallingOrSelfPermission(
                BLUETOOTH_PRIVILEGED, "Need BLUETOOTH_PRIVILEGED permission");
        final Context context = getBaseContext();

        ConnectivityManager.enforceTetherChangePermission(context, pkgName);
        enforceCallingOrSelfPermission(
                TETHER_PRIVILEGED, "Need TETHER_PRIVILEGED permission");

        UserManager um = (UserManager) getSystemService(Context.USER_SERVICE);
        if (um.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING) && value) {