Loading android/app/src/com/android/bluetooth/pan/PanService.java +5 −4 Original line number Diff line number Diff line Loading @@ -306,14 +306,14 @@ public class PanService extends ProfileService { } @Override public void setBluetoothTethering(boolean value, String pkgName) { public void setBluetoothTethering(boolean value, String pkgName, String attributionTag) { PanService service = getService(); if (service == null) { return; } Log.d(TAG, "setBluetoothTethering: " + value + ", pkgName: " + pkgName + ", mTetherOn: " + service.mTetherOn); service.setBluetoothTethering(value, pkgName); service.setBluetoothTethering(value, pkgName, attributionTag); } @Override Loading Loading @@ -390,7 +390,8 @@ public class PanService extends ProfileService { return mTetherOn; } void setBluetoothTethering(boolean value, final String pkgName) { void setBluetoothTethering(boolean value, final String pkgName, final String callingAttributionTag) { if (DBG) { Log.d(TAG, "setBluetoothTethering: " + value + ", mTetherOn: " + mTetherOn); } Loading @@ -398,7 +399,7 @@ public class PanService extends ProfileService { BLUETOOTH_PRIVILEGED, "Need BLUETOOTH_PRIVILEGED permission"); final Context context = getBaseContext(); ConnectivityManager.enforceTetherChangePermission(context, pkgName); ConnectivityManager.enforceTetherChangePermission(context, pkgName, callingAttributionTag); UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); if (um.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING) && value) { Loading Loading
android/app/src/com/android/bluetooth/pan/PanService.java +5 −4 Original line number Diff line number Diff line Loading @@ -306,14 +306,14 @@ public class PanService extends ProfileService { } @Override public void setBluetoothTethering(boolean value, String pkgName) { public void setBluetoothTethering(boolean value, String pkgName, String attributionTag) { PanService service = getService(); if (service == null) { return; } Log.d(TAG, "setBluetoothTethering: " + value + ", pkgName: " + pkgName + ", mTetherOn: " + service.mTetherOn); service.setBluetoothTethering(value, pkgName); service.setBluetoothTethering(value, pkgName, attributionTag); } @Override Loading Loading @@ -390,7 +390,8 @@ public class PanService extends ProfileService { return mTetherOn; } void setBluetoothTethering(boolean value, final String pkgName) { void setBluetoothTethering(boolean value, final String pkgName, final String callingAttributionTag) { if (DBG) { Log.d(TAG, "setBluetoothTethering: " + value + ", mTetherOn: " + mTetherOn); } Loading @@ -398,7 +399,7 @@ public class PanService extends ProfileService { BLUETOOTH_PRIVILEGED, "Need BLUETOOTH_PRIVILEGED permission"); final Context context = getBaseContext(); ConnectivityManager.enforceTetherChangePermission(context, pkgName); ConnectivityManager.enforceTetherChangePermission(context, pkgName, callingAttributionTag); UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); if (um.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING) && value) { Loading