Merge "BluetoothManagerService: Enforce DUMP permission" into lmp-mr1-dev

This commit is contained in:
Mike Lockwood
2014-12-18 22:33:59 +00:00
committed by Android (Google) Code Review

View File

@@ -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);