diff --git a/core/api/current.txt b/core/api/current.txt index fb7d986a3138a..cf77f04dfdfb5 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -8756,6 +8756,7 @@ package android.bluetooth { field public static final int GATT_CONNECTION_CONGESTED = 143; // 0x8f field public static final int GATT_FAILURE = 257; // 0x101 field public static final int GATT_INSUFFICIENT_AUTHENTICATION = 5; // 0x5 + field public static final int GATT_INSUFFICIENT_AUTHORIZATION = 8; // 0x8 field public static final int GATT_INSUFFICIENT_ENCRYPTION = 15; // 0xf field public static final int GATT_INVALID_ATTRIBUTE_LENGTH = 13; // 0xd field public static final int GATT_INVALID_OFFSET = 7; // 0x7 diff --git a/core/java/android/bluetooth/BluetoothGatt.java b/core/java/android/bluetooth/BluetoothGatt.java index 1d08ddb65cf49..6f2aba25eb951 100644 --- a/core/java/android/bluetooth/BluetoothGatt.java +++ b/core/java/android/bluetooth/BluetoothGatt.java @@ -98,6 +98,9 @@ public final class BluetoothGatt implements BluetoothProfile { /** A read or write operation was requested with an invalid offset */ public static final int GATT_INVALID_OFFSET = 0x7; + /** Insufficient authorization for a given operation */ + public static final int GATT_INSUFFICIENT_AUTHORIZATION = 0x8; + /** A write operation exceeds the maximum length of the attribute */ public static final int GATT_INVALID_ATTRIBUTE_LENGTH = 0xd;