OSDN Git Service

Add the package name to setBluetoothTethering
authorChalard Jean <jchalard@google.com>
Mon, 19 Aug 2019 09:57:55 +0000 (18:57 +0900)
committerMark Chien <markchien@google.com>
Thu, 29 Aug 2019 08:49:45 +0000 (08:49 +0000)
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
Merged-In: Ibd077bfdd071b9db68064052ecf77b8dfaf8878a

binder/android/bluetooth/IBluetoothPan.aidl

index 16b6ddf..4052aa4 100644 (file)
@@ -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<BluetoothDevice> getConnectedDevices();