Bluetooth: Add GATT_INSUFFICIENT_AUTHORIZATION error code

Bug: 150670922
Sponsor: jpawlowski@
Tag: #feature
Test: compilation
Change-Id: I25bc13c658caba48cc37b0f1f253a77fd1336b29
This commit is contained in:
Jakub Tyszkowski
2021-08-03 12:48:43 +02:00
committed by Jakub Pawlowski
parent 9e3abef9b3
commit c74aebb4db
2 changed files with 4 additions and 0 deletions

View File

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

View File

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