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

Commit 0190837e authored by Mike Lockwood's avatar Mike Lockwood
Browse files

BluetoothManagerService: Enforce DUMP permission

Bug: 18667272
Change-Id: If9a510aa7b5f22b9df1d8b33f0a18183040a8cf6
parent 733656c6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1521,6 +1521,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub {

    @Override
    public void dump(FileDescriptor fd, PrintWriter writer, String[] args) {
        mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, TAG);

        writer.println("enabled: " + mEnable);
        writer.println("state: " + mState);
        writer.println("address: " + mAddress);