Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9db7490 authored by Andre Eisenbach's avatar Andre Eisenbach
Browse files

Restore DUMP permission check for BluetoothManagerService

Bug: 27150536
Change-Id: I6e07f8f5f7476c6cd6dca79e2fb5e8c8412493ec
parent c662d8e9
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1672,6 +1672,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub {


    @Override
    @Override
    public void dump(FileDescriptor fd, PrintWriter writer, String args[]) {
    public void dump(FileDescriptor fd, PrintWriter writer, String args[]) {
      mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, TAG);
      if (mBluetoothBinder == null) {
      if (mBluetoothBinder == null) {
        writer.println("Bluetooth Service not connected");
        writer.println("Bluetooth Service not connected");
      } else {
      } else {