Merge "BluetoothManagerService: Enforce DUMP permission" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8a0399c442
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user