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

Commit 7f068587 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Android Git Automerger
Browse files

am 2ef9030e: am d81528f7: am 821bac3c: am 7826d098: Merge "Use unified...

am 2ef9030e: am d81528f7: am 821bac3c: am 7826d098: Merge "Use unified Tethering Permission Check" into lmp-dev

* commit '2ef9030e':
  Use unified Tethering Permission Check
parents efd74808 2ef9030e
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -302,6 +302,7 @@ public class PanService extends ProfileService {


    void setBluetoothTethering(boolean value) {
    void setBluetoothTethering(boolean value) {
        if(DBG) Log.d(TAG, "setBluetoothTethering: " + value +", mTetherOn: " + mTetherOn);
        if(DBG) Log.d(TAG, "setBluetoothTethering: " + value +", mTetherOn: " + mTetherOn);
        ConnectivityManager.enforceTetherChangePermission(getBaseContext());
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission");
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission");
        UserManager um = (UserManager) getSystemService(Context.USER_SERVICE);
        UserManager um = (UserManager) getSystemService(Context.USER_SERVICE);
        if (um.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING)) {
        if (um.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING)) {