From 3c705a8575f1954e3ef9e2e39736c58079f47be2 Mon Sep 17 00:00:00 2001 From: Chalard Jean Date: Mon, 19 Aug 2019 18:57:55 +0900 Subject: 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 --- binder/android/bluetooth/IBluetoothPan.aidl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binder/android/bluetooth/IBluetoothPan.aidl b/binder/android/bluetooth/IBluetoothPan.aidl index 16b6ddff8..4052aa4a1 100644 --- a/binder/android/bluetooth/IBluetoothPan.aidl +++ b/binder/android/bluetooth/IBluetoothPan.aidl @@ -26,7 +26,7 @@ import android.bluetooth.BluetoothDevice; 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 getConnectedDevices(); -- cgit v1.2.3