Add the package name to setBluetoothTethering
This lets Appops check for permissions correctly.
Bug: 134649258
Test: atest PanServiceTest
manual test that apps without the requisite permissions
can't turn on bluetooth tethering
Change-Id: Ibd077bfdd071b9db68064052ecf77b8dfaf8878a
diff --git a/binder/android/bluetooth/IBluetoothPan.aidl b/binder/android/bluetooth/IBluetoothPan.aidl
index 16b6ddf..4052aa4 100644
--- a/binder/android/bluetooth/IBluetoothPan.aidl
+++ b/binder/android/bluetooth/IBluetoothPan.aidl
@@ -26,7 +26,7 @@
interface IBluetoothPan {
// Public API
boolean isTetheringOn();
- void setBluetoothTethering(boolean value);
+ void setBluetoothTethering(boolean value, String pkgName);
boolean connect(in BluetoothDevice device);
boolean disconnect(in BluetoothDevice device);
List<BluetoothDevice> getConnectedDevices();