summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothGattCallback.java
diff options
context:
space:
mode:
authorRahul Sabnis <rahulsabnis@google.com>2022-03-17 22:17:14 -0700
committerRahul Sabnis <rahulsabnis@google.com>2022-03-17 22:18:56 -0700
commit61e8f11e2359d0b087321b2a7b8b5c94a57afaed (patch)
treea0ebf028430ade208310f71c30236e544483d4c2 /framework/java/android/bluetooth/BluetoothGattCallback.java
parentdc7a3d9999f3935010d66319a38cd98f9f021d34 (diff)
Address API council feedback on GATT API changes.
This CL also updates the permission enforcement mechanism for GATT APIs so it now throws a SecurityException on new APIs as well as on older APIs called by apps targeting T+. Tag: #feature Bug: 217742355 Test: Manual Change-Id: I87fe2ffd088cbce4a9887538964e73f3f5198157
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothGattCallback.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothGattCallback.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothGattCallback.java b/framework/java/android/bluetooth/BluetoothGattCallback.java
index d0a5a1e729..3852d508c0 100644
--- a/framework/java/android/bluetooth/BluetoothGattCallback.java
+++ b/framework/java/android/bluetooth/BluetoothGattCallback.java
@@ -105,6 +105,7 @@ public abstract class BluetoothGattCallback {
*/
public void onCharacteristicRead(@NonNull BluetoothGatt gatt, @NonNull
BluetoothGattCharacteristic characteristic, @NonNull byte[] value, int status) {
+ onCharacteristicRead(gatt, characteristic, status);
}
/**
@@ -155,6 +156,7 @@ public abstract class BluetoothGattCallback {
*/
public void onCharacteristicChanged(@NonNull BluetoothGatt gatt,
@NonNull BluetoothGattCharacteristic characteristic, @NonNull byte[] value) {
+ onCharacteristicChanged(gatt, characteristic);
}
/**
@@ -184,6 +186,7 @@ public abstract class BluetoothGattCallback {
*/
public void onDescriptorRead(@NonNull BluetoothGatt gatt,
@NonNull BluetoothGattDescriptor descriptor, int status, @NonNull byte[] value) {
+ onDescriptorRead(gatt, descriptor, status);
}
/**