Merge "Bluetooth: log who changes adapter name" am: 78f92ef7fa am: 8e139a82cd am: b1f4504f56 am: 350b085cc8

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1428568

Change-Id: I39e2e2358e3c0fabe3a11a0d98c46f6457dc0780
This commit is contained in:
Jakub Pawlowski
2020-09-17 14:13:07 +00:00
committed by Automerger Merge Worker

View File

@@ -417,7 +417,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
if (BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED.equals(action)) {
String newName = intent.getStringExtra(BluetoothAdapter.EXTRA_LOCAL_NAME);
if (DBG) {
Slog.d(TAG, "Bluetooth Adapter name changed to " + newName);
Slog.d(TAG, "Bluetooth Adapter name changed to " + newName + " by "
+ mContext.getPackageName());
}
if (newName != null) {
storeNameAndAddress(newName, null);