Update to modern Bluetooth permissions.
The Settings app offers several Bluetooth intents, and they need to be updated to enforce the new "Nearby devices" runtime permission model, since the old BLUETOOTH and BLUETOOTH_ADMIN permissions have been deprecated. Bug: 191174082 Test: TH Change-Id: I0d812f486bc3dadc517d5b04d3082d4f56f60ef4
This commit is contained in:
@@ -212,6 +212,6 @@ public final class DevicePickerFragment extends DeviceListPreferenceFragment {
|
||||
}
|
||||
}
|
||||
|
||||
mContext.sendBroadcast(intent, Manifest.permission.BLUETOOTH_ADMIN);
|
||||
mContext.sendBroadcast(intent, Manifest.permission.BLUETOOTH_CONNECT);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user