Loading android/app/src/com/android/bluetooth/pan/PanService.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -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)) { Loading Loading
android/app/src/com/android/bluetooth/pan/PanService.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -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)) { Loading